-
1. Re: Servicemix-mail and Stream Closed
joe.luo Aug 17, 2009 6:04 AM (in response to terrancecrow)Is it possible for you to send in a test case please? So I can test here to find out what was causing the problem.
Thanks,
-
2. Re: Servicemix-mail and Stream Closed
terrancecrow Aug 17, 2009 4:01 PM (in response to joe.luo)Thank you very much for your response!
I've attached two files: A sample input XML file that produces the error and the servicemix-bean's xbean.xml file. I've included the latter just in case I've misconfigured something.
I tried to trace the source code, but I have to admit that I couldn't find DefaultMailMarshaler.java in the 3.4.0.4 source code I downloaded. I couldn't even find the method convertJBIToMail using Spotlight (I'm developing under OS X 10.5.8). I'm sure it was just because it was late when I tried.
Please let me know if there's anything else I can provide. We're trying to build our first solution on FUSE ESB, and this is one of the issues that's in our way.
Thank you!
Edited by: terrancecrow on Aug 17, 2009 8:00 PM
-
3. Re: Servicemix-mail and Stream Closed
joe.luo Aug 18, 2009 12:16 PM (in response to terrancecrow)The servicemix components are shared between Fuse ESB 4.1.x and 3.4.x, hence they have different naming scheme. The version of the servicemix components for Fuse ESB 3.4.0.4-fuse is 2009.01.0.4-fuse. Therefore, you can find that version of DefaultMailMarshaler.java file from svn repo here.
I'll have a look at this issue.
-
4. Re: Servicemix-mail and Stream Closed
joe.luo Aug 18, 2009 1:46 PM (in response to terrancecrow)I have got the test case working. I just modified your MyBean.java file and added two lines of code:
normout.setProperty("org.apache.servicemix.mail.subject", "This is a test subject"); normout.setProperty("org.apache.servicemix.mail.text", body);
You will need to change the configuration of the mail-sender-test module to your own mail server and then compile and deploy.
Hope it helps,
/Joe
-
testcase.zip 13.0 KB
-
-
5. Re: Servicemix-mail and Stream Closed
terrancecrow Aug 18, 2009 6:51 PM (in response to joe.luo)Good evening!
I tested your fix. Turns out my code already had this line:
normout.setProperty("org.apache.servicemix.mail.subject", "This is a test subject");
I just had the second line you identified just after it:
normout.setProperty("org.apache.servicemix.mail.text", body);
It's working just fine now!
Wow -- that was all there was to it?
I have to say I'm relieved it was my code. I'm glad that a 3.4.0.2 to 3.4.0.4 or 3.4.0.4 upgraded didn't break basic functionality.
Thank you very much for taking the time to diagnose the problem. My team and I are one step closer to production!
Thanks again!
-
6. Re: Servicemix-mail and Stream Closed
mitul1411 Jun 23, 2010 12:42 AM (in response to terrancecrow)This test case does not seem to work in FUSE ESB 4.2 . Am I correct ?
-
7. Re: Servicemix-mail and Stream Closed
mitul1411 Jun 23, 2010 2:09 AM (in response to mitul1411)MessageExchangeListener and ClientFactory interfaces are deprecated and are not recognised by the FUSE ESB 4.2.
It shows the following error :
javax.jbi.management.DeploymentException: <component-task-result xmlns="http://java.sun.com/xml/ns/jbi/management-message">
<component-name>servicemix-bean</component-name>
<component-task-result-details>
<task-result-details>
<task-id>deploy</task-id>
<task-result>FAILED</task-result>
<message-type>ERROR</message-type>
<task-status-msg><msg-loc-info><loc-token/><loc-message>Could not deploy xbean service unit</loc-message></msg-loc-info></task-status-msg>
<exception-info>
<nesting-level>1</nesting-level>
<msg-loc-info>
<loc-token />
<loc-message>Configuration problem: Class that bean class depends on not found
Bean 'myBean'; nested exception is java.lang.NoClassDefFoundError: org/apache/servicemix/MessageExchangeListener</loc-message>
<stack-trace><![CDATA[org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Class that bean class depends on not found