myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veena pandit <v.kri...@gmail.com>
Subject Re: Tomahawk and file uploading
Date Mon, 19 Oct 2009 18:03:09 GMT
Try this,

http://balusc.blogspot.com/2008/02/uploading-files-with-jsf.html

Veena

On Mon, Oct 19, 2009 at 1:14 PM, Jaco le Roux <jabalsad@gmail.com> wrote:

> Hi all,
>
> I am having an issue getting the file uploading to work in my JSF project.
> I
> have tried and tested the example included in the example's war but for
> some
> reason I must be doing something differently in my own project. Please can
> someone suggest anything I may try. Thanks!
>
> I have documented the essential sources and stuff at:
> http://pastebin.ca/1630231
>
> The exception being thrown is this:
> SEVERE: 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:452
> )
>        at
>
> org.apache.myfaces.shared_impl.util.StateUtils.symmetric(StateUtils.java:494
> )
>        at
> org.apache.myfaces.shared_impl.util.StateUtils.decrypt(StateUtils.java:294)
>        at
>
> org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:2
> 43)
>        at
>
> org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(Htm
> lResponseStateManager.java:187)
>        at
>
> org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getState(HtmlResp
> onseStateManager.java:139)
>        at
>
> org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateM
> anagerImpl.java:350)
>        at
>
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHan
> dlerImpl.java:515)
>        at
> com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:175)
>        at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
>        at
> com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103)
>        at
> com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
>        at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
> FilterChain.java:290)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:206)
>        at
>
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.
> java:341)
>        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)
>
>
>
>

Mime
View raw message