Uploaded image for project: 'Magnolia Javascript Models'
  1. Magnolia Javascript Models
  2. JSMODELS-25

Tests failing when trying to build 1.1.2-SNAPSHOT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • None
    • None

      Reproduce

      • Checkout ssh://git@git.magnolia-cms.com/modules/javascript-models.git
      • mvn clean install

      Actual
      Failing tests caused by scripts

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running info.magnolia.module.jsmodels.rendering.JavascriptRenderingModelTest
      WARNING: An illegal reflective access operation has occurred
      SUREFIRE-859: WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/Users/rich.gange/.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
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Mar 15, 2021 10:35:59 AM com.google.common.cache.LocalCache$Segment$1 run
      WARNING: Exception thrown during refresh
      java.util.concurrent.ExecutionException: javax.script.ScriptException: <eval>:3:1 Expected eof but found }
      }} // error - two braces
       ^ in <eval> at line number 3 at column number 1
      	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:518)
      	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:477)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:85)
      	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:142)
      	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2453)
      	at com.google.common.cache.LocalCache$Segment$1.run(LocalCache.java:2431)
      	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
      	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1006)
      	at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:662)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107)
      	at com.google.common.cache.LocalCache$Segment.loadAsync(LocalCache.java:2426)
      	at com.google.common.cache.LocalCache$Segment.refresh(LocalCache.java:2500)
      	at com.google.common.cache.LocalCache.refresh(LocalCache.java:4300)
      	at com.google.common.cache.LocalCache$LocalLoadingCache.refresh(LocalCache.java:5159)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createCompiledScript(JavascriptObjectFactory.java:205)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createJavascriptObject(JavascriptObjectFactory.java:178)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModel.<init>(JavascriptRenderingModel.java:69)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModelTest.errorInScriptIsLogged(JavascriptRenderingModelTest.java:183)
      	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:566)
      	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.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	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)
      Caused by: javax.script.ScriptException: <eval>:3:1 Expected eof but found }
      }} // error - two braces
       ^ in <eval> at line number 3 at column number 1
      	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:477)
      	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.asCompiledScript(NashornScriptEngine.java:503)
      	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.compile(NashornScriptEngine.java:184)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory$1.load(JavascriptObjectFactory.java:125)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory$1.load(JavascriptObjectFactory.java:121)
      	at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3708)
      	at com.google.common.cache.LocalCache$Segment.loadAsync(LocalCache.java:2425)
      	... 33 more
      Caused by: jdk.nashorn.internal.runtime.ParserException: <eval>:3:1 Expected eof but found }
      }} // error - two braces
       ^
      	at jdk.scripting.nashorn/jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:297)
      	at jdk.scripting.nashorn/jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:282)
      	at jdk.scripting.nashorn/jdk.nashorn.internal.parser.AbstractParser.expectDontAdvance(AbstractParser.java:353)
      	at jdk.scripting.nashorn/jdk.nashorn.internal.parser.AbstractParser.expect(AbstractParser.java:340)
      	at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.program(Parser.java:854)
      	at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.parse(Parser.java:325)
      	at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.parse(Parser.java:285)
      	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.Context.compile(Context.java:1500)
      	at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.Context.compileScript(Context.java:774)
      	at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.asCompiledScript(NashornScriptEngine.java:500)
      	... 38 more
      
      2021-03-15 10:35:59,281 WARN  module.jsmodels.rendering.JavascriptRenderingModel: Error occurred during evaluation of the script (script path: [/scriptWithError.js])
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Mar 15, 2021 10:35:59 AM com.google.common.cache.LocalCache$Segment$1 run
      WARNING: Exception thrown during refresh
      java.util.concurrent.ExecutionException: info.magnolia.resourceloader.ResourceOrigin$ResourceNotFoundException
      	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:518)
      	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:477)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:85)
      	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:142)
      	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2453)
      	at com.google.common.cache.LocalCache$Segment$1.run(LocalCache.java:2431)
      	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
      	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1006)
      	at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:662)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107)
      	at com.google.common.cache.LocalCache$Segment.loadAsync(LocalCache.java:2426)
      	at com.google.common.cache.LocalCache$Segment.refresh(LocalCache.java:2500)
      	at com.google.common.cache.LocalCache.refresh(LocalCache.java:4300)
      	at com.google.common.cache.LocalCache$LocalLoadingCache.refresh(LocalCache.java:5159)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createCompiledScript(JavascriptObjectFactory.java:205)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createJavascriptObject(JavascriptObjectFactory.java:178)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModel.<init>(JavascriptRenderingModel.java:69)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModelTest.resourceNotFoundExceptionInvalidatesTheCacheEntry(JavascriptRenderingModelTest.java:164)
      	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:566)
      	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.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	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)
      Caused by: info.magnolia.resourceloader.ResourceOrigin$ResourceNotFoundException
      
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Mar 15, 2021 10:35:59 AM com.google.common.cache.LocalCache$Segment$1 run
      WARNING: Exception thrown during refresh
      java.util.concurrent.ExecutionException: info.magnolia.resourceloader.ResourceOrigin$ResourceNotFoundException
      	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:518)
      	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:477)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:85)
      	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:142)
      	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2453)
      	at com.google.common.cache.LocalCache$Segment$1.run(LocalCache.java:2431)
      	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
      	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1006)
      	at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:662)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107)
      	at com.google.common.cache.LocalCache$Segment.loadAsync(LocalCache.java:2426)
      	at com.google.common.cache.LocalCache$Segment.refresh(LocalCache.java:2500)
      	at com.google.common.cache.LocalCache.refresh(LocalCache.java:4300)
      	at com.google.common.cache.LocalCache$LocalLoadingCache.refresh(LocalCache.java:5159)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createCompiledScript(JavascriptObjectFactory.java:205)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createJavascriptObject(JavascriptObjectFactory.java:178)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModel.<init>(JavascriptRenderingModel.java:69)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModelTest.resourceNotFoundExceptionWhenModelResolvedFromTemplateScriptDoesNotExist(JavascriptRenderingModelTest.java:146)
      	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:566)
      	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.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	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)
      Caused by: info.magnolia.resourceloader.ResourceOrigin$ResourceNotFoundException
      
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Mar 15, 2021 10:35:59 AM com.google.common.cache.LocalCache$Segment$1 run
      WARNING: Exception thrown during refresh
      java.util.concurrent.ExecutionException: info.magnolia.resourceloader.ResourceOrigin$ResourceNotFoundException
      	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:518)
      	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:477)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:85)
      	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:142)
      	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2453)
      	at com.google.common.cache.LocalCache$Segment$1.run(LocalCache.java:2431)
      	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
      	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1006)
      	at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:662)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107)
      	at com.google.common.cache.LocalCache$Segment.loadAsync(LocalCache.java:2426)
      	at com.google.common.cache.LocalCache$Segment.refresh(LocalCache.java:2500)
      	at com.google.common.cache.LocalCache.refresh(LocalCache.java:4300)
      	at com.google.common.cache.LocalCache$LocalLoadingCache.refresh(LocalCache.java:5159)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createCompiledScript(JavascriptObjectFactory.java:205)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createJavascriptObject(JavascriptObjectFactory.java:178)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModel.<init>(JavascriptRenderingModel.java:69)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModelTest.resourceNotFoundExceptionOccursWhenModelDoesNotExist(JavascriptRenderingModelTest.java:133)
      	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:566)
      	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.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.ExpectException.evaluate(ExpectException.java:19)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	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)
      Caused by: info.magnolia.resourceloader.ResourceOrigin$ResourceNotFoundException
      
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Mar 15, 2021 10:35:59 AM com.google.common.cache.LocalCache$Segment$1 run
      WARNING: Exception thrown during refresh
      java.util.concurrent.ExecutionException: java.io.IOException
      	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:518)
      	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:477)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:85)
      	at com.google.common.util.concurrent.Uninterruptibles.getUninterruptibly(Uninterruptibles.java:142)
      	at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2453)
      	at com.google.common.cache.LocalCache$Segment$1.run(LocalCache.java:2431)
      	at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:399)
      	at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1006)
      	at com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:662)
      	at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.addListener(AbstractFuture.java:107)
      	at com.google.common.cache.LocalCache$Segment.loadAsync(LocalCache.java:2426)
      	at com.google.common.cache.LocalCache$Segment.refresh(LocalCache.java:2500)
      	at com.google.common.cache.LocalCache.refresh(LocalCache.java:4300)
      	at com.google.common.cache.LocalCache$LocalLoadingCache.refresh(LocalCache.java:5159)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createCompiledScript(JavascriptObjectFactory.java:205)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createJavascriptObject(JavascriptObjectFactory.java:178)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModel.<init>(JavascriptRenderingModel.java:69)
      	at info.magnolia.module.jsmodels.rendering.JavascriptRenderingModelTest.errorWithReadingModelIsLogged(JavascriptRenderingModelTest.java:201)
      	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:566)
      	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.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	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)
      Caused by: java.io.IOException
      
      2021-03-15 10:35:59,567 WARN  module.jsmodels.rendering.JavascriptRenderingModel: Unable to open reader for javascript model file [/someModel.js].
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.899 sec - in info.magnolia.module.jsmodels.rendering.JavascriptRenderingModelTest
      Running info.magnolia.module.jsmodels.factory.JavascriptObjectFactoryTest
      Warning: Nashorn engine is planned to be removed from a future JDK release
      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.024 sec <<< FAILURE! - in info.magnolia.module.jsmodels.factory.JavascriptObjectFactoryTest
      loadScriptCompilesScriptFromResourceOrigin(info.magnolia.module.jsmodels.factory.JavascriptObjectFactoryTest)  Time elapsed: 0.024 sec  <<< ERROR!
      javax.script.ScriptException: Invalid result returned by the script engine, expected: [jdk.nashorn.api.scripting.JSObject], got: [null].
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.evaluate(JavascriptObjectFactory.java:196)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactory.createJavascriptObject(JavascriptObjectFactory.java:170)
      	at info.magnolia.module.jsmodels.factory.JavascriptObjectFactoryTest.loadScriptCompilesScriptFromResourceOrigin(JavascriptObjectFactoryTest.java:97)
      
      
      Results :
      
      Tests in error: 
        JavascriptObjectFactoryTest.loadScriptCompilesScriptFromResourceOrigin:97 ยป Script
      
      Tests run: 10, Failures: 0, Errors: 1, Skipped: 0
      
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      

      Expected
      Be able to checkout and build without failing tests.

        Acceptance criteria

              jsimak Jaroslav Simak
              rgange Richard Gange
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:

                  Bug DoR
                  Task DoD