You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2011/09/19 20:09:08 UTC

[jira] [Created] (SMX4-921) Jaxb api throws jaxb exception when using the jre implementation

Jaxb api throws jaxb exception when using the jre implementation 
-----------------------------------------------------------------

                 Key: SMX4-921
                 URL: https://issues.apache.org/jira/browse/SMX4-921
             Project: ServiceMix 4
          Issue Type: Bug
            Reporter: Guillaume Nodet
            Assignee: Guillaume Nodet
             Fix For: specs-1.9.0


The reason is that the JRE and the api do not use the same classes so that implementation can't find the annotations.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (SMX4-921) Jaxb api throws jaxb exception when using the jre implementation

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SMX4-921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet resolved SMX4-921.
----------------------------------

    Resolution: Fixed

> Jaxb api throws jaxb exception when using the jre implementation 
> -----------------------------------------------------------------
>
>                 Key: SMX4-921
>                 URL: https://issues.apache.org/jira/browse/SMX4-921
>             Project: ServiceMix 4
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: specs-1.9.0
>
>
> The reason is that the JRE and the api do not use the same classes so that implementation can't find the annotations.
> {code}
> 2011-09-19 18:09:01,113 | ERROR | rint Extender: 1 | BlueprintContainerImpl           | container.BlueprintContainerImpl  358 | 9 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle org.fusesource.fabric.fabric-examples.fabric-camel-dosgi.camel-route
> org.osgi.service.blueprint.container.ComponentDefinitionException: Failed to create the JAXB binder : javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 77 counts of IllegalAnnotationExceptions
> org.apache.camel.CamelContext is an interface, and JAXB can't handle interfaces.
> 	this problem is related to the following location:
> 		at org.apache.camel.CamelContext
> 		at public org.apache.camel.CamelContext org.apache.camel.core.xml.AbstractCamelFactoryBean.getCamelContext()
> 		at org.apache.camel.core.xml.AbstractCamelFactoryBean
> 		at org.apache.camel.core.xml.util.jsse.AbstractJsseUtilFactoryBean
> 		at org.apache.camel.core.xml.util.jsse.AbstractKeyManagersParametersFactoryBean
> 		at org.apache.camel.util.blueprint.KeyManagersParametersFactoryBean
> .....
> 	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:191)[:1.6.0_26]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
> 	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:138)[64:org.apache.servicemix.specs.jaxb-api-2.2:1.8.0]
> 	... 20 more
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SMX4-921) Jaxb api throws jaxb exception when using the jre implementation

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SMX4-921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SMX4-921:
---------------------------------

    Description: 
The reason is that the JRE and the api do not use the same classes so that implementation can't find the annotations.

{code}
2011-09-19 18:09:01,113 | ERROR | rint Extender: 1 | BlueprintContainerImpl           | container.BlueprintContainerImpl  358 | 9 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle org.fusesource.fabric.fabric-examples.fabric-camel-dosgi.camel-route
org.osgi.service.blueprint.container.ComponentDefinitionException: Failed to create the JAXB binder : javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 77 counts of IllegalAnnotationExceptions
org.apache.camel.CamelContext is an interface, and JAXB can't handle interfaces.
	this problem is related to the following location:
		at org.apache.camel.CamelContext
		at public org.apache.camel.CamelContext org.apache.camel.core.xml.AbstractCamelFactoryBean.getCamelContext()
		at org.apache.camel.core.xml.AbstractCamelFactoryBean
		at org.apache.camel.core.xml.util.jsse.AbstractJsseUtilFactoryBean
		at org.apache.camel.core.xml.util.jsse.AbstractKeyManagersParametersFactoryBean
		at org.apache.camel.util.blueprint.KeyManagersParametersFactoryBean
.....


	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:191)[:1.6.0_26]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:138)[64:org.apache.servicemix.specs.jaxb-api-2.2:1.8.0]
	... 20 more
{code}

  was:
The reason is that the JRE and the api do not use the same classes so that implementation can't find the annotations.

{code}

2011-09-19 18:09:01,113 | ERROR | rint Extender: 1 | BlueprintContainerImpl           | container.BlueprintContainerImpl  358 | 9 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle org.fusesource.fabric.fabric-examples.fabric-camel-dosgi.camel-route
org.osgi.service.blueprint.container.ComponentDefinitionException: Failed to create the JAXB binder : javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 77 counts of IllegalAnnotationExceptions
org.apache.camel.CamelContext is an interface, and JAXB can't handle interfaces.
	this problem is related to the following location:
		at org.apache.camel.CamelContext
		at public org.apache.camel.CamelContext org.apache.camel.core.xml.AbstractCamelFactoryBean.getCamelContext()
		at org.apache.camel.core.xml.AbstractCamelFactoryBean
		at org.apache.camel.core.xml.util.jsse.AbstractJsseUtilFactoryBean
		at org.apache.camel.core.xml.util.jsse.AbstractKeyManagersParametersFactoryBean
		at org.apache.camel.util.blueprint.KeyManagersParametersFactoryBean
.....


	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:191)[:1.6.0_26]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:138)[64:org.apache.servicemix.specs.jaxb-api-2.2:1.8.0]
	... 20 more



