You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by jwy923 <jw...@gmail.com> on 2008/11/06 18:32:35 UTC

Out no supported in servicemix-mail

Hello,

Can we use only one method, either convertMailToJBI or convertJBIToMail?

I was trying to send an e-mail (convertJBIToMail) after retrieving an e-mail
(convertMailToJBI) using POP3 and had the following error message.

Thanks in advance!

John

[Fatal Error] :-1:-1: Premature end of file.
ERROR - BeanComponent                  - Error processing exchange InOnly[
  id: ID:172.28.166.229-11d726e6e0a-14:637
  status: Active
  role: provider
  service: {http://lionshare.psu.edu/lionshare-search}lionsharesearch
  endpoint: handlerEndpoint
  in: Unable to display: org.xml.sax.SAXParseException: Premature end of
file.
]
javax.jbi.messaging.MessagingException: Out not supported
        at
org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setMessage(MessageExchangeImpl.java:357)
        at
org.apache.servicemix.jbi.FileSearchBean.onProviderExchange(FileSearchBean.java:255)
        at
org.apache.servicemix.jbi.FileSearchBean.onMessageExchange(FileSearchBean.java:92)
        at
org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:226)
        at
org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:212)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
        at
org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
        at
org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
        at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
        at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
        at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
ERROR - MailComponent                  - Caught exception while polling:
javax.jbi.messaging.MessagingException: Out no  supported
-- 
View this message in context: http://www.nabble.com/Out-no-supported-in-servicemix-mail-tp20365846p20365846.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Out no supported in servicemix-mail

Posted by Lars Heinemann <lh...@apache.org>.
John,

your configuration seems to be ok.
I think the error is inside your LSDefaultMailMarshaler class.
Is it possible that you fill the exchange somehow in a not correct way?

Please send me your class for having a look at possible errors. (feel 
free to hide sensitive data)

Regards
Lars


jwy923 schrieb:
> Lars,
>
> Does that mean that we cannot use convertMailToJBI and convertJBIToMail in a
> service unit?
>
> In other words, I cannot use the following configuration for a component. To
> make a poller and a sender, then I need 2 components, right?
>
> John
>
> <beans ....>
>        
>     <mail:poller service="smtpbot:LSMailService" 
>                  endpoint="pollerEndpoint" 
>                  targetService="ex:search"
>                  period="10000"
>                  debugMode="true"
>                  connection="pop3://1.1.1.1?user=hello;password=booboo"
>                  deleteProcessedMessages="true"
>                  processOnlyUnseenMessages="true" >
>                  
>         <property name="marshaler">
>         	<bean class="org.apache.servicemix.jbi.LSDefaultMailMarshaler" />
>     	</property>
>                  
>     </mail:poller>
>
>
>     <mail:sender service="smptbot:LSMailService" 
>                  endpoint="senderEndpoint"
>                  sender="smtpbot@1.1.1.1"
>                  receiver="your-static-receiver-address@some-host.com"
>                  debugMode="false" 
>                  connection="smtp://smtpbot@1.1.1.1?password=booboo" />     
>                        
> </beans>
>
>
>
>
> lhein wrote:
>   
>> John,
>>
>> the servicemix-mail component only sends InOnly exchanges when receiving
>> mails.
>> It seems you tried to access the "out" message of this InOnly exchange,
>> which is not
>> possible. So the error is correct.
>>
>> Please have a look at http://servicemix.apache.org/servicemix-mail for how
>> to use the component and the
>> different endpoints.
>>
>> Regards
>> Lars
>>
>>
>> 2008/11/6 jwy923 <jw...@gmail.com>
>>
>>     
>>> Hello,
>>>
>>> Can we use only one method, either convertMailToJBI or convertJBIToMail?
>>>
>>> I was trying to send an e-mail (convertJBIToMail) after retrieving an
>>> e-mail
>>> (convertMailToJBI) using POP3 and had the following error message.
>>>
>>> Thanks in advance!
>>>
>>> John
>>>
>>> [Fatal Error] :-1:-1: Premature end of file.
>>> ERROR - BeanComponent                  - Error processing exchange
>>> InOnly[
>>>  id: ID:172.28.166.229-11d726e6e0a-14:637
>>>  status: Active
>>>  role: provider
>>>  service:
>>> {http://lionshare.psu.edu/lionshare-search}lionsharesearch<http://lionshare.psu.edu/lionshare-search%7Dlionsharesearch>
>>>  endpoint: handlerEndpoint
>>>  in: Unable to display: org.xml.sax.SAXParseException: Premature end of
>>> file.
>>> ]
>>> javax.jbi.messaging.MessagingException: Out not supported
>>>        at
>>>
>>> org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setMessage(MessageExchangeImpl.java:357)
>>>        at
>>>
>>> org.apache.servicemix.jbi.FileSearchBean.onProviderExchange(FileSearchBean.java:255)
>>>        at
>>>
>>> org.apache.servicemix.jbi.FileSearchBean.onMessageExchange(FileSearchBean.java:92)
>>>        at
>>>
>>> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:226)
>>>        at
>>> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:212)
>>>        at
>>>
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
>>>        at
>>>
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
>>>        at
>>>
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
>>>        at
>>>
>>> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
>>>        at
>>>
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
>>>        at
>>>
>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>>>        at
>>>
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>>>        at
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>        at
>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>>>        at
>>>
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>>>        at java.lang.Thread.run(Thread.java:619)
>>> ERROR - MailComponent                  - Caught exception while polling:
>>> javax.jbi.messaging.MessagingException: Out no  supported
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Out-no-supported-in-servicemix-mail-tp20365846p20365846.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>>       
>> -- 
>> ----
>> http://lhein.blogspot.com
>>
>>
>> -----
>> Regards 
>> Lars 
>>
>>
>> http://lhein.blogspot.com 
>>
>>
>>     
>
>   


