snarfattack / inquisitor-mc

inquisitor-mc
2 stars 1 forks source link

Blank Page when freemarker is unable to parse data #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I get this error in server console when i try to access to the website and it 
shows a blank page in browser.
do you know whats happening? i think its something with freemarker... i already 
set permissions to 777 Inquisitor folder (recursive)...

Thanks

What version of the product are you using? On what operating system?
im running ubuntu, version of inquisitor 2.27.

Please provide any additional information below.
[web server worker 2/ERROR]: Error executing FreeMarker template
freemarker.core.InvalidReferenceException: The following has evaluated to null 
or missing:
==> player  [in template "resources/docStart.ftl" at line 24, column 87]

Tip: If the failing expression is known to be legally null/missing, either 
specify a default value with myOptionalVar!myDefault, or use <#if 
myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the 
last step of the expression; to cover the whole expression, use parenthessis: 
(myOptionVar.foo)!myDefault, (myOptionVar.foo)??

The failing instruction (print stack trace for 1 more):
==> ${player.name}  [in template "resources/docStart.ftl" at line 24, column 85]
        at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98) ~[freemarker.jar:2.3.20]
        at freemarker.core.UnexpectedTypeException.newDesciptionBuilder(UnexpectedTypeException.java:41) ~[freemarker.jar:2.3.20]
        at freemarker.core.UnexpectedTypeException.<init>(UnexpectedTypeException.java:24) ~[freemarker.jar:2.3.20]
        at freemarker.core.Dot._eval(Dot.java:81) ~[freemarker.jar:2.3.20]
        at freemarker.core.Expression.eval(Expression.java:111) ~[freemarker.jar:2.3.20]
        at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115) ~[freemarker.jar:2.3.20]
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76) ~[freemarker.jar:2.3.20]
        at freemarker.core.Environment.visit(Environment.java:265) [freemarker.jar:2.3.20]
        at freemarker.core.MixedContent.accept(MixedContent.java:93) [freemarker.jar:2.3.20]
        at freemarker.core.Environment.visit(Environment.java:265) [freemarker.jar:2.3.20]
        at freemarker.core.Environment.include(Environment.java:1712) [freemarker.jar:2.3.20]
        at freemarker.core.Include.accept(Include.java:172) [freemarker.jar:2.3.20]
        at freemarker.core.Environment.visit(Environment.java:265) [freemarker.jar:2.3.20]
        at freemarker.core.MixedContent.accept(MixedContent.java:93) [freemarker.jar:2.3.20]
        at freemarker.core.Environment.visit(Environment.java:265) [freemarker.jar:2.3.20]
        at freemarker.core.EscapeBlock.accept(EscapeBlock.java:85) [freemarker.jar:2.3.20]
        at freemarker.core.Environment.visit(Environment.java:265) [freemarker.jar:2.3.20]
        at freemarker.core.Environment.process(Environment.java:243) [freemarker.jar:2.3.20]
        at freemarker.template.Template.process(Template.java:275) [freemarker.jar:2.3.20]
        at com.frdfsnlght.inquisitor.handlers.TemplateHandler.renderTemplate(TemplateHandler.java:112) [Inquisitor.2.27.jar:?]
        at com.frdfsnlght.inquisitor.handlers.TemplateHandler.renderTemplate(TemplateHandler.java:66) [Inquisitor.2.27.jar:?]
        at com.frdfsnlght.inquisitor.handlers.PlayerHandler.handleRequest(PlayerHandler.java:52) [Inquisitor.2.27.jar:?]
        at com.frdfsnlght.inquisitor.WebWorker.handleRequest(WebWorker.java:84) [Inquisitor.2.27.jar:?]
        at com.frdfsnlght.inquisitor.WebWorker.run(WebWorker.java:51) [Inquisitor.2.27.jar:?]
        at java.lang.Thread.run(Thread.java:745) [?:1.7.0_65]

Original issue reported on code.google.com by snarfatt...@gmail.com on 29 Aug 2014 at 1:46

GoogleCodeExporter commented 9 years ago
Related to issue 23. The player will need to log on to the server once for the 
page to render properly.

Original comment by snarfatt...@gmail.com on 30 Aug 2014 at 2:52