File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes web services soap handler IllegalStateExceptionCan't overwrite cause  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "web services soap handler IllegalStateExceptionCan Watch "web services soap handler IllegalStateExceptionCan New topic

web services soap handler IllegalStateExceptionCan't overwrite cause

vishal parmar

Joined: Jan 21, 2009
Posts: 1
Hi ,

I have deployed my session bean as web services and it works fine as long as i do not add a soap handler in the webservices.xml

after i have added a soap handler it is deployed successfully to sun one app server with jwsdp1.5 but on invoking web service
i get the following error.

Can you please help and letme know is there any other setting i need.

entry in webservices.xml is

I am using jdk1.4 sun one app server 8.2 jwsdp1.5

[#|2009-01-21T16:14:51.022+0000|SEVERE|sun-appserver-pe8.2|com.sun.xml.rpc.server|_ThreadID=14;|Can't overwrite cause
java.lang.IllegalStateException: Can't overwrite cause
at java.lang.Throwable.initCause(
at com.sun.enterprise.webservice.EjbContainerPreHandler.handleRequest(
at com.sun.xml.rpc.client.HandlerChainImpl.handleRequest(
at com.sun.xml.rpc.server.StreamingHandler.callRequestHandlers(
at com.sun.xml.rpc.server.StreamingHandler.preHandlingHook(
at com.cimex.mobilewebservices.framework.request.requestcontroller.ejb.MWSRequestControllerService_Tie.preHandlingHook(
at com.sun.xml.rpc.server.StreamingHandler.handle(
at com.sun.enterprise.webservice.EjbWebServiceDispatcher.handlePost(
at com.sun.enterprise.webservice.EjbWebServiceDispatcher.invoke(
at com.sun.enterprise.webservice.EjbWebServiceValve.dispatchToEjbEndpoint(
at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(
at org.apache.catalina.core.StandardPipeline.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.core.StandardPipeline.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.core.StandardPipeline.invoke(
at org.apache.catalina.core.ContainerBase.invoke(
at org.apache.coyote.tomcat5.CoyoteAdapter.service(
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(
I agree. Here's the link:
subject: web services soap handler IllegalStateExceptionCan't overwrite cause
Similar Threads
Web app IllegalStateException: getOutputStream()..
EJB 2 + Sql Server 2000
Has anyone seen this before with Axis Web services before?
EJB3.0 & calling remote interface.
JAX-RPC web service soap message handler issues