permaculture playing cards*
The moose likes Struts and the fly likes Ways of getting [Servlet Error]- [BeanUtils.populate] exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Ways of getting [Servlet Error]- [BeanUtils.populate] exception" Watch "Ways of getting [Servlet Error]- [BeanUtils.populate] exception" New topic
Author

Ways of getting [Servlet Error]- [BeanUtils.populate] exception

Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
Hello Ranchers,
What are the possible ways of getting

[Servlet Error]- [BeanUtils.populate]: java.lang.IllegalArgumentException: No bean specified.

I know 2 reasons.
First, this error usually occurs when you have specified a form name that does not exist in your <html: form> tag. For example, you specified <html: form action="/myAction" name="myForm" /> and 'myForm' is not the name of a form associated with myAction in the struts-config file

Secondly, in your form-bean you have some value object as an attribute with the setter and getter. One must initialize that value object at the time of loading of the form bean.

is there any other reason for getting this error.


Regards,<br />Akshay Singhvi<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (86%)
Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
Any reply ranchers....
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
See question 10 of the JavaRanch Struts FAQ


Merrill
Consultant, Sima Solutions
Akshay Singhvi
Ranch Hand

Joined: Nov 08, 2005
Posts: 93
Hi,
I don't think that is relevant to problem posted by me. Can some one put some light on this.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Ways of getting [Servlet Error]- [BeanUtils.populate] exception