glassfish
  1. glassfish
  2. GLASSFISH-4872

WebService not being resolved when @HttpSessionScope

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1peur2
    • Fix Version/s: not determined
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: All

    • Issuezilla Id:
      4,872

      Description

      I have a glassfish (v2ur2) instance with 2 web services.
      I've added a MessageHandler to retrieve client username from header.
      Once I configure the service as a Secure Service using "Username Authentication
      with Symmetric Key" I can no longer hit the service.
      I also saw this issue in glassfish v2ur1.
      I see traffic in the MessageHandler, but then I get the follow exception:

      The log message is null.
      java.lang.NullPointerException
      at
      com.sun.xml.ws.server.AbstractMultiInstanceResolver.prepare(AbstractMultiInstanceResolver.java:78)
      at
      com.sun.xml.ws.server.AbstractMultiInstanceResolver.create(AbstractMultiInstanceResolver.java:87)
      at
      com.sun.xml.ws.server.servlet.HttpSessionInstanceResolver.resolve(HttpSessionInstanceResolver.java:70)
      at
      com.sun.enterprise.webservice.InstanceResolverImpl.resolve(InstanceResolverImpl.java:74)
      at
      com.sun.enterprise.webservice.InstanceResolverImpl$1.invoke(InstanceResolverImpl.java:112)
      at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:146)
      at
      com.sun.xml.ws.server.sei.EndpointMethodHandler.invoke(EndpointMethodHandler.java:257)
      at
      com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:93)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
      at
      com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
      at
      com.sun.enterprise.webservice.MonitoringPipe.process(MonitoringPipe.java:147)
      at
      com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
      at
      com.sun.xml.ws.api.pipe.helper.AbstractTubeImpl.process(AbstractTubeImpl.java:106)
      at
      com.sun.enterprise.webservice.CommonServerSecurityPipe.processRequest(CommonServerSecurityPipe.java:218)
      at
      com.sun.enterprise.webservice.CommonServerSecurityPipe.process(CommonServerSecurityPipe.java:129)
      at
      com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)
      at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:243)
      at
      com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:444)
      at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
      at
      com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
      at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:176)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
      at
      org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at
      org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:390)
      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:288)
      at
      org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
      at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
      at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
      at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      at
      org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      at
      org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
      at
      com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
      at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
      at
      com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)

        Activity

        Hide
        adeanva added a comment -

        I've done more debugging and I only get this error for my web service when I try
        to track session with the @HttpSessionScope.
        I can create a web service from a wsdl and it works fine, but if I add the
        @HttpSessionScope I get the previous error.
        I have used this annotation before with JAX-WS in WebLogic

        Show
        adeanva added a comment - I've done more debugging and I only get this error for my web service when I try to track session with the @HttpSessionScope. I can create a web service from a wsdl and it works fine, but if I add the @HttpSessionScope I get the previous error. I have used this annotation before with JAX-WS in WebLogic
        Hide
        kumarjayanti added a comment -

        What happens when you remove the MessageHandler. Does it still run into the same
        issue ?.

        What are the steps to reproduce the problem ?.

        Thanks

        Show
        kumarjayanti added a comment - What happens when you remove the MessageHandler. Does it still run into the same issue ?. What are the steps to reproduce the problem ?. Thanks
        Hide
        kumarjayanti added a comment -

        Can you try this with latest builds from :
        https://sailfin.dev.java.net/downloads/v1-b51.html

        And let us know.

        Show
        kumarjayanti added a comment - Can you try this with latest builds from : https://sailfin.dev.java.net/downloads/v1-b51.html And let us know.
        Hide
        kumarjayanti added a comment -

        Also try installing Latest Metro 1.3 bits on GlassFish and give it a try.

        https://metro.dev.java.net/1.3/

        Show
        kumarjayanti added a comment - Also try installing Latest Metro 1.3 bits on GlassFish and give it a try. https://metro.dev.java.net/1.3/
        Hide
        Bhakti Mehta added a comment -

        Accepting issue and will fix this after prelude

        Show
        Bhakti Mehta added a comment - Accepting issue and will fix this after prelude
        Hide
        jitu added a comment -

        When I actually checked, I already have a testcase for this in standalone
        deployment. Bhakti, you can use this testcase for 109 deployment.

        http://fisheye5.cenqua.com/browse/jax-ws-sources/jaxws-unit/testcases/server/http_session_scope

        Show
        jitu added a comment - When I actually checked, I already have a testcase for this in standalone deployment. Bhakti, you can use this testcase for 109 deployment. http://fisheye5.cenqua.com/browse/jax-ws-sources/jaxws-unit/testcases/server/http_session_scope
        Hide
        sanandal added a comment -

        "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
        release whose primary release driver is SailFin.
        This issue will be scrubbed after this release and will be given the right
        priority for the next release."

        Show
        sanandal added a comment - "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1 release whose primary release driver is SailFin. This issue will be scrubbed after this release and will be given the right priority for the next release."
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

          People

          • Assignee:
            Bhakti Mehta
            Reporter:
            adeanva
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: