You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Thomas Diesler (JIRA)" <ji...@apache.org> on 2007/11/30 15:18:43 UTC
[jira] Created: (CXF-1244) Application Exception not initialized
properly
Application Exception not initialized properly
----------------------------------------------
Key: CXF-1244
URL: https://issues.apache.org/jira/browse/CXF-1244
Project: CXF
Issue Type: Sub-task
Affects Versions: 2.0.3
Reporter: Thomas Diesler
/home/tdiesler/svn/jbossws/stack/cxf/trunk
[tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
one-test:
[junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
[junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
[junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
Testcase: testRuntimeException took 4.953 sec
Testcase: testSoapFaultException took 0.258 sec
Testcase: testApplicationException took 0.306 sec
FAILED
expected:<Some validation error> but was:<null>
junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
public void testApplicationException() throws Exception
{
try
{
proxy.throwApplicationException();
fail("Expected UserException");
}
catch (UserException_Exception e)
{
UserException ue = e.getFaultInfo();
assertEquals("Some validation error", ue.getMessage());
assertEquals("validation", ue.getErrorCategory());
assertEquals(123, ue.getErrorCode());
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (CXF-1244) Application Exception not serialized
properly
Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler reopened CXF-1244:
---------------------------------
Lets keep this open until the test actually passes with the current cxf snapshot
> Application Exception not serialized properly
> ---------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3
> Reporter: Thomas Diesler
> Assignee: Daniel Kulp
> Fix For: 2.0.4
>
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1244) Application Exception not serialized
properly
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp updated CXF-1244:
-----------------------------
Summary: Application Exception not serialized properly (was: Application Exception not initialized properly)
> Application Exception not serialized properly
> ---------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3
> Environment: http://jira.jboss.org/jira/browse/JBWS-1927
> Reporter: Thomas Diesler
> Assignee: Daniel Kulp
> Fix For: 2.0.4
>
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1244) Application Exception not serialized
properly
Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler updated CXF-1244:
--------------------------------
Environment: (was: http://jira.jboss.org/jira/browse/JBWS-1927)
> Application Exception not serialized properly
> ---------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3
> Reporter: Thomas Diesler
> Assignee: Daniel Kulp
> Fix For: 2.0.4
>
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1244) Application Exception not initialized
properly
Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler updated CXF-1244:
--------------------------------
Environment: http://jira.jboss.org/jira/browse/JBWS-1927
> Application Exception not initialized properly
> ----------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3
> Environment: http://jira.jboss.org/jira/browse/JBWS-1927
> Reporter: Thomas Diesler
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-1244) Application Exception not initialized
properly
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-1244.
------------------------------
Resolution: Fixed
Fix Version/s: 2.0.4
Assignee: Daniel Kulp
> Application Exception not initialized properly
> ----------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3
> Environment: http://jira.jboss.org/jira/browse/JBWS-1927
> Reporter: Thomas Diesler
> Assignee: Daniel Kulp
> Fix For: 2.0.4
>
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1244) Application Exception not serialized
properly
Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler updated CXF-1244:
--------------------------------
Affects Version/s: 2.0.4
Fix Version/s: (was: 2.0.4)
2.0.5
> Application Exception not serialized properly
> ---------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3, 2.0.4
> Reporter: Thomas Diesler
> Assignee: Daniel Kulp
> Fix For: 2.0.5
>
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-1244) Application Exception not initialized
properly
Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547864 ]
Thomas Diesler commented on CXF-1244:
-------------------------------------
In the endpoint we have:
public void throwApplicationException() throws UserException
{
throw new UserException("validation", 123, "Some validation error");
}
the return message is
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Some validation error</faultstring><detail><UserException xmlns="http://server.exception.samples.jaxws.ws.test.jboss.org/" /></detail></soap:Fault></soap:Body></soap:Envelope>
The error category and code are not propagated to the client.
> Application Exception not initialized properly
> ----------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3
> Reporter: Thomas Diesler
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-1244) Application Exception not serialized
properly
Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler updated CXF-1244:
--------------------------------
To reproduce, please have a look at
http://jbws.dyndns.org/mediawiki/index.php?title=Building_From_Source
> Application Exception not serialized properly
> ---------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3, 2.0.4
> Reporter: Thomas Diesler
> Assignee: Daniel Kulp
> Fix For: 2.0.6
>
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (CXF-1244) Application Exception not serialized
properly
Posted by "Thomas Diesler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Diesler reopened CXF-1244:
---------------------------------
Still failing with cxf.version=2.0.4-incubator
> Application Exception not serialized properly
> ---------------------------------------------
>
> Key: CXF-1244
> URL: https://issues.apache.org/jira/browse/CXF-1244
> Project: CXF
> Issue Type: Sub-task
> Affects Versions: 2.0.3
> Reporter: Thomas Diesler
> Assignee: Daniel Kulp
> Fix For: 2.0.4
>
>
> /home/tdiesler/svn/jbossws/stack/cxf/trunk
> [tdiesler@tddell trunk]$ ant -Dtest=org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase one-test
> one-test:
> [junit] Running org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase
> [junit] Tests run: 3, Failures: 1, Errors: 0, Time elapsed: 7.246 sec
> [junit] Test org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase FAILED
> Testcase: testRuntimeException took 4.953 sec
> Testcase: testSoapFaultException took 0.258 sec
> Testcase: testApplicationException took 0.306 sec
> FAILED
> expected:<Some validation error> but was:<null>
> junit.framework.ComparisonFailure: expected:<Some validation error> but was:<null>
> at org.jboss.test.ws.jaxws.samples.exception.ExceptionTestCase.testApplicationException(ExceptionTestCase.java:125)
> public void testApplicationException() throws Exception
> {
> try
> {
> proxy.throwApplicationException();
> fail("Expected UserException");
> }
> catch (UserException_Exception e)
> {
> UserException ue = e.getFaultInfo();
> assertEquals("Some validation error", ue.getMessage());
> assertEquals("validation", ue.getErrorCategory());
> assertEquals(123, ue.getErrorCode());
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.