RichFaces
  1. RichFaces
  2. RF-12062

a4j:outputMedia does not reRender in Firefox 11

    Details

    • Bugzilla Update:
      Perform
    • Similar Issues:
      Show 10 results 

      Description

      a4j:outputMedia does not reRender in Firefox 11. The following error appears:

      ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/BPM-Process].[default]] Servlet.service() for servlet default threw exception: javax.faces.FacesException: Error decode resource data
      at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:627) [:3.3.3.Final]
      at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceDataForKey(ResourceBuilderImpl.java:371) [:3.3.3.Final]
      at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:156) [:3.3.3.Final]
      at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141) [:3.3.3.Final]
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508) [:3.3.3.Final]
      at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:56) [:2.2.2.Final]
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [:2.2.2.Final]
      at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60) [:2.2.2.Final]
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) [:2.2.2.Final]
      at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) [:2.2.2.Final]
      at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158) [:2.2.2.Final]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.1.0.Final]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.1.0.Final]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.1.0.Final]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [:6.1.0.Final]
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.1.0.Final]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501) [:6.1.0.Final]
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
      at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.1.0.Final]
      at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.1.0.Final]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159) [:6.1.0.Final]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.1.0.Final]
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.1.0.Final]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.1.0.Final]
      at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.1.0.Final]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.1.0.Final]
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.1.0.Final]
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.1.0.Final]
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.1.0.Final]
      at java.lang.Thread.run(Unknown Source) [:1.6.0_31]
      Caused by: java.util.zip.DataFormatException: invalid bit length repeat
      at java.util.zip.Inflater.inflateBytes(Native Method) [:1.6.0_31]
      at java.util.zip.Inflater.inflate(Unknown Source) [:1.6.0_31]
      at java.util.zip.Inflater.inflate(Unknown Source) [:1.6.0_31]
      at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:621) [:3.3.3.Final]
      ... 30 more

      The picture is not visible. But if you refresh the site with f5, there is no error and all works great.

      1. WebXml.patch
        1 kB
        Benjamin Riefenstahl

        Activity

        Hide
        Benjamin Riefenstahl
        added a comment - - edited

        ResourceBuilderImpl.decrypt seems to get its parameter from a URL that
        was created in the browser in JavaScript. This URL parameter than
        comes via classes InternetResourceService and WebXml to
        ResourceBuilderImpl.decrypt. Tracing into ResourceBuilderImpl.decrypt
        shows that FF11 gives us strings where the exclamation point "!" is
        encoded as "%21". IOW there is a call to URLDecoder.decode missing
        somewhere.

        For a quick fix we put that call into WebXml.java where the data is
        extracted from the URL. I'm attaching a patch that does that.

        Show
        Benjamin Riefenstahl
        added a comment - - edited ResourceBuilderImpl.decrypt seems to get its parameter from a URL that was created in the browser in JavaScript. This URL parameter than comes via classes InternetResourceService and WebXml to ResourceBuilderImpl.decrypt. Tracing into ResourceBuilderImpl.decrypt shows that FF11 gives us strings where the exclamation point "!" is encoded as "%21". IOW there is a call to URLDecoder.decode missing somewhere. For a quick fix we put that call into WebXml.java where the data is extracted from the URL. I'm attaching a patch that does that.
        Hide
        Bram Gadeyne
        added a comment -

        I'd like to use this patch but I've no experience in applying patches. How do I do this?

        kind regards

        Show
        Bram Gadeyne
        added a comment - I'd like to use this patch but I've no experience in applying patches. How do I do this? kind regards
        Hide
        Benjamin Riefenstahl
        added a comment -

        If you have the command-line patch utility, you can apply it from a terminal:

        $ cd ...../org/ajax4jsf/webapp
        $ patch -p 0 < ..../WebXml.patch

        If you are in Eclipse, that has a menu item in the context menu: "Team" -> "Apply Patch".

        Show
        Benjamin Riefenstahl
        added a comment - If you have the command-line patch utility, you can apply it from a terminal: $ cd ...../org/ajax4jsf/webapp $ patch -p 0 < ..../WebXml.patch If you are in Eclipse, that has a menu item in the context menu: "Team" -> "Apply Patch".
        Hide
        Bram Gadeyne
        added a comment -

        Thank you Benjamin,

        I've downloaded the source files for richfaces 3.3.3.Final from http://www.jboss.org/richfaces/download/stable.html

        I can not find this org/ajax4jsf/webapp folder... Do I have to execute some maven command to complete the sources? I've no experience in that either.

        Show
        Bram Gadeyne
        added a comment - Thank you Benjamin, I've downloaded the source files for richfaces 3.3.3.Final from http://www.jboss.org/richfaces/download/stable.html I can not find this org/ajax4jsf/webapp folder... Do I have to execute some maven command to complete the sources? I've no experience in that either.
        Hide
        Benjamin Riefenstahl
        added a comment -

        You just need to look for WebXml.java. That should have brought you to:

        richfaces-ui-3.3.3.Final/framework/impl/src/main/java/org/ajax4jsf/webapp/WebXml.java

        Keep at it, you'll get there

        Show
        Benjamin Riefenstahl
        added a comment - You just need to look for WebXml.java. That should have brought you to: richfaces-ui-3.3.3.Final/framework/impl/src/main/java/org/ajax4jsf/webapp/WebXml.java Keep at it, you'll get there
        Hide
        Bram Gadeyne
        added a comment -

        I've attached a rebuild of the richfaces impl jar. Hopefully someone else can use it.

        Show
        Bram Gadeyne
        added a comment - I've attached a rebuild of the richfaces impl jar. Hopefully someone else can use it.
        Hide
        Nina Avagyan
        added a comment -

        Is there any fix for richfaces 3.3.1 GA?
        Thanks.

        Show
        Nina Avagyan
        added a comment - Is there any fix for richfaces 3.3.1 GA? Thanks.
        Hide
        Roberto Rodrigues
        added a comment -

        thanks Benjamin Riefenstahl for the patch.
        thanks Bram Gadeyne for the rebuild, was helpful.

        Show
        Roberto Rodrigues
        added a comment - thanks Benjamin Riefenstahl for the patch. thanks Bram Gadeyne for the rebuild, was helpful.
        Hide
        Adelmo Erick santos
        added a comment -

        I'm going crazy....

        Thanks for the rebuild. Solve my problem.

        Please, if possible do a new release, my hole project stopped work because this problem!!!

        Show
        Adelmo Erick santos
        added a comment - I'm going crazy.... Thanks for the rebuild. Solve my problem. Please, if possible do a new release, my hole project stopped work because this problem!!!

          People

          • Assignee:
            Unassigned
            Reporter:
            Toni Neubert
          • Votes:
            14 Vote for this issue
            Watchers:
            20 Start watching this issue

            Dates

            • Created:
              Updated: