Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Getting Exception from RequestProcessor class  RSS feed

Kavitha Penchikala
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are getting some problem while migrating our application from Struts1.0 to Struts1.1.
We had a requirement for wizard kind of screens, where data entered in one screen need to be carried to other screens. To share data across the screen, we used form bean at session scope. When the session expires and user tried to submit the page to go to next page, Request processor throwing following exception due to invalid session.

java.lang.IllegalArgumentException: No bean specified
at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(
at org.apache.commons.beanutils.BeanUtils.setProperty(
at org.apache.commons.beanutils.BeanUtils.populate(
at org.apache.struts.util.RequestUtils.populate(
at org.apache.struts.action.RequestProcessor.processPopulate(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
This problem didn't exist while using Structs1.0. because we were doing check for valid session in the action class. Struts 1.1 is throwing above exception even before control coming to Action class.
Is it the right way to extend RequestProcessor and override processPreprocess() method to check for valid session?
Please could you suggest any other solution for this?

Thanks in advance for you help.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!