You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Radu Cotescu (JIRA)" <ji...@apache.org> on 2015/10/12 15:26:05 UTC
[jira] [Closed] (SLING-4971) "static" node name not allowed as a
script ancestor
[ https://issues.apache.org/jira/browse/SLING-4971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Radu Cotescu closed SLING-4971.
-------------------------------
> "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
> Assignee: Radu Cotescu
> Priority: Minor
> Fix For: Scripting Sightly Engine 1.0.6
>
>
> 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)