[jboss-user] [JBossWS] - Re: problem throwing SOAPFaultException
omatzura
do-not-reply at jboss.com
Wed Oct 4 10:06:49 EDT 2006
ok.. I've fixed this in the 1.0.3 sources locally; in org.jboss.ws.server.ServiceEndpointInvoker#handleInvocationException(Throwable) the handled exception is an MBeanException which wraps a ServerException which wraps the "original" SOAPFaultException.. I added a check for this;
if (th instanceof MBeanException)
| {
| Exception targetEx = ((MBeanException)th).getTargetException();
| if (targetEx instanceof SOAPFaultException)
| {
| throw (SOAPFaultException)targetEx;
| }
| else if( targetEx instanceof ServerException && targetEx.getCause() instanceof SOAPFaultException )
| {
| throw (SOAPFaultException)((ServerException)targetEx).getCause();
| }
| else
| {
| ...
fixed the problem (at least temporarily)..
should I post a bug-report/fix/etc in JIRA?
regards!
/Ole
eviware.com
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976026#3976026
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976026
More information about the jboss-user
mailing list