Skip to main content

JAX-WS 2.0EA2: AssertionError when assertions are enabled

1 reply [Last post]
stoicflame
Offline
Joined: 2005-10-19

Deployment of the addnumbers example (the "fromjava" sample) fails on Tomcat 5.0.28a during initialization of the JAXRPCContextListener when assertions are enabled (-ea option).

How come?

Here's the stack trace from the logs:

java.lang.AssertionError
at com.sun.xml.bind.v2.runtime.NameBuilder.createElementName(NameBuilder.java:22)
at com.sun.xml.bind.v2.runtime.NameBuilder.createElementName(NameBuilder.java:18)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:262)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.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:585)
at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:52)
at com.sun.xml.ws.model.RuntimeModel.createJAXBContext(RuntimeModel.java:124)
at com.sun.xml.ws.model.RuntimeModel.postProcess(RuntimeModel.java:44)
at com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:87)
at com.sun.xml.ws.server.RuntimeEndpointInfo.createModel(RuntimeEndpointInfo.java:95)
at com.sun.xml.ws.server.RuntimeEndpointInfo.deploy(RuntimeEndpointInfo.java:125)
at com.sun.xml.ws.transport.http.servlet.JAXRPCContextListener.createModelAndMetadata(JAXRPCContextListener.java:167)
at com.sun.xml.ws.transport.http.servlet.JAXRPCContextListener.contextInitialized(JAXRPCContextListener.java:93)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:480)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kohsuke
Offline
Joined: 2003-06-09

This was a known issue and is already fixed in our code base.

Sorry for the problem.