Announcement Announcement Module
Collapse
No announcement yet.
Jboss: ArrayIndexOutOfBoundsException in org.springframework.asm.ClassReader Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jboss: ArrayIndexOutOfBoundsException in org.springframework.asm.ClassReader

    Hi guys!

    I have web-based spring (3.0.5 version) application deployed on Jboss 5.1.0

    Some time ago I have made some project refactoring () and changed/moved a lot of classes and spring's configs.

    Since this time jboss cannot deploy my application with strange error:
    PHP Code:
    ..
    22:47:42,121  INFO (           main) [                   STDOUT22:47:42,121 INFO  [XmlBeanDefinitionReaderLoading XML bean definitions from ServletContext resource [/WEB-INF/classes/spring/app-config.xml]
    22:47:42,810  INFO (           main) [                   STDOUT22:47:42,768 ERROR [ContextLoaderContext initialization failed
    org
    .springframework.beans.factory.BeanDefinitionStoreExceptionFailed to read candidate component class: FileHandler@13910568[path=ScoreCard.ear/ScoreCard.war/WEB-INF/classes/com/lex/scoreCard/web/config/ControllerToJsPanelMapping.class context=file:/C:/java/views/third-party/jboss/jboss-5.1.0.GA/s
    erver
    /ScoreCard/deployreal=file:/C:/java/views/third-party/jboss/jboss-5.1.0.GA/server/ScoreCard/deploy/ScoreCard.ear/ScoreCard.war/WEB-INF/classes/com/lex/scoreCard/web/config/ControllerToJsPanelMapping.class]; nested exception is java.lang.ArrayIndexOutOfBoundsException944
    ....
    Caused byjava.lang.ArrayIndexOutOfBoundsException944
            at org
    .springframework.asm.ClassReader.<init>(Unknown Source)
            
    at org.springframework.asm.ClassReader.<init>(Unknown Source)
            
    at org.springframework.asm.ClassReader.<init>(Unknown Source)
            
    at org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:48)
    ... 
    I have attached full jboss log and app-config.xml. Please find them in zip-file in attachment.

    Unfortunately there are no sources for package org.springframework.asm in spring sources and I cannot debug this issue.

    Did somebody face such issue and solve it or know what can raise ArrayIndexOutOfBoundsException in ClassReader?


    Thanks,
    Alexey
    Last edited by re3lex; Feb 1st, 2011, 06:06 PM.

  • #2
    Please close this thread.

    Issue was fixed.

    Reason: In some cases sencha's JSBuilder2 added to all files its license text, so class-files were broken.

    Comment

    Working...
    X