java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.<init>(String.java(Compiled Code))

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Oracle Community by 843797, 1 year ago
String index out of range: -1 at java.lang.String.<init>(String.java(Compiled Code))
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.<init>(String.java(Compiled Code))
at COM.ibm.db2.jdbc.app.DB2Clob.getSubString(DB2Clob.java:203)
at com.ibm.vap.converters.streams.VapStreamToObjectConverter.stringFromClob(VapStreamToObjectConverter.java:69)
at com.ibm.vap.converters.streams.VapAsciiStreamToObjectConverter.objectFrom(VapAsciiStreamToObjectConverter.java:28)
at dps.sar.ejb.EJSJDBCPersisterCMPGm_sar_nar_tbBean.hydrate(EJSJDBCPersisterCMPGm_sar_nar_tbBean.java:117)
at dps.sar.ejb.EJSJDBCPersisterCMPGm_sar_nar_tbBean.load(EJSJDBCPersisterCMPGm_sar_nar_tbBean.java:142)
at com.ibm.ejs.container.ContainerManagedBeanO.load(ContainerManagedBeanO.java:372)
at com.ibm.ejs.container.ContainerManagedBeanO.load(ContainerManagedBeanO.java:399)
at com.ibm.ejs.container.EntityBeanO.enlist(EntityBeanO.java:389)
at com.ibm.ejs.container.activator.OptCEntityActivationStrategy.atActivate(OptCEntityActivationStrategy.java:103)
at com.ibm.ejs.container.activator.Activator.activateBean(Activator.java:168)
at com.ibm.ejs.container.EJSContainer.activateBean(EJSContainer.java:1259)
at com.ibm.ejs.container.EJSHome.activateBean(EJSHome.java:671)
at dps.sar.ejb.EJSJDBCPersisterCMPGm_sar_nar_tbBean.findByPrimaryKey(EJSJDBCPersisterCMPGm_sar_nar_tbBean.java:261)
at dps.sar.ejb.EJSCMPGm_sar_nar_tbHomeBean.findByPrimaryKey(EJSCMPGm_sar_nar_tbHomeBean.java:54)
at dps.sar.ejb.EJSRemoteCMPGm_sar_nar_tbHome.findByPrimaryKey(EJSRemoteCMPGm_sar_nar_tbHome.java:53)
at dps.sar.ejb._Gm_sar_nar_tbHome_Stub.findByPrimaryKey(_Gm_sar_nar_tbHome_Stub.java:281)
at dps.sar.ejb.Gm_sar_nar_tbFactory.findByPrimaryKey(Gm_sar_nar_tbFactory.java:72)
at dps.sar.bean.SarReportBeanBean.loadElement(SarReportBeanBean.java:199)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.