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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to