Skip to content

Conversation

@gslowikowski
Copy link

Mavenization proposal

@gslowikowski
Copy link
Author

What version should I use, "1.0.0-SNAPSHOT"?

@gslowikowski
Copy link
Author

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

@gslowikowski
Copy link
Author

Updated.

@shoon
Copy link

shoon commented Nov 26, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants