[jboss-user] [JBossWS] - ServiceEndpointInvoker rethrows runtimeexception, headers th

zach.mabe@cox.com do-not-reply at jboss.com
Wed Mar 19 17:36:23 EDT 2008

In version 2.0.3.GA, I am seeing an issue where the org.jboss.ws.core.server.ServiceEndpointInvoker is  catching a runtimeexception thrown from within a handler, calling the handleFault operations of the handlers but then rethrowing the exception.  

Since this is a runtimeexception, it ends up being passed back out to org.jboss.wsf.stack.jbws.RequestHandlerImpl.processRequest(...) where a new SOAP Fault message is created because (I think) the requesthandlerimpl doesn't repeek the messagecontextstack for a fresh context. 

Is this a bug or am I not understanding how it is supposed to work.  

The main problem with this is my custom handler throws a WebServiceException when the request isn't valid.  I see that the WSAddressingServerHandling is putting the correct ws-addressing stuff in the response.  But that response isn't what ends up being sent to the client.  The client then complains because the response is missing the action header.

Zach Mabe

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

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

More information about the jboss-user mailing list