You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/09/18 17:19:52 UTC
DO NOT REPLY [Bug 12777] New: -
NoSuchMethod Exception
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12777>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12777
NoSuchMethod Exception
Summary: NoSuchMethod Exception
Product: Tomcat 4
Version: 4.1.9
Platform: PC
OS/Version: Windows NT/2K
Status: NEW
Severity: Normal
Priority: Other
Component: Servlet & JSP API
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: ddemil@netscape.net
I am running the following code on with Tomcat 4.1.10 :
HttpSession sess = request.getSession();
sess.setAttribute("Test", new Object());
the last line generate NoSuchMethod exception. I get the same error at run time
if I used the deprecated putValue instead.
If I do this :
java.lang.reflect.Method met[] = sess.getClass().getMethods();
for (int j = 0 ; j < met.length ; j++) {
out.println("Method " + j + " of HttpSession is " + met[j].getName() + "<BR>");
}
This is what I get :
...
Method 10 of HttpSession is putValue
...
Method 14 of HttpSession is setAttribute
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>