-
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.
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.