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

Three cases failed due to java.lang.ClassNotFoundException: javax.servlet.http.HttpUpgradeHandler

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.0.X, 7.1.X
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      3

      Description

      Occurred on 71 modules-unit-jdk8 batch:

      [exec] 
       [exec] com.liferay.saml.opensaml.integration.internal.metadata.MetadataManagerImplTest > testGetRequestPath 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.saml.opensaml.integration.internal.metadata.MetadataManagerImplTest.testGetRequestPath(MetadataManagerImplTest.java:55)
       [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.junit.internal.runners.TestMethod.invoke(TestMethod.java:68)
       [exec] at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:310)
       [exec] at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:89)
       [exec] at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:97)
       [exec] at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.executeTest(PowerMockJUnit44RunnerDelegateImpl.java:294)
       [exec] at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTestInSuper(PowerMockJUnit47RunnerDelegateImpl.java:127)
       [exec] at org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl$PowerMockJUnit47MethodRunner.executeTest(PowerMockJUnit47RunnerDelegateImpl.java:82)
       [exec] at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl$PowerMockJUnit44MethodRunner.runBeforesThenTestThenAfters(PowerMockJUnit44RunnerDelegateImpl.java:282)
       [exec] at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:87)
       [exec] at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:50)
       [exec] at org.powermock.modules.junit4.internal.impl.PowerMockJUnit44RunnerDelegateImpl.invokeTestMethod(PowerMockJUnit44RunnerDelegateImpl.java:207)
       [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] ... 63 more

      testGetRequestPathWithContext and testGetRequestPathWithoutJsessionId also failed.

      Full console log:

      https://test-1-19.liferay.com/job/test-portal-acceptance-pullrequest-batch(7.1.x)/AXIS_VARIABLE=0,label_exp=!master/20581/consoleFull

       

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang (Inactive)
            Reporter:
            della.wang Della Wang (Inactive)
            Participants of an Issue:
            Recent user:
            Della Wang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              41 weeks, 1 day ago

                Packages

                Version Package