Skip to Content
0
Former Member
Mar 13, 2007 at 03:34 PM

ESA service in CAF : Exception

20 Views

I have implemented an ESA service in CAF which has an Application Service with 5 operations.

All the 5 operations have been tested successfully with the Test UI of CAF.

Each operation of the Application has also been exposed as a webservice.

2 webservices already work fine and give proper output when tested using wsnavigator.

However When I test the 3rd wsdl using wsnavigator I get an exception as follows

com.sap.engine.services.ejb.exceptions.BaseRemoteException: Exception in method readDisb_R.

at com.sap.is.cmp.loan.disbursementbl.appsrv.disburseloan.disburseLoanObjectImpl0.readDisb_R(disburseLoanObjectImpl0.java:310)

at com.sap.is.cmp.loan.disbursementbl.appsrv.disburseloan.disburseLoan_Stub.readDisb_R(disburseLoan_Stub.java:168)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.engine.services.ejb.session.stateless_sp5.ObjectStubProxyImpl.invoke(ObjectStubProxyImpl.java:187)

at $Proxy172.readDisb_R(Unknown Source)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)

at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)

at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)

at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)

at SoapServlet.doPost(SoapServlet.java:51)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

Caused by: java.lang.ClassCastException

at com.sap.is.cmp.loan.disbursementbl.appsrv.datatypes.loanDisbReqRead_R.fromLocalInstance(loanDisbReqRead_R.java:259)

at com.sap.is.cmp.loan.disbursementbl.appsrv.disburseloan.disburseLoanBean.readDisb_R(disburseLoanBean.java:229)

at com.sap.is.cmp.loan.disbursementbl.appsrv.disburseloan.disburseLoanObjectImpl0.readDisb_R(disburseLoanObjectImpl0.java:259)

... 32 more

; nested exception is:

java.lang.ClassCastException

I have tried to debug the service when testing on wsnavigator and have found no propblems in the operation that has been implemented.

The errors are generated when the output is sent to the client.

Hope somebody knows and shares how to get the desired output. Any information on the exception will be useful.

Thanks and Regards,

Madhusudhan