Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save Watcher24/62d6e9ee252a1e3177efe8d4995ee51a to your computer and use it in GitHub Desktop.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running info.magnolia.consent.cookie.impl.DefaultCookieManagerTest
WARNING: An illegal reflective access operation has occurred
SUREFIRE-859: WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/Users/cmeier/.m2/repository/org/mockito/mockito-core/1.10.8/mockito-core-1.10.8.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.mockito.cglib.core.ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
2018-07-05 11:02:42,039 ERROR .magnolia.consent.cookie.impl.DefaultCookieManager: Cookie 'cookiesConsent' can't be retrieved since it's not configured under '/modules/cookie-manager/config/cookies/cookiesConsent'
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.437 sec - in info.magnolia.consent.cookie.impl.DefaultCookieManagerTest
Running info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest
2018-07-05 11:02:42,760 ERROR info.magnolia.repository.DefaultRepositoryManager : null
java.lang.NullPointerException: null
at org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast(SystemUtils.java:1642) ~[commons-lang3-3.6.jar:3.6]
at info.magnolia.jackrabbit.ProviderImpl.checkXmlSettings(ProviderImpl.java:448) ~[magnolia-core-5.6.jar:?]
at info.magnolia.jackrabbit.ProviderImpl.init(ProviderImpl.java:183) ~[magnolia-core-5.6.jar:?]
at info.magnolia.repository.DefaultRepositoryManager.loadRepository(DefaultRepositoryManager.java:259) ~[magnolia-core-5.6.jar:?]
at info.magnolia.repository.DefaultRepositoryManager.loadRepositories(DefaultRepositoryManager.java:222) ~[magnolia-core-5.6.jar:?]
at info.magnolia.repository.DefaultRepositoryManager.init(DefaultRepositoryManager.java:121) [magnolia-core-5.6.jar:?]
at info.magnolia.test.RepositoryTestCase.startRepository(RepositoryTestCase.java:120) [magnolia-core-5.6-tests.jar:?]
at info.magnolia.test.RepositoryTestCase.setUp(RepositoryTestCase.java:96) [magnolia-core-5.6-tests.jar:?]
at info.magnolia.module.ModuleVersionHandlerTestCase.setUp(ModuleVersionHandlerTestCase.java:94) [magnolia-core-5.6-tests.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) [junit-4.11.jar:?]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:?]
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) [junit-4.11.jar:?]
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) [junit-4.11.jar:?]
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:?]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [junit-4.11.jar:?]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:?]
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) [surefire-junit4-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) [surefire-junit4-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) [surefire-junit4-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) [surefire-junit4-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) [surefire-booter-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) [surefire-booter-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) [surefire-booter-2.18.1.jar:2.18.1]
2018-07-05 11:02:42,801 WARN info.magnolia.repository.WorkspaceMapping : Failed to retrieve repository provider 'magnolia'. Your Magnolia instance might not have been initialized properly.
2018-07-05 11:02:42,901 ERROR info.magnolia.repository.DefaultRepositoryManager : null
java.lang.NullPointerException: null
at org.apache.commons.lang3.SystemUtils.isJavaVersionAtLeast(SystemUtils.java:1642) ~[commons-lang3-3.6.jar:3.6]
at info.magnolia.jackrabbit.ProviderImpl.checkXmlSettings(ProviderImpl.java:448) ~[magnolia-core-5.6.jar:?]
at info.magnolia.jackrabbit.ProviderImpl.init(ProviderImpl.java:183) ~[magnolia-core-5.6.jar:?]
at info.magnolia.repository.DefaultRepositoryManager.loadRepository(DefaultRepositoryManager.java:259) ~[magnolia-core-5.6.jar:?]
at info.magnolia.repository.DefaultRepositoryManager.loadRepositories(DefaultRepositoryManager.java:222) ~[magnolia-core-5.6.jar:?]
at info.magnolia.repository.DefaultRepositoryManager.init(DefaultRepositoryManager.java:121) [magnolia-core-5.6.jar:?]
at info.magnolia.test.RepositoryTestCase.startRepository(RepositoryTestCase.java:120) [magnolia-core-5.6-tests.jar:?]
at info.magnolia.test.RepositoryTestCase.setUp(RepositoryTestCase.java:96) [magnolia-core-5.6-tests.jar:?]
at info.magnolia.module.ModuleVersionHandlerTestCase.setUp(ModuleVersionHandlerTestCase.java:94) [magnolia-core-5.6-tests.jar:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:564) ~[?:?]
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) [junit-4.11.jar:?]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.11.jar:?]
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) [junit-4.11.jar:?]
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) [junit-4.11.jar:?]
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) [junit-4.11.jar:?]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) [junit-4.11.jar:?]
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) [junit-4.11.jar:?]
at org.junit.runners.ParentRunner.run(ParentRunner.java:309) [junit-4.11.jar:?]
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283) [surefire-junit4-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173) [surefire-junit4-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) [surefire-junit4-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128) [surefire-junit4-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203) [surefire-booter-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155) [surefire-booter-2.18.1.jar:2.18.1]
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) [surefire-booter-2.18.1.jar:2.18.1]
2018-07-05 11:02:42,949 WARN info.magnolia.repository.WorkspaceMapping : Failed to retrieve repository provider 'magnolia'. Your Magnolia instance might not have been initialized properly.
Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.864 sec <<< FAILURE! - in info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest
cleanInstall(info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest) Time elapsed: 0.723 sec <<< ERROR!
javax.jcr.NoSuchWorkspaceException: config
at info.magnolia.repository.DefaultRepositoryManager.getSystemSession(DefaultRepositoryManager.java:321)
at info.magnolia.context.SystemRepositoryStrategy.internalGetSession(SystemRepositoryStrategy.java:54)
at info.magnolia.context.AbstractRepositoryStrategy.getSession(AbstractRepositoryStrategy.java:75)
at info.magnolia.context.AbstractContext.getJCRSession(AbstractContext.java:124)
at info.magnolia.context.MgnlContext.getJCRSession(MgnlContext.java:642)
at info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest.cleanInstall(CookieManagerVersionHandlerTest.java:49)
cleanInstall(info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest) Time elapsed: 0.724 sec <<< ERROR!
java.lang.IllegalArgumentException: Failed to retrieve repository provider 'magnolia'. Your Magnolia instance might not have been initialized properly.
at info.magnolia.repository.WorkspaceMapping.getRepositoryProvider(WorkspaceMapping.java:160)
at info.magnolia.repository.DefaultRepositoryManager.shutdown(DefaultRepositoryManager.java:132)
at info.magnolia.test.RepositoryTestCase.shutdownRepository(RepositoryTestCase.java:198)
at info.magnolia.test.RepositoryTestCase.tearDown(RepositoryTestCase.java:187)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
cleanInstallWithCustomCacheKeyGenerator(info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest) Time elapsed: 0.137 sec <<< ERROR!
javax.jcr.NoSuchWorkspaceException: config
at info.magnolia.repository.DefaultRepositoryManager.getSystemSession(DefaultRepositoryManager.java:321)
at info.magnolia.context.SystemRepositoryStrategy.internalGetSession(SystemRepositoryStrategy.java:54)
at info.magnolia.context.AbstractRepositoryStrategy.getSession(AbstractRepositoryStrategy.java:75)
at info.magnolia.context.AbstractContext.getJCRSession(AbstractContext.java:124)
at info.magnolia.context.MgnlContext.getJCRSession(MgnlContext.java:642)
at info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest.cleanInstallWithCustomCacheKeyGenerator(CookieManagerVersionHandlerTest.java:63)
cleanInstallWithCustomCacheKeyGenerator(info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest) Time elapsed: 0.138 sec <<< ERROR!
java.lang.IllegalArgumentException: Failed to retrieve repository provider 'magnolia'. Your Magnolia instance might not have been initialized properly.
at info.magnolia.repository.WorkspaceMapping.getRepositoryProvider(WorkspaceMapping.java:160)
at info.magnolia.repository.DefaultRepositoryManager.shutdown(DefaultRepositoryManager.java:132)
at info.magnolia.test.RepositoryTestCase.shutdownRepository(RepositoryTestCase.java:198)
at info.magnolia.test.RepositoryTestCase.tearDown(RepositoryTestCase.java:187)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:283)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:173)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:128)
at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
Results :
Tests in error:
info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest.cleanInstall(info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest)
Run 1: CookieManagerVersionHandlerTest.cleanInstall:49 » NoSuchWorkspace config
Run 2: CookieManagerVersionHandlerTest>RepositoryTestCase.tearDown:187->RepositoryTestCase.shutdownRepository:198 » IllegalArgument
info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest.cleanInstallWithCustomCacheKeyGenerator(info.magnolia.consent.cookie.setup.CookieManagerVersionHandlerTest)
Run 1: CookieManagerVersionHandlerTest.cleanInstallWithCustomCacheKeyGenerator:63 » NoSuchWorkspace
Run 2: CookieManagerVersionHandlerTest>RepositoryTestCase.tearDown:187->RepositoryTestCase.shutdownRepository:198 » IllegalArgument
Tests run: 5, Failures: 0, Errors: 2, Skipped: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment