[jboss-jira] [JBoss JIRA] Created: (JBAOP-761) Create an error message for javassist.NotFoundException

Flavia Rainone (JIRA) jira-events at lists.jboss.org
Fri Oct 23 13:52:07 EDT 2009


Create an error message for javassist.NotFoundException
-------------------------------------------------------

                 Key: JBAOP-761
                 URL: https://jira.jboss.org/jira/browse/JBAOP-761
             Project: JBoss AOP
          Issue Type: Task
      Security Level: Public (Everyone can see)
    Affects Versions: 2.1.6.GA
            Reporter: Flavia Rainone
             Fix For: 2.1.7.GA


It is very usual users forgetting to write the fully qualified name of a class. We should treat javassist.NotFoundExcpetion, pointing to the user the name of the class that was not found and reminding that the name must be fully qualified:

[aopc] Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: failed to transform: com.fiap.tutorial.javaee.dukesbank.request.CustomerControllerBean
     [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:1081)
     [aopc] 	at org.jboss.aop.AspectManager.transform(AspectManager.java:1015)
     [aopc] 	at org.jboss.aop.standalone.Compiler.compileFile(Compiler.java:391)
     [aopc] 	at org.jboss.aop.standalone.Compiler.compile(Compiler.java:243)
     [aopc] 	at org.jboss.aop.standalone.Compiler.main(Compiler.java:88)
     [aopc] Caused by: java.lang.RuntimeException: failed to transform: com.fiap.tutorial.javaee.dukesbank.request.CustomerControllerBean
     [aopc] 	at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:146)
     [aopc] 	at org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
     [aopc] 	at org.jboss.aop.AspectManager.translate(AspectManager.java:1071)
     [aopc] 	... 4 more
     [aopc] Caused by: java.lang.RuntimeException: failed to transform: com.fiap.tutorial.javaee.dukesbank.request.CustomerControllerBean
     [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:829)
     [aopc] 	at org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:117)
     [aopc] 	... 6 more
     [aopc] Caused by: javassist.NotFoundException: DeclareRoles
     [aopc] 	at javassist.ClassPool.get(ClassPool.java:436)
     [aopc] 	at org.jboss.aop.annotation.compiler.AnnotationInfoCreator.createAnnotationInfo(AnnotationInfoCreator.java:166)
     [aopc] 	at org.jboss.aop.instrument.Instrumentor.instrumentAnnotationIntroductions(Instrumentor.java:441)
     [aopc] 	at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:740)
     [aopc] 	... 7 more


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list