You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/06/25 13:41:01 UTC

[jira] Created: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Commented: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44101#action_44101 ] 

Claus Ibsen commented on CAMEL-636:
-----------------------------------

Okay looks like WebSphere doens't like to load resources if you just enter the packagename for JAR files. If you explicit enter a .class then its able to resolve it (okay I was trying with Spring resource loader).
So there is some hope. 

> 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
> WebSphere 6.1.0.17 on Windows
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Commented: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44111#action_44111 ] 

Claus Ibsen commented on CAMEL-636:
-----------------------------------

Yes got it working now. I will test it some more, and see if the camel-examples can work in WebSphere 6.1

> 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
> WebSphere 6.1.0.17 on Windows
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Updated: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-636:
------------------------------

    Fix Version/s: 1.5.0
                       (was: 1.4.0)
      Environment: 
WebSphere 6.1.0.0 on Windows
WebSphere 6.1.0.17 on Windows

  was:WebSphere 6.1.0.0 on Windows


> 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
> WebSphere 6.1.0.17 on Windows
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Commented: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44107#action_44107 ] 

Claus Ibsen commented on CAMEL-636:
-----------------------------------

Okay I am about to tame the beast and get a working solution (fingers crossed).

Would love to get it into 1.4 so I am working on this today and tomorrow.

> 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
> WebSphere 6.1.0.17 on Windows
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Resolved: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-636.
-------------------------------

    Fix Version/s: 1.4.0
                       (was: 1.5.0)
       Resolution: Fixed

> 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
> WebSphere 6.1.0.17 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Commented: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44045#action_44045 ] 

Claus Ibsen commented on CAMEL-636:
-----------------------------------

See also the CXF App Server Guide for WAS:
http://cwiki.apache.org/confluence/display/CXF20DOC/AppServerGuide#AppServerGuide-Websphere

> 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
> WebSphere 6.1.0.17 on Windows
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Work started: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Work on CAMEL-636 started by Claus Ibsen.

> 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
> WebSphere 6.1.0.17 on Windows
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Commented: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44121#action_44121 ] 

Claus Ibsen commented on CAMEL-636:
-----------------------------------

Oh boy nice to be able to resolve this one. 

Camel deployed as plain war files on WebSphere 6.1 is not doable.
I have only tested on Windows XP platform. Anyone with a WebSphere on Unix would be highly appreciated if you can test it.

> 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
> WebSphere 6.1.0.17 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Commented: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=44095#action_44095 ] 

Claus Ibsen commented on CAMEL-636:
-----------------------------------

Using the app server guide from CXF didn't help.

WebSphere is ****** it can not load resources from its classpath in jar files if you define a package name.

> 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
> WebSphere 6.1.0.17 on Windows
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 1.5.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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.


[jira] Commented: (CAMEL-636) ResolverUtil can't resolve converter annotations in WebSphere 6.1

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43701#action_43701 ] 

Claus Ibsen commented on CAMEL-636:
-----------------------------------

Just for the record. WebSphere is able to load classes from WEB-INF/classes, but not from jars in WEB-INF/lib.

If extracting camel-core into WEB-INF/classes then the annotated converters can be loaded:
{code}
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: URLs loaded: java.lang.ClassLoader$2@28ce28ce
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Trying URL: file:/C:/was61/profiles/AppSrv01/installedApps/claus-acerNode01Cell/camel-example-helloworld-1_0fixed_war.ear/camel-example-helloworld-1.0fixed.war/WEB-INF/classes/org/apache/camel/converter/
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Scanning for classes in [/C:/was61/profiles/AppSrv01/installedApps/claus-acerNode01Cell/camel-example-helloworld-1_0fixed_war.ear/camel-example-helloworld-1.0fixed.war/WEB-INF/classes/org/apache/camel/converter/] matching criteria: annotated with @Converter
[06-25 14:58:58] DEBUG ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Loading from directory: C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\classes\org\apache\camel\converter
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Testing for class org.apache.camel.converter.CamelConverter$1 matches criteria [annotated with @Converter]
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Testing for class org.apache.camel.converter.CamelConverter$2 matches criteria [annotated with @Converter]
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Testing for class org.apache.camel.converter.CamelConverter matches criteria [annotated with @Converter]
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Found class: class org.apache.camel.converter.CamelConverter in classloader: 
com.ibm.ws.classloader.CompoundClassLoader@68ec68ec
   Local ClassPath: C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\classes;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\activation-1.1.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\aopalliance-1.0.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\camel-core-1.4-SNAPSHOT.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\camel-spring-1.4-SNAPSHOT.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\commons-logging-1.1.1.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\commons-logging-api-1.1.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\jaxb-api-2.1.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\jaxb-impl-2.1.6.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\log4j-1.2.14.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\org.osgi.core-1.0.1.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\spring-aop-2.5.4.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\spring-beans-2.5.4.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\spring-context-2.5.4.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\spring-core-2.5.4.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\spring-tx-2.5.4.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\spring-web-2.5.4.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war\WEB-INF\lib\stax-api-1.0-2.jar;C:\was61\profiles\AppSrv01\installedApps\claus-acerNode01Cell\camel-example-helloworld-1_0fixed_war.ear\camel-example-helloworld-1.0fixed.war
   Delegation Mode: PARENT_FIRST
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Testing for class org.apache.camel.converter.CollectionConverter matches criteria [annotated with @Converter]
[06-25 14:58:58] TRACE ResolverUtil [Thread: 1 org.apache.camel.component.file.FileComponent@76da76da]: Found class: class org.apache.camel.converter.CollectionConverter in classloader: 
com.ibm.ws.classloader.CompoundClassLoader@68ec68ec
{code}

> 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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 org.apache.camel.component.file.FileComponent@7ade7ade]: 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.