jax-ws
  1. jax-ws
  2. JAX_WS-914

NullPointerException [java] at java.util.TreeMap.putAll(TreeMap.java:308)

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.3
    • Component/s: runtime
    • Labels:
      None
    • Environment:

      linux , JDK Pit build, tomcat

      Description

      While running PIT tests for JDK integration 2 test cases in Context test suite are failing.

      Here is the exception stack trace:

      [java] javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException
      [java] at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:178)
      [java] at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:119)
      [java] at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
      [java] at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
      [java] at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:129)
      [java] at $Proxy30.echoSimpleType1(Unknown Source)
      [java] at handlers.context.client.sync.SimplePort1Client1.invokeServerContextTest7(SimplePort1Client1.java:1078)
      [java] at handlers.context.client.ContextTestsDriver.runStaticClient(ContextTestsDriver.java:84)
      [java] at handlers.context.client.ContextTestsDriver.doIt(ContextTestsDriver.java:47)
      [java] at handlers.context.client.ContextTestsDriver.main(ContextTestsDriver.java:21)
      [java] Caused by: java.lang.NullPointerException
      [java] at java.util.TreeMap.putAll(TreeMap.java:308)
      [java] at com.sun.xml.ws.transport.http.servlet.ServletConnectionImpl.setResponseHeaders(ServletConnectionImpl.java:124)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [java] at java.lang.reflect.Method.invoke(Method.java:613)
      [java] at com.sun.xml.internal.ws.api.PropertySet$MethodAccessor.set(PropertySet.java:285)
      [java] at com.sun.xml.internal.ws.api.PropertySet.put(PropertySet.java:345)
      [java] at com.sun.xml.internal.ws.api.DistributedPropertySet.put(DistributedPropertySet.java:127)
      [java] at com.sun.xml.internal.ws.handler.MessageContextImpl.fill(MessageContextImpl.java:206)
      [java] at com.sun.xml.internal.ws.handler.MessageUpdatableContext.fill(MessageUpdatableContext.java:54)
      [java] at com.sun.xml.internal.ws.handler.MessageUpdatableContext.updatePacket(MessageUpdatableContext.java:82)
      [java] at com.sun.xml.internal.ws.handler.HandlerTube.processRequest(HandlerTube.java:107)
      [java] at com.sun.xml.internal.ws.api.pipe.Fiber.__doRun(Fiber.java:626)
      [java] at com.sun.xml.internal.ws.api.pipe.Fiber._doRun(Fiber.java:585)
      [java] at com.sun.xml.internal.ws.api.pipe.Fiber.doRun(Fiber.java:570)
      [java] at com.sun.xml.internal.ws.api.pipe.Fiber.runSync(Fiber.java:467)
      [java] at com.sun.xml.internal.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:299)
      [java] at com.sun.xml.internal.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:593)
      [java] at com.sun.xml.internal.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
      [java] at com.sun.xml.ws.transport.http.servlet.ServletAdapter.invokeAsync(ServletAdapter.java:207)
      [java] at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doGet(WSServletDelegate.java:159)
      [java] at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:194)
      [java] at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:80)
      [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
      [java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
      [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
      [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
      [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
      [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
      [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
      [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:873)
      [java] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
      [java] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
      [java] at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
      [java] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
      [java] at java.lang.Thread.run(Thread.java:732)

        Activity

        Hide
        jitu added a comment -

        Fixing NPE in 2.2.3

        svn log servlet/src/com/sun/xml/ws/transport/http/servlet/ServletConnectionImpl.java
        ------------------------------------------------------------------------
        r12088 | jitu | 2010-12-14 13:22:07 -0800 (Tue, 14 Dec 2010) | 2 lines

        Earlier fix is modified a bit. When headers is null, responseHeaders is set to n
        ull

        Show
        jitu added a comment - Fixing NPE in 2.2.3 svn log servlet/src/com/sun/xml/ws/transport/http/servlet/ServletConnectionImpl.java ------------------------------------------------------------------------ r12088 | jitu | 2010-12-14 13:22:07 -0800 (Tue, 14 Dec 2010) | 2 lines Earlier fix is modified a bit. When headers is null, responseHeaders is set to n ull

          People

          • Assignee:
            ramapulavarthi
            Reporter:
            Sreekanth
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: