0

IllegalStateException on Filedownload.save

asked 2008-09-16 14:35:31 +0800

ziccardi gravatar image ziccardi
321 7

updated 2008-09-16 14:58:36 +0800

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) 


Do you have any advice?

Regards,
Massimiliano

delete flag offensive retag edit

7 Replies

Sort by ยป oldest newest

answered 2008-09-22 07:11:51 +0800

ziccardi gravatar image ziccardi
321 7

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.)

link publish delete flag offensive edit

answered 2008-09-20 16:15:29 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

updated 2008-09-20 16:15:59 +0800

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.

link publish delete flag offensive edit

answered 2008-09-18 07:04:51 +0800

ziccardi gravatar image ziccardi
321 7

Hi Dennis.

Did you give a look at BUG 1850895?

There is no way to solve it the same way?

Thank you very much

link publish delete flag offensive edit

answered 2008-09-18 01:53:49 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

updated 2008-09-18 01:55:17 +0800

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

link publish delete flag offensive edit

answered 2008-09-17 14:14:33 +0800

ziccardi gravatar image ziccardi
321 7

Any news?
Do you need some other information I can provide?

Regards.

link publish delete flag offensive edit

answered 2008-09-17 08:43:36 +0800

ziccardi gravatar image ziccardi
321 7

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)
>>...

link publish delete flag offensive edit

answered 2008-09-17 08:33:34 +0800

dennis gravatar image dennis
3679 1 6
http://www.javaworld.com....

Is there any related trace log start with "org.zkoss....", if yes, please post it.
or, just post the full stack trace ..

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-09-16 14:35:31 +0800

Seen: 401 times

Last updated: Sep 22 '08

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More