String index out of range: 256

Samebug tips1

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.


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1226

  • via Unknown by Sebastiao Gazolla C Jr,
  • via Unknown by Sebastiao Gazolla C Jr,
  • Stack trace

    • java.lang.StringIndexOutOfBoundsException: String index out of range: 256 at java.lang.String.charAt( at com.informix.jdbc.IfxDatabaseMetaData.getColumns( at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getColumns( at org.hibernate.cfg.reveng.JDBCReader.processBasicColumns( at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema( at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema( at org.hibernate.cfg.JDBCBinder.readDatabaseSchema( at org.hibernate.cfg.JDBCBinder.readFromDatabase( at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC( at org.hibernate.tool.ant.JDBCConfigurationTask.doConfiguration( at org.hibernate.tool.ant.ConfigurationTask.getConfiguration( at org.hibernate.tool.ant.HibernateToolTask.getConfiguration( at org.hibernate.tool.ant.HibernateToolTask.getProperties( at org.hibernate.tool.ant.ExporterTask.configureExporter( at org.hibernate.tool.ant.Hbm2JavaExporterTask.configureExporter( at org.hibernate.tool.ant.ExporterTask.execute( at org.hibernate.tool.ant.HibernateToolTask.execute( at at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at at at at at at at at at

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    14 times, last one
    Hiren AmaliyarHiren Amaliyar
    4 times, last one
    34 more bugmates