Tapestry 5
  1. Tapestry 5
  2. TAP5-1090

Deleting a live-reloaded class can result in a non-descriptive "Parameter url was null." exception

    Details

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

      Description

      [ERROR] RequestExceptionHandler Processing of request failed with uncaught exception: Parameter url was null.
      java.lang.IllegalArgumentException: Parameter url was null.
      at org.apache.tapestry5.ioc.internal.util.Defense.notNull(Defense.java:37)
      at org.apache.tapestry5.ioc.services.ClassFabUtils.toFileFromFileProtocolURL(ClassFabUtils.java:332)
      at org.apache.tapestry5.ioc.internal.AbstractReloadableObjectCreator.updateTrackingInfo(AbstractReloadableObjectCreator.java:204)
      at org.apache.tapestry5.ioc.internal.AbstractReloadableObjectCreator.createInstance(AbstractReloadableObjectCreator.java:113)
      at org.apache.tapestry5.ioc.internal.AbstractReloadableObjectCreator.createObject(AbstractReloadableObjectCreator.java:106)
      at $PageRenderRequestFilter_127aaf92a89._delegate($PageRenderRequestFilter_127aaf92a89.java)
      at $PageRenderRequestFilter_127aaf92a89.handle($PageRenderRequestFilter_127aaf92a89.java)
      at $PageRenderRequestHandler_127aaf92a8d.handle($PageRenderRequestHandler_127aaf92a8d.java)
      at org.apache.tapestry5.services.TapestryModule$35.handle(TapestryModule.java:2254)

      This was for a contributed object, but I suspect it would be the same for a service. In any case, this should be detected and an exception along the lines of "Unable to continue because class foo.bar.Baz has been deleted." should be thrown.

        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 -
        Status In Progress [ 3 ] Closed [ 6 ]
        Fix Version/s 5.2.0 [ 12314122 ]
        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