-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All.
I guess this error is very similar to BUG 1850895, so I think the solution should be the same.
On WebSphere 5.1.1, with ZK 3.5, when I call Filedownload.save, I get:
org.zkoss.web.servlet.http.Encodes encodeURL:415 SEVERE: >>java.lang.IllegalStateException: Context has not been prepared for next connection >> at com.ibm.ws.webcontainer.srt.NilSRPConnection.getCookieValue(SRTConnectionContext.java:490) >> at com.ibm.ws.webcontainer.srt.SRTServletRequest.getCookieValue(SRTServletRequest.java:1672) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getRequestedSessionIdFromCookie(SessionContext.java:2968) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getRequestedSessionId(SessionContext.java:2572) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getIHttpSession(SessionContext.java:2468) >> at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.getSession(WebAppDispatcherContext.java:183)
Done.
The new BUG is 2114380
Thank you very much. I really need this to be fixed (disable event thread is not an option, 'cause it would mean I've to
rewrite the whole application (I use Filedownload, Fileupload, Messagebox, etc.)
It looks like same problem on Filedownload.
May we can do some effort on this, please post it to be an new bug, then we can track it.
Ok, after check this related url http://forums.sun.com/thread.jspa?messageID=825790
It is like a Event Thread problem of ZK in some application server.
My suggestion is 'turn off event thread".
It will take you some effort, but maybe could solve this problem and has better performance of your application
check this document http://www.zkoss.org/doc/devguide/ch11s02.html
Here is the full stacktrace
[17/09/08 10.45.50:649 CEST] 579b9a4e SystemErr R 17-set-2008 10.45.50 org.zkoss.web.servlet.http.Encodes encodeURL:415 SEVERE: >>java.lang.IllegalStateException: Context has not been prepared for next connection >> at com.ibm.ws.webcontainer.srt.NilSRPConnection.getCookieValue(SRTConnectionContext.java:490) >> at com.ibm.ws.webcontainer.srt.SRTServletRequest.getCookieValue(SRTServletRequest.java:1672) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getRequestedSessionIdFromCookie(SessionContext.java:2968) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getRequestedSessionId(SessionContext.java:2572) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getIHttpSession(SessionContext.java:2468) >> at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.getSession(WebAppDispatcherContext.java:183) >>... [17/09/08 10.45.50:649 CEST] 3011da4e SystemErr R 17-set-2008 10.45.50 org.zkoss.zk.ui.impl.UiEngineImpl handleError:1084 SEVERE: >>org.apache.commons.lang.UnhandledException: org.zkoss.zk.ui.UiException: javax.servlet.ServletException: Unable to encode /zkau/view/g3di/dwnmed-2/myfile.crt >>org.zkoss.zk.ui.UiException: javax.servlet.ServletException: Unable to encode /zkau/view/g3di/dwnmed-2/Client Certificate.crt >>javax.servlet.ServletException: Unable to encode /zkau/view/g3di/dwnmed-2/Client Certificate.crt >>java.lang.IllegalStateException: Context has not been prepared for next connection >> at com.ibm.ws.webcontainer.srt.NilSRPConnection.getCookieValue(SRTConnectionContext.java:490) >> at com.ibm.ws.webcontainer.srt.SRTServletRequest.getCookieValue(SRTServletRequest.java:1672) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getRequestedSessionIdFromCookie(SessionContext.java:2968) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getRequestedSessionId(SessionContext.java:2572) >> at com.ibm.ws.webcontainer.httpsession.SessionContext.getIHttpSession(SessionContext.java:2468) >> at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.getSession(WebAppDispatcherContext.java:183) >>...
Is there any related trace log start with "org.zkoss....", if yes, please post it.
or, just post the full stack trace ..
Asked: 2008-09-16 14:35:31 +0800
Seen: 401 times
Last updated: Sep 22 '08