> Jaxb api throws jaxb exception when using the jre implementation 
> -----------------------------------------------------------------
>
>                 Key: SMX4-921
>                 URL: https://issues.apache.org/jira/browse/SMX4-921
>             Project: ServiceMix 4
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: specs-1.9.0
>
>
> The reason is that the JRE and the api do not use the same classes so that implementation can't find the annotations.
> {code}
> 2011-09-19 18:09:01,113 | ERROR | rint Extender: 1 | BlueprintContainerImpl           | container.BlueprintContainerImpl  358 | 9 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle org.fusesource.fabric.fabric-examples.fabric-camel-dosgi.camel-route
> org.osgi.service.blueprint.container.ComponentDefinitionException: Failed to create the JAXB binder : javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 77 counts of IllegalAnnotationExceptions
> org.apache.camel.CamelContext is an interface, and JAXB can't handle interfaces.
> 	this problem is related to the following location:
> 		at org.apache.camel.CamelContext
> 		at public org.apache.camel.CamelContext org.apache.camel.core.xml.AbstractCamelFactoryBean.getCamelContext()
> 		at org.apache.camel.core.xml.AbstractCamelFactoryBean
> 		at org.apache.camel.core.xml.util.jsse.AbstractJsseUtilFactoryBean
> 		at org.apache.camel.core.xml.util.jsse.AbstractKeyManagersParametersFactoryBean
> 		at org.apache.camel.util.blueprint.KeyManagersParametersFactoryBean
> .....
> 	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:191)[:1.6.0_26]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
> 	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:138)[64:org.apache.servicemix.specs.jaxb-api-2.2:1.8.0]
> 	... 20 more
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (SMX4-921) Jaxb api throws jaxb exception when using the jre implementation

Posted by "Guillaume Nodet (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SMX4-921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Nodet updated SMX4-921:
---------------------------------

    Description: 
The reason is that the JRE and the api do not use the same classes so that implementation can't find the annotations.

{code}

2011-09-19 18:09:01,113 | ERROR | rint Extender: 1 | BlueprintContainerImpl           | container.BlueprintContainerImpl  358 | 9 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle org.fusesource.fabric.fabric-examples.fabric-camel-dosgi.camel-route
org.osgi.service.blueprint.container.ComponentDefinitionException: Failed to create the JAXB binder : javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 77 counts of IllegalAnnotationExceptions
org.apache.camel.CamelContext is an interface, and JAXB can't handle interfaces.
	this problem is related to the following location:
		at org.apache.camel.CamelContext
		at public org.apache.camel.CamelContext org.apache.camel.core.xml.AbstractCamelFactoryBean.getCamelContext()
		at org.apache.camel.core.xml.AbstractCamelFactoryBean
		at org.apache.camel.core.xml.util.jsse.AbstractJsseUtilFactoryBean
		at org.apache.camel.core.xml.util.jsse.AbstractKeyManagersParametersFactoryBean
		at org.apache.camel.util.blueprint.KeyManagersParametersFactoryBean
.....


	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110)[:1.6.0_26]
	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:191)[:1.6.0_26]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:138)[64:org.apache.servicemix.specs.jaxb-api-2.2:1.8.0]
	... 20 more


  was:The reason is that the JRE and the api do not use the same classes so that implementation can't find the annotations.


> Jaxb api throws jaxb exception when using the jre implementation 
> -----------------------------------------------------------------
>
>                 Key: SMX4-921
>                 URL: https://issues.apache.org/jira/browse/SMX4-921
>             Project: ServiceMix 4
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>             Fix For: specs-1.9.0
>
>
> The reason is that the JRE and the api do not use the same classes so that implementation can't find the annotations.
> {code}
> 2011-09-19 18:09:01,113 | ERROR | rint Extender: 1 | BlueprintContainerImpl           | container.BlueprintContainerImpl  358 | 9 - org.apache.aries.blueprint - 0.3.1 | Unable to start blueprint container for bundle org.fusesource.fabric.fabric-examples.fabric-camel-dosgi.camel-route
> org.osgi.service.blueprint.container.ComponentDefinitionException: Failed to create the JAXB binder : javax.xml.bind.JAXBException: Provider com.sun.xml.internal.bind.v2.ContextFactory could not be instantiated: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 77 counts of IllegalAnnotationExceptions
> org.apache.camel.CamelContext is an interface, and JAXB can't handle interfaces.
> 	this problem is related to the following location:
> 		at org.apache.camel.CamelContext
> 		at public org.apache.camel.CamelContext org.apache.camel.core.xml.AbstractCamelFactoryBean.getCamelContext()
> 		at org.apache.camel.core.xml.AbstractCamelFactoryBean
> 		at org.apache.camel.core.xml.util.jsse.AbstractJsseUtilFactoryBean
> 		at org.apache.camel.core.xml.util.jsse.AbstractKeyManagersParametersFactoryBean
> 		at org.apache.camel.util.blueprint.KeyManagersParametersFactoryBean
> .....
> 	at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:91)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:436)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:277)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1100)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:143)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:110)[:1.6.0_26]
> 	at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:191)[:1.6.0_26]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_26]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_26]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_26]
> 	at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_26]
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:138)[64:org.apache.servicemix.specs.jaxb-api-2.2:1.8.0]
> 	... 20 more

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira