Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1455

Add contextual information to TypeNotPresentException

    XMLWordPrintable

Details

    Description

      It would be nice if this exception would contain any form of hint to why/where it happened.

      Which Type is missing and where is it referenced from.

      In the current form it says;
      Failed to find something someone referenced somewhere.. have a nice week!

      Caught Exception

      11:28:18,435 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-10) MSC000001: Failed to start service jboss.deployment.unit."4f31ce90-db69-443e-a8cd-143978a84838.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."4f31ce90-db69-443e-a8cd-143978a84838.war".WeldStartService: Failed to start service
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1898) [jboss-msc-1.2.0.Beta1.jar:1.2.0.Beta1]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
      	at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      Caused by: java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
      	at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:673) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:480) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:306) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:241) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70) [rt.jar:1.7.0_25]
      	at java.lang.Class.initAnnotationsIfNecessary(Class.java:3168) [rt.jar:1.7.0_25]
      	at java.lang.Class.getAnnotation(Class.java:3127) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:131) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:84) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:221) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88) [rt.jar:1.7.0_25]
      	at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70) [rt.jar:1.7.0_25]
      	at java.lang.Class.initAnnotationsIfNecessary(Class.java:3168) [rt.jar:1.7.0_25]
      	at java.lang.Class.getAnnotation(Class.java:3127) [rt.jar:1.7.0_25]
      	at java.lang.Class.isAnnotationPresent(Class.java:3140) [rt.jar:1.7.0_25]
      	at org.jboss.weld.util.Beans.isVetoed(Beans.java:525)
      	at org.jboss.weld.bootstrap.BeanDeployer.loadAnnotatedType(BeanDeployer.java:121)
      	at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:102)
      	at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:62)
      	at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$1.doWork(ConcurrentBeanDeployer.java:60)
      	at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
      	at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_25]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_25]
      	... 3 more
      
      

      Attachments

        Activity

          People

            marko.luksa@gmail.com Marko Luksa (Inactive)
            aslak@redhat.com Aslak Knutsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: