Discussion:
Strange servicemix wrapper issue when using camel file2
nylan
2016-06-15 11:50:44 UTC
Permalink
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.
Daniel McGreal
2016-06-15 11:54:39 UTC
Permalink
SELinux?

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

setenforce permissive

Dan.
Post by nylan
Hello,
This is a strange problem that is driving me nuts.
* 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).
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
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.
nylan
2016-06-15 12:02:44 UTC
Permalink
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.
nylan
2016-06-30 06:35:23 UTC
Permalink
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.
Loading...