-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
When querying <hudson>/user/<id>/api/schema I get a ClassFormatError:
javax.servlet.ServletException: java.lang.ClassFormatError: Illegal class
modifiers in class org/kohsuke/stapler/export/package-info: 0x1600
org.kohsuke.stapler.Stapler.invoke(Stapler.java:305)
org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:208)
Running on JDK 1.5.0_12, Windows, in Apache Tomcat.
[JENKINS-1107] ClassFormatError in package-info
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Progress [ 3 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Workflow | Original: JNJira [ 131180 ] | New: JNJira + In-Review [ 200450 ] |
See
https://jaxb.dev.java.net/guide/Runtime_Errors.html#Illegal_class_modifiers_for_package_info__0x1600
for the root cause of the issue.
A workaround is to run this on Java6 JVMs.
In theory we could write a byte-code post-processor to change 0x1600 to 0x0600
so that it can continue to work on old JVMs.