myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Titi Wangsa" <blacksnow...@gmail.com>
Subject bad padding exception
Date Mon, 02 Jul 2007 07:48:19 GMT
hello to all
i'm using myfaces 1.1.5 and tomahawk 1.1.5

i sometimes get this error
ERROR: Servlet.service() for servlet Faces Servlet threw exception
javax.crypto.BadPaddingException: Given final block not properly padded
        at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
        at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
        at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA13*..)
        at javax.crypto.Cipher.doFinal(DashoA13*..)
        at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:379)
        at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:504)
        at org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:294)
        at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:245)
        at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getTreeStructureToRestore(HtmlResponseStateManager.java:164)
        at org.apache.myfaces.application.jsp.JspStateManagerImpl.getSequenceString(JspStateManagerImpl.java:260)
        at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreTreeStructure(JspStateManagerImpl.java:230)
        at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:267)
        at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:231)
        at org.apache.shale.view.faces.ViewViewHandler.restoreView(ViewViewHandler.java:164)
        at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:81)
        at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
        at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)


it looks like the jsp state manager is trying to restore the tree structure ..
JspStateManagerImpl.restoreTreeStructure
and while doing some decryption, there is an error.

any ideas how this error occured? bad network connection?
anything that i can do to resolve this.

note: this error is a rare error
perhaps 0.0001% of the time
but it happens.

Mime
View raw message