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

Stack Overflow | John Lopez | 1 month ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    How to get all records of today date through Hibernate HSQL?

    Stack Overflow | 3 years ago | user3696143
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.String.charAt(String.java:658) at org.hibernate.type.descriptor.java.CharacterTypeDescriptor.wrap(CharacterTypeDescriptor.java:79) at org.hibernate.type.descriptor.java.CharacterTypeDescriptor.wrap(CharacterTypeDescriptor.java:33) at org.hibernate.type.descriptor.sql.VarcharTypeDescriptor$2.doExtract(VarcharTypeDescriptor.java:66) at org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:65) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:269) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:265) at org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:238) at org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.java:357) at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2701)
  2. 0

    Hibernate SQL Exception java.lang.StringIndexOutOfBoundsException: String index out of range

    Stack Overflow | 3 years ago | user3696143
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  3. 0

    Hibernate Transform Failiing... :(

    Coderanch | 4 years ago | Sreesanth Nair
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.lang.OutOfMemoryError Java heap space solution (Netbeans and Tomcat - Spring - Hibernate)

    Stack Overflow | 4 months ago | Shifat
    java.lang.OutOfMemoryError: Java heap space

  1. linxiaolong 1 times, last 1 month ago
  2. jokester 1 times, last 1 month ago
  3. tyson925 1 times, last 2 months ago
  4. Torasque 1 times, last 3 months ago
  5. Hronom 32257 times, last 3 months ago
11 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:646)
    1 frame
  3. Hibernate
    QueryImpl.list
    1. org.hibernate.type.descriptor.java.CharacterTypeDescriptor.wrap(CharacterTypeDescriptor.java:78)
    2. org.hibernate.type.descriptor.java.CharacterTypeDescriptor.wrap(CharacterTypeDescriptor.java:33)
    3. org.hibernate.type.descriptor.sql.VarcharTypeDescriptor$2.doExtract(VarcharTypeDescriptor.java:74)
    4. org.hibernate.type.descriptor.sql.BasicExtractor.extract(BasicExtractor.java:64)
    5. org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:263)
    6. org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:259)
    7. org.hibernate.type.AbstractStandardBasicType.nullSafeGet(AbstractStandardBasicType.java:249)
    8. org.hibernate.type.AbstractStandardBasicType.hydrate(AbstractStandardBasicType.java:334)
    9. org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2969)
    10. org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1695)
    11. org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1627)
    12. org.hibernate.loader.Loader.getRow(Loader.java:1514)
    13. org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:725)
    14. org.hibernate.loader.Loader.processResultSet(Loader.java:952)
    15. org.hibernate.loader.Loader.doQuery(Loader.java:920)
    16. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:354)
    17. org.hibernate.loader.Loader.doList(Loader.java:2551)
    18. org.hibernate.loader.Loader.doList(Loader.java:2537)
    19. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2367)
    20. org.hibernate.loader.Loader.list(Loader.java:2362)
    21. org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:496)
    22. org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:387)
    23. org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:229)
    24. org.hibernate.internal.SessionImpl.list(SessionImpl.java:1260)
    25. org.hibernate.internal.QueryImpl.list(QueryImpl.java:103)
    25 frames
  4. com.tricas.dao
    AnexoDaoImpl.anexos
    1. com.tricas.dao.AnexoDaoImpl.anexos(AnexoDaoImpl.java:20)
    1 frame
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  6. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
    3 frames
  7. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
    2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
    3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
    3 frames
  8. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
    2 frames
  9. com.sun.proxy
    $Proxy799.anexos
    1. com.sun.proxy.$Proxy799.anexos(Unknown Source)
    1 frame
  10. com.tricas.services
    AnexoService$$FastClassBySpringCGLIB$$fb0c453f.invoke
    1. com.tricas.services.AnexoService.getAllAnexo(AnexoService.java:19)
    2. com.tricas.services.AnexoService$$FastClassBySpringCGLIB$$fb0c453f.invoke(<generated>)
    2 frames