ajax4jsf
  1. ajax4jsf
  2. AJAX4JSF-7

NullPointerException - org.ajax4jsf.framework.resource.InternetResourceBase.getUri

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: Other

    • Issuezilla Id:
      7

      Description

      I am experiencing NullPointerException (stack trace below) while trying to
      integrate A4J - the filter loads all OK but the exception is thrown when
      rendering an established JSF file, without any additions for A4J. Platform
      = JBoss 4.0.4, Fedora Core 4, Sun JDK 1.0.5.06

      2006-07-29 09:45:46,055 ERROR [org.apache.catalina.core.ContainerBase.
      [jboss.web].[localhost].[/homeXtreme].[jsp]] Servlet.service() for servlet jsp
      threw exception
      java.lang.NullPointerException
      at org.ajax4jsf.framework.resource.InternetResourceBase.getUri
      (InternetResourceBase.java:214)
      at org.ajax4jsf.framework.resource.BaseResourceRenderer.encodeBegin
      (BaseResourceRenderer.java:47)
      at org.ajax4jsf.framework.resource.OneTimeRenderer.encodeBegin
      (OneTimeRenderer.java:41)
      at org.ajax4jsf.framework.resource.BaseResourceRenderer.encode
      (BaseResourceRenderer.java:33)
      at org.ajax4jsf.framework.resource.InternetResourceBase.encode
      (InternetResourceBase.java:300)
      at
      org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.encodeResourcesArray
      (HeaderResourcesRendererBase.java:124)
      at
      org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.preEncodeBegin
      (HeaderResourcesRendererBase.java:110)
      at org.ajax4jsf.framework.renderer.RendererBase.encodeBegin
      (RendererBase.java:87)
      at javax.faces.component.UIComponentBase.encodeBegin
      (UIComponentBase.java:683)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive
      (HtmlBasicRenderer.java:433)
      at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive
      (HtmlBasicRenderer.java:440)
      at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren
      (GridRenderer.java:233)
      at javax.faces.component.UIComponentBase.encodeChildren
      (UIComponentBase.java:701)
      at javax.faces.webapp.UIComponentTag.encodeChildren
      (UIComponentTag.java:607)
      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:544)
      at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag
      (PanelGridTag.java:460)
      at org.apache.jsp.common.baseViewLayout_jsp._jspx_meth_h_panelGrid_0
      (org.apache.jsp.common.baseViewLayout_jsp:183)
      at org.apache.jsp.common.baseViewLayout_jsp._jspService
      (org.apache.jsp.common.baseViewLayout_jsp:81)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service
      (JspServletWrapper.java:322)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile
      (JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
      (ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter
      (ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke
      (ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.doInclude
      (ApplicationDispatcher.java:574)
      at org.apache.catalina.core.ApplicationDispatcher.include
      (ApplicationDispatcher.java:499)
      at org.apache.jasper.runtime.JspRuntimeLibrary.include
      (JspRuntimeLibrary.java:966)
      at org.apache.jasper.runtime.PageContextImpl.doInclude
      (PageContextImpl.java:633)
      at org.apache.jasper.runtime.PageContextImpl.include
      (PageContextImpl.java:627)
      at sun.reflect.GeneratedMethodAccessor143.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke
      (DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.apache.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:164)
      at org.apache.tiles.TilesUtil.doInclude(TilesUtil.java:178)
      at org.apache.tiles.taglib.InsertTag.doInclude(InsertTag.java:907)
      at org.apache.tiles.taglib.InsertTag$InsertHandler.doEndTag
      (InsertTag.java:1113)
      at org.apache.tiles.taglib.InsertTag.doEndTag(InsertTag.java:485)
      at org.apache.jsp.hx.pond_jsp._jspx_meth_t_insert_0
      (org.apache.jsp.hx.pond_jsp:132)
      at org.apache.jsp.hx.pond_jsp._jspx_meth_f_view_0
      (org.apache.jsp.hx.pond_jsp:101)
      at org.apache.jsp.hx.pond_jsp._jspService(org.apache.jsp.hx.pond_jsp:67)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.jasper.servlet.JspServletWrapper.service
      (JspServletWrapper.java:322)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile
      (JspServlet.java:314)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
      (ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter
      (ApplicationFilterChain.java:173)
      at org.apache.catalina.core.ApplicationDispatcher.invoke
      (ApplicationDispatcher.java:672)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest
      (ApplicationDispatcher.java:463)
      at org.apache.catalina.core.ApplicationDispatcher.doForward
      (ApplicationDispatcher.java:398)
      at org.apache.catalina.core.ApplicationDispatcher.forward
      (ApplicationDispatcher.java:301)
      at com.sun.faces.context.ExternalContextImpl.dispatch
      (ExternalContextImpl.java:322)
      at com.sun.faces.application.ViewHandlerImpl.renderView
      (ViewHandlerImpl.java:130)
      at org.ajax4jsf.framework.ViewHandlerWrapper.renderView
      (ViewHandlerWrapper.java:101)
      at com.sun.faces.lifecycle.RenderResponsePhase.execute
      (RenderResponsePhase.java:87)
      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
      at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
      (ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter
      (ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
      (ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
      (ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter
      (ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke
      (StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke
      (StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke
      (CustomPrincipalValve.java:54)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
      (SecurityAssociationValve.java:174)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke
      (JaccContextValve.java:74)
      at org.apache.catalina.core.StandardHostValve.invoke
      (StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke
      (ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke
      (StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service
      (CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process
      (Http11Processor.java:868)
      at
      org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConne
      ction(Http11BaseProtocol.java:663)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
      (PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
      (MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)

        Activity

        Hide
        swells77 added a comment -

        Also JSF = Sun 1.1 RI

        Show
        swells77 added a comment - Also JSF = Sun 1.1 RI
        Hide
        swells77 added a comment -

        SORRY USER ERROR - I got a little ahead of myself; more than one web app
        involved and was (already) copying a4j .jars to (another's) web-inf/lib dir
        without yet including it's web.xml declarations. Once those were declared
        there, too, old page works as it did.

        Show
        swells77 added a comment - SORRY USER ERROR - I got a little ahead of myself; more than one web app involved and was (already) copying a4j .jars to (another's) web-inf/lib dir without yet including it's web.xml declarations. Once those were declared there, too, old page works as it did.

          People

          • Assignee:
            ajax4jsf-issues
            Reporter:
            swells77
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: