This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE 7.2 RC1 (Build 201206272359) VM: Java HotSpot(TM) Client VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05 OS: Linux User Comments: jglick: Opening LoadMonitor.groovy from Jenkins sources. Stacktrace: java.lang.ClassNotFoundException: javax.servlet.ServletException at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:423) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:696)
Created attachment 121790 [details] stacktrace
Closing as INCOMPLETE. Can't do anything without reproducible test case or more information and it has only one report
*** Bug 226466 has been marked as a duplicate of this bug. ***
Still broken in development builds: http://statistics.netbeans.org/analytics/detail.do?id=199703
I'm aware of that, but as I have already mentioned in comment 3 the exception is coming from groovy compiler and I really can't do much without some additional information.
What additional information are you looking for? I just had Jenkins sources (set of Maven projects) open, installed Groovy support, and when I restarted I got this exception during parsing. By inspection of the stack trace it is obvious that the Groovy compiler is trying to load the user class org.kohsuke.stapler.CaptureParameterNameTransformation (since this is a @GroovyASTTransformation), but that the effective classpath of the class loader used to do this is incomplete. ASTTransformationVisitor catches Exception but not LinkageError, so the whole parsing process is interrupted. Clearly ASTTransformationVisitor ought to be reporting this via compilationUnit.errorCollector; until it does so in an official Groovy release it needs to be patched for use from an IDE. In the meantime I will see if CaptureParameterNameTransformation can avoid making even indirect reference to the Servlet API.
https://github.com/stapler/stapler/commit/ffc020be8613b7b2113321040de04f3a176ef405
*** Bug 227630 has been marked as a duplicate of this bug. ***
*** Bug 226931 has been marked as a duplicate of this bug. ***
*** Bug 208591 has been marked as a duplicate of this bug. ***
For the record: my fix to Stapler should be in Jenkins 1.520.