Tapestry 5
  1. Tapestry 5
  2. TAP5-578

If a component class is abstract, trying to instantiate it (by including it in a template) yields an inscrutable InstantiationError

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.1.0.1
    • Fix Version/s: 5.1.0.2
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: com.formos.tapestry.tapx.datefield.components.DateField
      java.lang.InstantiationError: com.formos.tapestry.tapx.datefield.components.DateField
      at $Instantiator_11ffd289b27.newInstance($Instantiator_11ffd289b27.java)
      at org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.<init>(InternalComponentResourcesImpl.java:132)
      at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.<init>(ComponentPageElementImpl.java:545)
      at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.newChild(ComponentPageElementImpl.java:627)
      at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleEmbeddedComponent(ComponentAssemblerImpl.java:132)
      at org.apache.tapestry5.internal.pageload.PageLoaderImpl$12.execute(PageLoaderImpl.java:954)
      at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.runActions(ComponentAssemblerImpl.java:193)
      at org.apache.tapestry5.internal.pageload.ComponentAssemblerImpl.assembleRootComponent(ComponentAssemblerImpl.java:88)
      at org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:159)
      at $PageLoader_11ffd289b02.loadPage($PageLoader_11ffd289b02.java)

      This is really not much to go on (I spun my wheels for about 30 minutes). The problem was that the DateField class was abstract. Tapestry should display an error message to the effect of: "This class is abstract and can not be instantiated.".

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Summary If a component class is abstract, trying to instantiate it yields an inscrutable InstantiationError If a component class is abstract, trying to instantiate it (by including it in a template) yields an inscrutable InstantiationError
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.1.0.2 [ 12313706 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development