[
https://issues.apache.org/jira/browse/CXF-1521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alessio Soldano resolved CXF-1521.
----------------------------------
Resolution: Not A Problem
This was actually failing because the custom exception being used were hiding
the both the Exception() and Exception(String message) constructors of
java.lang.Exception. That basically prevented the JAXBEncoderDecoder from
creating the proper exception instance through reflection.
> Exception handling with @WebFault annotation
> --------------------------------------------
>
> Key: CXF-1521
> URL: https://issues.apache.org/jira/browse/CXF-1521
> Project: CXF
> Issue Type: Sub-task
> Components: JAX-WS Runtime
> Affects Versions: 2.0.5
> Reporter: Thomas Diesler
> Assignee: Alessio Soldano
>
> [tdies...@tddell trunk]$ ant -Dtest=jaxws/webfault test
> tests-run-internal:
> [junit] Running org.jboss.test.ws.jaxws.webfault.WebFaultTestCase
> [junit] Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 6.91 sec
> [junit] Test org.jboss.test.ws.jaxws.webfault.WebFaultTestCase FAILED
> BUILD SUCCESSFUL
> Total time: 10 seconds
> [tdies...@tddell trunk]$ cat
> output/tests/reports/TEST-org.jboss.test.ws.jaxws.webfault.WebFaultTestCase.txt
>
> Testsuite: org.jboss.test.ws.jaxws.webfault.WebFaultTestCase
> Tests run: 2, Failures: 2, Errors: 0, Time elapsed: 6.91 sec
> Testcase: testWebFaultElement took 1.192 sec
> FAILED
> null
> junit.framework.AssertionFailedError
> at
> org.jboss.test.ws.jaxws.webfault.WebFaultTestCase.testWebFaultElement(WebFaultTestCase.java:120)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
> Testcase: testInvocation took 4.471 sec
> FAILED
> Wrong exception caught!
> junit.framework.AssertionFailedError: Wrong exception caught!
> at
> org.jboss.test.ws.jaxws.webfault.WebFaultTestCase.testInvocation(WebFaultTestCase.java:143)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.