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

Null Pointer Exception when using Style Component together with updateComponents

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.2, 4.1.3
    • 4.1.5
    • XHR/dhtml/Ajax
    • None

    Description

      Using a Style-Component on the same page as a DirectLink with an updateComponents-Attribute produces the following Exception:

      java.lang.NullPointerException
      Stack Trace:

      • java.util.StringTokenizer.<init>(Unknown Source)
      • java.util.StringTokenizer.<init>(Unknown Source)
      • org.apache.tapestry.util.ContentType.parse(ContentType.java:171)
      • org.apache.tapestry.util.ContentType.<init>(ContentType.java:58)
      • org.apache.tapestry.html.Relation.renderStyleTag(Relation.java:97)
      • org.apache.tapestry.html.Relation.renderComponent(Relation.java:53)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725)
      • org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.render(DojoAjaxResponseBuilder.java:625)
      • org.apache.tapestry.AbstractComponent.renderBody(AbstractComponent.java:539)
      • org.apache.tapestry.html.Shell.renderComponent(Shell.java:124)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725)
      • org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.render(DojoAjaxResponseBuilder.java:625)
      • org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725)
      • org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.render(DojoAjaxResponseBuilder.java:625)
      • org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
      • org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725)
      • org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.render(DojoAjaxResponseBuilder.java:625)
      • org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:249)
      • org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:397)
      • org.apache.tapestry.services.impl.DojoAjaxResponseBuilder.renderResponse(DojoAjaxResponseBuilder.java:238)
      • org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:33)
      • $ResponseRenderer_113f3dd3744.renderResponse($ResponseRenderer_113f3dd3744.java)
      • org.apache.tapestry.engine.DirectService.service(DirectService.java:147)
      • sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      • sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      • sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      • java.lang.reflect.Method.invoke(Unknown Source)
      • de.alemo.security.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:59)
      • $Proxy0.service(Unknown Source)
      • $IEngineService_113f3dd37c6.service($IEngineService_113f3dd37c6.java)
      • org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:72)
      • org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:237)
      • org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54)
      • $WebRequestServicer_113f3dd379a.service($WebRequestServicer_113f3dd379a.java)
      • org.apache.tapestry.services.impl.DisableCachingFilter.service(DisableCachingFilter.java:54)
      • $WebRequestServicerFilter_113f3dd379c.service($WebRequestServicerFilter_113f3dd379c.java)
      • $WebRequestServicer_113f3dd379e.service($WebRequestServicer_113f3dd379e.java)
      • $WebRequestServicer_113f3dd3796.service($WebRequestServicer_113f3dd3796.java)
      • org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:61)
      • $ServletRequestServicer_113f3dd377c.service($ServletRequestServicer_113f3dd377c.java)
      • org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
      • $ServletRequestServicerFilter_113f3dd3778.service($ServletRequestServicerFilter_113f3dd3778.java)
      • $ServletRequestServicer_113f3dd377e.service($ServletRequestServicer_113f3dd377e.java)
      • org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
      • $ServletRequestServicerFilter_113f3dd3776.service($ServletRequestServicerFilter_113f3dd3776.java)
      • $ServletRequestServicer_113f3dd377e.service($ServletRequestServicer_113f3dd377e.java)
      • org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
      • $ServletRequestServicerFilter_113f3dd377a.service($ServletRequestServicerFilter_113f3dd377a.java)
      • $ServletRequestServicer_113f3dd377e.service($ServletRequestServicer_113f3dd377e.java)
      • $ServletRequestServicer_113f3dd3770.service($ServletRequestServicer_113f3dd3770.java)
      • org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:126)
      • org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:103)
      • javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      • javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      • org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      • org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      • org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      • org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      • org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      • org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      • org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      • org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      • org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
      • org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      • org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      • org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      • org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      • java.lang.Thread.run(Unknown Source)

      Removing the Style component fixes the problem.

      Attachments

        1. Test.html
          1 kB
          Ulrich Stärk
        2. Test.java
          0.6 kB
          Ulrich Stärk

        Activity

          People

            andyhot Andreas Andreou
            gloeglm Michael Gloegl
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: