9 Replies Latest reply: Jul 27, 2012 5:04 AM by Federico Luna RSS

Has anybody got error like this?

Chen Chuhao Newbie

 

Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: Error decode resource data
 at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:610)
 at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceDataForKey(ResourceBuilderImpl.java:360)
 at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:156)
 at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:500)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.apple.www.utils.AccessControlFilter.doFilter(AccessControlFilter.java:36)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)
Caused by: java.util.zip.DataFormatException: unknown compression method
 at java.util.zip.Inflater.inflateBytes(Native Method)
 at java.util.zip.Inflater.inflate(Inflater.java:221)
 at java.util.zip.Inflater.inflate(Inflater.java:238)
 at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:604)
 ... 19 more
2009-1-10 1:44:06 org.apache.catalina.core.StandardWrapperValve invoke
严�: Servlet.service() for servlet Faces Servlet threw exception
javax.faces.FacesException: Error decode resource data
 at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:610)
 at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceDataForKey(ResourceBuilderImpl.java:360)
 at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:156)
 at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
 at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:500)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at com.apple.www.utils.AccessControlFilter.doFilter(AccessControlFilter.java:36)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 at java.lang.Thread.run(Thread.java:619)
Caused by: java.util.zip.DataFormatException: unknown compression method
 at java.util.zip.Inflater.inflateBytes(Native Method)
 at java.util.zip.Inflater.inflate(Inflater.java:221)
 at java.util.zip.Inflater.inflate(Inflater.java:238)
 at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:604)
 ... 19 more


  • 1. Re: Has anybody got error like this?
    Nick Belaevski Master

    Hello,

    No, I haven't seen such yet. How to reproduce it?

  • 2. Re: Has anybody got error like this?
    Chen Chuhao Newbie

    It seems that it's cause by a self define filter...
    >>>chain.doFilter(req, res);

  • 3. Re: Has anybody got error like this?
    Chen Chuhao Newbie

     

    Servlet.service() for servlet Faces Servlet threw exception
    org.ajax4jsf.resource.ResourceNotFoundException: Resource not registered : org/richfaces/renderkit/html/scripts/Login
     at org.ajax4jsf.resource.ResourceBuilderImpl.getResource(ResourceBuilderImpl.java:397)


  • 4. Re: Has anybody got error like this?
    Ilya Shaikovsky Master

    we beed project sample or at list environment info with conf files listings in order to locate this.

  • 5. Re: Has anybody got error like this?
    Agustin Sivoplás Ferrari Expert

    Hi, i am having the same error, any solution?

  • 6. Re: Has anybody got error like this?
    Agustin Sivoplás Ferrari Expert

    I think that started to happen since it enabled org.ajax4jsf.COMPRESS_SCRIPT in my application, but i`m not sure.

            <param-name>org.ajax4jsf.COMPRESS_SCRIPT</param-name>
            <param-value>true</param-value>
    </context-param>

  • 7. Re: Has anybody got error like this?
    Victor Bonafe Newbie

    Hello, i'm having the same problem only in production environment.

     

    I don't use COMPRESS_SCRIPT and don't know where to start looking.

    Here's my stacktrace:

     

    Jul 25, 2011 10:13:50 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet Faces Servlet threw exception
    javax.faces.FacesException: Error decode resource data
        at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:627)
        at org.ajax4jsf.resource.ResourceBuilderImpl.getResourceDataForKey(ResourceBuilderImpl.java:371)
        at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:156)
        at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:141)
        at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Unknown Source)
    Caused by: java.util.zip.DataFormatException: incorrect data check
        at java.util.zip.Inflater.inflateBytes(Native Method)
        at java.util.zip.Inflater.inflate(Unknown Source)
        at java.util.zip.Inflater.inflate(Unknown Source)
        at org.ajax4jsf.resource.ResourceBuilderImpl.decrypt(ResourceBuilderImpl.java:621)
        ... 16 more
    

     

  • 8. Re: Has anybody got error like this?
    carmelo aprile Newbie

    Hi,

    It seems a problem related to the browser. If I use Firefox 12.0 I have the same error but if I use Rekonq the error does not appear...