You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@juddi.apache.org by Alex O'Ree <sp...@gmail.com> on 2013/06/13 02:46:43 UTC

test failure

Has anyone ran across this error before? It fails testing juddi-core.
The only change made was adding the apache cxf runtime as a dependency
(just for the REST pieces).


Jun 12, 2013 8:45:23 PM
org.apache.juddi.api.impl.API_090_SubscriptionListenerIntegrationTest
joePublisherUpdateService_
HTTP
INFO: Updating Service **********
...Jun 12, 2013 8:45:25 PM
org.apache.juddi.subscription.SubscriptionNotifier notify
INFO: Sending out notification to http://localhost:9643/tcksubscriptionlistener
.java.lang.ClassCastException:
org.uddi.subr_v3.NotifySubscriptionListener$JaxbAccessorF_authInfo
cannot be cast to com.
sun.xml.bind.v2.runtime.reflect.Accessor
        at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.instanciate(OptimizedAccessorFactory.java:19
0)
        at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:182)
        at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:279)
        at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.<init>(SingleElementLeafProperty.java:82)
        at sun.reflect.GeneratedConstructorAccessor62.newInstance(Unknown
Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:124)
        at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:179)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:515)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:330)
        at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
        at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
        at sun.reflect.GeneratedMethodAccessor380.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:202)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:363)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
        at org.apache.juddi.v3.tck.UDDISubscriptionListenerImpl.notifySubscriptionListener(UDDISubscriptionListenerImpl.
java:70)
        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:597)
        at com.sun.xml.internal.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:235)
        at com.sun.xml.internal.ws.server.InvokerTube$2.invoke(InvokerTube.java:135)
        at com.sun.xml.internal.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:246)
        at com.sun.xml.internal.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:82)
        at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
        at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
        at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
        at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
        at com.sun.xml.internal.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:232)
        at com.sun.xml.internal.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:460)
        at com.sun.xml.internal.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:233)
        at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExchange(WSHttpHandler.java:95)
        at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WSHttpHandler.java:80)
        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
        at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)
        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
        at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:557)
        at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
        at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:529)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
        at java.lang.Thread.run(Thread.java:662)
....

Re: test failure

Posted by Kurt T Stam <ku...@gmail.com>.
It must bring in a jaxb jar which clashes with the one from your JDK or 
something.

That said, I don't think we want to bring in a hard dependency on CXF 
though. Can't we do this in a separate module, and then only add this as 
a dependency if a CXF profile is used when constructing the war?

Cheers,

--Kurt

On 6/12/13 8:46 PM, Alex O'Ree wrote:
> Has anyone ran across this error before? It fails testing juddi-core.
> The only change made was adding the apache cxf runtime as a dependency
> (just for the REST pieces).
>
>
> Jun 12, 2013 8:45:23 PM
> org.apache.juddi.api.impl.API_090_SubscriptionListenerIntegrationTest
> joePublisherUpdateService_
> HTTP
> INFO: Updating Service **********
> ...Jun 12, 2013 8:45:25 PM
> org.apache.juddi.subscription.SubscriptionNotifier notify
> INFO: Sending out notification to http://localhost:9643/tcksubscriptionlistener
> .java.lang.ClassCastException:
> org.uddi.subr_v3.NotifySubscriptionListener$JaxbAccessorF_authInfo
> cannot be cast to com.
> sun.xml.bind.v2.runtime.reflect.Accessor
>          at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.instanciate(OptimizedAccessorFactory.java:19
> 0)
>          at com.sun.xml.bind.v2.runtime.reflect.opt.OptimizedAccessorFactory.get(OptimizedAccessorFactory.java:182)
>          at com.sun.xml.bind.v2.runtime.reflect.Accessor$FieldReflection.optimize(Accessor.java:279)
>          at com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty.<init>(SingleElementLeafProperty.java:82)
>          at sun.reflect.GeneratedConstructorAccessor62.newInstance(Unknown
> Source)
>          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
>          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
>          at com.sun.xml.bind.v2.runtime.property.PropertyFactory.create(PropertyFactory.java:124)
>          at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.<init>(ClassBeanInfoImpl.java:179)
>          at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getOrCreate(JAXBContextImpl.java:515)
>          at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:330)
>          at com.sun.xml.bind.v2.runtime.JAXBContextImpl$JAXBContextBuilder.build(JAXBContextImpl.java:1140)
>          at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:154)
>          at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:121)
>          at sun.reflect.GeneratedMethodAccessor380.invoke(Unknown Source)
>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:597)
>          at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:202)
>          at javax.xml.bind.ContextFinder.find(ContextFinder.java:363)
>          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
>          at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
>          at org.apache.juddi.v3.tck.UDDISubscriptionListenerImpl.notifySubscriptionListener(UDDISubscriptionListenerImpl.
> java:70)
>          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:597)
>          at com.sun.xml.internal.ws.api.server.InstanceResolver$1.invoke(InstanceResolver.java:235)
>          at com.sun.xml.internal.ws.server.InvokerTube$2.invoke(InvokerTube.java:135)
>          at com.sun.xml.internal.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:246)
>          at com.sun.xml.internal.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:82)
>          at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:587)
>          at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:546)
>          at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:531)
>          at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:428)
>          at com.sun.xml.internal.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:232)
>          at com.sun.xml.internal.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:460)
>          at com.sun.xml.internal.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:233)
>          at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handleExchange(WSHttpHandler.java:95)
>          at com.sun.xml.internal.ws.transport.http.server.WSHttpHandler.handle(WSHttpHandler.java:80)
>          at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
>          at sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:65)
>          at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:68)
>          at sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:557)
>          at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
>          at sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:529)
>          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>          at java.lang.Thread.run(Thread.java:662)
> ....