dev@jax-ws.java.net

NPE in HttpAdapter

From: Fabian Ritzmann <Fabian.Ritzmann_at_Sun.COM>
Date: Mon, 03 Apr 2006 22:45:38 +0200

Hi,

I'm running into a NullPointerException in HttpAdapter with the
latest changes on the rearch branch.

Exception in thread "pool-1-thread-2" java.lang.NullPointerException
         at com.sun.xml.ws.transport.http.HttpAdapter.publishWSDL
(HttpAdapter.java:229)
         at
com.sun.xml.ws.transport.http.server.WSHttpHandler.handleExchange
(WSHttpHandler.java:88)
         at com.sun.xml.ws.transport.http.server.WSHttpHandler.handle
(WSHttpHandler.java:75)
         at com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:65)
         at sun.net.httpserver.ServerImpl$Exchange.run
(ServerImpl.java:459)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:613)

This is with a stand-alone service that uses Endpoint.publish(url,
serviceImpl). The NPE occurs when I try to retrieve the WSDL from the
service with 'url?wsdl'. Please let me know if you need more details.

Fabian