1 Reply Latest reply on Mar 17, 2011 12:22 PM by Dinuka Arseculeratne

    ClassCastException com.sun.xml.messaging.saaj.soap.ver1_2.Envelope1_2Impl in jboss4.2 and jdk1.5

    siddharth chhabra Newbie

      Hi

      We are trying to use wsconsume to generate the client code for one of our wsdls.

      When we try to call the webservice from our war file we get the following stacktrace related to saaj -

       

      16:33:43,134 ERROR [ContainerBase] Servlet.service() for servlet jsp threw exception

      javax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message

              at org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:304)

              at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:242)

              at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)

              at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)

              at $Proxy82.authenticateUser(Unknown Source)

              at com.stamps.util.CreateIndiciumFormHandler.handleCreateIndicium(CreateIndiciumFormHandler.java:46)

              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:585)

              at atg.droplet.EventSender.sendEvent(EventSender.java:582)

              at atg.droplet.FormTag.doSendEvents(FormTag.java:791)

              at atg.droplet.FormTag.sendEvents(FormTag.java:640)

              at atg.droplet.DropletEventServlet.sendEvents(DropletEventServlet.java:523)

              at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:550)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2442)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:602)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)

       

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:461)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at com.stamps.userprofiling.SourceIdPipeline.service(SourceIdPipeline.java:123)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at com.stamps.userprofiling.ForceChangePasswordPipeline.service(ForceChangePasswordPipeline.java:85)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:279)

              at com.stamps.acl.SessionContextPipeline.service(SessionContextPipeline.java:190)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:480)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.servlet.security.SecurityDomainServlet.service(SecurityDomainServlet.java:220)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.ja

      va:370)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:561)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at com.stamps.userprofiling.BridgeAuthenticatorPipeline.service(BridgeAuthenticatorPipeline.java:70)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at com.stamps.acl.SSLRequiredPipeline.service(SSLRequiredPipeline.java:119)

              at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)

              at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1123)

              at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:805)

              at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:231)

              at atg.filter.dspjsp.PageFilter.doFilter(Unknown Source)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)

              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)

              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)

              at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)

              at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:437)

              at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:381)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

              at java.lang.Thread.run(Thread.java:595)

      Caused by: java.io.IOException: Could not transmit message

              at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:192)

              at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)

              at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:331)

              at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:230)

              ... 71 more

      Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker. com.sun.xml.messagi

      ng.saaj.soap.ver1_2.Envelope1_2Impl. Response: OK/200.

              at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:380

      )

              at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:149)

              at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:141)

              at org.jboss.remoting.Client.invoke(Client.java:1935)

              at org.jboss.remoting.Client.invoke(Client.java:788)

              at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:171)

              ... 74 more

      Caused by: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.ver1_2.Envelope1_2Impl

              at org.jboss.ws.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:59)

              at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:125)

              at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:97)

              at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:255)

              at org.jboss.ws.core.soap.SOAPMessageUnMarshaller.read(SOAPMessageUnMarshaller.java:75)

              at org.jboss.remoting.transport.http.HTTPClientInvoker.readResponse(HTTPClientInvoker.java:562)

              at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:334

      )

              ... 79 more

       

      So the question I had qas will changing the saaj implementation via the system property help ?

      Has anyone experienced such exception before ?

      I looked in the forums but couldn't find anything that stood out.

      I have also attached our wsdl

       

      -Sid