Re: Out no supported in servicemix-mail

Posted by jwy923 <jw...@gmail.com>.
Lars,

Does that mean that we cannot use convertMailToJBI and convertJBIToMail in a
service unit?

In other words, I cannot use the following configuration for a component. To
make a poller and a sender, then I need 2 components, right?

John

<beans ....>
       
    <mail:poller service="smtpbot:LSMailService" 
                 endpoint="pollerEndpoint" 
                 targetService="ex:search"
                 period="10000"
                 debugMode="true"
                 connection="pop3://1.1.1.1?user=hello;password=booboo"
                 deleteProcessedMessages="true"
                 processOnlyUnseenMessages="true" >
                 
        <property name="marshaler">
        	<bean class="org.apache.servicemix.jbi.LSDefaultMailMarshaler" />
    	</property>
                 
    </mail:poller>


    <mail:sender service="smptbot:LSMailService" 
                 endpoint="senderEndpoint"
                 sender="smtpbot@1.1.1.1"
                 receiver="your-static-receiver-address@some-host.com"
                 debugMode="false" 
                 connection="smtp://smtpbot@1.1.1.1?password=booboo" />     
                       
</beans>




lhein wrote:
> 
> John,
> 
> the servicemix-mail component only sends InOnly exchanges when receiving
> mails.
> It seems you tried to access the "out" message of this InOnly exchange,
> which is not
> possible. So the error is correct.
> 
> Please have a look at http://servicemix.apache.org/servicemix-mail for how
> to use the component and the
> different endpoints.
> 
> Regards
> Lars
> 
> 
> 2008/11/6 jwy923 <jw...@gmail.com>
> 
>>
>> Hello,
>>
>> Can we use only one method, either convertMailToJBI or convertJBIToMail?
>>
>> I was trying to send an e-mail (convertJBIToMail) after retrieving an
>> e-mail
>> (convertMailToJBI) using POP3 and had the following error message.
>>
>> Thanks in advance!
>>
>> John
>>
>> [Fatal Error] :-1:-1: Premature end of file.
>> ERROR - BeanComponent                  - Error processing exchange
>> InOnly[
>>  id: ID:172.28.166.229-11d726e6e0a-14:637
>>  status: Active
>>  role: provider
>>  service:
>> {http://lionshare.psu.edu/lionshare-search}lionsharesearch<http://lionshare.psu.edu/lionshare-search%7Dlionsharesearch>
>>  endpoint: handlerEndpoint
>>  in: Unable to display: org.xml.sax.SAXParseException: Premature end of
>> file.
>> ]
>> javax.jbi.messaging.MessagingException: Out not supported
>>        at
>>
>> org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setMessage(MessageExchangeImpl.java:357)
>>        at
>>
>> org.apache.servicemix.jbi.FileSearchBean.onProviderExchange(FileSearchBean.java:255)
>>        at
>>
>> org.apache.servicemix.jbi.FileSearchBean.onMessageExchange(FileSearchBean.java:92)
>>        at
>>
>> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:226)
>>        at
>> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:212)
>>        at
>>
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
>>        at
>>
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
>>        at
>>
>> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
>>        at
>>
>> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
>>        at
>>
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
>>        at
>>
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>>        at
>>
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>>        at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>>        at java.lang.Thread.run(Thread.java:619)
>> ERROR - MailComponent                  - Caught exception while polling:
>> javax.jbi.messaging.MessagingException: Out no  supported
>> --
>> View this message in context:
>> http://www.nabble.com/Out-no-supported-in-servicemix-mail-tp20365846p20365846.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> ----
> http://lhein.blogspot.com
> 
> 
> -----
> Regards 
> Lars 
> 
> 
> http://lhein.blogspot.com 
> 
> 

