You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have NullPointerException when testing sample application in Maven:
10:42:52,796 DEBUG ~ RythmPlugin-0.9.2> default template engine configured to: rythm
10:42:52,812 DEBUG ~ RythmPlugin-0.9.2> Implicit render variables set up
10:42:52,812 DEBUG ~ RythmPlugin-0.9.2> User defined rythm properties configured
10:42:52,812 DEBUG ~ RythmPlugin-0.9.2> rythm template root set to: E:\scm\googlecode.svn\maven-play-plugin\tmp\test-projects\external-modules\rythm\zencontact\app\views
10:42:52,812 DEBUG ~ RythmPlugin-0.9.2> rythm tag root set to E:\scm\googlecode.svn\maven-play-plugin\tmp\test-projects\external-modules\rythm\zencontact\app\views\tags\rythm
10:42:52,812 DEBUG ~ RythmPlugin-0.9.2> rythm tmp dir set to E:\scm\googlecode.svn\maven-play-plugin\tmp\test-projects\external-modules\rythm\zencontact\tmp\rythm
compactMode set to false
10:42:52,921 DEBUG ~ RythmPlugin-0.9.2> Implicit render variables runtime provider set up
compactMode set to true
10:42:52,937 DEBUG ~ RythmPlugin-0.9.2> Play specific parser registered
10:42:52,937 INFO ~ RythmPlugin-0.9.2> template engine initialized
10:42:54,906 DEBUG ~ RythmPlugin-0.9.2> 16ms to built up black/white list
10:42:54,921 DEBUG ~ RythmPlugin-0.9.2> 15ms to register fast tags
10:42:54,953 DEBUG ~ RythmPlugin-0.9.2> 32ms to register java extension
10:42:55,031 DEBUG ~ RythmPlugin-0.9.2> 78ms to load Rythm tags
10:42:55,531 INFO ~ Connected to jdbc:h2:mem:play;MODE=MYSQL
10:42:56,734 INFO ~ Application 'Zencontact (with rythm tempalte engine), by zenexity' is now started !
play.exceptions.TemplateExecutionException
at com.greenlaw110.rythm.play.RythmTemplate.internalRender(RythmTemplate.java:123)
at play.templates.Template.render(Template.java:38)
at play.test.Fixtures.loadModels(Fixtures.java:168)
at play.test.Fixtures.load(Fixtures.java:147)
at Bootstrap.doJob(Bootstrap.java:13)
at play.jobs.Job.doJobWithResult(Job.java:50)
at play.jobs.Job.call(Job.java:146)
at play.jobs.Job.run(Job.java:132)
at play.jobs.JobsPlugin.afterApplicationStart(JobsPlugin.java:116)
at play.plugins.PluginCollection.afterApplicationStart(PluginCollection.java:486)
at play.Play.start(Play.java:536)
at com.google.code.play.surefire.junit4.PlayJUnit4Provider.initializePlayEngine(PlayJUnit4Provider.java:216)
at com.google.code.play.surefire.junit4.PlayJUnit4Provider.invoke(PlayJUnit4Provider.java:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:188)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:166)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:86)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:101)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
Caused by: java.lang.NullPointerException
at com.greenlaw110.rythm.play.ImplicitVariables$4.evaluate(ImplicitVariables.java:66)
at com.greenlaw110.rythm.play.RythmPlugin$4.setRenderArgs(RythmPlugin.java:183)
at com.greenlaw110.rythm.RythmEngine.preprocess(RythmEngine.java:326)
at com.greenlaw110.rythm.template.TemplateBase.render(TemplateBase.java:149)
at com.greenlaw110.rythm.play.RythmTemplate.internalRender(RythmTemplate.java:102)
... 21 more
10:42:57,171 ERROR ~
@69gc42918
Error during job execution (Bootstrap)
Execution exception (In /app/Bootstrap.java around line 13)
RuntimeException occured : Cannot load fixture data.yml: null
play.exceptions.JavaExecutionException: Cannot load fixture data.yml: null
at play.jobs.Job.call(Job.java:155)
at Invocation.Job(Play!)
Caused by: java.lang.RuntimeException: Cannot load fixture data.yml: null
at play.test.Fixtures.loadModels(Fixtures.java:237)
at play.test.Fixtures.load(Fixtures.java:147)
at Bootstrap.doJob(Bootstrap.java:13)
at play.jobs.Job.doJobWithResult(Job.java:50)
at play.jobs.Job.call(Job.java:146)
... 1 more
Caused by: play.exceptions.TemplateExecutionException
at com.greenlaw110.rythm.play.RythmTemplate.internalRender(RythmTemplate.java:123)
at play.templates.Template.render(Template.java:38)
at play.test.Fixtures.loadModels(Fixtures.java:168)
... 5 more
Caused by: java.lang.NullPointerException
at com.greenlaw110.rythm.play.ImplicitVariables$4.evaluate(ImplicitVariables.java:66)
at com.greenlaw110.rythm.play.RythmPlugin$4.setRenderArgs(RythmPlugin.java:183)
at com.greenlaw110.rythm.RythmEngine.preprocess(RythmEngine.java:326)
at com.greenlaw110.rythm.template.TemplateBase.render(TemplateBase.java:149)
at com.greenlaw110.rythm.play.RythmTemplate.internalRender(RythmTemplate.java:102)
... 7 more
I think the entry for rythm-engine should be 1.0.1 and not 1.0.1-SNAPSHOT. The oss-sonatype repo doesn't seem to have anything in the 1.0.1-SNAPSHOT so maven marks it as missing and the build will fail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mavenization proposal