tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Andreou (JIRA)" <tapestry-...@jakarta.apache.org>
Subject [jira] Updated: (TAPESTRY-618) No location provided when an unknown library prefix is used.
Date Fri, 16 Sep 2005 15:28:57 GMT
     [ http://issues.apache.org/jira/browse/TAPESTRY-618?page=all ]

Andreas Andreou updated TAPESTRY-618:
-------------------------------------

    Attachment: ComponentSpecificationResolverImpl.patch

Here's a fix for this.
In ComponentSpecificationResolverImpl.resolve(), when trying to find the namespace from the
given id,
if an ApplicationRuntimeException is thrown, catch it, and throw another one 
with the same message and the correct location appended.

> No location provided when an unknown library prefix is used.
> ------------------------------------------------------------
>
>          Key: TAPESTRY-618
>          URL: http://issues.apache.org/jira/browse/TAPESTRY-618
>      Project: Tapestry
>         Type: Bug
>   Components: Framework
>     Versions: 4.0
>     Reporter: Howard M. Lewis Ship
>     Priority: Minor
>  Attachments: ComponentSpecificationResolverImpl.patch
>
> When a component (in a template for sure) uses a prefix, say "contrib:" that isn't defined
in the containing library/application specification, the exception doesn't identify the line
in the template that's in erorr.
> org.apache.hivemind.ApplicationRuntimeException
> Library 'contrib' not found in namespace 'contrib.inspector'.
> Stack Trace:
>     * org.apache.tapestry.engine.Namespace.createNamespace(Namespace.java:288)
>     * org.apache.tapestry.engine.Namespace.getChildNamespace(Namespace.java:151)
>     * org.apache.tapestry.resolver.AbstractSpecificationResolver.findNamespaceForId(AbstractSpecificationResolver.java:204)
>     * org.apache.tapestry.resolver.ComponentSpecificationResolverImpl.resolve(ComponentSpecificationResolverImpl.java:138)
>     * $ComponentSpecificationResolver_10611d647b5.resolve($ComponentSpecificationResolver_10611d647b5.java)
>     * $ComponentSpecificationResolver_10611d647b6.resolve($ComponentSpecificationResolver_10611d647b6.java)
>     * org.apache.tapestry.services.impl.DefaultParserDelegate.getAllowBody(DefaultParserDelegate.java:70)
>     * org.apache.tapestry.parse.TemplateParser.processComponentStart(TemplateParser.java:984)
>     * org.apache.tapestry.parse.TemplateParser.startTag(TemplateParser.java:858)
>     * org.apache.tapestry.parse.TemplateParser.parse(TemplateParser.java:493)
>     * org.apache.tapestry.parse.TemplateParser.parse(TemplateParser.java:325)
>     * $ITemplateParser_10611d647eb.parse($ITemplateParser_10611d647eb.java)
>     * $ITemplateParser_10611d647ec.parse($ITemplateParser_10611d647ec.java)
>     * org.apache.tapestry.services.impl.TemplateSourceImpl.constructTemplateInstance(TemplateSourceImpl.java:339)
>     * org.apache.tapestry.services.impl.TemplateSourceImpl.parseTemplate(TemplateSourceImpl.java:316)
>     * org.apache.tapestry.services.impl.TemplateSourceImpl.getOrParseTemplate(TemplateSourceImpl.java:293)
>     * org.apache.tapestry.services.impl.TemplateSourceImpl.findStandardTemplate(TemplateSourceImpl.java:273)
>     * org.apache.tapestry.services.impl.TemplateSourceImpl.findTemplate(TemplateSourceImpl.java:180)
>     * org.apache.tapestry.services.impl.TemplateSourceImpl.getTemplate(TemplateSourceImpl.java:123)
>     * $TemplateSource_10611d6473c.getTemplate($TemplateSource_10611d6473c.java)
>     * org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:55)
>     * $ComponentTemplateLoader_10611d647b7.loadTemplate($ComponentTemplateLoader_10611d647b7.java)
>     * org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:657)
>     * org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:77)
>     * org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:107)
>     * $ShowEngine_468.finishLoad($ShowEngine_468.java)
>     * org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:465)
>     * org.apache.tapestry.pageload.PageLoader.createImplicitComponent(PageLoader.java:516)
>     * $IPageLoader_10611d647af.createImplicitComponent($IPageLoader_10611d647af.java)
>     * $IPageLoader_10611d647b0.createImplicitComponent($IPageLoader_10611d647b0.java)
>     * org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.createImplicitComponent(ComponentTemplateLoaderLogic.java:218)
>     * org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:172)
>     * org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.process(ComponentTemplateLoaderLogic.java:111)
>     * org.apache.tapestry.services.impl.ComponentTemplateLoaderLogic.loadTemplate(ComponentTemplateLoaderLogic.java:88)
>     * org.apache.tapestry.services.impl.ComponentTemplateLoaderImpl.loadTemplate(ComponentTemplateLoaderImpl.java:60)
>     * $ComponentTemplateLoader_10611d647b7.loadTemplate($ComponentTemplateLoader_10611d647b7.java)
>     * org.apache.tapestry.pageload.PageLoader.loadTemplateForComponent(PageLoader.java:657)
>     * org.apache.tapestry.BaseComponent.readTemplate(BaseComponent.java:77)
>     * org.apache.tapestry.BaseComponent.finishLoad(BaseComponent.java:107)
>     * $Inspector_456.finishLoad($Inspector_456.java)
>     * org.apache.tapestry.pageload.PageLoader.constructComponent(PageLoader.java:465)
>     * org.apache.tapestry.pageload.PageLoader.loadPage(PageLoader.java:628)
>     * $IPageLoader_10611d647af.loadPage($IPageLoader_10611d647af.java)
>     * $IPageLoader_10611d647b0.loadPage($IPageLoader_10611d647b0.java)
>     * org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:118)
>     * $IPageSource_10611d6470e.getPage($IPageSource_10611d6470e.java)
>     * org.apache.tapestry.engine.RequestCycle.loadPage(RequestCycle.java:265)
>     * org.apache.tapestry.engine.RequestCycle.getPage(RequestCycle.java:248)

-- 
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


Mime
View raw message