-- 
View this message in context: http://www.nabble.com/Out-no-supported-in-servicemix-mail-tp20365846p20445815.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Out no supported in servicemix-mail

Posted by jwy923 <jw...@gmail.com>.
Lars,

Does that mean that we cannot use "BOTH" convertMailToJBI and
convertJBIToMail in a service unit?

In other words, I cannot use the following configuration for a component. To
make a poller and a sender, then I need 2 components, right?

John

<beans ....>
       
    <mail:poller service="smtpbot:LSMailService"
                 endpoint="pollerEndpoint"
                 targetService="ex:search"
                 period="10000"
                 debugMode="true"
                 connection="pop3://1.1.1.1?user=hello;password=booboo"
                 deleteProcessedMessages="true"
                 processOnlyUnseenMessages="true" >
                 
        <property name="marshaler">
        <bean class="org.apache.servicemix.jbi.LSDefaultMailMarshaler" />
    </property>
                 
    </mail:poller>


    <mail:sender service="smptbot:LSMailService"
                 endpoint="senderEndpoint"
                 sender="smtpbot@1.1.1.1"
                 receiver="your-static-receiver-address@some-host.com"
                 debugMode="false"
                 connection="smtp://smtpbot@1.1.1.1?password=booboo" />    
                       
</beans> 



lhein wrote:
> 
> John,
> 
> the servicemix-mail component only sends InOnly exchanges when receiving
> mails.
> It seems you tried to access the "out" message of this InOnly exchange,
> which is not
> possible. So the error is correct.
> 
> Please have a look at http://servicemix.apache.org/servicemix-mail for how
> to use the component and the
> different endpoints.
> 
> Regards
> Lars
> 
> 
> 2008/11/6 jwy923 <jw...@gmail.com>
> 
>>
>> Hello,
>>
>> Can we use only one method, either convertMailToJBI or convertJBIToMail?
>>
>> I was trying to send an e-mail (convertJBIToMail) after retrieving an
>> e-mail
>> (convertMailToJBI) using POP3 and had the following error message.
>>
>> Thanks in advance!
>>
>> John
>>
>> [Fatal Error] :-1:-1: Premature end of file.
>> ERROR - BeanComponent                  - Error processing exchange
>> InOnly[
>>  id: ID:172.28.166.229-11d726e6e0a-14:637
>>  status: Active
>>  role: provider
>>  service:
>> {http://lionshare.psu.edu/lionshare-search}lionsharesearch<http://lionshare.psu.edu/lionshare-search%7Dlionsharesearch>
>>  endpoint: handlerEndpoint
>>  in: Unable to display: org.xml.sax.SAXParseException: Premature end of
>> file.
>> ]
>> javax.jbi.messaging.MessagingException: Out not supported
>>        at
>>
>> org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setMessage(MessageExchangeImpl.java:357)
>>        at
>>
>> org.apache.servicemix.jbi.FileSearchBean.onProviderExchange(FileSearchBean.java:255)
>>        at
>>
>> org.apache.servicemix.jbi.FileSearchBean.onMessageExchange(FileSearchBean.java:92)
>>        at
>>
>> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:226)
>>        at
>> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:212)
>>        at
>>
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
>>        at
>>
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
>>        at
>>
>> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
>>        at
>>
>> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
>>        at
>>
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
>>        at
>>
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>>        at
>>
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>>        at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>>        at
>>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>>        at java.lang.Thread.run(Thread.java:619)
>> ERROR - MailComponent                  - Caught exception while polling:
>> javax.jbi.messaging.MessagingException: Out no  supported
>> --
>> View this message in context:
>> http://www.nabble.com/Out-no-supported-in-servicemix-mail-tp20365846p20365846.html
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> ----
> http://lhein.blogspot.com
> 
> 
> -----
> Regards 
> Lars 
> 
> 
> http://lhein.blogspot.com 
> 
> 

