You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by steff aka sid <sr...@brockhaus-gruppe.de> on 2008/10/01 08:41:33 UTC
Re: WireTab with exception
Hi,
I've tested before without the wiretab so up to there all works fine. For
the second point I need to add a special behavior for all my routes because
they have to store the messages in different folders with different
filenames. I will try to enable debug logging and look if there are any
hints why the attachment gets missing.
Regards
/Steffen
Gert Vanthienen wrote:
>
> /Steffen,
>
> Could you first try it without the intermediate wiretap, just to make
> sure everything works up to there? If that works out fine, perhaps the
> wiretap somehow 'consumes' the attachment (especially if it's being sent
> a stream). Could you enable debug logging to see if that gives any
> additional information?
>
> Btw, if you want to archive the message, you can also implement an
> ExchangeListener or an Auditor and plug that into the container instead
> of adding wiretaps to all your routes.
>
> Regards,
>
> Gert
>
> steff aka sid wrote:
>> Hm I'am using a Wiretab with an csv file. Reading the file using the
>> BinaryFileMarshaller. The reading of the file works file (I can access
>> the
>> file in my bean component). But copying the file to another file
>> component
>> (this uses a customized BinaryFileMarshaller) does throw following
>> exception:
>> javax.jbi.messaging.MessagingException: Could not find attachment:
>> content
>> at
>> de.brockhaus.utils.ArchiveFileMarshaler.writeMessage(ArchiveFileMarshaler.java:93)
>> at
>> org.apache.servicemix.file.FileSenderEndpoint.processInOnly(FileSenderEndpoint.java:83)
>> at
>> org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:100)
>> at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>> at
>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>> at
>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>> at
>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>> at
>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>> at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>> at
>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>> at java.lang.Thread.run(Thread.java:595)
>>
>> The customized ArchiveFileMarshaler derives from BinaryFileMarshaller and
>> only overwrites getOutputName()-Method because I needed more flexibility
>> by
>> choosing a filename (I have to copy dynamically into an subfolder).
>>
>> Regards
>> /Steffen
>>
>>
>> -----
>> Brockhaus GmbH
>> COMPETITIVE THROUGH KNOWLEDGE
>>
>> Web: http://www.brockhaus-gruppe.de www.brockhaus-gruppe.de /
>> http://www.brockhaus-group.com www.brockhaus-group.com
>>
>
>
>
> -----
> ---
> Gert Vanthienen
> http://www.anova.be
>
-----
Brockhaus GmbH
COMPETITIVE THROUGH KNOWLEDGE
Web: http://www.brockhaus-gruppe.de www.brockhaus-gruppe.de /
http://www.brockhaus-group.com www.brockhaus-group.com
--
View this message in context: http://www.nabble.com/WireTab-with-attachment-tp19742913p19755290.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: WireTab with exception
Posted by steff aka sid <sr...@brockhaus-gruppe.de>.
Not a problem of servicemix...
steff aka sid wrote:
>
> Ok,
> debug log gives not more informations. So can you provide me with
> informations in what class to look for the wiretab maybe I can find some
> hints into there.
>
> Regards
> /Steffen
>
>
> steff aka sid wrote:
>>
>> Hi,
>> I've tested before without the wiretab so up to there all works fine. For
>> the second point I need to add a special behavior for all my routes
>> because they have to store the messages in different folders with
>> different filenames. I will try to enable debug logging and look if there
>> are any hints why the attachment gets missing.
>>
>> Regards
>> /Steffen
>>
>>
>> Gert Vanthienen wrote:
>>>
>>> /Steffen,
>>>
>>> Could you first try it without the intermediate wiretap, just to make
>>> sure everything works up to there? If that works out fine, perhaps the
>>> wiretap somehow 'consumes' the attachment (especially if it's being sent
>>> a stream). Could you enable debug logging to see if that gives any
>>> additional information?
>>>
>>> Btw, if you want to archive the message, you can also implement an
>>> ExchangeListener or an Auditor and plug that into the container instead
>>> of adding wiretaps to all your routes.
>>>
>>> Regards,
>>>
>>> Gert
>>>
>>> steff aka sid wrote:
>>>> Hm I'am using a Wiretab with an csv file. Reading the file using the
>>>> BinaryFileMarshaller. The reading of the file works file (I can access
>>>> the
>>>> file in my bean component). But copying the file to another file
>>>> component
>>>> (this uses a customized BinaryFileMarshaller) does throw following
>>>> exception:
>>>> javax.jbi.messaging.MessagingException: Could not find attachment:
>>>> content
>>>> at
>>>> de.brockhaus.utils.ArchiveFileMarshaler.writeMessage(ArchiveFileMarshaler.java:93)
>>>> at
>>>> org.apache.servicemix.file.FileSenderEndpoint.processInOnly(FileSenderEndpoint.java:83)
>>>> at
>>>> org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:100)
>>>> at
>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>>> at
>>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>>> at
>>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>>> at
>>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>>> at
>>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>>>> at
>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>>> at
>>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>>> at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>>> at java.lang.Thread.run(Thread.java:595)
>>>>
>>>> The customized ArchiveFileMarshaler derives from BinaryFileMarshaller
>>>> and
>>>> only overwrites getOutputName()-Method because I needed more
>>>> flexibility by
>>>> choosing a filename (I have to copy dynamically into an subfolder).
>>>>
>>>> Regards
>>>> /Steffen
>>>>
>>>>
>>>> -----
>>>> Brockhaus GmbH
>>>> COMPETITIVE THROUGH KNOWLEDGE
>>>>
>>>> Web: http://www.brockhaus-gruppe.de www.brockhaus-gruppe.de /
>>>> http://www.brockhaus-group.com www.brockhaus-group.com
>>>>
>>>
>>>
>>>
>>> -----
>>> ---
>>> Gert Vanthienen
>>> http://www.anova.be
>>>
>>
>>
>
>
-----
Brockhaus GmbH
COMPETITIVE THROUGH KNOWLEDGE
Web: http://www.brockhaus-gruppe.de www.brockhaus-gruppe.de /
http://www.brockhaus-group.com www.brockhaus-group.com
--
View this message in context: http://www.nabble.com/WireTab-with-attachment-tp19742913p19835593.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: WireTab with exception
Posted by steff aka sid <sr...@brockhaus-gruppe.de>.
Ok,
debug log gives not more informations. So can you provide me with
informations in what class to look for the wiretab maybe I can find some
hints into there.
Regards
/Steffen
steff aka sid wrote:
>
> Hi,
> I've tested before without the wiretab so up to there all works fine. For
> the second point I need to add a special behavior for all my routes
> because they have to store the messages in different folders with
> different filenames. I will try to enable debug logging and look if there
> are any hints why the attachment gets missing.
>
> Regards
> /Steffen
>
>
> Gert Vanthienen wrote:
>>
>> /Steffen,
>>
>> Could you first try it without the intermediate wiretap, just to make
>> sure everything works up to there? If that works out fine, perhaps the
>> wiretap somehow 'consumes' the attachment (especially if it's being sent
>> a stream). Could you enable debug logging to see if that gives any
>> additional information?
>>
>> Btw, if you want to archive the message, you can also implement an
>> ExchangeListener or an Auditor and plug that into the container instead
>> of adding wiretaps to all your routes.
>>
>> Regards,
>>
>> Gert
>>
>> steff aka sid wrote:
>>> Hm I'am using a Wiretab with an csv file. Reading the file using the
>>> BinaryFileMarshaller. The reading of the file works file (I can access
>>> the
>>> file in my bean component). But copying the file to another file
>>> component
>>> (this uses a customized BinaryFileMarshaller) does throw following
>>> exception:
>>> javax.jbi.messaging.MessagingException: Could not find attachment:
>>> content
>>> at
>>> de.brockhaus.utils.ArchiveFileMarshaler.writeMessage(ArchiveFileMarshaler.java:93)
>>> at
>>> org.apache.servicemix.file.FileSenderEndpoint.processInOnly(FileSenderEndpoint.java:83)
>>> at
>>> org.apache.servicemix.common.endpoints.ProviderEndpoint.process(ProviderEndpoint.java:100)
>>> at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.doProcess(AsyncBaseLifeCycle.java:538)
>>> at
>>> org.apache.servicemix.common.AsyncBaseLifeCycle.processExchange(AsyncBaseLifeCycle.java:490)
>>> at
>>> org.apache.servicemix.common.BaseLifeCycle.onMessageExchange(BaseLifeCycle.java:46)
>>> at
>>> org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(DeliveryChannelImpl.java:610)
>>> at
>>> org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.java:172)
>>> at
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java:167)
>>> at
>>> org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:134)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
>>> at java.lang.Thread.run(Thread.java:595)
>>>
>>> The customized ArchiveFileMarshaler derives from BinaryFileMarshaller
>>> and
>>> only overwrites getOutputName()-Method because I needed more flexibility
>>> by
>>> choosing a filename (I have to copy dynamically into an subfolder).
>>>
>>> Regards
>>> /Steffen
>>>
>>>
>>> -----
>>> Brockhaus GmbH
>>> COMPETITIVE THROUGH KNOWLEDGE
>>>
>>> Web: http://www.brockhaus-gruppe.de www.brockhaus-gruppe.de /
>>> http://www.brockhaus-group.com www.brockhaus-group.com
>>>
>>
>>
>>
>> -----
>> ---
>> Gert Vanthienen
>> http://www.anova.be
>>
>
>
-----
Brockhaus GmbH
COMPETITIVE THROUGH KNOWLEDGE
Web: http://www.brockhaus-gruppe.de www.brockhaus-gruppe.de /
http://www.brockhaus-group.com www.brockhaus-group.com
--
View this message in context: http://www.nabble.com/WireTab-with-attachment-tp19742913p19755900.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.