tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] Created: (TAP5-748) NPE when defining a component using just t:id and no type or @Component annotation
Date Thu, 11 Jun 2009 20:54:07 GMT
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


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