You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by nylan <ny...@gmx.net> on 2016/06/15 11:50:44 UTC

Strange servicemix wrapper issue when using camel file2

Hello,

This is a strange problem that is driving me nuts.

Use case :
* Servicemix 6.1.1
* Consume files from a directory (mounted smb share)
* Extract some content and the filename from the message body
* Write the content using the extracted filename to a directory (mounted smb
share)

The issue shows up when the filename contains special characters (german
Umlaute).
Camel file2 is unable to store the file and gives the following exception:


The strange part of the issue:
Starting servicemix with the service wrapper -> camel file2 is unable to
store the file. 
Starting servicemix with bin/servicemix [debug] -> everything works fine.

I'v tried to use the same settings for both methods without success (see
attached files).

Some hints how to resolve this issue? 
I'm using servicemix 6.1.1 on centos 7

Thanks

Best regards

Servicemix system properties and info ( at the end of the file) for both
methods:
servicemix_bin.txt
<http://servicemix.396122.n5.nabble.com/file/n5723794/servicemix_bin.txt>  
servicemix_wrapper.txt
<http://servicemix.396122.n5.nabble.com/file/n5723794/servicemix_wrapper.txt>  






--
View this message in context: http://servicemix.396122.n5.nabble.com/Strange-servicemix-wrapper-issue-when-using-camel-file2-tp5723794.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Strange servicemix wrapper issue when using camel file2

Posted by nylan <ny...@gmx.net>.
Looks like the issue is solved.
After applying some updates (centos 7) servicemix is working correctly.

Possible solutions:
* Update to new java version solved the issue
* Some other updates to centos 7 solved the issue
* Other changes I'm not aware of solved the issue

Don't know which of the changes above caused this. 

Best regards




--
View this message in context: http://servicemix.396122.n5.nabble.com/Strange-servicemix-wrapper-issue-when-using-camel-file2-tp5723794p5723822.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Strange servicemix wrapper issue when using camel file2

Posted by nylan <ny...@gmx.net>.
I've tried disabling selinux, but it has no effect.

My implemenation works correctly , when the filename doesn't contain german
umlauts.
Also works without problems when the filename contains german umlaut and
servicemix was startet using bin/servicemix.








--
View this message in context: http://servicemix.396122.n5.nabble.com/Strange-servicemix-wrapper-issue-when-using-camel-file2-tp5723794p5723796.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Strange servicemix wrapper issue when using camel file2

Posted by Daniel McGreal <d....@gmail.com>.
SELinux?

If it’s running, try disabling it temporarily and re-launch the wrapper.

setenforce permissive

Dan.

> On 15 Jun 2016, at 12:50, nylan <ny...@gmx.net> wrote:
> 
> Hello,
> 
> This is a strange problem that is driving me nuts.
> 
> Use case :
> * Servicemix 6.1.1
> * Consume files from a directory (mounted smb share)
> * Extract some content and the filename from the message body
> * Write the content using the extracted filename to a directory (mounted smb
> share)
> 
> The issue shows up when the filename contains special characters (german
> Umlaute).
> Camel file2 is unable to store the file and gives the following exception:
> 
> 
> The strange part of the issue:
> Starting servicemix with the service wrapper -> camel file2 is unable to
> store the file. 
> Starting servicemix with bin/servicemix [debug] -> everything works fine.
> 
> I'v tried to use the same settings for both methods without success (see
> attached files).
> 
> Some hints how to resolve this issue? 
> I'm using servicemix 6.1.1 on centos 7
> 
> Thanks
> 
> Best regards
> 
> Servicemix system properties and info ( at the end of the file) for both
> methods:
> servicemix_bin.txt
> <http://servicemix.396122.n5.nabble.com/file/n5723794/servicemix_bin.txt>  
> servicemix_wrapper.txt
> <http://servicemix.396122.n5.nabble.com/file/n5723794/servicemix_wrapper.txt>  
> 
> 
> 
> 
> 
> 
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/Strange-servicemix-wrapper-issue-when-using-camel-file2-tp5723794.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.