Details

      Description

      Steps to reproduce:

      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 modules/apps/portal-remote/portal-remote-soap-extender-test using JDK8

      Expected result: Soap Extender tests pass
      Actual result: Soap Extender tests pass fail:

      com.liferay.portal.remote.soap.extender.test.JaxWsApiHandlerRegistrationTest > classMethod FAILED
          java.io.IOException: Start of bundle with id 922 failed with message: Exception in com.liferay.portal.remote.soap.extender.test.internal.activator.handler.JaxWsApiBundleActivator.start() of bundle com.liferay.portal.remote.soap.extender.test.api.handler.
              at org.apache.aries.jmx.framework.Framework.startBundle(Framework.java:461)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              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.NativeMethodAccessorImpl.invoke0(Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              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.NativeMethodAccessorImpl.invoke0(Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              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: Exception in com.liferay.portal.remote.soap.extender.test.internal.activator.handler.JaxWsApiBundleActivator.start() of bundle com.liferay.portal.remote.soap.extender.test.api.handler.
                  at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:800)
                  at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
                  at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1002)
                  at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:354)
                  at org.eclipse.osgi.container.Module.doStart(Module.java:581)
                  at org.eclipse.osgi.container.Module.start(Module.java:449)
                  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)
                  ... 39 more
      
                  Caused by:
                  java.lang.NullPointerException
                      at com.liferay.portal.remote.soap.extender.test.internal.activator.handler.JaxWsApiBundleActivator.cleanUp(JaxWsApiBundleActivator.java:83)
                      at com.liferay.portal.remote.soap.extender.test.internal.activator.handler.JaxWsApiBundleActivator.start(JaxWsApiBundleActivator.java:67)
                      at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
                      at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
                      ... 47 more
      
      com.liferay.portal.remote.soap.extender.test.JaxWsApiRegistrationTest > classMethod STARTED
      
      com.liferay.portal.remote.soap.extender.test.JaxWsApiRegistrationTest > classMethod FAILED
          java.io.IOException: Start of bundle with id 923 failed with message: Exception in com.liferay.portal.remote.soap.extender.test.internal.activator.JaxWsApiBundleActivator.start() of bundle com.liferay.portal.remote.soap.extender.test.api.
              at org.apache.aries.jmx.framework.Framework.startBundle(Framework.java:461)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              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.NativeMethodAccessorImpl.invoke0(Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              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.NativeMethodAccessorImpl.invoke0(Native Method)
              at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              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: Exception in com.liferay.portal.remote.soap.extender.test.internal.activator.JaxWsApiBundleActivator.start() of bundle com.liferay.portal.remote.soap.extender.test.api.
                  at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:800)
                  at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:729)
                  at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:1002)
                  at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.startWorker(EquinoxBundle.java:354)
                  at org.eclipse.osgi.container.Module.doStart(Module.java:581)
                  at org.eclipse.osgi.container.Module.start(Module.java:449)
                  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)
                  ... 39 more
      
                  Caused by:
                  java.lang.IllegalArgumentException: Cannot create URL for this address /greeterApi
                      at com.sun.xml.ws.transport.http.server.EndpointImpl.publish(EndpointImpl.java:145)
                      at com.sun.xml.ws.spi.ProviderImpl.createAndPublishEndpoint(ProviderImpl.java:113)
                      at javax.xml.ws.Endpoint.publish(Endpoint.java:254)
                      at com.liferay.portal.remote.soap.extender.test.internal.activator.JaxWsApiBundleActivator.start(JaxWsApiBundleActivator.java:48)
                      at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:779)
                      at org.eclipse.osgi.internal.framework.BundleContextImpl$3.run(BundleContextImpl.java:1)
                      at java.security.AccessController.doPrivileged(Native Method)
                      at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:772)
                      ... 47 more
      

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

      Not Reproducible on:
      Oracle JDK8

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  18 weeks, 6 days ago

                  Packages

                  Version Package
                  7.1.X
                  Master