File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes ServletException with BeanUtils.populate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "ServletException with BeanUtils.populate" Watch "ServletException with BeanUtils.populate" New topic

ServletException with BeanUtils.populate

tukai chakraborty

Joined: Feb 02, 2004
Posts: 11
I am using DynaAction from struts 1.1 in building a form dynamically.
Say I have a purchase order form where there are multiple line items and
which are being added dynamically.
I have added couple of line items and then after a brief period when i try
to add more line items I get the above error javax.servlet.ServletException:BeanUtils.populate.
This occurs if there is session timeout which if I remove does not give the
above error,but which is not a viable solution.
Is there any way to get rid of this problem.
Looking forward to yours reply.
Thanks in advance
somkiat puisungnoen
Ranch Hand

Joined: Jul 04, 2003
Posts: 1312
You said ::
This occurs if there is session timeout

Please check current session is invalid/valid (timeout) before call this method.

And sometime, you can set session is not expire in DD or in your source code.

Java Developer, Thailand
tukai chakraborty

Joined: Feb 02, 2004
Posts: 11
i had tried out this option also but its not working.struts straight away calls the BeanUtils.populate method and hence resulting in the exception which i had said about.
I agree. Here's the link:
subject: ServletException with BeanUtils.populate
It's not a secret anymore!