Tapestry 5
  1. Tapestry 5
  2. TAP5-748

NPE when defining a component using just t:id and no type or @Component annotation

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.5
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

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

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

      1. 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)

        Activity

        Howard M. Lewis Ship created issue -
        Robert Zeigler made changes -
        Field Original Value New Value
        Assignee Robert Zeigler [ ongakugainochi ]
        Robert Zeigler made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 5.2 [ 12313900 ]
        Robert Zeigler made changes -
        Fix Version/s 5.2.0.0 [ 12314122 ]
        Fix Version/s 5.2 [ 12313900 ]

          People

          • Assignee:
            Robert Zeigler
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development