Skip to main content

Assertion Errors

3 replies [Last post]
dhunter21
Offline
Joined: 2005-06-20

If we run out tests with JAX-WS we need to turn off assertions in the jdk because JAX-WS is failing. Is this a bug or should this really be failing at this point?

2005-12-20 08:30:51,754 [ ScannerThread] ERROR [web].[localhost].[/efe-filer]] - Exception sending context in
itialized event to listener instance of class com.sun.xml.ws.transport.http.servlet.WSServletContextListener
java.lang.AssertionError
at com.sun.xml.bind.v2.runtime.NameBuilder.createName(NameBuilder.java:49)
at com.sun.xml.bind.v2.runtime.NameBuilder.createElementName(NameBuilder.java:25)
at com.sun.xml.bind.v2.runtime.NameBuilder.createElementName(NameBuilder.java:21)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.(JAXBContextImpl.java:271)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:75)
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:58)
at com.sun.xml.ws.model.RuntimeModel$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.ws.model.RuntimeModel.createJAXBContext(Unknown Source)
at com.sun.xml.ws.model.RuntimeModel.postProcess(Unknown Source)
at com.sun.xml.ws.modeler.RuntimeModeler.buildRuntimeModel(Unknown Source)
at com.sun.xml.ws.server.RuntimeEndpointInfo.createModel(Unknown Source)
at com.sun.xml.ws.server.RuntimeEndpointInfo.init(Unknown Source)

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

I remember fixing a bug like this earlier. Can you check which version of JAXB RI are you using? You can do it like:

$ java -jar jaxb-xjc.jar -version

or check manifest file of any JAXB jar file.

dhunter21
Offline
Joined: 2005-06-20

We are using xjc version "hudson-jaxb-2863".

I can update if its fixed. Thanks.

kohsuke
Offline
Joined: 2003-06-09

This bug was fixed in hudson-2920. So please try the latest weekly builds.

Thank you!