Tapestry 5
  1. Tapestry 5
  2. TAP5-1031

NPE from Any component when invoking getClientId() before the component renders

    Details

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

      Description

      java.lang.NullPointerException

      Hide uninteresting stack frames Stack trace

      • org.apache.tapestry5.corelib.components.Any.getClientId(Any.java:75)
      • de.hsofttec.sts.components.AdressSegment.afterRender(AdressSegment.java:274)
      • de.hsofttec.sts.components.AdressSegment._$access_afterRender(AdressSegment.java)
      • $MethodAccess_127012f5dfb.invoke($MethodAccess_127012f5dfb.java)
      • org.apache.tapestry5.internal.transform.RenderPhaseMethodWorker$Invoker.invoke(RenderPhaseMethodWorker.java:117)
      • org.apache.tapestry5.internal.transform.RenderPhaseMethodWorker$RenderPhaseMethodAdvice.advise(RenderPhaseMethodWorker.java:86)
      • org.apache.tapestry5.internal.services.AbstractComponentMethodInvocation.proceed(AbstractComponentMethodInvocation.java:86)
      • de.hsofttec.sts.components.AdressSegment.afterRender(AdressSegment.java)
      • org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AfterRenderPhase.invokeComponent(ComponentPageElementImpl.java:399)
      • org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.run(ComponentPageElementImpl.java:193)
      • org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:973)
      • org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$400(ComponentPageElementImpl.java:78)
      • org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.callback(ComponentPageElementImpl.java:188)
      • org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AfterRenderPhase.render(ComponentPageElementImpl.java:404)
      • org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:74)
      • org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:121)
      • $PageRenderQueue_127012f58cb.render($PageRenderQueue_127012f58cb.java)
      • $PageRenderQueue_127012f58c2.render($PageRenderQueue_127012f58c2.java)
      • org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37)
      • org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:2003)
      • $MarkupRenderer_127012f58cd.renderMarkup($MarkupRenderer_127012f58cd.java)
      • org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:1987)
      • $MarkupRenderer_127012f58cd.renderMarkup($MarkupRenderer_127012f58cd.java)
      • org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:1969)
      • $MarkupRenderer_127012f58cd.renderMarkup($MarkupRenderer_127012f58cd.java)
      • org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:1955)
      • $MarkupRenderer_127012f58cd.renderMarkup($MarkupRenderer_127012f58cd.java)
      • org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:1936)
      • $MarkupRenderer_127012f58cd.renderMarkup($MarkupRenderer_127012f58cd.java)
      • org.apache.tapestry5.services.TapestryModule$23.renderMarkup(TapestryModule.java:1917)
      • $MarkupRenderer_127012f58cd.renderMarkup($MarkupRenderer_127012f58cd.java)
      • org.apache.tapestry5.services.TapestryModule$22.renderMarkup(TapestryModule.java:1899)
      • $MarkupRenderer_127012f58cd.renderMarkup($MarkupRenderer_127012f58cd.java)
      • de.hsofttec.sts.services.AppModule$2.renderMarkup(AppModule.java:157)
      • $MarkupRenderer_127012f58cd.renderMarkup($MarkupRenderer_127012f58cd.java)
      • $MarkupRenderer_127012f58c9.renderMarkup($MarkupRenderer_127012f58c9.java)
      • org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:64)
      • $PageMarkupRenderer_127012f58c6.renderPageMarkup($PageMarkupRenderer_127012f58c6.java)
      • org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:61)
      • $PageResponseRenderer_127012f5803.renderPageResponse($PageResponseRenderer_127012f5803.java)
      • org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:70)
      • org.apache.tapestry5.services.TapestryModule$35.handle(TapestryModule.java:2239)
      • $PageRenderRequestHandler_127012f5804.handle($PageRenderRequestHandler_127012f5804.java)
      • $PageRenderRequestHandler_127012f57e8.handle($PageRenderRequestHandler_127012f57e8.java)
      • org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
      • org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
      • $ComponentRequestHandler_127012f5800.handlePageRender($ComponentRequestHandler_127012f5800.java)
      • $ComponentRequestHandler_127012f57ed.handlePageRender($ComponentRequestHandler_127012f57ed.java)
      • org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
      • $Dispatcher_127012f57f1.dispatch($Dispatcher_127012f57f1.java)
      • $Dispatcher_127012f57e5.dispatch($Dispatcher_127012f57e5.java)
      • org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:289)
      • org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
      • $RequestHandler_127012f57e6.service($RequestHandler_127012f57e6.java)
      • org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:915)
      • $RequestHandler_127012f57e6.service($RequestHandler_127012f57e6.java)
      • org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:905)
      • $RequestHandler_127012f57e6.service($RequestHandler_127012f57e6.java)
      • org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:85)
      • $RequestHandler_127012f57e6.service($RequestHandler_127012f57e6.java)
      • org.apache.tapestry5.internal.services.URLRewriterRequestFilter.service(URLRewriterRequestFilter.java:47)
      • $RequestHandler_127012f57e6.service($RequestHandler_127012f57e6.java)
      • org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90)
      • org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:80)
      • org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
      • org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103)
      • $RequestHandler_127012f57e6.service($RequestHandler_127012f57e6.java)
      • $RequestHandler_127012f57da.service($RequestHandler_127012f57da.java)
      • org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:240)
      • org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44)
      • $HttpServletRequestHandler_127012f57dc.service($HttpServletRequestHandler_127012f57dc.java)
      • org.apache.tapestry5.internal.gzip.GZipFilter.service(GZipFilter.java:53)
      • $HttpServletRequestHandler_127012f57dc.service($HttpServletRequestHandler_127012f57dc.java)
      • org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
      • $HttpServletRequestFilter_127012f57d8.service($HttpServletRequestFilter_127012f57d8.java)
      • $HttpServletRequestHandler_127012f57dc.service($HttpServletRequestHandler_127012f57dc.java)
      • org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:858)
      • $HttpServletRequestHandler_127012f57dc.service($HttpServletRequestHandler_127012f57dc.java)
      • $HttpServletRequestHandler_127012f57d4.service($HttpServletRequestHandler_127012f57d4.java)
      • org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:147)

        Activity

        Hide
        Ulrich Stärk added a comment -

        From a first glance this would happen if you try to get the client id before the Any element has rendered. Maybe from inside an Ajax request? Some more information on what you were trying would be useful.

        Could you also please provide the version this affects?

        Show
        Ulrich Stärk added a comment - From a first glance this would happen if you try to get the client id before the Any element has rendered. Maybe from inside an Ajax request? Some more information on what you were trying would be useful. Could you also please provide the version this affects?

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development