dev@jax-ws.java.net

NPE with invalid endpoint/_at_service in sun-jaxws.xml

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Mon, 17 Apr 2006 15:40:32 -0700

If an invalid (syntactically correct but not existing) endpoint/_at_service
attribute is specified in sun-jaxws.xml:@endpoints/endpoint/_at_service,
then the following exception is thrown in Glassfish:

[#|2006-04-17T15:36:26.726-0700|SEVERE|sun-appserver-pe9.0|javax.enterprise.resource.webservices.jaxws.server.http|_Thre
adID=11;_ThreadName=Timer-4;_RequestID=19d0e6bf-4cd4-4691-840c-f6c32d160a8c;|WSSERVLET11:
failed to parse runtime descri
ptor: java.lang.NullPointerException
java.lang.NullPointerException
         at
com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:260)
         at
com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:153)
         at
com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:232)
         at
com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:130)
         at
com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.ja
va:85)
         at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236)
         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4760)
         at com.sun.enterprise.web.WebModule.start(WebModule.java:292)
         at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:833)
         at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:817)

This is after installing the rearch-2005 branch on Glassfish. A better
error message should be reported.

-Arun
-- 
got Web Services ?
Download Java Web Services Developer Pack from
http://java.sun.com/webservices