You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ta...@jakarta.apache.org> on 2005/10/01 14:04:48 UTC
[jira] Resolved: (TAPESTRY-548) Poor reporting for missing script file
[ http://issues.apache.org/jira/browse/TAPESTRY-548?page=all ]
Howard M. Lewis Ship resolved TAPESTRY-548:
-------------------------------------------
Fix Version: 4.0
Resolution: Duplicate
Built a little test app to prove that error reporting blames the annotation properly.
> Poor reporting for missing script file
> --------------------------------------
>
> Key: TAPESTRY-548
> URL: http://issues.apache.org/jira/browse/TAPESTRY-548
> Project: Tapestry
> Type: Bug
> Components: Annotations
> Versions: 4.0
> Reporter: Howard M. Lewis Ship
> Assignee: Howard M. Lewis Ship
> Fix For: 4.0
>
> This may only occur when a script is injected via the @InjectScript annotation, rather than the <inject type="script"/> XML.
> We get a NPE inside the parser (actually, inside the DocumentParseException constructor!)
> org.apache.hivemind.ApplicationRuntimeException
> location: Annotation @org.apache.tapestry.annotations.InjectScript(value=SubmitLink.script) of public abstract org.apache.tapestry.IScript com.vaisala.ww.ui.components.SubmitLink.getScript()
>
> java.lang.NullPointerException
> Stack Trace:
> * org.apache.tapestry.util.xml.DocumentParseException.<init>(DocumentParseException.java:45)
> * org.apache.tapestry.util.xml.RuleDirectedParser.parse(RuleDirectedParser.java:126)
> * org.apache.tapestry.script.ScriptParser.parse(ScriptParser.java:105)
> * org.apache.tapestry.engine.DefaultScriptSource.parse(DefaultScriptSource.java:77)
> * org.apache.tapestry.engine.DefaultScriptSource.getScript(DefaultScriptSource.java:63)
> * $IScriptSource_105a60993a4.getScript($IScriptSource_105a60993a4.java)
> * $IScriptSource_105a60993a3.getScript($IScriptSource_105a60993a3.java)
> * org.apache.tapestry.enhance.DeferredScriptImpl.getScript(DeferredScriptImpl.java:54)
> * $SubmitLink_31.getScript($SubmitLink_31.java)
> * com.vaisala.ww.ui.components.SubmitLink.renderFormComponent(SubmitLink.java:100
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-dev-help@jakarta.apache.org