Bug 24650 - name class of bean when throwing java.lang.NoSuchMethodException
Summary: name class of bean when throwing java.lang.NoSuchMethodException
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 4
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 4.1.28
Hardware: Other other
: P3 enhancement (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 15:51 UTC by Ralf Hauser
Modified: 2011-02-22 16:51 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Hauser 2003-11-12 15:51:30 UTC
during the manipulation of a session attribute, at one point, instead of setting
the entire form, I only gave it a field's content, i.e. a string.

1) there is no complaint when changing the class assigned to a key in the session.
2) so, I am getting an error the following kind
<<org.apache.jasper.JasperException: Exception accessing property systemNotice
for bean SysMsg: java.lang.NoSuchMethodException: Unknown property 'systemNotice'
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
...>>

Suggestion: It would be very helpful if the type of Class a bean has in this
case. If it told me that the String bean had no such method, I would have found
the error a lot quicker since I knew it should be AdminActionForm.
Comment 1 David Graham 2003-11-12 15:56:05 UTC
This is a Jasper page compiler exception, not Struts.  Also, it already names 
the bean "SysMsg" in the exception message.
Comment 2 Ralf Hauser 2003-11-12 16:09:48 UTC
sure, but this "SysMsg" by no means needs to correspond to the Class - it can
just be an arbitrary identifying string.
Comment 3 Mark Thomas 2011-02-22 16:51:41 UTC
This has been fixed in later versions. A class cast exception is reported with both class names.