[Yanel-dev] [Bug 5626] New: ThreadUsecaseResource: error when
accessing request
bugzilla-daemon at bugzilla.wyona.com
bugzilla-daemon at bugzilla.wyona.com
Mon Oct 29 13:32:35 CET 2007
http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=5626
Summary: ThreadUsecaseResource: error when accessing request
Product: Yanel
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal (C)
Priority: P2
Component: General
AssignedTo: josias.thoeny at wyona.org
ReportedBy: josias.thoeny at wyona.org
QAContact: yanel-development at wyona.com
The lifetime of a HttpServletRequest expires when the service() method of the
servlet is finished.
This means that accessing the request object from a background thread yields
unpredictable results.
e.g. the following exception may occur:
Caused by: java.lang.NullPointerException
at org.apache.catalina.connector.Request.parseParameters(Request.java:2339)
at org.apache.catalina.connector.Request.getParameter(Request.java:998)
at
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:352)
at
javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:157)
at
org.wyona.yanel.servlet.communication.HttpRequest.getParameter(HttpRequest.java:82)
at
org.wyona.yanel.impl.DefaultLanguageHandler.getLocalizationLanguage(DefaultLanguageHandler.java:44)
at org.wyona.yanel.core.Resource.getRequestedLanguage(Resource.java:293)
at
org.wyona.yanel.impl.resources.BasicXMLResource.getXMLView(BasicXMLResource.java:144)
... 8 more
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Yanel-development
mailing list