metro
  1. metro
  2. METRO-18

ClassCastException while using tubes

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: current
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Glassfish 3.1.1, Metro 2.3, Windows

      Description

      We see some failures in security area with tube message handling. We use glassfish 3.1.1 and latest metro.

      Exception:

      [#|2012-05-07T10:10:28.829+0200|INFO|glassfish3.1.1|com.sun.xml.wss.jaxws.impl.SecurityClientTube|_ThreadID=66;_ThreadName=Thread-2;|Response exception processed in Tube [ com.sun.xml.wss.jaxws.impl.SecurityClientTube ] Instance [ 6 ] Engine [ Metro/2.3-SNAPSHOT (trunk-7036; 2012-03-08T14:22:01+0000) JAXWS-RI/2.2.7-promoted-b26 JAXWS/2.2 svn-revision#unknown: Stub for ] Thread [ Ejb-Async-Thread-9 ]:
      javax.xml.ws.WebServiceException: java.lang.ClassCastException: com.sun.xml.ws.api.message.MessageWrapper cannot be cast to com.sun.xml.ws.security.message.stream.LazyStreamBasedMessage
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processResponse(SecurityClientTube.java:365)
      at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1073)
      at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:978)
      at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:949)
      at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:824)
      at com.sun.xml.ws.client.Stub.process(Stub.java:436)
      at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:174)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:119)
      at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:102)
      at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)
      at $Proxy337.queryActivationKeys(Unknown Source)
      at com.test.SequenceNumberServiceAdapter.fetch(SequenceNumberServiceAdapter.java:39)
      at com.test.RequestHandler.get(RequestHandler.java:26)
      at com.test.SequenceNumberService.fetchAndSend(SequenceNumberService.java:37)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.glassfish.ejb.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1052)
      at org.glassfish.ejb.security.application.EJBSecurityManager.invoke(EJBSecurityManager.java:1124)
      at com.sun.ejb.containers.BaseContainer.invokeBeanMethod(BaseContainer.java:5366)
      at com.sun.ejb.EjbInvocation.invokeBeanMethod(EjbInvocation.java:619)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
      at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
      at org.jboss.weld.ejb.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:57)
      at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
      at com.sun.ejb.EjbInvocation.proceed(EjbInvocation.java:571)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.doAround(SystemInterceptorProxy.java:162)
      at com.sun.ejb.containers.interceptors.SystemInterceptorProxy.aroundInvoke(SystemInterceptorProxy.java:144)
      at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.sun.ejb.containers.interceptors.AroundInvokeInterceptor.intercept(InterceptorManager.java:861)
      at com.sun.ejb.containers.interceptors.AroundInvokeChainImpl.invokeNext(InterceptorManager.java:800)
      at com.sun.ejb.containers.interceptors.InterceptorManager.intercept(InterceptorManager.java:370)
      at com.sun.ejb.containers.BaseContainer.__intercept(BaseContainer.java:5338)
      at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:5326)
      at com.sun.ejb.containers.EjbAsyncTask.call(EjbAsyncTask.java:101)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.lang.ClassCastException: com.sun.xml.ws.api.message.MessageWrapper cannot be cast to com.sun.xml.ws.security.message.stream.LazyStreamBasedMessage
      at com.sun.xml.wss.jaxws.impl.SecurityTubeBase.verifyInboundMessage(SecurityTubeBase.java:442)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processClientResponsePacket(SecurityClientTube.java:434)
      at com.sun.xml.wss.jaxws.impl.SecurityClientTube.processResponse(SecurityClientTube.java:362)
      ... 46 more

        Activity

        Hide
        Martin Grebac added a comment -

        Please verify with latest metro 2.2.1 promoted builds - we're actively working on 2.2.1 codebase now, will get back to 2.3 later on.

        Show
        Martin Grebac added a comment - Please verify with latest metro 2.2.1 promoted builds - we're actively working on 2.2.1 codebase now, will get back to 2.3 later on.
        Hide
        Martin Grebac added a comment -

        Also, please add a testcase if you still see the failures with recent builds.

        Show
        Martin Grebac added a comment - Also, please add a testcase if you still see the failures with recent builds.

          People

          • Assignee:
            Martin Grebac
            Reporter:
            aeai
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: