Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
- Webservice invocation woes!

- Webservice invocation woes!

2007-11-01       - By Jihnd

 Back
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
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.