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

ExceptionInInitializerError seen during testInitBundle7z

    Details

    • Type: Regression Bug
    • Status: Closed
    • Resolution: Duplicate
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: Dev Tools

      Description

      The following tests are failing:

      • BundleSupportAntTest#testInitBundle7z
      • BundleSupportCommandsTest#testInitBundle7z

      Possible commit range

      BundleSupportAntTest > testInitBundle7z

           [exec] com.liferay.portal.tools.bundle.support.ant.BundleSupportAntTest > testInitBundle7z FAILED
           [exec]     java.lang.ExceptionInInitializerError
           [exec]         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:116)
           [exec]         at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154)
           [exec]         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
           [exec]         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
           [exec]         at org.apache.tools.ant.Task.perform(Task.java:348)
           [exec]         at org.apache.tools.ant.Target.execute(Target.java:392)
           [exec]         at org.apache.tools.ant.Target.performTasks(Target.java:413)
           [exec]         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
           [exec]         at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
           [exec]         at com.liferay.portal.tools.bundle.support.ant.BundleSupportAntTest.initBundle(BundleSupportAntTest.java:143)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest._initBundle(BundleSupportCommandsTest.java:618)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest._initBundle(BundleSupportCommandsTest.java:628)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest._testInitBundle(BundleSupportCommandsTest.java:693)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest.testInitBundle7z(BundleSupportCommandsTest.java:216)
           [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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]         at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
           [exec]         at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:239)
           [exec]         at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [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.ExceptionInInitializerError
           [exec]             at org.apache.commons.compress.archivers.sevenz.SevenZFile.readEncodedHeader(SevenZFile.java:437)
           [exec]             at org.apache.commons.compress.archivers.sevenz.SevenZFile.readHeaders(SevenZFile.java:355)
           [exec]             at org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:241)
           [exec]             at org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:108)
           [exec]             at org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:262)
           [exec]             at com.liferay.portal.tools.bundle.support.internal.util.FileUtil._unsevenZip(FileUtil.java:389)
           [exec]             at com.liferay.portal.tools.bundle.support.internal.util.FileUtil.unpack(FileUtil.java:277)
           [exec]             at com.liferay.portal.tools.bundle.support.commands.InitBundleCommand.execute(InitBundleCommand.java:57)
           [exec]             at com.liferay.portal.tools.bundle.support.ant.InitBundleTask.execute(InitBundleTask.java:30)
           [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.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
           [exec]             ... 70 more
           [exec] 
           [exec]             Caused by:
           [exec]             java.lang.SecurityException: sealing violation: package org.tukaani.xz is sealed
           [exec]                 at java.net.URLClassLoader.getAndVerifyPackage(URLClassLoader.java:399)
           [exec]                 at java.net.URLClassLoader.definePackageInternal(URLClassLoader.java:419)
           [exec]                 at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
           [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 org.apache.commons.compress.archivers.sevenz.Coders$1.<init>(Coders.java:52)
           [exec]                 at org.apache.commons.compress.archivers.sevenz.Coders.<clinit>(Coders.java:47)
           [exec]                 ... 84 more
      

      BundleSupportCommandsTest > testInitBundle7z

           [exec] com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest > testInitBundle7z STANDARD_OUT
           [exec]     Download http://localhost.localdomain:43087/test.7z
           [exec]     298 B/298 B downloaded                                                        �
           [exec] 
           [exec] com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest > testInitBundle7z FAILED
           [exec]     java.lang.ExceptionInInitializerError
           [exec]         at org.apache.commons.compress.archivers.sevenz.SevenZFile.readEncodedHeader(SevenZFile.java:437)
           [exec]         at org.apache.commons.compress.archivers.sevenz.SevenZFile.readHeaders(SevenZFile.java:355)
           [exec]         at org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:241)
           [exec]         at org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:108)
           [exec]         at org.apache.commons.compress.archivers.sevenz.SevenZFile.<init>(SevenZFile.java:262)
           [exec]         at com.liferay.portal.tools.bundle.support.internal.util.FileUtil._unsevenZip(FileUtil.java:389)
           [exec]         at com.liferay.portal.tools.bundle.support.internal.util.FileUtil.unpack(FileUtil.java:277)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.InitBundleCommand.execute(InitBundleCommand.java:57)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest.initBundle(BundleSupportCommandsTest.java:376)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest._initBundle(BundleSupportCommandsTest.java:618)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest._initBundle(BundleSupportCommandsTest.java:628)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest._testInitBundle(BundleSupportCommandsTest.java:693)
           [exec]         at com.liferay.portal.tools.bundle.support.commands.BundleSupportCommandsTest.testInitBundle7z(BundleSupportCommandsTest.java:216)
           [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.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]         at org.junit.rules.ExpectedException$ExpectedExceptionStatement.evaluate(ExpectedException.java:239)
           [exec]         at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [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.SecurityException: sealing violation: package org.tukaani.xz is sealed
           [exec]             at java.net.URLClassLoader.getAndVerifyPackage(URLClassLoader.java:399)
           [exec]             at java.net.URLClassLoader.definePackageInternal(URLClassLoader.java:419)
           [exec]             at java.net.URLClassLoader.defineClass(URLClassLoader.java:451)
           [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 org.apache.commons.compress.archivers.sevenz.Coders$1.<init>(Coders.java:52)
           [exec]             at org.apache.commons.compress.archivers.sevenz.Coders.<clinit>(Coders.java:47)
           [exec]             ... 66 more
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              peter.shin Peter Shin
              Reporter:
              timothy.pak Timothy Pak
              Participants of an Issue:
              Recent user:
              Brian Wulbern
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 16 weeks, 6 days ago

                  Packages

                  Version Package