You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wsif-user@ws.apache.org by "Brand, Olivier" <Ol...@vodafone.com> on 2003/04/02 10:39:33 UTC

Exception handling - part 1 -> java binding

How does exception handling work in WSIF ? Are all exception wrapped in a WSIFException ???
I have generated the java object model using WSDL2java from Axis, some exceptions extending the AxisFault (ChargingServiceException) 
got generated and being used.
In one of my test case, I am throwing an exception but this exception is being caught as a WSIFException on the client side.

Here is the trace on the client:

 <system-err><![CDATA[org.apache.wsif.WSIFException: Operation failed!; nested exception is: 
	
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.generalException
 faultString: 
 faultActor: null
 faultDetail: 
	exceptionName: com.vodafone.global.charging.ChargingServiceException
	stackTrace: AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.generalException
 faultString: 
 faultActor: null
 faultDetail: 
	exceptionName: com.vodafone.global.charging.ChargingServiceException


	at com.vodafone.global.charging.SOAPChargingServiceImpl.getClearance(SOAPChargingServiceImpl.java:47)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(Unknown Source)
	at org.apache.wsif.base.WSIFClientProxy.invoke(Unknown Source)
	at $Proxy0.getClearance(Unknown Source)
	at com.vodafone.global.charging.client.ChargingGenericStubTest.testException(ChargingGenericStubTest.java:149)
	at java.lang.reflect.Method.invoke(Native Method)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:524)



	at com.vodafone.global.charging.SOAPChargingServiceImpl.getClearance(SOAPChargingServiceImpl.java:47)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.apache.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(Unknown Source)
	at org.apache.wsif.base.WSIFClientProxy.invoke(Unknown Source)
	at $Proxy0.getClearance(Unknown Source)
	at com.vodafone.global.charging.client.ChargingGenericStubTest.testException(ChargingGenericStubTest.java:149)
	at java.lang.reflect.Method.invoke(Native Method)
	at junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:325)
	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:524)
]]></system-err>

Olivier Brand
Senior Java Architect - Mobile Services and Integration
Global IT & Technology Management
Vodafone AG
Mannesmannufer 3 - 40213 Dusseldorf - Germany
Mobile: +49 172 2094646
E-Mail: olivier.brand@vodafone.com