cancel
Showing results for 
Search instead for 
Did you mean: 

ISession context

former_member211296
Participant
0 Kudos

Hi experts,

I often got this error message as Isessioncontext.

The error summary is:

java.lang.NoClassDefFoundError: com/tssap/dtr/client/lib/protocol/ISessionContext

at java.lang.Class.getDeclaredFields0(Native Method)

at java.lang.Class.privateGetDeclaredFields(Class.java:1522)

at java.lang.Class.getDeclaredField(Class.java:1214)

at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1474)

at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)

at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)

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

at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)

at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)

at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:453)

at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)

at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)

at java.io.ObjectInputStream.readObject(ObjectInputStream.java:322)

at com.sap.engine.services.rmi_p4.reflect.LocalInvocationHandler.replicateReturnValue(LocalInvocationHandler.java:112)

at com.sap.engine.services.rmi_p4.reflect.LocalInvocationHandler.invokeInternal(LocalInvocationHandler.java:89)

at com.sap.engine.services.rmi_p4.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:53)

at $Proxy259.getDestination(Unknown Source)

at com.nl.cv.clientreg.CV_LABEL_MESSAGES.executeRequest_LabelNameMessagesViDocument_getMessageText(CV_LABEL_MESSAGES.java:220)

at com.nl.cv.clientreg.wdp.InternalCV_LABEL_MESSAGES.executeRequest_LabelNameMessagesViDocument_getMessageText(InternalCV_LABEL_MESSAGES.java:253)

at com.nl.cv.clientreg.CV_ClientReg_comp_client.executeMessages(CV_ClientReg_comp_client.java:1202)

at com.nl.cv.clientreg.CV_ClientReg_comp_client.wdDoInit(CV_ClientReg_comp_client.java:163)

at com.nl.cv.clientreg.wdp.InternalCV_ClientReg_comp_client.wdDoInit(InternalCV_ClientReg_comp_client.java:5786)

at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:95)

at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)

at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)

at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:347)

at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:370)

at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:608)

at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)

at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)

at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)

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

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)

what is the reason for this error. Kindly let me know the procedure to overcome this.

Kind Regards,

Hariprasath.R

Message was edited by:

Hariprasath Ramalingam

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member211296
Participant
0 Kudos

Hi munna,

I added the httpclient.jar in the WD project library. But still the Isession context error is not solved.

and NWDS machine has the following .jar in the said location

(Drive):\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.tssap.dtr.client.vfs_2.0.0\httpclient.jar

Kind Regards,

Hariprasath.R

Former Member
0 Kudos

Hi hariprasath,

Right click on ur project.Open properties->libraries.Add exrernal jar & give the path for ur jar file.

If u have already done that,send the code what u r doin.

for me its working after adding the jar in project .

regards

Sumit

former_member211296
Participant
0 Kudos

Hi sumit,

I have implemented a webservice in my DC Project. I am invoking the methods of that webservice in the custom controller and the methods will be executed through JNDI lookup using HTTPDestination. When the execution reaches the following statement the ISessionContext error is raising.

final DestinationService dstService = (DestinationService)ctx.lookup(DestinationService.JNDI_KEY);

Kind Regards,

Hariprasath.R

Former Member
0 Kudos

Hi Hari:

Not sure about the NWDS Versioning part, but check whether your WebDynpro Machine (the NWDS installed machine) has the following JAR at the said location.

<u>(Drive):\Program Files\SAP\IDE\IDE70\eclipse\plugins\com.tssap.dtr.client.vfs_2.0.0\<b>httpclient.jar</b></u>

The directory structure may be different, because of different versions of WD. You can also simply search with <b>httpclient.jar</b> and place it in the WD Project Libraries and Run/Delpoy, hope it may solve your problems.

Tnx,

MS.

Former Member
0 Kudos

Definitely, the mentioned class (actually, interface) is not a part of part of NWDS version