nadimcse / arit

Automatically exported from code.google.com/p/arit
0 stars 0 forks source link

Arit fails on older WAS 7.0 versions #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
On WAS 7.0.0.7 Arit fails to generate a report and the following exception is 
triggered:

java.lang.IllegalArgumentException: Can not set final 
com.ibm.xml.xlxp2.jaxb.model.JAXBModel field 
com.ibm.xml.xlxp2.jaxb.JAXBContextImpl.fModel to 
com.sun.xml.bind.v2.runtime.JAXBContextImpl
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:158)
        at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:162)
        at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:49)
        at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.get(UnsafeQualifiedObjectFieldAccessorImpl.java)
        at java.lang.reflect.Field.get(Field.java:360)
        at com.googlecode.arit.rbeans.AccessorHandler.invoke(AccessorHandler.java:30)
        at com.googlecode.arit.rbeans.RBeanInvocationHandler.invoke(RBeanInvocationHandler.java:32)
        at $Proxy251.getModel(Unknown Source)
        at com.googlecode.arit.websphere.jaxb.JAXBUtilsPoolResourceEnumeratorFactory.getClassLoaders(JAXBUtilsPoolResourceEnumeratorFactory.java:84)
        at com.googlecode.arit.websphere.jaxb.JAXBUtilsPoolResourceEnumerator.nextResource(JAXBUtilsPoolResourceEnumerator.java:60)
        at com.googlecode.arit.report.ReportGenerator.internalGenerateReport(ReportGenerator.java:145)
        at com.googlecode.arit.report.ReportGenerator.generateReport(ReportGenerator.java:109)
        at com.googlecode.arit.report.ReportGenerator.generateReport(ReportGenerator.java:102)

Original issue reported on code.google.com by andreas.veithen@gmail.com on 7 Nov 2011 at 12:32

GoogleCodeExporter commented 8 years ago
The error message is misleading. The correct message should be:

com.sun.xml.bind.v2.runtime.JAXBContextImpl is incompatble with 
com.googlecode.arit.websphere.jaxb.JAXBContextImplRBean's target class 
com.ibm.xml.xlxp2.jaxb.JAXBContextImpl

Actually this is probably unrelated to the version of WAS 7.0, but to the fact 
that the server was configured with jaxb-impl.jar (JAXB reference 
implementation) in the class path (which BTW is not a supported 
configuration...).

Original comment by andreas.veithen@gmail.com on 7 Nov 2011 at 4:21

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r476.

Original comment by andreas.veithen@gmail.com on 7 Nov 2011 at 4:51