With Open JDK 7 we have been getting some odd issues lately when running
camel in an equinox container. The following is the stack trace we get:
org.springframework.beans.factory.config.BeanPostProcessor is an
interface, and JAXB can't handle interfaces.
this problem is related to the following location:
at org.springframework.beans.factory.config.BeanPostProcessor
at public org.springframework.beans.factory.config.BeanPostProcessor
org.apache.camel.spring.CamelContextFactoryBean.getBeanPostProcessor()
at org.apache.camel.spring.CamelContextFactoryBean
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:212)
~[jaxb-api_2.2.7.jar:na]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:146)
~[jaxb-api_2.2.7.jar:na]
... 159 common frames omitted
Caused by:
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 39
counts of IllegalAnnotationExceptions
at
com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)
~[na:1.7.0_21]
at
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:451)
~[na:1.7.0_21]
at
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:283)
~[na:1.7.0_21]
at
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:126)
~[na:1.7.0_21]
at
com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1148)
~[na:1.7.0_21]
at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:130)
~[na:1.7.0_21]
at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:221)
~[na:1.7.0_21]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[na:1.7.0_21]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
~[na:1.7.0_21]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[na:1.7.0_21]
at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_21]
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:186)
~[jaxb-api_2.2.7.jar:na]
... 160 common frames omitted
This is running with springframework 3.1.2. I'm running out of ideas
as to what can cause this issue as the JAXB implementation is being
brough in from the jdk. Anybody else seen this issue?
Dave