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

NoClassDefFoundError seen during GoogleJavascriptMinifierTest

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 7.4.3.4 CE GA4, Master
    • Fix Version/s: None
    • Component/s: Minifier
    • Labels:
    • Fix Priority:
      4

      Description

      FAILED

      Verified on:
      Github: https://github.com/liferay/liferay-portal.git
      Branch: master
      Bundle: Liferay CE 7.4.3 GA4
      Last Commit: 33f36c66d3e99edc7bacb7c784d8d1db5282bda9

      Analysis Result:
      On the Testray execution, following tests are failing:

      • com.liferay.frontend.js.minifier.internal.GoogleJavascriptMinifierTest.testMinifierSpaces
      • com.liferay.frontend.js.minifier.internal.GoogleJavascriptMinifierTest.testMinifierCode
         

      This is a regression bug which was already solved for version 7.2.x, as you can see on LPS-97712.

       

      Jenkins Console Log, logs for the testMinifierSpaces and testMinifierCode below:

       

      JENKINS CONSOLE LOG - GoogleJavascriptMinifierTest > testMinifierSpaces 

       [exec] com.liferay.frontend.js.minifier.internal.GoogleJavascriptMinifierTest > testMinifierSpaces STARTED
           [exec] 
           [exec] com.liferay.frontend.js.minifier.internal.GoogleJavascriptMinifierTest > testMinifierSpaces FAILED
           [exec]     java.lang.NoClassDefFoundError: com/google/common/base/Charsets
           [exec]         at com.google.javascript.jscomp.SourceFile$Builder.<init>(SourceFile.java:365)
           [exec]         at com.google.javascript.jscomp.SourceFile.builder(SourceFile.java:355)
           [exec]         at com.google.javascript.jscomp.SourceFile.fromCode(SourceFile.java:323)
           [exec]         at com.liferay.frontend.js.minifier.internal.GoogleJavaScriptMinifier.compress(GoogleJavaScriptMinifier.java:59)
           [exec]         at com.liferay.frontend.js.minifier.internal.GoogleJavascriptMinifierTest.testMinifierSpaces(GoogleJavascriptMinifierTest.java:81)
           [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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
           [exec]         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
           [exec]         at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
           [exec]         at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]         at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
           [exec]         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
           [exec]         at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
           [exec]         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
           [exec]         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
           [exec]         at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
           [exec]         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
           [exec]         at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
           [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:119)
           [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:414)
           [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] There were failing tests. See the report at: file:///opt/dev/projects/github/liferay-portal/modules/apps/frontend-js/frontend-js-minifier/build/reports/tests/test/index.html

       

       

       JENKINS CONSOLE LOG - GoogleJavascriptMinifierTest > testMinifierCode

       
      [exec] com.liferay.frontend.js.minifier.internal.GoogleJavascriptMinifierTest > testMinifierCode STARTED
           [exec] 
           [exec] com.liferay.frontend.js.minifier.internal.GoogleJavascriptMinifierTest > testMinifierCode FAILED
           [exec]     java.lang.NoClassDefFoundError: com/google/common/base/Charsets
           [exec]         at com.google.javascript.jscomp.SourceFile$Builder.<init>(SourceFile.java:365)
           [exec]         at com.google.javascript.jscomp.SourceFile.builder(SourceFile.java:355)
           [exec]         at com.google.javascript.jscomp.SourceFile.fromCode(SourceFile.java:323)
           [exec]         at com.liferay.frontend.js.minifier.internal.GoogleJavaScriptMinifier.compress(GoogleJavaScriptMinifier.java:59)
           [exec]         at com.liferay.frontend.js.minifier.internal.GoogleJavascriptMinifierTest.testMinifierCode(GoogleJavascriptMinifierTest.java:50)
           [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.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
           [exec]         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
           [exec]         at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
           [exec]         at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec]         at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
           [exec]         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
           [exec]         at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
           [exec]         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
           [exec]         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
           [exec]         at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
           [exec]         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
           [exec]         at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
           [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:119)
           [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:414)
           [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: com.google.common.base.Charsets
           [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]             ... 58 more
      

       

       

       

       

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            esther.ortega Esther Ortega
            Participants of an Issue:
            Recent user:
            Esther Ortega
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              13 weeks, 5 days ago

                Packages

                Version Package