-
Bug
-
Resolution: Done
-
Major
-
5.10.6.Final
-
None
I am trying to run the Microprofile LRA TCK against the Narayana LRA implementation, and am using a JVM based on OpenJ9 (not HotSpot). When I do this, I get the following exception
(I've missed out a bunch of stack frames as it is rather large otherwise)
java.util.ServiceConfigurationError: org.eclipse.microprofile.lra.tck.service.spi.LRARecoveryService: Provider io.narayana.lra.arquillian.spi.NarayanaLRARecovery could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:581)
at java.util.ServiceLoader$ProviderImpl.newInstance(ServiceLoader.java:803)
at java.util.ServiceLoader$ProviderImpl.get(ServiceLoader.java:721)
at java.util.ServiceLoader$3.next(ServiceLoader.java:1394)
at org.eclipse.microprofile.lra.tck.service.LRATestService.loadService(LRATestService.java:105)
at org.eclipse.microprofile.lra.tck.service.LRATestService.<init>(LRATestService.java:50)
at org.eclipse.microprofile.lra.tck.service.LRATestService$Proxy$_$$_WeldClientProxy.<init>(Unknown Source)
......
Caused by: java.lang.ExceptionInInitializerError: null
at java.lang.J9VMInternals.ensureError(J9VMInternals.java:193)
at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:182)
at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
....
Caused by: java.lang.IllegalStateException: Cannot change annotation @org.eclipse.microprofile.lra.annotation.ws.rs.LRA(timeLimit=0, cancelOn={}, end=false, value=SUPPORTS, cancelOnFamily={CLIENT_ERROR, SERVER_ERROR}, timeUnit=Seconds) of class class org.eclipse.microprofile.lra.tck.participant.api.LraResource in JDK8 way
at io.narayana.lra.arquillian.spi.LRAAnnotationAdjuster.adjustLRAAnnotation(LRAAnnotationAdjuster.java:95)
at io.narayana.lra.arquillian.spi.LRAAnnotationAdjuster.processWithClass(LRAAnnotationAdjuster.java:51)
at io.narayana.lra.arquillian.spi.NarayanaLRARecovery.<clinit>(NarayanaLRARecovery.java:49)
....
Caused by: java.lang.NoSuchMethodException: java.lang.Class.annotationData()
at java.lang.Class.newNoSuchMethodException(Class.java:638)
at java.lang.Class.throwExceptionOrReturnNull(Class.java:1344)
at java.lang.Class.getMethodHelper(Class.java:1408)
at java.lang.Class.getDeclaredMethod(Class.java:1080)
at io.narayana.lra.arquillian.spi.LRAAnnotationAdjuster.adjustLRAAnnotation(LRAAnnotationAdjuster.java:82).....