cancel
Showing results for 
Search instead for 
Did you mean: 

webservice communication error

Former Member
0 Kudos

Hello guys :

While trying to communicate with a Webservice with HTTPS, i am getting following error :

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="UNKNOWN">DeliveryException</SAP:Code>

<SAP:P1 />

<SAP:P2 />

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText>com.sap.aii.af.mp.module.ModuleException caused by: com.sap.aii.messaging.srt.BubbleException: failed to call the adapter engine [null "null"]; nested exception caused by: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE: at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:753) at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103) at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:252) at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0.process(ModuleProcessorLocalLocalObjectImpl0.java:103) at com.sap.aii.af.mp.soap.web.MessageServlet.callModuleProcessor(MessageServlet.java:155) at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:500) 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: com.sap.aii.messaging.srt.BubbleException: failed to call the adapter engine [null "null"]; nested exception caused by: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE: at com.sap.aii.af.mp.soap.ejb.AFCallerApplication.perform(AFCallerApplication.java:122) at com.sap.aii.messaging.srt.ApplicationBubble.onMessage(ApplicationBubble.java:29) at com.sap.aii.messaging.srt.ExtensionBubble.onMessage(ExtensionBubble.java:56) at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:608) ... 21 more Caused by: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE: at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:451) at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:127) at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:832) at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56) at com.sap.engine.frame.core.thread.Task.run(Task.java:64) at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79) at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)</SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

It talks about java.security.AccessController.doPrivileged(Native Method) does it refer to any security previlege ?

I see it working using xmlspy

Please suggest

Krishna

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>>com.sap.aii.messaging.srt.BubbleException: failed to call the adapter engine [null "null"];

did you specify all values in the receiver soap adapter?

1. if your service requires authentication

did you specify the user and pass?

2. if you service requests a certificate from the client, you need to set the indicator configure certificate

and put keystore entry and view

also check the rest of the parameters

Regards,

michal

Former Member
0 Kudos

Thanks for your message, well here is the log in the adapter engine

As i see the log says some thing like response message received, does it mean its communicating with the webservice i am trying to reach and then popping some msg.

I dont see any error msg in the logs of SAP XI system though.

Time Stamp Status Description

2006-06-12 17:19:34 Success The message was successfully received by the messaging system. Profile: XI URL: http://<Xiserv>:50000/MessagingSystem/receive/AFW/XI

2006-06-12 17:19:34 Success Using connection AFW. Trying to put the message into the request queue.

2006-06-12 17:19:34 Success Message successfully put into the queue.

2006-06-12 17:19:34 Success The message was successfully retrieved from the request queue.

2006-06-12 17:19:34 Success The message status set to DLNG.

2006-06-12 17:19:34 Success Delivering to channel: PWCSync_SOAP

2006-06-12 17:19:34 Success SOAP: request message entering the adapter

2006-06-12 17:19:36 Success SOAP: completed the processing

2006-06-12 17:19:36 Success SOAP: response message received ea367b00-fa69-11da-9156-000bcdcbae96

2006-06-12 17:19:36 Error SOAP: response message contains an error XIServer/UNKNOWN/DeliveryException - com.sap.aii.af.mp.module.ModuleException caused by: com.sap.aii.messaging.srt.BubbleException: failed to call the adapter engine [null "null"]; nested exception caused by: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE: at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:753) at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103) at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:252) at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0.process(ModuleProcessorLocalLocalObjectImpl0.java:103) at com.sap.aii.af.mp.soap.web.MessageServlet.callModuleProcessor(MessageServlet.java:155) at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:500) 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: com.sap.aii.messaging.srt.BubbleException: failed to call the adapter engine [null "null"]; nested exception caused by: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE: at com.sap.aii.af.mp.soap.ejb.AFCallerApplication.perform(AFCallerApplication.java:122) at com.sap.aii.messaging.srt.ApplicationBubble.onMessage(ApplicationBubble.java:29) at com.sap.aii.messaging.srt.ExtensionBubble.onMessage(ExtensionBubble.java:56) at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:608) ... 21 more Caused by: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE: at com.sap.aii.adapter.xi.ms.XIEventHandler.onTransmit(XIEventHandler.java:451) at com.sap.aii.af.ra.ms.impl.core.queue.CallConsumer.onMessage(CallConsumer.java:127) at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:832) at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56) at com.sap.engine.frame.core.thread.Task.run(Task.java:64) at com.sap.engine.core.thread.impl5.SingleThread.execute(SingleThread.java:79) at com.sap.engine.core.thread.impl5.SingleThread.run(SingleThread.java:150)

2006-06-12 17:19:36 Success The message status set to DLVD.

2006-06-12 17:19:36 Success The message was successfully delivered to the application using connection AFW.

Krishna

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

is your WS sync or async?

if sync you sould see the error in the reponse

Regards,

michal

moorthy
Active Contributor
0 Kudos

Hi Krishna,

1) check your wsdl structure is (input to WebService) is mapped correctly i.e your input message to webservice is in correct format?

2) check the SOAP Receiver Adapter configurations- mainly Target URL- it should be wsdl URL

3) and the Error tells that Response message has got error .. Is this Webservice Response is mapped correctly.. Try to check the mapping independently..

4) Also test your WebService independently

Hope this helps,

regards,

Moorthy

Former Member
0 Kudos

Hey Krishna,

I also got a similar error , it worked when there is some error w.r.t. WSDL w.r.t URL. i created my own response message which is exact replica of the response msg in wsdl and with the name space as i received in response. it worked .

I got the exact dump as u got and with this it works, please check there is any mapping w.r.t. name space or any wsdl related settings

Thanks,

Vara

[Please reward points for posting]

Answers (1)

Answers (1)

Former Member
0 Kudos

Krishna,

Check /people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi

and also Note: 856597 (first 2 questions)

-Naveen.

Former Member
0 Kudos

Thanks i got it working i solved it earlier.