0 Replies Latest reply: Feb 27, 2012 9:14 AM by Prasanna Joshi RSS

Error in Web Srvice while SSO to RFC in the ECC system

Prasanna Joshi
Currently Being Moderated

Hello Folks,

 

 

I am creating an Web Service out of EJB to connect to ECC with an SSO(Logon ticket) based Modeldata JCo for which I get an error (Log provided below). When I create the Modeldata JCO with UserID/Pass it works fine.

 

 

Error Line : IWDJCOClientConnection client = WDSystemLandscape.getJCOClientConnection("WD_MODELDATA_TEST_SSO");

 

 

Error Message :

 

HTTP/1.1 200 OK

Connection: close

Server: SAP J2EE Engine/7.01

Content-Type: text/xml; charset=UTF-8

Date: Mon, 27 Feb 2012 04:41:07 GMT

 

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><rpl:ConnectResponse xmlns:rpl='urn:TestSSOProjectWSVi'><rpl:Response>

com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscapeException: Error while obtaining JCO connection.

     at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:152)

     at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:160)

     at com.sap.tc.webdynpro.services.sal.sl.api.WDSystemLandscape.getJCOClientConnection(WDSystemLandscape.java:41)

     at com.test.TestSSOProject.TestSSOProjectEJBBean.Connect(TestSSOProjectEJBBean.java:51)

     at com.test.TestSSOProject.TestSSOProjectEJBLocalLocalObjectImpl0_0.Connect(TestSSOProjectEJBLocalLocalObjectImpl0_0.java:103)

     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:331)

     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:401)

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

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

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

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

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

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

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

     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:104)

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

Caused by: com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Failed to resolve connection parameter for 'WD_MODELDATA_TEST_SSO'

     at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:649)

     at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter(JCOClientConnection.java:476)

     at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.init(AbstractJCOClientConnection.java:242)

     at com.sap.tc.webdynpro.serverimpl.core.sl.AbstractJCOClientConnection.<init>(AbstractJCOClientConnection.java:227)

     at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.<init>(JCOClientConnection.java:129)

     at com.sap.tc.webdynpro.serverimpl.wdc.sl.SystemLandscapeFactory.getJCOClientConnection(SystemLandscapeFactory.java:150)

     ... 29 more

Caused by: com.sap.tc.webdynpro.services.sal.um.api.WDUMException: No client user defined for the current request (no regular Web Dynpro request as ITask is null.

     at com.sap.tc.webdynpro.serverimpl.core.um.AbstractClientUserFactory.getCurrentUser(AbstractClientUserFactory.java:48)

     at com.sap.tc.webdynpro.services.sal.um.api.WDClientUser.getCurrentUser(WDClientUser.java:67)

     at com.sap.tc.webdynpro.serverimpl.wdc.sl.JCOClientConnection.resolveConnectionParameter4MsgServerJCODestination(JCOClientConnection.java:582)

     ... 34 more

   </rpl:Response></rpl:ConnectResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

 

Edited by: Prasanna Joshi on Feb 27, 2012 1:43 PM

Actions