tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benno Luthiger" <benno.luthi...@id.ethz.ch>
Subject Problem with HttpSession.setAttribute
Date Wed, 31 Jul 2002 07:55:51 GMT
Hello

Using Tomcat 4 (in this example 4.0.4) I have problems with
HttpSession.setAttribute(String name, Object value).

Tomcat implements this interface which StandardSessionFacade:
StandardSessionFacade.setAttribute(String name, Object value)

The method call is delegated to StandardSession:
StandardSession.setAttribute(String name, Object value)

On line 1185 a HttpSessionBindingEvent is created with the extended
constructor:
new HttpSessionBindingEvent((HttpSession) this, name, value)

This constructor then throws the following
java.lang.NoSuchMethodError
	at
org.apache.catalina.session.StandardSession.setAttribute(StandardSession.jav
a:1186)
	at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:191)
	at
org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessi
onFacade.java:191)
	at
org.hip.kernel.servlet.impl.AbstractRequestHandler.getContext(AbstractReques
tHandler.java:261)
	at
org.hip.kernel.servlet.impl.AbstractRequestHandler.doGet(AbstractRequestHand
ler.java:172)
	at
org.hip.vif.admin.servlets.impl.VIFAdminRequestHandler.doGet(VIFAdminRequest
Handler.java:80)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
	at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
	at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1027)
	at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125
)
	at java.lang.Thread.run(Thread.java:484)

An acceptable workaround would be to create the HttpSessionBindingEvent
without the value object, i.e. new
HttpSessionBindingEvent((HttpSession)this, name). After modifying the code
in this way, my application worked without problems with Tomcat 4.

If I had the source-code of javax.servlet.http package, I could debug
further and eventually locate and correct the error.

Greetings
Benno


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message