2 Replies Latest reply on Nov 14, 2007 9:59 AM by adrian.brock

    Great error message!

      I got this error message:

      Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
       at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:653)
       at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:460)
       at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:286)
       at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
       at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
       at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
       at java.lang.Class.initAnnotationsIfNecessary(Class.java:3031)
       at java.lang.Class.getAnnotation(Class.java:2989)
       at org.jboss.aop.annotation.AnnotationElement$AnnotationElementAction$1.getVisibleAnnotation(AnnotationElement.java:264)
       at org.jboss.aop.annotation.AnnotationElement.getVisibleAnnotation(AnnotationElement.java:114)
       at org.jboss.aop.Advisor.resolveAnnotation(Advisor.java:356)
       at org.jboss.ejb3.Ejb3AnnotationHandler.validateMDBTransactionAttribute(Ejb3AnnotationHandler.java:179)
       at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:155)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:499)
       at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:459)
       at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:441)
       at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:407)
       at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:349)
       at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:133)
       ... 62 more
      22:43:23,548 WARN [MainDeployer] Failed to deploy: file:/home/ejort/jboss-head/ejb3/output/test-lib/quartzmdb.jar
      


      It was actually trying to tell me that my interceptor class wasn't deployed. :-)
      It's referenced in an annotation.

        • 1. Re: Great error message!
          wolfc

          Well, you're not showing the entire trace, but my guess is it won't get any better. :-)

          Raise a Jira. I hate these kind of errors.

          • 2. Re: Great error message!

             

            "wolfc" wrote:
            Well, you're not showing the entire trace, but my guess is it won't get any better. :-)

            Raise a Jira. I hate these kind of errors.


            The only way to fix it would be to not use Class.getAnnotation{s}()
            and instead do it ourselves with javassist.

            I'm more inclined to raise it as a bug with Sun (need to test it
            with the latest Java6). It should at least give some indication of the missing class. :-)