-- 
View this message in context: http://www.nabble.com/Out-no-supported-in-servicemix-mail-tp20365846p20445842.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Out no supported in servicemix-mail

Posted by Lars Heinemann <lh...@apache.org>.
John,

the servicemix-mail component only sends InOnly exchanges when receiving
mails.
It seems you tried to access the "out" message of this InOnly exchange,
which is not
possible. So the error is correct.

Please have a look at http://servicemix.apache.org/servicemix-mail for how
to use the component and the
different endpoints.

Regards
Lars


2008/11/6 jwy923 <jw...@gmail.com>

>
> Hello,
>
> Can we use only one method, either convertMailToJBI or convertJBIToMail?
>
> I was trying to send an e-mail (convertJBIToMail) after retrieving an
> e-mail
> (convertMailToJBI) using POP3 and had the following error message.
>
> Thanks in advance!
>
> John
>
> [Fatal Error] :-1:-1: Premature end of file.
> ERROR - BeanComponent                  - Error processing exchange InOnly[
>  id: ID:172.28.166.229-11d726e6e0a-14:637
>  status: Active
>  role: provider
>  service: {http://lionshare.psu.edu/lionshare-search}lionsharesearch<http://lionshare.psu.edu/lionshare-search%7Dlionsharesearch>
>  endpoint: handlerEndpoint
>  in: Unable to display: org.xml.sax.SAXParseException: Premature end of
> file.
> ]
> javax.jbi.messaging.MessagingException: Out not supported
>        at
>
> org.apache.servicemix.jbi.messaging.MessageExchangeImpl.setMessage(MessageExchangeImpl.java:357)
>        at
>
> org.apache.servicemix.jbi.FileSearchBean.onProviderExchange(FileSearchBean.java:255)
>        at
>
> org.apache.servicemix.jbi.FileSearchBean.onMessageExchange(FileSearchBean.java:92)
>        at
>
> org.apache.servicemix.bean.BeanEndpoint.onProviderExchange(BeanEndpoint.java:226)
>        at
> org.apache.servicemix.bean.BeanEndpoint.process(BeanEndpoint.java:212)
>        at
>
> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:600)
>        at
>
> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:554)
>        at
>
> org.apache.servicemix.common.AsyncBaseLifeCycle.onMessageExchange(AsyncBaseLifeCycle.java:510)
>        at
>
> org.apache.servicemix.common.SyncLifeCycleWrapper.onMessageExchange(SyncLifeCycleWrapper.java:60)
>        at
>
> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:620)
>        at
>
> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>        at
>
> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:168)
>        at
> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>        at java.lang.Thread.run(Thread.java:619)
> ERROR - MailComponent                  - Caught exception while polling:
> javax.jbi.messaging.MessagingException: Out no  supported
> --
> View this message in context:
> http://www.nabble.com/Out-no-supported-in-servicemix-mail-tp20365846p20365846.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>


-- 
----
http://lhein.blogspot.com