cancel
Showing results for 
Search instead for 
Did you mean: 

Error while calling Java Web Dynpro

0 Kudos
56

Dear Experts,

We have succecfully implemeneted our java stack but when i click on Web dynpro link i receieve following error on my browser, please help me. Thanks.

The error is:

java.lang.StringIndexOutOfBoundsException: String index out of range: 21

at java.lang.String.substring(String.java:1441)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.fillStaticTemplateContext(HtmlClient.java:516)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:1213)

at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:252)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doRetrieveData(WindowPhaseModel.java:595)

at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:156)

at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)

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

at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)

at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)

at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)

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

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

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)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Open an OSS message (BC-WD-CLT-HTML).

Armin

Answers (4)

Answers (4)

0 Kudos

Dear All,

I've finally raise a support message to SAP for my issue and they reply to patch my java software.

Well i am closing this thread.

Beat regards,

Basis Team

Former Member
0 Kudos

Hi,

What exactly did you patch? When you say java software, did you mean the JDK or any component of your AS JAVA system?

Please help out as I am also facing this issue.

Thanks,

Shitij

0 Kudos

Dear ganga,

we haven't done any development yet, we only install the java stack and access webdynpro through web but when i try to click the link of webdynpro it gives me the error which i mentioned in my message. Furthermore, visual administrator and config tool are working fine even when i access web services menu through browser it shows me the info without any error. Please guide me and help me to solve this problem.

thanks,

basis team

Former Member
0 Kudos

Hi,

If you have done any custom development, please post the code

regards,

ganga

Former Member
0 Kudos

Hi

When you call the method substring in your code, you is pass an index higher then your string variable size. For example, your variable have the value "my_variable", the size is 11, the first index is 0, and the last index is 10. If you pass the value 11,12, 13 or higher to the method substring, you will throw this error.

Regards

Marcos