aspose file tools*
The moose likes JSF and the fly likes javax.faces.FacesException: javax.crypto.IllegalBlockSizeException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "javax.faces.FacesException: javax.crypto.IllegalBlockSizeException:" Watch "javax.faces.FacesException: javax.crypto.IllegalBlockSizeException:" New topic
Author

javax.faces.FacesException: javax.crypto.IllegalBlockSizeException:

jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
Hello ranchers,

i am using trinidad JSF with ACEGI for my web application's security module.All works fine in my local machine(with tomcat 6) but when i deployed my war in a test environment ( with tomcat 6) i get the following exception after clicking on any link after login.

00:03:20,765 Configuration objects do not support clean-up. Update aborted ERROR
00:03:55,468 Configuration objects do not support clean-up. Update aborted ERROR
00:03:55,968 An exception occurred ERROR
javax.faces.FacesException: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:373)
at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:411)
at org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:291)
at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:240)
at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(HtmlResponseStateManager.java:187)
at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getState(HtmlResponseStateManager.java:139)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:346)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:515)
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:85)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:124)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.dnb.rmp.nautilus.frwk.web.filter.UTFEncoderFilter.doFilter(UTFEncoderFilter.java:40)
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:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: javax.crypto.IllegalBlockSizeException: Input length must be multiple of 8 when decrypting with padded cipher
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA12275)
at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA12275)
at javax.crypto.Cipher.doFinal(DashoA12275)
at org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:369)
... 41 more

I also got this INFO during the server start up

INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is
already configured for this context. The duplicate definition has been ignored.

but i didnt get it in my local machine

hope somebody helps me in resolving it

thanks,
prem


Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Have you Googled it? You should always try that first.
jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
yes ofcourse.. there is no clear solution anywhere other than to disable encryption which i dont want to do.. any other solution to it.. my test environment is windows 2003 server whereas local machine is XP
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Well, then you also know that this is already been reported as a bug. You're free to post in the buglist and add this valuable information (works in XP but not in 2003 server and that kind of details).
jeff rusty
Ranch Hand

Joined: Nov 07, 2006
Posts: 109
No it was working a week back even in my test environment.. but now it started to give problems..
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Then trackback what changed.
 
 
subject: javax.faces.FacesException: javax.crypto.IllegalBlockSizeException: