[
https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-636:
------------------------------
Description:
I have a simple hello world file based ESB that scans a folder for files,
invoke a POJO and store the output as a file in another folder.
Deployed as a WAR file in WebSphere it seems as if Camel 1.4-SNAPSHOT can not
load the converters needed to converter to String to InputStream for the
FileProducer when it is about to store the file.
The logging output where the ResolverUtil can't find the annotated converters
in camel jar itself
{code}
[06-25 13:31:23] DEBUG ResolverUtil [Thread: 1 [EMAIL PROTECTED]: Searching for
annotations of org.apache.camel.Converter in packages:
[org.apache.camel.spring.converter, org.apache.camel.converter]
[06-25 13:31:23] DEBUG ResolverUtil [Thread: 1 [EMAIL PROTECTED]: Found: []
{code}
And the stacktrace:
{code}
org.apache.camel.InvalidPayloadException: No in body available of type:
java.io.InputStream but has value: This is important work
\temp\camel\in\README.txt
Done by me. of type: java.lang.String on: Message: This is important work
\temp\camel\in\README.txt
Done by me. on the exchange: Exchange[Message: This is important work
\temp\camel\in\README.txt
Done by me.]
at
org.apache.camel.util.ExchangeHelper.getMandatoryInBody(ExchangeHelper.java:127)
at
org.apache.camel.component.file.FileProducer.process(FileProducer.java:67)
at
org.apache.camel.component.file.FileProducer.process(FileProducer.java:55)
at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
{code}
was:
I have a simple hello world file based ESB that scans a folder for files,
invoke a POJO and store the output as a file in another folder.
Deployed as a WAR file in WebSphere it seems as if Camel 1.4-SNAPSHOT can not
load the converters needed to converter to String to InputStream for the
FileProducer when it is about to store the file.
The logging output where the ResolverUtil can't find the annotated converters
in camel jar itself
{code}
[06-25 13:31:23] DEBUG ResolverUtil [Thread: 1 [EMAIL PROTECTED]: Searching for
annotations of org.apache.camel.Converter in packages:
[org.apache.camel.spring.converter, org.apache.camel.converter]
[06-25 13:31:23] DEBUG ResolverUtil [Thread: 1 [EMAIL PROTECTED]: Found: []
{code}
And the stacktrace:
{code}
org.apache.camel.InvalidPayloadException: No in body available of type:
java.io.InputStream but has value: This is important work
\temp\camel\in\README.txt
Done by me. of type: java.lang.String on: Message: This is important work
\temp\camel\in\README.txt
Done by me. on the exchange: Exchange[Message: This is important work
\temp\camel\in\README.txt
Done by me.]
at
org.apache.camel.util.ExchangeHelper.getMandatoryInBody(ExchangeHelper.java:127)
at
org.apache.camel.component.file.FileProducer.process(FileProducer.java:67)
at
org.apache.camel.component.file.FileProducer.process(FileProducer.java:55)
at
org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
at
org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
at
org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
at
org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
> ResolverUtil can't resolve converter annotations in WebSphere 6.1
> -----------------------------------------------------------------
>
> Key: CAMEL-636
> URL: https://issues.apache.org/activemq/browse/CAMEL-636
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.4.0
> Environment: WebSphere 6.1.0.0 on Windows
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
>
> I have a simple hello world file based ESB that scans a folder for files,
> invoke a POJO and store the output as a file in another folder.
> Deployed as a WAR file in WebSphere it seems as if Camel 1.4-SNAPSHOT can not
> load the converters needed to converter to String to InputStream for the
> FileProducer when it is about to store the file.
> The logging output where the ResolverUtil can't find the annotated converters
> in camel jar itself
> {code}
> [06-25 13:31:23] DEBUG ResolverUtil [Thread: 1 [EMAIL PROTECTED]: Searching
> for annotations of org.apache.camel.Converter in packages:
> [org.apache.camel.spring.converter, org.apache.camel.converter]
> [06-25 13:31:23] DEBUG ResolverUtil [Thread: 1 [EMAIL PROTECTED]: Found: []
> {code}
> And the stacktrace:
> {code}
> org.apache.camel.InvalidPayloadException: No in body available of type:
> java.io.InputStream but has value: This is important work
> \temp\camel\in\README.txt
> Done by me. of type: java.lang.String on: Message: This is important work
> \temp\camel\in\README.txt
> Done by me. on the exchange: Exchange[Message: This is important work
> \temp\camel\in\README.txt
> Done by me.]
> at
> org.apache.camel.util.ExchangeHelper.getMandatoryInBody(ExchangeHelper.java:127)
> at
> org.apache.camel.component.file.FileProducer.process(FileProducer.java:67)
> at
> org.apache.camel.component.file.FileProducer.process(FileProducer.java:55)
> at
> org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> at
> org.apache.camel.processor.SendProcessor.process(SendProcessor.java:75)
> at
> org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:57)
> at
> org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.