Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14680

Fix failure that occurs when org.jboss.ejb.client.EJBProxyInformation calls java.lang.reflect.Field.setAccessible on JDK16

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 23.0.1.Final
    • EJB

      While experimenting with running Jakarta EE 9.1 Platform TCK signature tests on JDK16, I noticed this one failure:

      [javatest.batch] �[0m�[0m08:34:04,124 INFO [org.jboss.ejb.client] (Thread-195) JBoss EJB Client version 4.0.39.Final
      [javatest.batch] �[0m�[0m08:34:04,127 INFO [stdout] (Thread-195) 04-06-2021 08:34:04: ERROR: Test failed
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) 04-06-2021 08:34:04: ERROR: javax.naming.NamingException: WFLYNAM0062: Failed to lookup env/ejb/EJBVehicle [Root exception is java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.reflect.Method jdk.proxy8.$Proxy18.m0 accessible: module jdk.proxy8 does not "opens jdk.proxy8" to unnamed module @645b4b87]
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at org.jboss.as.naming@23.0.1.Final-SNAPSHOT//org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:159)
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at org.jboss.as.naming@23.0.1.Final-SNAPSHOT//org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:83)
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at org.jboss.as.naming@23.0.1.Final-SNAPSHOT//org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207)
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at org.jboss.as.naming@23.0.1.Final-SNAPSHOT//org.jboss.as.naming.NamingContext.lookup(NamingContext.java:184)
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at org.jboss.as.naming@23.0.1.Final-SNAPSHOT//org.jboss.as.naming.InitialContext$DefaultInitialContext.lookup(InitialContext.java:239)
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at org.jboss.as.naming@23.0.1.Final-SNAPSHOT//org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193)
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at org.jboss.as.naming@23.0.1.Final-SNAPSHOT//org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189)
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
      [javatest.batch] �[0m�[0m08:34:04,128 INFO [stdout] (Thread-195) at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at com.sun.ts//com.sun.ts.lib.util.TSNamingContext.lookup(TSNamingContext.java:69)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at com.sun.ts//com.sun.ts.lib.util.TSNamingContext.lookup(TSNamingContext.java:55)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at deployment.JavaEESigTest_ejb_vehicle.ear.JavaEESigTest_ejb_vehicle_client.jar//com.sun.ts.tests.common.vehicle.ejb.EJBVehicleRunner.run(EJBVehicleRunner.java:64)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at deployment.JavaEESigTest_ejb_vehicle.ear.JavaEESigTest_ejb_vehicle_client.jar//com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:105)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at deployment.JavaEESigTest_ejb_vehicle.ear.JavaEESigTest_ejb_vehicle_client.jar//com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at deployment.JavaEESigTest_ejb_vehicle.ear.JavaEESigTest_ejb_vehicle_client.jar//com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:209)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at deployment.JavaEESigTest_ejb_vehicle.ear.JavaEESigTest_ejb_vehicle_client.jar//com.sun.ts.lib.harness.EETest.run(EETest.java:285)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at deployment.JavaEESigTest_ejb_vehicle.ear.JavaEESigTest_ejb_vehicle_client.jar//com.sun.ts.tests.common.vehicle.VehicleClient.main(VehicleClient.java:37)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at java.base/java.lang.reflect.Method.invoke(Method.java:567)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at org.jboss.as.appclient@23.0.1.Final-SNAPSHOT//org.jboss.as.appclient.service.ApplicationClientStartService$1.run(ApplicationClientStartService.java:99)
      [javatest.batch] �[0m�[0m08:34:04,129 INFO [stdout] (Thread-195) at java.base/java.lang.Thread.run(Thread.java:831)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private static final java.lang.reflect.Method jdk.proxy8.$Proxy18.m0 accessible: module jdk.proxy8 does not "opens jdk.proxy8" to unnamed module @645b4b87
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:357)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:177)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at java.base/java.lang.reflect.Field.setAccessible(Field.java:171)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBProxyInformation$1.doCompute(EJBProxyInformation.java:101)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBProxyInformation$1.computeValue(EJBProxyInformation.java:72)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBProxyInformation$1.computeValue(EJBProxyInformation.java:66)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at java.base/java.lang.ClassValue.getFromHashMap(ClassValue.java:228)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at java.base/java.lang.ClassValue.getFromBackup(ClassValue.java:210)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at java.base/java.lang.ClassValue.get(ClassValue.java:116)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBProxyInformation.forViewType(EJBProxyInformation.java:242)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBLocator.getProxyInformation(EJBLocator.java:375)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBLocator.getProxyConstructor(EJBLocator.java:370)
      [javatest.batch] �[0m�[0m08:34:04,130 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBLocator.createProxyInstance(EJBLocator.java:387)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBClient.createProxy(EJBClient.java:161)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) at org.jboss.ejb-client@4.0.39.Final//org.jboss.ejb.client.EJBRootContext.lookupNative(EJBRootContext.java:166)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) at org.wildfly.naming-client@1.0.14.Final//org.wildfly.naming.client.AbstractContext.lookup(AbstractContext.java:84)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) at org.wildfly.naming-client@1.0.14.Final//org.wildfly.naming.client.WildFlyRootContext.lookup(WildFlyRootContext.java:144)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) at java.naming/javax.naming.InitialContext.lookup(InitialContext.java:409)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) at org.jboss.as.ejb3@23.0.1.Final-SNAPSHOT//org.jboss.as.ejb3.deployment.processors.EjbLookupInjectionSource$1.getReference(EjbLookupInjectionSource.java:81)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) at org.jboss.as.naming@23.0.1.Final-SNAPSHOT//org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:143)
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195) ... 22 more
      [javatest.batch] �[0m�[0m08:34:04,131 INFO [stdout] (Thread-195)
      [javatest.batch] �[0m�[31m08:34:05,132 ERROR [stderr] (Thread-195) STATUS:Failed.Test run in ejb vehicle failed
      [javatest.batch] �[0m�[0m08:34:05,135 INFO [org.jboss.as.server] (Thread-1) WFLYSRV0272: Suspending server
      [javatest.batch] �[0m�[0m08:34:05,139 INFO [org.jboss.as.ejb3] (Thread-1) WFLYEJB0493: Jakarta Enterprise Beans subsystem suspension complete
      [javatest.batch] �[0m�[0m08:34:05,140 INFO [org.jboss.as.server] (Thread-1) WFLYSRV0220: Server shutdown has been requested via an OS signal
      [javatest.batch] �[0m�[0m08:34:05,141 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-3) WFLYJCA0119: Unbinding connection factory named java:/jms/QueueConnectionFactory2 to alias jms/TopicConnectionFactory2
      [javatest.batch] �[0m�[0m08:34:05,141 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0099: Unbound non-transactional data source: java:/jdbc/DB_no_tx
      [javatest.batch] �[0m�[0m08:34:05,142 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0010: Unbound data source [java:/jdbc/DBTimer]
      [javatest.batch] �[0m�[0m08:34:05,142 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) WFLYJCA0010: Unbound data source [java:/JavadbXA]
      [javatest.batch] �[0m�[0m08:34:05,145 INFO [org.jboss.as.mail.extension] (MSC service thread 1-7) WFLYMAIL0002: Unbound mail session [java:/mail/Session]
      [javatest.batch] �[0m�[0m08:34:05,145 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-5) WFLYJCA0011: Unbound Jakarta Connectors ConnectionFactory [java:/jms/QueueConnectionFactory2]
      [javatest.batch] �[0m�[0m08:34:05,146 INFO [org.wildfly.extension.messaging-activemq] (MSC service thread 1-7) WFLYMSGAMQ0006: Unbound messaging object to jndi name java:/jms/DURABLE_CMT_XCONNECTION_FACTORY
      [javatest.batch] �[0m�[0m08:34:05,147 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0010: Unbound data source [java:/jdbc/DB1]
      [javatest.batch] �[0m�[0m08:34:05,147 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0019: Stopped Driver service with driver-name = derby
      [javatest.batch] �[0m�[0m08:34:05,153 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0208: Stopped subdeployment (runtime-name: JavaEESigTest_ejb_vehicle_client.jar) in 14ms
      [javatest.batch] �[0m�[0m08:34:05,153 INFO [org.jboss.as.server.deployment] (MSC service thread 1-6) WFLYSRV0208: Stopped subdeployment (runtime-name: JavaEESigTest_ejb_vehicle_ejb.jar) in 15ms
      [javatest.batch] �[0m�[0m08:34:05,155 INFO [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0028: Stopped deployment JavaEESigTest_ejb_vehicle.ear (runtime-name: JavaEESigTest_ejb_vehicle.ear) in 17ms
      [javatest.batch] �[0m�[0m08:34:05,171 INFO [org.jboss.as] (MSC service thread 1-6) WFLYSRV0050: WildFly Preview 23.0.1.Final-SNAPSHOT (WildFly Core 15.0.1.Final) stopped in 31ms
      [javatest.batch] �[0m
      [javatest.batch] Failed. test failed
      [javatest.batch] ********************************************************************************
      [javatest.batch] Finished Test: FAILED........com/sun/ts/tests/signaturetest/javaee/JavaEESigTest.java#signatureTest_from_ejb

              cfang@redhat.com Cheng Fang
              smarlow1@redhat.com Scott Marlow
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: