Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any reply ranchers....
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See question 10 of the JavaRanch Struts FAQ
 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I don't think that is relevant to problem posted by me. Can some one put some light on this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic