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

Integration test failed due to: java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler

    Details

    • Fix Priority:
      3

      Description

      Occurred on 71 acceptance CI tester:

      Console error:

      [exec] Note: /opt/dev/projects/github/liferay-portal-7.1.x/modules/apps/blogs/blogs-web/src/test/java/com/liferay/blogs/web/internal/portlet/action/TrackbackMVCActionCommandTest.java uses unchecked or unsafe operations.
           [exec] Note: Recompile with -Xlint:unchecked for details.
           [exec] 
           [exec] > Task :apps:blogs:blogs-web:test
           [exec] 
           [exec] com.liferay.blogs.web.internal.portlet.action.TrackbackMVCActionCommandTest > testPrincipalException STARTED
           [exec] 
           [exec] com.liferay.blogs.web.internal.portlet.action.TrackbackMVCActionCommandTest > testPrincipalException FAILED
           [exec]     java.lang.NoClassDefFoundError: javax/servlet/http/HttpUpgradeHandler
           [exec]         at java.lang.Class.getDeclaredMethods0(Native Method)
           [exec]         at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
           [exec]         at java.lang.Class.getDeclaredMethod(Class.java:2128)
           [exec]         at org.mockito.cglib.proxy.Enhancer.getCallbacksSetter(Enhancer.java:631)
           [exec]         at org.mockito.cglib.proxy.Enhancer.isEnhanced(Enhancer.java:605)
           [exec]         at org.powermock.api.extension.proxyframework.ProxyFrameworkImpl.isProxy(ProxyFrameworkImpl.java:50)
           [exec]         at org.powermock.reflect.internal.WhiteboxImpl.getUnmockedType(WhiteboxImpl.java:1661)
           [exec]         at org.powermock.reflect.internal.WhiteboxImpl.getConstructor(WhiteboxImpl.java:240)
           [exec]         at org.powermock.core.MockGateway.newInstanceCall(MockGateway.java:212)
           [exec]         at com.liferay.blogs.web.internal.portlet.action.TrackbackMVCActionCommandTest.<init>(TrackbackMVCActionCommandTest.java:334)
           [exec]         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
           [exec]         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
           [exec]         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
           [exec]         at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
           [exec]         at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTestInstance(PowerMockJUnit44RunnerDelegateImpl.java:186)
           [exec]         at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.createTest(PowerMockJUnit44RunnerDelegateImpl.java:171)
           [exec]         at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:193)
           [exec]         at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.runMethods(PowerMockJUnit44RunnerDelegateImpl.java:146)
           [exec]         at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$1.run(PowerMockJUnit44RunnerDelegateImpl.java:120)
           [exec]         at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:34)
           [exec]         at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:44)
           [exec]         at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.run(PowerMockJUnit44RunnerDelegateImpl.java:122)
           [exec]         at org.powermock.modules.junit4.common.internal.impl.JUnit4TestSuiteChunkerImpl.run(JUnit4TestSuiteChunkerImpl.java:106)
           [exec]         at org.powermock.modules.junit4.common.internal.impl.AbstractCommonPowerMockRunner.run(AbstractCommonPowerMockRunner.java:53)
           [exec]         at org.powermock.modules.junit4.PowerMockRunner.run(PowerMockRunner.java:59)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
           [exec]         at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           [exec]         at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
           [exec]         at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
           [exec]         at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
           [exec]         at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:118)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:412)
           [exec]         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
           [exec]         at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
           [exec]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [exec]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [exec]         at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
           [exec]         at java.lang.Thread.run(Thread.java:745)
           [exec] 
           [exec]         Caused by:
           [exec]         java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler
           [exec]             at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
           [exec]             at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
           [exec]             at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
           [exec]             at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
           [exec]             at org.powermock.core.classloader.MockClassLoader.loadModifiedClass(MockClassLoader.java:178)
           [exec]             at org.powermock.core.classloader.DeferSupportingClassLoader.loadClass(DeferSupportingClassLoader.java:68)
           [exec]             at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
           [exec]             ... 55 more 

      Full console log:

      https://testray.liferay.com/reports/production/logs/test-1-1/1587518311188/test-portal-acceptance-upstream-dxp(7.1.x)/221/modules-unit-jdk8/0/jenkins-console.txt.gz 

      Affect tests:

      https://testray.liferay.com/zh/home/-/testray/case_results/index?delta=200&p_p_state=normal&orderByCol=status_sortable&orderByType=asc&testrayBuildId=1121441934&errors=HttpUpgradeHandler

        Attachments

          Activity

            People

            • Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              jeremy.chen Jeremy Chen
              Participants of an Issue:
              Recent user:
              Jeremy Chen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                16 weeks ago

                Packages

                Version Package