[jboss-jira] [JBoss JIRA] Updated: (AS7-922) Annotation Scanner should tell you which class could not be indexed

Tomaz Cerar (JIRA) jira-events at lists.jboss.org
Thu Jun 2 16:22:59 EDT 2011


     [ https://issues.jboss.org/browse/AS7-922?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Cerar updated AS7-922:
----------------------------

    Git Pull Request: https://github.com/jbossas/jboss-as/pull/46, https://github.com/jbossas/jandex/pull/1  (was: https://github.com/jbossas/jboss-as/pull/46)


I have provided also fix for jandex to throw IOException as jaikiran suggested

now stacktrace looks like this:


        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)         ... 4 more
Caused by: java.io.IOException: Could not index class com/parsek/slns/ecommerce/ws/jaxws/LoadTxResponse.class in archive '"/c:/development/jboss-7.0.0.Beta4-SNAPSHOT/bin/content/sdif-store.ear/lib/stores-payments-7.0.0.jar"'
        at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:105)
        ... 5 more
Caused by: java.io.IOException: Invalid Magic
        at org.jboss.jandex.Indexer.verifyMagic(Indexer.java:389)
        at org.jboss.jandex.Indexer.index(Indexer.java:628)

> Annotation Scanner should tell you which class could not be indexed
> -------------------------------------------------------------------
>
>                 Key: AS7-922
>                 URL: https://issues.jboss.org/browse/AS7-922
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: MSC
>    Affects Versions: 7.0.0.CR1
>         Environment: Windows 7, Java 6 u21
>            Reporter: Tomaz Cerar
>
> When trying to deploy ear application as throws you cryptic error msg "Invalid Magic" while it is trying to index annotations.
> currently stacktrace is like this:
> Caused by: java.lang.RuntimeException: Invalid Magic
>         at org.jboss.jandex.Indexer.verifyMagic(Indexer.java:389)
>         at org.jboss.jandex.Indexer.index(Indexer.java:628)
>         at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:102)
> The fix provided shows user which class failed indexing and in which archive.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list