[
http://jira.jboss.com/jira/browse/JBAOP-481?page=comments#action_12387046 ]
Kabir Khan commented on JBAOP-481:
----------------------------------
I have reproduced the error on JDK 6, it works on JDK 5. I will ask Chiba for some input
on this:
Kabir@KabirDell /c/temp/jboss-aop_1.5.6.GA/bug
$ rm *.class ; ant run
rm: cannot remove `*.class': No such file or directory
Buildfile: build.xml
clean:
[delete] DEPRECATED - Use of the implicit FileSet is deprecated. Use a nested fileset
element instead.
compile:
[javac] Compiling 3 source files to C:\temp\jboss-aop_1.5.6.GA\bug
aopc:
[aopc] Build Successful: 1203 ms
run:
[java] java.lang.VerifyError: (class: HotlinksProcessor, method:
HotlinksProcessor$processRequest$aop signature:
(Ljavax/servlet/http/HttpServletRequest;Z)Lcom/supportwizard/gui2/beans/hotlinks/HotlinkForm;)
Illegal constant pool index
[java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:180)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
[java] Caused by: java.lang.VerifyError: (class: HotlinksProcessor, method:
HotlinksProcessor$processRequest$aop signature:
(Ljavax/servlet/http/HttpServletRequest;Z)Lcom/supportwizard/gui2/beans/hotlinks/HotlinkForm;)
Illegal constant pool index
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:169)
[java] at Test.main(Unknown Source)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
[java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
[java] ... 15 more
[java] --- Nested Exception ---
[java] java.lang.VerifyError: (class: HotlinksProcessor, method:
HotlinksProcessor$processRequest$aop signature:
(Ljavax/servlet/http/HttpServletRequest;Z)Lcom/supportwizard/gui2/beans/hotlinks/HotlinkForm;)
Illegal constant pool index
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:169)
[java] at Test.main(Unknown Source)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:202)
[java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:134)
[java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:710)
[java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:178)
[java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84)
[java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[java] at org.apache.tools.ant.Task.perform(Task.java:364)
[java] at org.apache.tools.ant.Target.execute(Target.java:341)
[java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[java] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[java] at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[java] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[java] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[java] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Illegal constant pool index
---------------------------
Key: JBAOP-481
URL:
http://jira.jboss.com/jira/browse/JBAOP-481
Project: JBoss AOP
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 1.5.3.GA, 1.5.6.GA
Environment: jdk 1.6.0
Reporter: Konstantin Sobolev
Attachments: bug.tar.gz
aopc-instrumented classes appear broken from time to time:
[java] java.lang.VerifyError: (class: HotlinksProcessor, method:
HotlinksProcessor$processRequest$aop signature:
(Ljavax/servlet/http/HttpServletRequest;Z)Lcom/supportwizard/gui2/beans/hotlinks/HotlinkForm;)
Illegal constant pool index
This problem was reported several times:
http://www.jboss.org/?module=bb&op=viewtopic&t=102893
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3848973#...
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009744#...
Now I'm attaching a testcase which allows to reproduce it. Unpack into
jboss-aop_1.5.6.GA and to 'ant run'.
Commenting out almost any line, for instance HotlinksProcessor.java:21 'fixes'
the problem.
Using javassist.jar from 2.0.0-beta2 doesn't help, although the bug is not active
there.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira