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
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
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
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
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
 
- seam webservice conversation id issues

- seam webservice conversation id issues

2007-08-10       - By rvkishore

 Back
I am trying to expose parts of my seam application as a web service. I am
starting off with a simple login service. I am following the recommended
pattern of using a  SLSB as a facade and exposing that as a webservice.

SLSB

 |
 | @(protected)
 | @(protected)(name = "DtlService", serviceName = "DtlService")
 | public class DtlService implements DtlServiceRemote
 | {
 |   @(protected)
 |   public boolean login(String userName, String password)
 |   {
 |     Identity.instance().setUsername(userName);
 |     Identity.instance().setPassword(password);
 |     Identity.instance().login();
 |     return Identity.instance().isLoggedIn();
 |   }
 | }
 |
 |

The web service starts up fine and when I use the soapui toolkit to test this
login service it works fine. I have no conversation Id in the soap header. The
SOAP response from the seam web service has a conversation id in the response.

But when I use the apache axis & apache cxf toolkits to test the same web
service, I get the following error.


 | 10:48:01,953 ERROR [HandlerChainExecutor] Exception during handler
processing
 | java.lang.NullPointerException
 |         at org.jboss.seam.webservice.SOAPRequestHandler
.extractConversationId(SOAPRequestHandler.java:137)
 |         at org.jboss.seam.webservice.SOAPRequestHandler.handleInbound
(SOAPRequestHandler.java:75)
 |         at org.jboss.seam.webservice.SOAPRequestHandler.handleMessage
(SOAPRequestHandler.java:56)
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.handleMessage(HandlerChainExecutor.java:295)
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.handleMessage(HandlerChainExecutor.java:140)
 |         at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS
.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
 |         at org.jboss.ws.core.server.ServiceEndpointInvoker
.callRequestHandlerChain(ServiceEndpointInvoker.java:115)
 |         at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke
(ServiceEndpointInvoker.java:188)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest
(RequestHandlerImpl.java:396)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest
(RequestHandlerImpl.java:260)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost
(RequestHandlerImpl.java:177)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest
(RequestHandlerImpl.java:110)
 |         at org.jboss.wsf.spi.invocation.EndpointServlet.service
(EndpointServlet.java:72)
 |         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)
 | 10:48:02,027 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
 | javax.xml.ws.WebServiceException: java.lang.NullPointerException
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.processHandlerFailure(HandlerChainExecutor.java:276)
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.handleMessage(HandlerChainExecutor.java:155)
 |         at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS
.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
 |         at org.jboss.ws.core.server.ServiceEndpointInvoker
.callRequestHandlerChain(ServiceEndpointInvoker.java:115)
 |         at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke
(ServiceEndpointInvoker.java:188)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest
(RequestHandlerImpl.java:396)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest
(RequestHandlerImpl.java:260)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost
(RequestHandlerImpl.java:177)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest
(RequestHandlerImpl.java:110)
 |         at org.jboss.wsf.spi.invocation.EndpointServlet.service
(EndpointServlet.java:72)
 |         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.NullPointerException
 |         at org.jboss.seam.webservice.SOAPRequestHandler
.extractConversationId(SOAPRequestHandler.java:137)
 |         at org.jboss.seam.webservice.SOAPRequestHandler.handleInbound
(SOAPRequestHandler.java:75)
 |         at org.jboss.seam.webservice.SOAPRequestHandler.handleMessage
(SOAPRequestHandler.java:56)
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.handleMessage(HandlerChainExecutor.java:295)
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.handleMessage(HandlerChainExecutor.java:140)
 |         ... 27 more
 |         10:48:02,068 ERROR [SOAPFaultHelperJAXWS] SOAP request exception
 | javax.xml.ws.WebServiceException: java.lang.NullPointerException
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.processHandlerFailure(HandlerChainExecutor.java:276)
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.handleMessage(HandlerChainExecutor.java:155)
 |         at org.jboss.ws.core.jaxws.handler.HandlerDelegateJAXWS
.callRequestHandlerChain(HandlerDelegateJAXWS.java:87)
 |         at org.jboss.ws.core.server.ServiceEndpointInvoker
.callRequestHandlerChain(ServiceEndpointInvoker.java:115)
 |         at org.jboss.ws.core.server.ServiceEndpointInvoker.invoke
(ServiceEndpointInvoker.java:188)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest
(RequestHandlerImpl.java:396)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleRequest
(RequestHandlerImpl.java:260)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.doPost
(RequestHandlerImpl.java:177)
 |         at org.jboss.wsf.stack.jbws.RequestHandlerImpl.handleHttpRequest
(RequestHandlerImpl.java:110)
 |         at org.jboss.wsf.spi.invocation.EndpointServlet.service
(EndpointServlet.java:72)
 |         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:44
 | 7)
 |         at java.lang.Thread.run(Thread.java:595)
 | Caused by: java.lang.NullPointerException
 |         at org.jboss.seam.webservice.SOAPRequestHandler
.extractConversationId(SOAPRequestHandler.java:137)
 |         at org.jboss.seam.webservice.SOAPRequestHandler.handleInbound
(SOAPRequestHandler.java:75)
 |         at org.jboss.seam.webservice.SOAPRequestHandler.handleMessage
(SOAPRequestHandler.java:56)
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.handleMessage(HandlerChainExecutor.java:295)
 |         at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor
.handleMessage(HandlerChainExecutor.java:140)
 |         ... 27 more
 |
 |
 |

Any advice regarding the conversation Id strategy for stateful web services    
 in seam would be helpful

Thanks in  advance

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4073157
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

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