aspose file tools*
The moose likes Struts and the fly likes java.lang.StackOverflowError getting while Validation is going Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "java.lang.StackOverflowError getting while Validation is going" Watch "java.lang.StackOverflowError getting while Validation is going" New topic
Author

java.lang.StackOverflowError getting while Validation is going

Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
Hi,

In our project we are using Struts-Spring-iBATIS, I did one complete flow successfully, but when I tried to run the application with myform extends ValidatorForm and used validation rules from validation.xml, then I got java.lang.StackOverflowError. i.e. throwing error continuously on console for 2 mins. this is really fed up with this.

then I tried to avoid ValidationForm and used Actionform and written vaidation rules under validate(), but same error.

I tried to write client side validations using javascrip, then also same.

what would i do to avoid this situation?

thanks,
Sumant K


Thanks,
Kumar
Marimuthu Madasamy
Ranch Hand

Joined: Jun 07, 2007
Posts: 72

Make sure that the 'input' attribute of 'action' element in struts-config.xml doesn't call back the same action to which the form was submitted.


- Marimuthu Madasamy
Simpson Kumar
Ranch Hand

Joined: Mar 19, 2008
Posts: 261
hi Marimuthu,

thank you very much..!

I got validation successfully, I haven't observed it before.

thanks,
Sumant K
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.StackOverflowError getting while Validation is going