cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean O'Callaghan (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-914) output jaxb stacktrace when log to FINE level in running hello_world sample.
Date Mon, 08 Dec 2008 17:04:44 GMT

     [ https://issues.apache.org/jira/browse/CXF-914?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sean O'Callaghan resolved CXF-914.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2

tested against latest 2.2 snapshot and the problem no longer exists.

> output jaxb stacktrace when log to FINE level in running hello_world sample.
> ----------------------------------------------------------------------------
>
>                 Key: CXF-914
>                 URL: https://issues.apache.org/jira/browse/CXF-914
>             Project: CXF
>          Issue Type: Bug
>          Components: JAXB Databinding
>    Affects Versions: 2.0.1
>         Environment: Windows
>            Reporter: Jeff Yu
>            Assignee: Sean O'Callaghan
>            Priority: Trivial
>             Fix For: 2.2
>
>
> By setting the Log Level to FINE level, and then run the samples/hello_world sample
> You would see this error stack in the server-side log.
> --------------------------------
> FINE: Unable to inject org/apache/hello_world_soap_http/types/GreetMe$JaxbAccessorF_requestType
> java.lang.reflect.InvocationTargetException
> 	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 com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:125)
> 	at com.sun.xml.bind.v2.runtime.reflect.opt.Injector.inject(Injector.java:48)
> 	at com.sun.xml.bind.v2.runtime.reflect.opt.AccessorInjector.prepare(AccessorInjector.java:51)
> 	at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:128)
> 	at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:204)
> 	at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.<init>(TransducedAccessor.java:195)
> 	at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor.get(TransducedAccessor.java:137)
> 	at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.<init>(SingleElementLeafProperty.java:47)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> 	at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:88)
> 	at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:135)
> 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:432)
> 	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:265)
> 	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
> 	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:55)
> 	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:210)
> 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:366)
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> 	at org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:370)
> 	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:180)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromWSDL(ReflectionServiceFactoryBean.java:214)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:262)
> 	at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:143)
> 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:89)
> 	at org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:82)
> 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:107)
> 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:146)
> 	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:285)
> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:226)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:178)
> 	at org.apache.cxf.jaxws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:74)
> 	at javax.xml.ws.Endpoint.publish(Endpoint.java:156)
> 	at demo.hw.server.Server.<init>(Server.java:30)
> 	at demo.hw.server.Server.main(Server.java:34)
> Caused by: java.lang.LinkageError: duplicate class definition: org/apache/hello_world_soap_http/types/GreetMe$JaxbAccessorF_requestType
> 	at java.lang.ClassLoader.defineClass1(Native Method)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
> 	... 45 more

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


Mime
View raw message