Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-719

If an engine service returns null from getName(), an NPE occurs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0
    • Component/s: Framework
    • Labels:
      None

      Description

      The NPE actually is deferred until a method of the engine service is invoked, and does not include line precise error data.

      Stack Trace:

      • org.apache.tapestry.services.impl.ServiceMapImpl.resolveEngineService(ServiceMapImpl.java:131)
      • org.apache.tapestry.services.impl.EngineServiceInnerProxy.resolve(EngineServiceInnerProxy.java:60)
      • org.apache.tapestry.services.impl.EngineServiceInnerProxy.getLink(EngineServiceInnerProxy.java:69)
      • org.apache.tapestry.services.impl.EngineServiceOuterProxy.getLink(EngineServiceOuterProxy.java:60)
      • lab.components.LocaleLink.renderComponent(LocaleLink.java:80)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
      • org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)
      • org.apache.tapestry.html.Body.renderComponent(Body.java:129)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
      • org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:434)
      • org.apache.tapestry.html.Shell.renderComponent(Shell.java:114)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
      • org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
      • org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:92)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:617)
      • org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:275)
      • org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:368)
      • org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:71)
      • $ResponseRenderer_1071a040d44.renderResponse($ResponseRenderer_1071a040d44.java)
      • $ResponseRenderer_1071a040d43.renderResponse($ResponseRenderer_1071a040d43.java)
      • org.apache.tapestry.engine.HomeService.service(HomeService.java:65)
      • $IEngineService_1071a040da6.service($IEngineService_1071a040da6.java)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: