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/06 10:34:00 UTC
[jira] Created: (CAMEL-583) JAXB - Unit test failing -
DumpToXmlTest
JAXB - Unit test failing - DumpToXmlTest
----------------------------------------
Key: CAMEL-583
URL: https://issues.apache.org/activemq/browse/CAMEL-583
Project: Apache Camel
Issue Type: Bug
Components: camel-jaxb
Affects Versions: 1.3.0, 1.4.0
Reporter: Claus Ibsen
Fix For: 1.4.0
The unit test in camel-jaxb is failing DumpToXmlTest
However since there are no assertions its not failing the build.
{code}
2008-06-06 10:31:16,546 [mponent@15ee671] ERROR DeadLetterChannel - Failed delivery for exchangeId: ID-claus-acer/1691-1212741073109/0-0. On delivery attempt: 3 caught: org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2
notationExceptions
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
at org.apache.camel.converter.jaxb.MessageType
org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
at org.apache.camel.converter.jaxb.MessageType
at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)
at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:40)
at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:90)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
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)
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
XmlElementRef points to a non-existent class.
this problem is related to the following location:
at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
at org.apache.camel.converter.jaxb.MessageType
at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
at org.apache.camel.converter.jaxb.FallbackTypeConverter.createContext(FallbackTypeConverter.java:141)
at org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:84)
at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
... 23 more
{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-583) JAXB - Unit test failing -
DumpToXmlTest
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43287#action_43287 ]
Claus Ibsen commented on CAMEL-583:
-----------------------------------
We need JAXB experts to look into this.
My idea to remedy this is, either
- remove the header types and let all objects be specified as plain strings (PropertyType)
- do as the content, let it all be any elements and use lax = true
> JAXB - Unit test failing - DumpToXmlTest
> ----------------------------------------
>
> Key: CAMEL-583
> URL: https://issues.apache.org/activemq/browse/CAMEL-583
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jaxb
> Affects Versions: 1.3.0, 1.4.0
> Reporter: Claus Ibsen
> Fix For: 1.4.0
>
>
> The unit test in camel-jaxb is failing DumpToXmlTest
> However since there are no assertions its not failing the build.
> {code}
> 2008-06-06 10:31:16,546 [mponent@15ee671] ERROR DeadLetterChannel - Failed delivery for exchangeId: ID-claus-acer/1691-1212741073109/0-0. On delivery attempt: 3 caught: org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2
> notationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
> at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
> at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)
> at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:40)
> at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:90)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
> at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
> at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
> at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
> at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
> 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)
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.createContext(FallbackTypeConverter.java:141)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:84)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
> ... 23 more
> {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-583) JAXB - Unit test failing -
DumpToXmlTest
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43309#action_43309 ]
Claus Ibsen commented on CAMEL-583:
-----------------------------------
Added TODO in the code and fixed the unit test.
MessageType is work in progress.
> JAXB - Unit test failing - DumpToXmlTest
> ----------------------------------------
>
> Key: CAMEL-583
> URL: https://issues.apache.org/activemq/browse/CAMEL-583
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jaxb
> Affects Versions: 1.3.0, 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
>
> The unit test in camel-jaxb is failing DumpToXmlTest
> However since there are no assertions its not failing the build.
> {code}
> 2008-06-06 10:31:16,546 [mponent@15ee671] ERROR DeadLetterChannel - Failed delivery for exchangeId: ID-claus-acer/1691-1212741073109/0-0. On delivery attempt: 3 caught: org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2
> notationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
> at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
> at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)
> at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:40)
> at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:90)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
> at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
> at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
> at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
> at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
> 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)
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.createContext(FallbackTypeConverter.java:141)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:84)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
> ... 23 more
> {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-583) JAXB - Unit test failing -
DumpToXmlTest
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on CAMEL-583 started by Claus Ibsen.
> JAXB - Unit test failing - DumpToXmlTest
> ----------------------------------------
>
> Key: CAMEL-583
> URL: https://issues.apache.org/activemq/browse/CAMEL-583
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jaxb
> Affects Versions: 1.3.0, 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
>
> The unit test in camel-jaxb is failing DumpToXmlTest
> However since there are no assertions its not failing the build.
> {code}
> 2008-06-06 10:31:16,546 [mponent@15ee671] ERROR DeadLetterChannel - Failed delivery for exchangeId: ID-claus-acer/1691-1212741073109/0-0. On delivery attempt: 3 caught: org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2
> notationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
> at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
> at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)
> at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:40)
> at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:90)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
> at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
> at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
> at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
> at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
> 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)
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.createContext(FallbackTypeConverter.java:141)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:84)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
> ... 23 more
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-583) JAXB - Unit test failing -
DumpToXmlTest
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-583:
---------------------------------
Assignee: Claus Ibsen
> JAXB - Unit test failing - DumpToXmlTest
> ----------------------------------------
>
> Key: CAMEL-583
> URL: https://issues.apache.org/activemq/browse/CAMEL-583
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jaxb
> Affects Versions: 1.3.0, 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
>
> The unit test in camel-jaxb is failing DumpToXmlTest
> However since there are no assertions its not failing the build.
> {code}
> 2008-06-06 10:31:16,546 [mponent@15ee671] ERROR DeadLetterChannel - Failed delivery for exchangeId: ID-claus-acer/1691-1212741073109/0-0. On delivery attempt: 3 caught: org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2
> notationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
> at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
> at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)
> at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:40)
> at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:90)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
> at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
> at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
> at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
> at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
> 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)
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.createContext(FallbackTypeConverter.java:141)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:84)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
> ... 23 more
> {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-583) JAXB - Unit test failing -
DumpToXmlTest
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43286#action_43286 ]
Claus Ibsen commented on CAMEL-583:
-----------------------------------
The problem is that in MessageType its defined to use an abstract class (= HeaderType) and this does not work
{code}
@XmlRootElement(name = "message")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class MessageType {
@XmlElementRef(type = HeaderType.class)
private List<HeaderType> headers = new ArrayList<HeaderType>();
{code}
Changing to use a real class such as StringHeader does work
{code}
@XmlRootElement(name = "message")
@XmlAccessorType(value = XmlAccessType.FIELD)
public class MessageType {
@XmlElementRef(type = StringHeader.class)
private List<HeaderType> headers = new ArrayList<HeaderType>();
{code}
And the bar.xml and foo.xml files are not valid messsages as well, they need the outer <message> tag
> JAXB - Unit test failing - DumpToXmlTest
> ----------------------------------------
>
> Key: CAMEL-583
> URL: https://issues.apache.org/activemq/browse/CAMEL-583
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jaxb
> Affects Versions: 1.3.0, 1.4.0
> Reporter: Claus Ibsen
> Fix For: 1.4.0
>
>
> The unit test in camel-jaxb is failing DumpToXmlTest
> However since there are no assertions its not failing the build.
> {code}
> 2008-06-06 10:31:16,546 [mponent@15ee671] ERROR DeadLetterChannel - Failed delivery for exchangeId: ID-claus-acer/1691-1212741073109/0-0. On delivery attempt: 3 caught: org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2
> notationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
> at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
> at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)
> at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:40)
> at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:90)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
> at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
> at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
> at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
> at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
> 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)
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.createContext(FallbackTypeConverter.java:141)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:84)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
> ... 23 more
> {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-583) JAXB - Unit test failing -
DumpToXmlTest
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-583.
-------------------------------
Resolution: Fixed
> JAXB - Unit test failing - DumpToXmlTest
> ----------------------------------------
>
> Key: CAMEL-583
> URL: https://issues.apache.org/activemq/browse/CAMEL-583
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-jaxb
> Affects Versions: 1.3.0, 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.4.0
>
>
> The unit test in camel-jaxb is failing DumpToXmlTest
> However since there are no assertions its not failing the build.
> {code}
> 2008-06-06 10:31:16,546 [mponent@15ee671] ERROR DeadLetterChannel - Failed delivery for exchangeId: ID-claus-acer/1691-1212741073109/0-0. On delivery attempt: 3 caught: org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2
> notationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> org.apache.camel.RuntimeCamelException: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:70)
> at org.apache.camel.impl.converter.DefaultTypeConverter.convertTo(DefaultTypeConverter.java:71)
> at org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:52)
> at org.apache.camel.processor.ConvertBodyProcessor.process(ConvertBodyProcessor.java:40)
> at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:43)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:146)
> at org.apache.camel.processor.DeadLetterChannel.process(DeadLetterChannel.java:90)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
> at org.apache.camel.processor.Pipeline.process(Pipeline.java:85)
> at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:39)
> at org.apache.camel.component.file.FileConsumer.pollFile(FileConsumer.java:128)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:77)
> at org.apache.camel.component.file.FileConsumer.pollFileOrDirectory(FileConsumer.java:84)
> at org.apache.camel.component.file.FileConsumer.poll(FileConsumer.java:57)
> at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:65)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
> at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
> at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
> 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)
> Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
> XmlElementRef points to a non-existent class.
> this problem is related to the following location:
> at java.util.List org.apache.camel.converter.jaxb.MessageType.headers
> at org.apache.camel.converter.jaxb.MessageType
> at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:422)
> at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:270)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:103)
> at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:81)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
> at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.createContext(FallbackTypeConverter.java:141)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.unmarshall(FallbackTypeConverter.java:84)
> at org.apache.camel.converter.jaxb.FallbackTypeConverter.convertTo(FallbackTypeConverter.java:61)
> ... 23 more
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.