4 Replies Latest reply on Mar 8, 2007 3:43 AM by moldovan

    Error building query string for store data

    moldovan Newbie

      Hy Guys!

      I'have downloaded the latest ajax4jsf- and richfaces-Releases and implemented it in my WebApp.

      When I start my application I got the following Error:

      09:47:54,459 ERROR [InternetResourceBuilder] Error building query string for store data
      javax.faces.FacesException: Error encode resource data
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.encrypt(ResourceBuilderImpl.java:547)
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.getUri(ResourceBuilderImpl.java:296)
      at org.ajax4jsf.framework.resource.InternetResourceBase.getUri(InternetResourceBase.java:211)
      at org.ajax4jsf.framework.resource.BaseResourceRenderer.encodeBegin(BaseResourceRenderer.java:62)
      at org.ajax4jsf.framework.resource.OneTimeRenderer.encodeBegin(OneTimeRenderer.java:48)
      at org.ajax4jsf.framework.resource.BaseResourceRenderer.encode(BaseResourceRenderer.java:45)
      at org.ajax4jsf.framework.resource.InternetResourceBase.encode(InternetResourceBase.java:306)
      at org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.encodeResourcesArray(HeaderResourcesRendererBase.java:131)
      at org.ajax4jsf.framework.renderer.HeaderResourcesRendererBase.preEncodeBegin(HeaderResourcesRendererBase.java:118)
      at org.ajax4jsf.framework.renderer.RendererBase.encodeBegin(RendererBase.java:94)
      at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:515)
      at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:467)
      at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:363)
      at org.apache.jsp.Testseite_jsp._jspx_meth_rich_panel_0(Testseite_jsp.java:171)
      at org.apache.jsp.Testseite_jsp._jspx_meth_h_form_0(Testseite_jsp.java:141)
      at org.apache.jsp.Testseite_jsp._jspx_meth_f_view_0(Testseite_jsp.java:106)
      at org.apache.jsp.Testseite_jsp._jspService(Testseite_jsp.java:71)
      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:334)
      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 org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:211)
      at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:229)
      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:141)
      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 org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:688)
      at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:658)
      at org.apache.jsp.index_jsp._jspService(index_jsp.java:51)
      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:334)
      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.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at net.wimaxxed.csc.webapp.filter.CharsetFilter.doFilter(CharsetFilter.java:42)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      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.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
      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.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      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:869)
      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
      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)
      Caused by: java.lang.NullPointerException
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.encrypt(ResourceBuilderImpl.java:545)
      ... 75 more

      I'm working with myfaces1.5-Snapshot. I've implemented the Ajax4Jsf Filter as the first Filter in the web.xml, included the requiered ajax-libaries (ajax4jsf-1.1.0.jar, oscache-2.3.jar, richfaces-3.0.0.jar) in the lib-folder of the WEB-INF directory.

      Any Ideas, what I'm making wrong?

        • 1. Re: Error building query string for store data
          moldovan Newbie

          Further Information:

          -) When i run my application and comment out the a4j- or rich-Tags, als is running fine.

          -) if i only implement a4j-tags i got following error:
          javax.faces.FacesException: Resources framework is not initialised, check web.xml for Filter configuration

          -) if i implement rich-tags i got the described error from my first post, and after this error also the exception about the resources framework.

          ????

          Looks like for me, if something is wrong in my web.xml, but the web.xml-file should be ok (i only inserted the context-param for an skin and the ajax4jsf-filter before the myfaces-filter).

          • 2. Re: Error building query string for store data
            Sergey Smirnov Master

            so, how you declare the filter and filter mapping in your web.xml ?

            • 3. Re: Error building query string for store data
              moldovan Newbie

              I think i have found the error, in the declaration of the ajax4jsf filter i had writen the servlet-name "Faces Servlet" with a space between the words, and in my servelt config, i declared the servlet-name without a space.

              I will test my app at night (my first site seems to run ok within the a4j and rich-faces - Tags), and you will here, if this was error.

              • 4. Re: Error building query string for store data
                moldovan Newbie

                 

                "moldovan" wrote:
                I think i have found the error, in the declaration of the ajax4jsf filter i had writen the servlet-name "Faces Servlet" with a space between the words, and in my servelt config, i declared the servlet-name without a space.

                I will test my app at night (my first site seems to run ok within the a4j and rich-faces - Tags), and you will here, if this was error.



                Yes, this was the cause why me webapp stopped working.