Hi,

we see this error time to time in production, and one of use here got
the problem ourselves.

We have a Form set to multipart true and a FileUploadField and
SubmitLink amongst some other fields, however there is no ajax submit.
This works 99% of the time it seems.

Now this happened using Firefox, Nick here selected the file on his
computer and hit submit, he said the browser took about 10 secs or so
then he got the error page (with the below stack) trace, and then when
back to the Form and tried again - this time is uploaded the image
file and refresh the page correctly in about 2 seconds.

Does anyone have a clue what could cause this? We're seeing them in production.


Caused by: java.lang.IllegalStateException: ServletRequest does not
contain multipart content. One possible solution is to explicitly call
Form.setMultipart(true), Wicket tries its best to auto-detect
multipart forms but there are certain situation where it cannot.
        at 
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.<init>(MultipartServletWebRequest.java:113)
        at 
org.apache.wicket.protocol.http.servlet.MultipartServletWebRequest.<init>(MultipartServletWebRequest.java:83)
        at 
org.apache.wicket.extensions.ajax.markup.html.form.upload.MultipartRequest.<init>(MultipartRequest.java:41)
        at 
org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadWebRequest.newMultipartWebRequest(UploadWebRequest.java:66)
        at 
org.apache.wicket.markup.html.form.Form.handleMultiPart(Form.java:1668)
        at 
org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:862)
        ... 32 more
2010-11-04 15:07:32,053 ERROR -
hub.app.wicket.app.HubWebRequestCycle.onRuntimeException(HubWebRequestCycle.java:67)
67 HubWebRequestCycle         - Runtime Exception!
org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of
interface org.apache.wicket.markup.html.form.IFormSubmitListener
targeted at component [MarkupContainer [Component id = form]] threw an
exception
        at 
org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193)
        at 
org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)
        at 
org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)
        at 
org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)
        at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
        at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)
        at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
        at 
org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)
        at 
org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at 
com.wideplay.warp.persist.PersistenceFilter$3.run(PersistenceFilter.java:141)
        at 
com.wideplay.warp.persist.internal.Lifecycles.failEarlyAndLeaveNoOneBehind(Lifecycles.java:29)
        at 
com.wideplay.warp.persist.PersistenceFilter.doFilter(PersistenceFilter.java:155)
        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:128)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                                          308166,2-9    99%
        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:293)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
        at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
        at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:619)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to