tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Zeigler (JIRA)" <j...@apache.org>
Subject [jira] Closed: (TAP5-748) NPE when defining a component using just t:id and no type or @Component annotation
Date Fri, 17 Jul 2009 22:56:15 GMT

     [ https://issues.apache.org/jira/browse/TAP5-748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Robert Zeigler closed TAP5-748.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.2

> NPE when defining a component using just t:id and no type or @Component annotation
> ----------------------------------------------------------------------------------
>
>                 Key: TAP5-748
>                 URL: https://issues.apache.org/jira/browse/TAP5-748
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.5
>            Reporter: Howard M. Lewis Ship
>            Assignee: Robert Zeigler
>             Fix For: 5.2
>
>
> This should give me a valid exception along the lines of "you must specify the type,
via t:type, or the element, or @Component".
> Instead ...
> # org.apache.tapestry5.ioc.internal.util.TapestryException
> Failure creating embedded component 'categoryFragment' of widen.collective.blocks.pages.Contact:
java.lang.NullPointerException
> location
>     context:Contact.tml, line 36
>     31	</li>
>     32	
>     33	</ul>
>     34	
>     35	
>     36	<div t:id="categoryFragment">
>     37	<h3>Category</h3>
>     38	</div>
>     39	
>     40	<div t:id="dateRangeFragment">
>     41	<h3>Date Range</h3>
> # java.lang.NullPointerException
> Hide uninteresting stack frames Stack trace
>         * javassist.Loader.loadClass(Loader.java:304)
>         * java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         * org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.findClass(ComponentInstantiatorSourceImpl.java:296)
>         * org.apache.tapestry5.internal.services.ComponentInstantiatorSourceImpl.getInstantiator(ComponentInstantiatorSourceImpl.java:276)
>         * $ComponentInstantiatorSource_121d07fa5ef.getInstantiator($ComponentInstantiatorSource_121d07fa5ef.java)
>         * org.apache.tapestry5.internal.pageload.EmbeddedComponentAssemblerImpl.getModel(EmbeddedComponentAssemblerImpl.java:173)
>         * org.apache.tapestry5.internal.pageload.EmbeddedComponentAssemblerImpl.<init>(EmbeddedComponentAssemblerImpl.java:82)
>         * org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.createEmbeddedAssembler(ComponentAssemblerImpl.java:266)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.startComponent(PageLoaderImpl.java:749)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.component(PageLoaderImpl.java:614)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:402)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.component(PageLoaderImpl.java:635)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:402)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.component(PageLoaderImpl.java:635)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.processTemplateToken(PageLoaderImpl.java:402)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.programAssembler(PageLoaderImpl.java:234)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.createAssembler(PageLoaderImpl.java:207)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.getAssembler(PageLoaderImpl.java:183)
>         * org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:157)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message