[
https://jira.jboss.org/browse/JBAOP-760?page=com.atlassian.jira.plugin.sy...
]
Kabir Khan updated JBAOP-760:
-----------------------------
Fix Version/s: 2.2.1.GA
(was: 2.2.1.Alpha3)
NPE on Instrumentor.instrumentAnnotationIntroductions
-----------------------------------------------------
Key: JBAOP-760
URL:
https://jira.jboss.org/browse/JBAOP-760
Project: JBoss AOP
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 2.1.6.GA
Reporter: Flavia Rainone
Fix For: 2.2.1.GA
If you try to introduct an annotation with multiple values omitting the brackets, such
as:
@SuppressWarnings("all")
instead of
@SuppressWarnings({"all"}), the result is a NPE:
[javac] Compiling 30 source files to
C:\Users\Flavia\Documents\cursoAOP\10SCJ\conclusao\4265_38312(2)\dukesbankFinal\dukesbank-ejb\classes
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[aopc] log4j:WARN No appenders could be found for logger
(org.jboss.aop.instrument.InstrumentorFactory).
[aopc] log4j:WARN Please initialize the log4j system properly.
[aopc] java.lang.NullPointerException
[aopc] at
javassist.bytecode.annotation.ArrayMemberValue.write(ArrayMemberValue.java:132)
[aopc] at javassist.bytecode.annotation.Annotation.write(Annotation.java:316)
[aopc] at
javassist.bytecode.AnnotationsAttribute.setAnnotations(AnnotationsAttribute.java:246)
[aopc] at
javassist.bytecode.AnnotationsAttribute.addAnnotation(AnnotationsAttribute.java:211)
[aopc] at
org.jboss.aop.instrument.Instrumentor.instrumentAnnotationIntroductions(Instrumentor.java:462)
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:740)
[aopc] at
org.jboss.aop.instrument.GeneratedAdvisorInstrumentor.transform(GeneratedAdvisorInstrumentor.java:117)
[aopc] at
org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1071)
[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] 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] at
org.jboss.aop.ClassicWeavingStrategy.translate(ClassicWeavingStrategy.java:110)
[aopc] at org.jboss.aop.AspectManager.translate(AspectManager.java:1071)
[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.NullPointerException
[aopc] at
javassist.bytecode.annotation.ArrayMemberValue.write(ArrayMemberValue.java:132)
[aopc] at javassist.bytecode.annotation.Annotation.write(Annotation.java:316)
[aopc] at
javassist.bytecode.AnnotationsAttribute.setAnnotations(AnnotationsAttribute.java:246)
[aopc] at
javassist.bytecode.AnnotationsAttribute.addAnnotation(AnnotationsAttribute.java:211)
[aopc] at
org.jboss.aop.instrument.Instrumentor.instrumentAnnotationIntroductions(Instrumentor.java:462)
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:740)
[aopc] ... 7 more
[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: java.lang.NullPointerException
[aopc] at
javassist.bytecode.annotation.ArrayMemberValue.write(ArrayMemberValue.java:132)
[aopc] at javassist.bytecode.annotation.Annotation.write(Annotation.java:316)
[aopc] at
javassist.bytecode.AnnotationsAttribute.setAnnotations(AnnotationsAttribute.java:246)
[aopc] at
javassist.bytecode.AnnotationsAttribute.addAnnotation(AnnotationsAttribute.java:211)
[aopc] at
org.jboss.aop.instrument.Instrumentor.instrumentAnnotationIntroductions(Instrumentor.java:462)
[aopc] at org.jboss.aop.instrument.Instrumentor.transform(Instrumentor.java:740)
[aopc] ... 7 more
BUILD FAILED
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira