Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-87455

JDK11 - ExternalDataSourceControllerTest fails due to unresolved requirement

    Details

      Description

      Steps to reproduce issue:

      1. Compile a bundle on JDK8 (workaround from LPS-86712 is needed for compile)
      2. Configure a bundle for integration tests: ant -f build-test.xml setup-testable-tomcat
      3. Start testable tomcat bundle with JDK 11
      4. Run the tests in the modules/test/external-data-source-test-controller-test using JDK8

      Expected result: ExternalDataSourceTestControllerTest runs and passes
      Actual result: ExternalDataSourceTestControllerTest fails due to unresolved requirement:

      java.io.IOException: Start of bundle with id 1354 failed with message: Could not resolve module: com.liferay.external.data.source.test.controller.test [1354]
        Unresolved requirement: Import-Package: javax.xml.bind.util
      
      	at org.apache.aries.jmx.framework.Framework.startBundle(Framework.java:461)
      	at jdk.internal.reflect.GeneratedMethodAccessor2386.invoke(Unknown Source)
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:566)
      	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
      	at jdk.internal.reflect.GeneratedMethodAccessor1705.invoke(Unknown Source)
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:566)
      	at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:260)
      	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
      	at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
      	at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
      	at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
      	at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
      	at javax.management.StandardMBean.invoke(StandardMBean.java:405)
      	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:809)
      	at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
      	at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1466)
      	at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307)
      	at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399)
      	at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:827)
      	at jdk.internal.reflect.GeneratedMethodAccessor3189.invoke(Unknown Source)
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:566)
      	at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:359)
      	at sun.rmi.transport.Transport$1.run(Transport.java:200)
      	at sun.rmi.transport.Transport$1.run(Transport.java:197)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
      	at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:562)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:796)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:677)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:676)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.lang.Thread.run(Thread.java:834)
      Caused by: org.osgi.framework.BundleException: Could not resolve module: com.liferay.external.data.source.test.controller.test [1354]
        Unresolved requirement: Import-Package: javax.xml.bind.util
      
      	at org.eclipse.osgi.container.Module.start(Module.java:444)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
      	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:447)
      	at org.apache.aries.jmx.framework.Framework.startBundle(Framework.java:459)
      	... 36 more
      

      Reproduced on:
      Tomcat 9.0.10 + MySQL 5.7
      Portal master GIT ID: 9830ad48b1190d6a8a3be0bcfee07f9faa9fa44f
      Java Runtime (portal): OpenJDK JDK11

        Attachments

          Activity

            People

            • Assignee:
              anthony.chu Anthony Chu
              Reporter:
              anthony.chu Anthony Chu
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                20 weeks, 3 days ago

                Packages

                Version Package
                7.1.10 DXP FP9
                7.1.10.2 SP2
                7.1.3 CE GA4
                Master