java.lang.ArrayIndexOutOfBoundsException: 193

Spring JIRA | Tom van den Berge | 9 months ago
  1. 0

    I'm getting an exception when starting up my Spring Boot application: {code:java} java.lang.ArrayIndexOutOfBoundsException: 193 at org.springframework.asm.ClassReader.readLabel(ClassReader.java:2185) at org.springframework.asm.ClassReader.readTypeAnnotations(ClassReader.java:1614) ... {code} It seems that when my classes are inspected for annotations, ClassReader (Spring 4.2.5) chokes on one of my classes containing Java-8 type annotations. This is extremely unfortunate, because it means that I can't use Spring annotations in combination with type annotations. I've attached a very small (maven) project that reproduces the problem. All you need to do is run "mvn test". The included unit test attempts to read the problematic class file using org.springframework.asm.ClassReader, and gives the same exception as above. The class that can't be read is {code:java} public class Problem implements Interface<String> { public void serialize(String request) { Map<String, @Nullable Object> values = new HashMap<>(); values.clear(); } } {code} The @Nullable type annotation is from org.eclipse.jdt.annotation 2.0.0. I've included the source code in the attached project. And the interface: {code:java} public interface Interface<T> { void serialize(T request); } {code} Without the interface, the problem doesn't occur. Also the type parameter is essential to reproduce the problem. What is also surprising, is that when the class is not compiled by maven (javac), but by Eclipse, the problem does not occur. It would be great to know if there is a workaround for this problem, e.g. compiler settings that can be included in the pom file.

    Spring JIRA | 9 months ago | Tom van den Berge
    java.lang.ArrayIndexOutOfBoundsException: 193
  2. 0

    I'm getting an exception when starting up my Spring Boot application: {code:java} java.lang.ArrayIndexOutOfBoundsException: 193 at org.springframework.asm.ClassReader.readLabel(ClassReader.java:2185) at org.springframework.asm.ClassReader.readTypeAnnotations(ClassReader.java:1614) ... {code} It seems that when my classes are inspected for annotations, ClassReader (Spring 4.2.5) chokes on one of my classes containing Java-8 type annotations. This is extremely unfortunate, because it means that I can't use Spring annotations in combination with type annotations. I've attached a very small (maven) project that reproduces the problem. All you need to do is run "mvn test". The included unit test attempts to read the problematic class file using org.springframework.asm.ClassReader, and gives the same exception as above. The class that can't be read is {code:java} public class Problem implements Interface<String> { public void serialize(String request) { Map<String, @Nullable Object> values = new HashMap<>(); values.clear(); } } {code} The @Nullable type annotation is from org.eclipse.jdt.annotation 2.0.0. I've included the source code in the attached project. And the interface: {code:java} public interface Interface<T> { void serialize(T request); } {code} Without the interface, the problem doesn't occur. Also the type parameter is essential to reproduce the problem. What is also surprising, is that when the class is not compiled by maven (javac), but by Eclipse, the problem does not occur. It would be great to know if there is a workaround for this problem, e.g. compiler settings that can be included in the pom file.

    Spring JIRA | 9 months ago | Tom van den Berge
    java.lang.ArrayIndexOutOfBoundsException: 193
  3. 0

    [40cat] set request parameter exception when ide is empty

    Netbeans Bugzilla | 1 decade ago | deltree
    java.lang.ArrayIndexOutOfBoundsException: 0 at org.netbeans.modules.web.core.EditQueryStringAction.performAction(EditQueryStringAction.java:43) at org.openide.util.actions.NodeAction.performAction(NodeAction.java:193) at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78) at org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247) at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    set request parameter exception when ide is empty

    Netbeans Bugzilla | 1 decade ago | deltree
    java.lang.ArrayIndexOutOfBoundsException: 0 at org.netbeans.modules.web.core.EditQueryStringAction.performAction(EditQueryStringAction.java:43) at org.openide.util.actions.NodeAction.performAction(NodeAction.java:193) at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78) at org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247) at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  6. 0

    ArrayIndexOutOfBoundsException

    proguard | 1 decade ago | mikaeltoulouse
    java.lang.ArrayIndexOutOfBoundsException: -27310 at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlock(StackSizeUpdater.java:309) at proguard.classfile.editor.StackSizeUpdater.visitBranchInstruction(StackSizeUpdater.java:170) at proguard.classfile.instruction.BranchInstruction.accept(BranchInstruction.java:104) at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlock(StackSizeUpdater.java:344) at proguard.classfile.editor.StackSizeUpdater.visitBranchInstruction(StackSizeUpdater.java:170) at proguard.classfile.instruction.BranchInstruction.accept(BranchInstruction.java:104) at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlock(StackSizeUpdater.java:344) at proguard.classfile.editor.StackSizeUpdater.visitBranchInstruction(StackSizeUpdater.java:184) at proguard.classfile.instruction.BranchInstruction.accept(BranchInstruction.java:104) at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlock(StackSizeUpdater.java:344) at proguard.classfile.editor.StackSizeUpdater.visitBranchInstruction(StackSizeUpdater.java:170) at proguard.classfile.instruction.BranchInstruction.accept(BranchInstruction.java:104) at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlock(StackSizeUpdater.java:344) at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlocks(StackSizeUpdater.java:269) at proguard.classfile.editor.StackSizeUpdater.visitTableSwitchInstruction(StackSizeUpdater.java:202) at proguard.classfile.instruction.TableSwitchInstruction.accept(TableSwitchInstruction.java:129) at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlock(StackSizeUpdater.java:344) at proguard.classfile.editor.StackSizeUpdater.visitBranchInstruction(StackSizeUpdater.java:170) at proguard.classfile.instruction.BranchInstruction.accept(BranchInstruction.java:104) at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlock(StackSizeUpdater.java:344) at proguard.classfile.editor.StackSizeUpdater.visitBranchInstruction(StackSizeUpdater.java:170) at proguard.classfile.instruction.BranchInstruction.accept(BranchInstruction.java:104) at proguard.classfile.editor.StackSizeUpdater.evaluateInstructionBlock(StackSizeUpdater.java:344) at proguard.classfile.editor.StackSizeUpdater.visitCodeAttrInfo(StackSizeUpdater.java:123) at proguard.classfile.editor.CodeAttrInfoEditor.visitCodeAttrInfo(CodeAttrInfoEditor.java:262) at proguard.classfile.editor.ConstantPoolRemapper.visitCodeAttrInfo(ConstantPoolRemapper.java:287) at proguard.classfile.attribute.CodeAttrInfo.accept(CodeAttrInfo.java:134) at proguard.classfile.ProgramMethodInfo.attributesAccept(ProgramMethodInfo.java:76) at proguard.classfile.editor.ConstantPoolRemapper.visitMemberInfo(ConstantPoolRemapper.java:206) at proguard.classfile.editor.ConstantPoolRemapper.visitProgramMethodInfo(ConstantPoolRemapper.java:193) at proguard.classfile.ProgramMethodInfo.accept(ProgramMethodInfo.java:68) at proguard.classfile.ProgramClassFile.methodsAccept(ProgramClassFile.java:507) at proguard.classfile.editor.ConstantPoolRemapper.visitProgramClassFile(ConstantPoolRemapper.java:91) at proguard.classfile.editor.ConstantPoolSorter.visitProgramClassFile(ConstantPoolSorter.java:66) at proguard.classfile.ProgramClassFile.accept(ProgramClassFile.java:400) at proguard.classfile.ClassPool.classFilesAccept(ClassPool.java:126) at proguard.ProGuard.sortConstantPools(ProGuard.java:318)

    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.ArrayIndexOutOfBoundsException

      193

      at org.springframework.asm.ClassReader.readLabel()
    2. Spring Core
      ClassReader.readTypeAnnotations
      1. org.springframework.asm.ClassReader.readLabel(ClassReader.java:2185)
      2. org.springframework.asm.ClassReader.readTypeAnnotations(ClassReader.java:1614)
      2 frames