[jboss-user] [JBossWS] - Webservice invocation woes!

Jihnd do-not-reply at jboss.com
Thu Nov 1 14:20:50 EDT 2007


Hello all,
I've created a web service using netbeans on jboss 4.2.1ga by exposing a ejb. the wdsl is created and loads in browser when i check it & the jmx-console also seems pretty convinced all is working
but then when i try an invoke it from within a flex page, i get either;
2007-10-26 00:08:40,500 ERROR [org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS] SOAP request exception
  | javax.ejb.EJBException: java.lang.NullPointerException
  | at org.jboss.ejb3.tx.Ejb3TxPolicy.handleExceptionInOurTx(Ejb3TxPolicy.java:63)
  | at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:83)
  | ............... <leading to>
  | Caused by: java.lang.NullPointerException
  | at Audiorec.AVmanBean.findAudiorec(AVmanBean.java:30)
  | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 
 
or, it's this;
16:14:08,703 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
  | java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.ver1_1.Envelope1_1Impl
  | at org.jboss.ws.core.soap.SOAPEnvelopeImpl.<init>(SOAPEnvelopeImpl.java:60)
  | at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:124)
  | at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:96)
  | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:262)
  | at org.jboss.ws.core.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:185)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:389)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
  | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | 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:175)
  | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | 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.http11.Http11Processor.process(Http11Processor.java:844)
  | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
  | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:595)
  | 16:14:09,000 ERROR [RequestHandlerImpl] Error processing web service request
  | org.jboss.ws.WSException: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl
  | at org.jboss.ws.WSException.rethrow(WSException.java:68)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:310)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost(RequestHandlerImpl.java:189)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest(RequestHandlerImpl.java:122)
  | at org.jboss.wsf.stack.jbws.EndpointServlet.service(EndpointServlet.java:84)
  | at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
  | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | 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:175)
  | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
  | 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.http11.Http11Processor.process(Http11Processor.java:844)
  | at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
  | at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
  | at java.lang.Thread.run(Thread.java:595)
  | Caused by: java.lang.ClassCastException: com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl
  | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.toSOAPMessage(SOAPFaultHelperJAXWS.java:232)
  | at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.exceptionToFaultMessage(SOAPFaultHelperJAXWS.java:161)
  | at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.createFaultMessageFromException(SOAP11BindingJAXWS.java:104)
  | at org.jboss.ws.core.CommonSOAPBinding.bindFaultMessage(CommonSOAPBinding.java:645)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(RequestHandlerImpl.java:430)
  | at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest(RequestHandlerImpl.java:272)


i've been rebuilding and redeploying tons, which is why i post the two exceptions because i cant seem to get past either.
am i missing something major, i been battling this for 2weeks now and the deadline is killing me! any ideas?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101031#4101031

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101031



More information about the jboss-user mailing list