Templates 播放框架1.2.5模板错误
请帮忙。当我尝试加载主页面时,出现以下错误:Templates 播放框架1.2.5模板错误,templates,playframework,internationalization,playframework-1.x,Templates,Playframework,Internationalization,Playframework 1.x,请帮忙。当我尝试加载主页面时,出现以下错误: Error during the 500 response generation Template execution error (In /app/views/main.html around line 12) Execution error occured in template /app/views/main.html. Exception raised was NullPointerException : null. play.excep
Error during the 500 response generation
Template execution error (In /app/views/main.html around line 12)
Execution error occured in template /app/views/main.html. Exception raised was NullPointerException : null.
play.exceptions.TemplateExecutionException
at play.templates.BaseTemplate.throwException(BaseTemplate.java:86)
at play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:272)
at play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:282)
at play.templates.Template.render(Template.java:26)
at play.templates.GroovyTemplate.render(GroovyTemplate.java:202)
at play.server.PlayHandler.serve500(PlayHandler.java:774)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.NullPointerException
at play.i18n.Messages.getMessage(Messages.java:97)
at play.i18n.Messages.get(Messages.java:46)
at play.templates.GroovyTemplate$ExecutableTemplate.__getMessage(GroovyTemplate.java:441)
at /app/views/main.html.(line:12)
at play.templates.GroovyTemplate.internalRender(GroovyTemplate.java:247)
... 5 more
这是我在main.html中的第12行:
&{“navTab.appName”}
我有conf/messages文件和相应的密钥,但应用程序仍然没有看到它我认为您的代码有一些问题 请在这里发布main.html代码,也许我能帮上忙 换句话说,请在Eclipse中打开消息(Ctrl+T并键入消息,找到package play.i18n),然后检查第97行。确认您的代码是否使用默认值var
我使用PlayFramework1.2.5很长时间,而且是非常大的项目。这样没有问题。如果您想要更多信息或澄清,那么您应该在特定的线程上留下评论。