[jbossws-issues] [JBoss JIRA] Commented: (JBWS-807) A handler's handleFault() method is never called.

Alejandro Guizar (JIRA) jira-events at jboss.com
Wed Nov 15 18:03:41 EST 2006


    [ http://jira.jboss.com/jira/browse/JBWS-807?page=comments#action_12347144 ] 
            
Alejandro Guizar commented on JBWS-807:
---------------------------------------

A test in this case had been disabled due to JBWS-1297:

prepare:
     [echo] -----------------------------------------------
     [echo] jboss.home  = C:/dev/jboss/trunk/build/output/jboss-5.0.0.Beta
     [echo] tomcat.home = ${tomcat.home}
     [echo] java.home   = C:\dev\jdk1.5.0_07\jre
     [echo] -----------------------------------------------
one-test:
    [junit] Running org.jboss.test.ws.jaxrpc.jbws807.JBWS807TestCase
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 11.547 sec

Note: the resolution of JBWS-1297 only modified JAX-WS behavior. This test is unaffected by that issue.

> A handler's handleFault() method is never called.
> -------------------------------------------------
>
>                 Key: JBWS-807
>                 URL: http://jira.jboss.com/jira/browse/JBWS-807
>             Project: JBoss Web Services
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: jaxrpc
>    Affects Versions: jbossws-1.0.0.CR4
>         Environment: JBoss4.0.4-RC2
>            Reporter: Dave Head-Rapson
>         Assigned To: Heiko Braun
>             Fix For: jbossws-1.0.0
>
>         Attachments: JAXRPCServerExceptionHandler.java, standard-jbossws-endpoint-config.xml
>
>
> For a handler deployed under jbossws, the handleFault() method is only called when a known exception is thrown.
> That is, for exceptions thrown from behind a web service, that have no jaxrpc mapping, the handleFault() method of web service handlers is never executied.
> To replicate:
> * I've attached a simple handler class, and the standard-jbossws-endpoint-config.xml file I've been using to set the handler to the chain. 
> * Compile & install the handler class onto the classpath, then deploy any web service on the server.
> * Change the server config so that when it's called it will throw some unexpected runtime exception - perhaps you could remove  datasource or some other resource required by the service. 
> * The call the web service
> * The output will contain some debug from the handleRequest() method of the JAXRPCServerExceptionHandler
> * The output will not contain any debug messages from the JAXRPCServerExceptionHandler

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbossws-issues mailing list