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

java.util.concurrent.ExecutionException seen during JavaSourceProcessorTest

Details

    Description

      Following tests are faling:

      • JavaSourceProcessorTest#testExceptionVariableName
      • JavaSourceProcessorTest#testIncorrectWhitespace
      • JavaSourceProcessorTest#testProxyUsage

      Example failure

           [exec] com.liferay.source.formatter.JavaSourceProcessorTest > testIncorrectWhitespace FAILED
           [exec]     java.util.concurrent.ExecutionException: java.lang.Error: Error was thrown while processing /tmp/Eo7H2MPc/com/liferay/source/formatter/dependencies/IncorrectWhitespace.java
           [exec]         at java.util.concurrent.FutureTask.report(FutureTask.java:122)
           [exec]         at java.util.concurrent.FutureTask.get(FutureTask.java:192)
           [exec]         at com.liferay.source.formatter.SourceFormatter.format(SourceFormatter.java:366)
           [exec]         at com.liferay.source.formatter.BaseSourceProcessorTestCase.test(BaseSourceProcessorTestCase.java:148)
           [exec]         at com.liferay.source.formatter.BaseSourceProcessorTestCase.test(BaseSourceProcessorTestCase.java:100)
           [exec]         at com.liferay.source.formatter.BaseSourceProcessorTestCase.test(BaseSourceProcessorTestCase.java:79)
           [exec]         at com.liferay.source.formatter.JavaSourceProcessorTest.testIncorrectWhitespace(JavaSourceProcessorTest.java:231)
           [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:50)
           [exec]         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
           [exec]         at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
           [exec]         at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
           [exec]         at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
           [exec]         at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
           [exec]         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
           [exec]         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
           [exec]         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
           [exec]         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
           [exec]         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
           [exec]         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]         at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [exec]         at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
           [exec]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:106)
           [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:66)
           [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:35)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           [exec]         at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
           [exec]         at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
           [exec]         at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
           [exec]         at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:117)
           [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:35)
           [exec]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:155)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:137)
           [exec]         at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404)
           [exec]         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
           [exec]         at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
           [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:55)
           [exec]         at java.lang.Thread.run(Thread.java:745)
           [exec] 
           [exec]         Caused by:
           [exec]         java.lang.Error: Error was thrown while processing /tmp/Eo7H2MPc/com/liferay/source/formatter/dependencies/IncorrectWhitespace.java
           [exec]             at com.puppycrawl.tools.checkstyle.Checker.processFiles(Checker.java:299)
           [exec]             at com.puppycrawl.tools.checkstyle.Checker.process(Checker.java:213)
           [exec]             at com.liferay.source.formatter.BaseSourceProcessor.processCheckstyle(BaseSourceProcessor.java:501)
           [exec]             at com.liferay.source.formatter.JavaSourceProcessor._processCheckstyle(JavaSourceProcessor.java:231)
           [exec]             at com.liferay.source.formatter.JavaSourceProcessor.postFormat(JavaSourceProcessor.java:103)
           [exec]             at com.liferay.source.formatter.BaseSourceProcessor.format(BaseSourceProcessor.java:143)
           [exec]             at com.liferay.source.formatter.SourceFormatter._runSourceProcessor(SourceFormatter.java:925)
           [exec]             at com.liferay.source.formatter.SourceFormatter.access$000(SourceFormatter.java:71)
           [exec]             at com.liferay.source.formatter.SourceFormatter$1.call(SourceFormatter.java:352)
           [exec]             at com.liferay.source.formatter.SourceFormatter$1.call(SourceFormatter.java:348)
           [exec]             at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           [exec]             at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
           [exec]             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
           [exec]             ... 1 more
           [exec] 
           [exec]             Caused by:
           [exec]             java.lang.IncompatibleClassChangeError: Implementing class
           [exec]                 at java.lang.ClassLoader.defineClass1(Native Method)
           [exec]                 at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
           [exec]                 at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
           [exec]                 at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
           [exec]                 at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
           [exec]                 at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
           [exec]                 at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
           [exec]                 at java.security.AccessController.doPrivileged(Native Method)
           [exec]                 at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
           [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 com.thoughtworks.qdox.library.SortedClassLibraryBuilder.<init>(SortedClassLibraryBuilder.java:50)
           [exec]                 at com.liferay.source.formatter.util.ThreadSafeSortedClassLibraryBuilder.<init>(ThreadSafeSortedClassLibraryBuilder.java:36)
           [exec]                 at com.liferay.source.formatter.checkstyle.checks.UnprocessedExceptionCheck._getJavaProjectBuilder(UnprocessedExceptionCheck.java:269)
           [exec]                 at com.liferay.source.formatter.checkstyle.checks.UnprocessedExceptionCheck._checkUnprocessedException(UnprocessedExceptionCheck.java:101)
           [exec]                 at com.liferay.source.formatter.checkstyle.checks.UnprocessedExceptionCheck.doVisitToken(UnprocessedExceptionCheck.java:69)
           [exec]                 at com.liferay.source.formatter.checkstyle.checks.BaseCheck.visitToken(BaseCheck.java:68)
           [exec]                 at com.puppycrawl.tools.checkstyle.TreeWalker.notifyVisit(TreeWalker.java:389)
           [exec]                 at com.puppycrawl.tools.checkstyle.TreeWalker.processIter(TreeWalker.java:500)
           [exec]                 at com.puppycrawl.tools.checkstyle.TreeWalker.walk(TreeWalker.java:329)
           [exec]                 at com.puppycrawl.tools.checkstyle.TreeWalker.processFiltered(TreeWalker.java:182)
           [exec]                 at com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck.process(AbstractFileSetCheck.java:81)
           [exec]                 at com.puppycrawl.tools.checkstyle.Checker.processFile(Checker.java:316)
           [exec]                 at com.puppycrawl.tools.checkstyle.Checker.processFiles(Checker.java:286)
           [exec]                 ... 13 more
      

       

      Attachments

        Issue Links

          Activity

            People

              timothy.pak Timothy Pak
              timothy.pak Timothy Pak
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                3 years, 12 weeks, 5 days ago

                Packages

                  Version Package