wsit
  1. wsit
  2. WSIT-1619

java.lang.ClassCastException: org.glassfish.gmbal.ManagedObjectManagerNOPImpl cannot be cast to com.sun.xml.ws.server.WSEndpointMOMProxy

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.1
    • Component/s: rm
    • Labels:
      None
    • Environment:

      Glassfish 3.1.2, Metro 2.2

      Description

      The attached webservice with RM and MTOM is failing with Gf 3.1.2 and Metro 2.2.The same service is working fine with Glassfish 3.1.1 and Metro 2.1.1

      Server log:
      ===========
      #|2012-04-09T13:22:10.970+0530|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=19;_ThreadName=Thread-2;|StandardWrapperValve[TestServlet]: PWC1406: Servlet.service() for servlet TestServlet threw exception

      java.lang.ClassCastException: org.glassfish.gmbal.ManagedObjectManagerNOPImpl cannot be cast to com.sun.xml.ws.server.WSEndpointMOMProxy
      at com.sun.xml.ws.rx.rm.runtime.sequence.SequenceManagerFactory.handleMOMRegistration(SequenceManagerFactory.java:130)
      at com.sun.xml.ws.rx.rm.runtime.sequence.SequenceManagerFactory.createSequenceManager(SequenceManagerFactory.java:95)
      at com.sun.xml.ws.rx.rm.runtime.ClientTube.<init>(ClientTube.java:146)
      at com.sun.xml.ws.rx.rm.runtime.RmTubeFactory.createTube(RmTubeFactory.java:77)
      at com.sun.xml.ws.assembler.TubeCreator.createTube(TubeCreator.java:84)
      at com.sun.xml.ws.assembler.TubelineAssemblerFactoryImpl$MetroTubelineAssembler.createClient(TubelineAssemblerFactoryImpl.java:130)
      at com.sun.xml.ws.client.Stub.createPipeline(Stub.java:314)
      at com.sun.xml.ws.client.Stub.<init>(Stub.java:286)
      at com.sun.xml.ws.client.Stub.<init>(Stub.java:230)
      at com.sun.xml.ws.client.Stub.<init>(Stub.java:245)
      at com.sun.xml.ws.client.sei.SEIStub.<init>(SEIStub.java:91)
      at com.sun.xml.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:725)
      at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:703)
      at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:387)
      at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:363)
      at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:345)
      at javax.xml.ws.Service.getPort(Service.java:134)
      at simple.server.CalcServiceService.getCalcServicePort(CalcServiceService.java:72)
      at simple.client.TestServlet.addNumbers(TestServlet.java:92)
      at simple.client.TestServlet.processRequest(TestServlet.java:46)
      at simple.client.TestServlet.doGet(TestServlet.java:66)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
      at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:662)

      #]

        Activity

        Sreekanth created issue -
        Sreekanth made changes -
        Field Original Value New Value
        Description #|2012-04-09T13:22:10.970+0530|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=19;_ThreadName=Thread-2;|StandardWrapperValve[TestServlet]: PWC1406: Servlet.service() for servlet TestServlet threw exception
        The attached webservice with RM and MTOM is failing with Gf 3.1.2 and Metro 2.2.The same service is working fine with Glassfish 3.1.1 and Metro 2.1.1

        java.lang.ClassCastException: org.glassfish.gmbal.ManagedObjectManagerNOPImpl cannot be cast to com.sun.xml.ws.server.WSEndpointMOMProxy
        at com.sun.xml.ws.rx.rm.runtime.sequence.SequenceManagerFactory.handleMOMRegistration(SequenceManagerFactory.java:130)
        at com.sun.xml.ws.rx.rm.runtime.sequence.SequenceManagerFactory.createSequenceManager(SequenceManagerFactory.java:95)
        at com.sun.xml.ws.rx.rm.runtime.ClientTube.<init>(ClientTube.java:146)
        at com.sun.xml.ws.rx.rm.runtime.RmTubeFactory.createTube(RmTubeFactory.java:77)
        at com.sun.xml.ws.assembler.TubeCreator.createTube(TubeCreator.java:84)
        at com.sun.xml.ws.assembler.TubelineAssemblerFactoryImpl$MetroTubelineAssembler.createClient(TubelineAssemblerFactoryImpl.java:130)
        at com.sun.xml.ws.client.Stub.createPipeline(Stub.java:314)
        at com.sun.xml.ws.client.Stub.<init>(Stub.java:286)
        at com.sun.xml.ws.client.Stub.<init>(Stub.java:230)
        at com.sun.xml.ws.client.Stub.<init>(Stub.java:245)
        at com.sun.xml.ws.client.sei.SEIStub.<init>(SEIStub.java:91)
        at com.sun.xml.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:725)
        at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:703)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:387)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:363)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:345)
        at javax.xml.ws.Service.getPort(Service.java:134)
        at simple.server.CalcServiceService.getCalcServicePort(CalcServiceService.java:72)
        at simple.client.TestServlet.addNumbers(TestServlet.java:92)
        at simple.client.TestServlet.processRequest(TestServlet.java:46)
        at simple.client.TestServlet.doGet(TestServlet.java:66)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
        at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:662)
        |#]
        The attached webservice with RM and MTOM is failing with Gf 3.1.2 and Metro 2.2.The same service is working fine with Glassfish 3.1.1 and Metro 2.1.1

        Server log:
        ===========
        #|2012-04-09T13:22:10.970+0530|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=19;_ThreadName=Thread-2;|StandardWrapperValve[TestServlet]: PWC1406: Servlet.service() for servlet TestServlet threw exception

        java.lang.ClassCastException: org.glassfish.gmbal.ManagedObjectManagerNOPImpl cannot be cast to com.sun.xml.ws.server.WSEndpointMOMProxy
        at com.sun.xml.ws.rx.rm.runtime.sequence.SequenceManagerFactory.handleMOMRegistration(SequenceManagerFactory.java:130)
        at com.sun.xml.ws.rx.rm.runtime.sequence.SequenceManagerFactory.createSequenceManager(SequenceManagerFactory.java:95)
        at com.sun.xml.ws.rx.rm.runtime.ClientTube.<init>(ClientTube.java:146)
        at com.sun.xml.ws.rx.rm.runtime.RmTubeFactory.createTube(RmTubeFactory.java:77)
        at com.sun.xml.ws.assembler.TubeCreator.createTube(TubeCreator.java:84)
        at com.sun.xml.ws.assembler.TubelineAssemblerFactoryImpl$MetroTubelineAssembler.createClient(TubelineAssemblerFactoryImpl.java:130)
        at com.sun.xml.ws.client.Stub.createPipeline(Stub.java:314)
        at com.sun.xml.ws.client.Stub.<init>(Stub.java:286)
        at com.sun.xml.ws.client.Stub.<init>(Stub.java:230)
        at com.sun.xml.ws.client.Stub.<init>(Stub.java:245)
        at com.sun.xml.ws.client.sei.SEIStub.<init>(SEIStub.java:91)
        at com.sun.xml.ws.client.WSServiceDelegate.getStubHandler(WSServiceDelegate.java:725)
        at com.sun.xml.ws.client.WSServiceDelegate.createEndpointIFBaseProxy(WSServiceDelegate.java:703)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:387)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:363)
        at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:345)
        at javax.xml.ws.Service.getPort(Service.java:134)
        at simple.server.CalcServiceService.getCalcServicePort(CalcServiceService.java:72)
        at simple.client.TestServlet.addNumbers(TestServlet.java:92)
        at simple.client.TestServlet.processRequest(TestServlet.java:46)
        at simple.client.TestServlet.doGet(TestServlet.java:66)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
        at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:662)
        |#]
        Martin Grebac made changes -
        Assignee Marek Potociar [ m_potociar ] Lukas Jungmann [ jungicz ]
        Lukas Jungmann made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Martin Grebac made changes -
        Priority Major [ 3 ] Critical [ 2 ]
        Lukas Jungmann made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Lukas Jungmann made changes -
        Fix Version/s 2.2.1 [ 15593 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: