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

Oracle Community | AntonyRaj | 5 years ago
  1. 0

    Error in running OAF page from server:

    Oracle Community | 5 years ago | AntonyRaj
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  2. 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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    500 Internal Server Error

    Oracle Community | 1 decade ago | GcG-Italia
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  6. 0

    How to know which button being clicked??

    Coderanch | 7 years ago | ethaniel landfough
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0

  1. harshg 2 times, last 2 months ago
  2. balintn 4 times, last 3 months ago
  3. poroszd 1 times, last 3 months ago
  4. Stefan Braune 1 times, last 5 months ago
  5. mauritius 1 times, last 5 months ago
6 more registered users
18 unregistered visitors
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
    ButtonRenderer.getOnClick
    1. oracle.cabo.ui.laf.base.xhtml.ButtonRenderer._getOnClickJS(Unknown Source)
    2. oracle.cabo.ui.laf.base.xhtml.ButtonRenderer.getOnClick(Unknown Source)
    2 frames