java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

SpringSource Issue Tracker | Oliver Gierke | 5 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

    {noformat} java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:604) at java.util.ArrayList.get(ArrayList.java:382) at org.eclipse.jdt.internal.core.Buffer.notifyChanged(Buffer.java:260) at org.eclipse.jdt.internal.core.Buffer.close(Buffer.java:110) at org.eclipse.jdt.internal.core.Openable.closeBuffer(Openable.java:89) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:535) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241) at org.eclipse.jdt.internal.core.SearchableEnvironment.find(SearchableEnvironment.java:120) at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:294) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:145) at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getType(PackageBinding.java:141) at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.isViewedAsDeprecated(PackageBinding.java:225) at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.isViewedAsDeprecated(ReferenceBinding.java:1330) at org.eclipse.jdt.internal.compiler.ast.ASTNode.isTypeUseDeprecated(ASTNode.java:512) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.checkAndRecordImportBinding(CompilationUnitScope.java:1005) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInImports(CompilationUnitScope.java:499) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:533) at org.eclipse.jdt.internal.codeassist.SelectionEngine.selectType(SelectionEngine.java:1431) at org.eclipse.jdt.internal.core.NamedMember.resolveType(NamedMember.java:300) at org.eclipse.jdt.internal.core.NamedMember.resolveType(NamedMember.java:253) at org.springframework.ide.eclipse.core.java.JdtUtils.resolveClassName(JdtUtils.java:792) at org.springframework.ide.eclipse.core.java.JdtUtils.resolveClassNameBySignature(JdtUtils.java:806) at org.springframework.ide.eclipse.core.java.Introspector.getAllImplementedInterfaces(Introspector.java:309) at org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.processInterfaceMethods(JdtBasedAnnotationMetadata.java:151) at org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.init(JdtBasedAnnotationMetadata.java:78) at org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.<init>(JdtBasedAnnotationMetadata.java:51) at org.springframework.ide.eclipse.beans.core.metadata.model.AbstractAnnotationReadingMetadataProvider.getAnnotationMetadata(AbstractAnnotationReadingMetadataProvider.java:103) at org.springframework.ide.eclipse.beans.core.metadata.model.AbstractAnnotationReadingMetadataProvider.provideBeanMetadata(AbstractAnnotationReadingMetadataProvider.java:69) at org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob$1.run(BeanMetadataBuilderJob.java:198) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.attachMetadataToBean(BeanMetadataBuilderJob.java:191) at org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.attachMetadata(BeanMetadataBuilderJob.java:170) at org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.run(BeanMetadataBuilderJob.java:141) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {noformat}

    SpringSource Issue Tracker | 5 years ago | Oliver Gierke
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    {noformat} java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:604) at java.util.ArrayList.get(ArrayList.java:382) at org.eclipse.jdt.internal.core.Buffer.notifyChanged(Buffer.java:260) at org.eclipse.jdt.internal.core.Buffer.close(Buffer.java:110) at org.eclipse.jdt.internal.core.Openable.closeBuffer(Openable.java:89) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:535) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241) at org.eclipse.jdt.internal.core.SearchableEnvironment.find(SearchableEnvironment.java:120) at org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:294) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:145) at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getType(PackageBinding.java:141) at org.eclipse.jdt.internal.compiler.lookup.PackageBinding.isViewedAsDeprecated(PackageBinding.java:225) at org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.isViewedAsDeprecated(ReferenceBinding.java:1330) at org.eclipse.jdt.internal.compiler.ast.ASTNode.isTypeUseDeprecated(ASTNode.java:512) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.checkAndRecordImportBinding(CompilationUnitScope.java:1005) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInImports(CompilationUnitScope.java:499) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:533) at org.eclipse.jdt.internal.codeassist.SelectionEngine.selectType(SelectionEngine.java:1431) at org.eclipse.jdt.internal.core.NamedMember.resolveType(NamedMember.java:300) at org.eclipse.jdt.internal.core.NamedMember.resolveType(NamedMember.java:253) at org.springframework.ide.eclipse.core.java.JdtUtils.resolveClassName(JdtUtils.java:792) at org.springframework.ide.eclipse.core.java.JdtUtils.resolveClassNameBySignature(JdtUtils.java:806) at org.springframework.ide.eclipse.core.java.Introspector.getAllImplementedInterfaces(Introspector.java:309) at org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.processInterfaceMethods(JdtBasedAnnotationMetadata.java:151) at org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.init(JdtBasedAnnotationMetadata.java:78) at org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.<init>(JdtBasedAnnotationMetadata.java:51) at org.springframework.ide.eclipse.beans.core.metadata.model.AbstractAnnotationReadingMetadataProvider.getAnnotationMetadata(AbstractAnnotationReadingMetadataProvider.java:103) at org.springframework.ide.eclipse.beans.core.metadata.model.AbstractAnnotationReadingMetadataProvider.provideBeanMetadata(AbstractAnnotationReadingMetadataProvider.java:69) at org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob$1.run(BeanMetadataBuilderJob.java:198) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.attachMetadataToBean(BeanMetadataBuilderJob.java:191) at org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.attachMetadata(BeanMetadataBuilderJob.java:170) at org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.run(BeanMetadataBuilderJob.java:141) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) {noformat}

    SpringSource Issue Tracker | 5 years ago | Oliver Gierke
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. 0

    IndexOutOfBoundsException at Buffer.notifyChanged

    Eclipse Bugzilla | 4 years ago | mlippert
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.
  6. 0

    Build failure with the latest git code

    GitHub | 4 years ago | sanjana-bhat
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 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.IndexOutOfBoundsException

    Index: 0, Size: 0

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(ArrayList.java:604)
    2. java.util.ArrayList.get(ArrayList.java:382)
    2 frames
  3. JDT Core
    NamedMember.resolveType
    1. org.eclipse.jdt.internal.core.Buffer.notifyChanged(Buffer.java:260)
    2. org.eclipse.jdt.internal.core.Buffer.close(Buffer.java:110)
    3. org.eclipse.jdt.internal.core.Openable.closeBuffer(Openable.java:89)
    4. org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:535)
    5. org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255)
    6. org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241)
    7. org.eclipse.jdt.internal.core.SearchableEnvironment.find(SearchableEnvironment.java:120)
    8. org.eclipse.jdt.internal.core.SearchableEnvironment.findType(SearchableEnvironment.java:294)
    9. org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:145)
    10. org.eclipse.jdt.internal.compiler.lookup.PackageBinding.getType(PackageBinding.java:141)
    11. org.eclipse.jdt.internal.compiler.lookup.PackageBinding.isViewedAsDeprecated(PackageBinding.java:225)
    12. org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.isViewedAsDeprecated(ReferenceBinding.java:1330)
    13. org.eclipse.jdt.internal.compiler.ast.ASTNode.isTypeUseDeprecated(ASTNode.java:512)
    14. org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.checkAndRecordImportBinding(CompilationUnitScope.java:1005)
    15. org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInImports(CompilationUnitScope.java:499)
    16. org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:533)
    17. org.eclipse.jdt.internal.codeassist.SelectionEngine.selectType(SelectionEngine.java:1431)
    18. org.eclipse.jdt.internal.core.NamedMember.resolveType(NamedMember.java:300)
    19. org.eclipse.jdt.internal.core.NamedMember.resolveType(NamedMember.java:253)
    19 frames
  4. org.springframework.ide
    BeanMetadataBuilderJob$1.run
    1. org.springframework.ide.eclipse.core.java.JdtUtils.resolveClassName(JdtUtils.java:792)
    2. org.springframework.ide.eclipse.core.java.JdtUtils.resolveClassNameBySignature(JdtUtils.java:806)
    3. org.springframework.ide.eclipse.core.java.Introspector.getAllImplementedInterfaces(Introspector.java:309)
    4. org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.processInterfaceMethods(JdtBasedAnnotationMetadata.java:151)
    5. org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.init(JdtBasedAnnotationMetadata.java:78)
    6. org.springframework.ide.eclipse.core.java.annotation.JdtBasedAnnotationMetadata.<init>(JdtBasedAnnotationMetadata.java:51)
    7. org.springframework.ide.eclipse.beans.core.metadata.model.AbstractAnnotationReadingMetadataProvider.getAnnotationMetadata(AbstractAnnotationReadingMetadataProvider.java:103)
    8. org.springframework.ide.eclipse.beans.core.metadata.model.AbstractAnnotationReadingMetadataProvider.provideBeanMetadata(AbstractAnnotationReadingMetadataProvider.java:69)
    9. org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob$1.run(BeanMetadataBuilderJob.java:198)
    9 frames
  5. Eclipse Core
    SafeRunner.run
    1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    1 frame
  6. org.springframework.ide
    BeanMetadataBuilderJob.run
    1. org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.attachMetadataToBean(BeanMetadataBuilderJob.java:191)
    2. org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.attachMetadata(BeanMetadataBuilderJob.java:170)
    3. org.springframework.ide.eclipse.beans.core.metadata.internal.model.BeanMetadataBuilderJob.run(BeanMetadataBuilderJob.java:141)
    3 frames
  7. Eclipse Jobs
    Worker.run
    1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    1 frame