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

Oracle Community | AntonyRaj | 6 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    Error in running OAF page from server:

    Oracle Community | 6 years ago | AntonyRaj
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  2. 0

    OAF page button issue: Critical

    Oracle Community | 8 years ago | 573663
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  3. 0
    samebug tip
    Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If you have a line in a hibernate mapping file like this: <property name="" /> the result is this error message: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:444) at org.hibernate.mapping.Column.setName(Column.java:60) at org.hibernate.cfg.HbmBinder.bindColumns(HbmBinder.java:1033) at org.hibernate.cfg.HbmBinder.bindColumnsOrFormula(HbmBinder.java:1437) at org.hibernate.cfg.HbmBinder.bindSimpleValue(HbmBinder.java:1069) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1982) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1940) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:324) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:238) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:109) at org.hibernate.cfg.Configuration.add(Configuration.java:385) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:426) at org.hibernate.cfg.Configuration.addResource(Configuration.java:481) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1443) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1411) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1392) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1368) at org.hibernate.cfg.Configuration.configure(Configuration.java:1288) at org.hibernate.cfg.Configuration.configure(Configuration.java:1274) at com.loren.SimpleExample.startHibernate(SimpleExample.java:37) at com.loren.SimpleExample.main(SimpleExample.java:45) The user should get a clearer error message, not a strack trace that looks like an internal hibernate programming error.

    Hibernate JIRA | 1 decade ago | Loren Rosen
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  6. 0

    If you have a line in a hibernate mapping file like this: <property name="" /> the result is this error message: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:444) at org.hibernate.mapping.Column.setName(Column.java:60) at org.hibernate.cfg.HbmBinder.bindColumns(HbmBinder.java:1033) at org.hibernate.cfg.HbmBinder.bindColumnsOrFormula(HbmBinder.java:1437) at org.hibernate.cfg.HbmBinder.bindSimpleValue(HbmBinder.java:1069) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1982) at org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1940) at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:324) at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:238) at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:109) at org.hibernate.cfg.Configuration.add(Configuration.java:385) at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:426) at org.hibernate.cfg.Configuration.addResource(Configuration.java:481) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1443) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1411) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1392) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1368) at org.hibernate.cfg.Configuration.configure(Configuration.java:1288) at org.hibernate.cfg.Configuration.configure(Configuration.java:1274) at com.loren.SimpleExample.startHibernate(SimpleExample.java:37) at com.loren.SimpleExample.main(SimpleExample.java:45) The user should get a clearer error message, not a strack trace that looks like an internal hibernate programming error.

    Hibernate JIRA | 1 decade ago | Loren Rosen
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: 0

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:444)
    1 frame
  3. oracle.cabo.ui
    BaseUINode.render
    1. oracle.cabo.ui.laf.base.xhtml.ButtonRenderer._getOnClickJS(Unknown Source)
    2. oracle.cabo.ui.laf.base.xhtml.ButtonRenderer.getOnClick(Unknown Source)
    3. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.renderEventHandlers(Unknown Source)
    4. oracle.cabo.ui.laf.base.xhtml.LinkRenderer.renderEventHandlers(Unknown Source)
    5. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.renderAttributesExceptID(Unknown Source)
    6. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.renderAttributes(Unknown Source)
    7. oracle.cabo.ui.laf.base.xhtml.LinkRenderer.renderAttributes(Unknown Source)
    8. oracle.cabo.ui.laf.base.xhtml.ButtonRenderer.renderAttributes(Unknown Source)
    9. oracle.cabo.ui.laf.base.xhtml.ButtonRenderer.prerender(Unknown Source)
    10. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    11. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    12. oracle.cabo.ui.laf.base.xhtml.LinkRenderer.render(Unknown Source)
    13. oracle.cabo.ui.laf.oracle.desktop.ButtonRenderer.renderAltContent(Unknown Source)
    14. oracle.cabo.ui.laf.oracle.desktop.ButtonRenderer.renderContent(Unknown Source)
    15. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    16. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    17. oracle.cabo.ui.laf.oracle.desktop.ButtonRenderer.render(Unknown Source)
    18. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    19. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    20. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    21. oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
    22. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    23. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    24. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    25. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    26. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    27. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    28. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    29. oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
    30. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    31. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    32. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    33. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    34. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    35. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    36. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    37. oracle.cabo.ui.composite.ContextPropertyUINode$Rndr.render(Unknown Source)
    38. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    39. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    40. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    41. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    42. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    43. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    44. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    45. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    46. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    47. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    48. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    49. oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
    50. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    51. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    52. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    53. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    54. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    55. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    56. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    57. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    58. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    59. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    60. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    61. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    62. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    63. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    64. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    65. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    66. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    67. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    68. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    69. oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
    70. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    71. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    72. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    73. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    74. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    75. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    76. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    77. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    78. oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(Unknown Source)
    79. oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
    80. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    81. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    82. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    83. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    84. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    85. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    86. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    87. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    88. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    89. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    90. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    91. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    92. oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
    93. oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
    94. oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
    95. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    96. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    97. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    98. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    99. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    100. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    101. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    102. oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
    103. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    104. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    105. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    106. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    107. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    108. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    109. oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
    110. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    111. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    111 frames
  4. oracle.apps.fnd
    OABodyBean.render
    1. oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
    1 frame
  5. oracle.cabo.ui
    PartialPageUtils.renderPartialPage
    1. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    2. oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
    3. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    4. oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
    5. oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
    6. oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
    7. oracle.cabo.ui.BaseRenderer.render(Unknown Source)
    8. oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
    9. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    10. oracle.cabo.ui.BaseUINode.render(Unknown Source)
    11. oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
    11 frames
  6. oracle.apps.fnd
    OAPageBean.renderDocument
    1. oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3285)
    2. oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2936)
    3. oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2743)
    3 frames
  7. oa_html
    _OA._jspService
    1. oa_html._OA._jspService(_OA.java:101)
    1 frame
  8. oracle.jsp.runtime
    HttpJsp.service
    1. oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    1 frame
  9. oracle.jsp.app
    JspApplication.dispatchRequest
    1. oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    1 frame
  10. oracle.jsp
    JspServlet.service
    1. oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    2. oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    3. oracle.jsp.JspServlet.service(JspServlet.java:156)
    3 frames
  11. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    1 frame
  12. oracle.jsp.provider
    Jsp20RequestDispatcher.forward
    1. oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    1 frame
  13. oracle.jsp.runtime
    OraclePageContext.forward
    1. oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    1 frame
  14. oa_html
    _OA._jspService
    1. oa_html._OA._jspService(_OA.java:94)
    1 frame
  15. oracle.jsp.runtime
    HttpJsp.service
    1. oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    1 frame
  16. oracle.jsp.app
    JspApplication.dispatchRequest
    1. oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    1 frame
  17. oracle.jsp
    JspServlet.service
    1. oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    2. oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    3. oracle.jsp.JspServlet.service(JspServlet.java:156)
    3 frames
  18. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    1 frame
  19. oracle.jsp.provider
    Jsp20RequestDispatcher.forward
    1. oracle.jsp.provider.Jsp20RequestDispatcher.forward(Jsp20RequestDispatcher.java:162)
    1 frame
  20. oracle.jsp.runtime
    OraclePageContext.forward
    1. oracle.jsp.runtime.OraclePageContext.forward(OraclePageContext.java:187)
    1 frame
  21. oa_html
    _RF._jspService
    1. oa_html._RF._jspService(_RF.java:102)
    1 frame
  22. oracle.jsp.runtime
    HttpJsp.service
    1. oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
    1 frame
  23. oracle.jsp.app
    JspApplication.dispatchRequest
    1. oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
    1 frame
  24. oracle.jsp
    JspServlet.service
    1. oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
    2. oracle.jsp.JspServlet.internalService(JspServlet.java:186)
    3. oracle.jsp.JspServlet.service(JspServlet.java:156)
    3 frames
  25. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
    1 frame
  26. org.apache.jserv
    JServConnection.run
    1. org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
    2. org.apache.jserv.JServConnection.run(JServConnection.java:294)
    2 frames
  27. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:534)
    1 frame