myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Kramer" <alfo...@gmx.li>
Subject Invalid Stream Header at myFaces... State Utils
Date Sat, 02 Aug 2008 10:37:47 GMT
Hey Guys,

 

I got a serious problem I can not resolve.

 

I had a javax.crypto.BadPaddingException - Given final block not properly
padded when setting-up a small test page.

To solve the problem I added:

 

<context-param>

     <param-name>org.apache.myfaces.USE_ENCRYPTION</param-name>

     <param-value>false</param-value>

</context-param>

 

To my web.xml as Jonathan Harley suggested: 

http://markmail.org/message/t5cm2mmxzuaxcypp?q=javax%2Ecrypto%2EBadPaddingEx
ception+-+Given+final+block+not+properly+padded+list:org%2Eapache%2Emyfaces%
2Eusers

 

Unfortunately, I receive a new error, which I can't solve:

The error ocurrs, when I try to login on my website. On the site I've got 2
inputText Fields which submit their values to a loginBean which returns
"success" by default.

 

javax.faces.FacesException: java.io.StreamCorruptedException: invalid stream
header: 782518C5

            at
org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(StateUtils.java:3
25)

            at
org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:2
43)

            at
org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(Htm
lResponseStateManager.java:184)

            at
org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getTreeStructureT
oRestore(HtmlResponseStateManager.java:148)

            at
org.ajax4jsf.application.AjaxStateManager.restoreLogicalViewId(AjaxStateMana
ger.java:351)

            at
org.ajax4jsf.application.AjaxStateManager.restoreStateFromSession(AjaxStateM
anager.java:246)

            at
org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:
226)

            at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHan
dlerImpl.java:506)

            at
org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.j
ava:116)

            at
org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor
.java:85)

            at
org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:1
03)

            at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)

            at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:148)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:290)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

            at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)

            at
org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)

            at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.jav
a:366)

            at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)

            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:235)

            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:206)

            at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:233)

            at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)

            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:845)

            at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http
11Protocol.java:583)

            at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)

            at java.lang.Thread.run(Unknown Source)

Caused by: java.io.StreamCorruptedException: invalid stream header: 782518C5

            at java.io.ObjectInputStream.readStreamHeader(Unknown Source)

            at java.io.ObjectInputStream.<init>(Unknown Source)

            at
org.apache.myfaces.shared_impl.util.MyFacesObjectInputStream.<init>(MyFacesO
bjectInputStream.java:41)

            at
org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory.getObjectInp
utStream(DefaultSerialFactory.java:43)

            at
org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(StateUtils.java:3
15)

            ... 30 more

 

 

So I am using MyFaces 1.2.3 with Tomahawk 6.018 and richfaces 3.2.1

 

Please help.

 

Thank you very much in advance.

 

Regards,

Andreas


Mime
View raw message