You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Nicolas Peltier (JIRA)" <ji...@apache.org> on 2015/08/28 09:31:46 UTC
[jira] [Created] (SLING-4971) static node name not allowed as a
script ancestor
Nicolas Peltier created SLING-4971:
--------------------------------------
Summary: static node name not allowed as a script ancestor
Key: SLING-4971
URL: https://issues.apache.org/jira/browse/SLING-4971
Project: Sling
Issue Type: Bug
Components: Scripting
Affects Versions: Scripting Sightly Engine 1.0.2
Reporter: Nicolas Peltier
Priority: Minor
Looks like having "static" as a script ancestor (e.g. /apps/blah/static/foo/foo.html) will break badly the script rendering (and all the rendering process), yelling:
{noformat}
Line 1, column 0 : The declared package "" does not match the expected package "apps.blah.static.foo"
Line 19, column 994 : Syntax error on token "static", Identifier expected
at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileSource(SightlyJavaCompilerService.java:143)
at org.apache.sling.scripting.sightly.impl.engine.UnitLoader.createUnit(UnitLoader.java:140)
at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.evaluateScript(SightlyScriptEngine.java:94)
at org.apache.sling.scripting.sightly.impl.engine.SightlyScriptEngine.eval(SightlyScriptEngine.java:83)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:361)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171)
at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:463)
... 258 common frames omitted
Caused by: org.apache.sling.scripting.sightly.impl.compiler.CompilerException: org.apache.sling.scripting.sightly.impl.compiler.CompilerException: Compilation errors in apps/blah/static/foo/SightlyJava_foo.java:
Line 1, column 0 : The declared package "" does not match the expected package "apps.blah.static.foo"
Line 19, column 994 : Syntax error on token "static", Identifier expected
at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileJavaResource(SightlyJavaCompilerService.java:258)
at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileSource(SightlyJavaCompilerService.java:141)
... 264 common frames omitted
Caused by: org.apache.sling.scripting.sightly.impl.compiler.CompilerException: Compilation errors in apps/blah/static/foo/SightlyJava_foo.java:
Line 1, column 0 : The declared package "" does not match the expected package "apps.blah.static.foo"
Line 19, column 994 : Syntax error on token "static", Identifier expected
at org.apache.sling.scripting.sightly.impl.compiler.SightlyJavaCompilerService.compileJavaResource(SightlyJavaCompilerService.java:250)
... 265 common frames omitted
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)