It's not a secret anymore!*
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


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 "ServletException with BeanUtils.populate" Watch "ServletException with BeanUtils.populate" New topic
Author

ServletException with BeanUtils.populate

tukai chakraborty
Greenhorn

Joined: Feb 02, 2004
Posts: 11
Hi
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
Koushik
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.


SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand
tukai chakraborty
Greenhorn

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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ServletException with BeanUtils.populate