[Logo]
Forums Register Login
Error on page
Cant figure out the error may be you could help me?


java.lang.StringIndexOutOfBoundsException: String index out of range: 5
at java.lang.String.substring(String.java:1522)
at FileSize.CheckFileSize.round(CheckFileSize.java:69)
at FileSize.CheckFileSize.dispSize(CheckFileSize.java:59)
at _addproduct._jspService(_addproduct.java:90)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
Jherald,
According to the message, you are calling substring on a string that is too short. Try outputing the string (and commenting out the substring call) to see what is getting passed. Better yet, add an if statement to check the length before calling substring.

This thread has been viewed 1004 times.

All times above are in ranch (not your local) time.
The current ranch time is
Sep 25, 2018 00:44:01.