File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Invalid Argument looking up property Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Invalid Argument looking up property Exception" Watch "Invalid Argument looking up property Exception" New topic
Author

Invalid Argument looking up property Exception

Ayan Biswas
Ranch Hand

Joined: Jul 10, 2010
Posts: 104
Here is a field in jsp page

And here is my mapping in struts-config.xml

When the page loads firstly it displays the textbox properly.But when I click a hyperLink and the control goes to the AddHierarchyNodeAction class and then returns back to the same page it shows the following error.(The error persists even if I keep my action class blank)
Invalid argument looking up property: "addhierarchyVO.tcrmTx.tcrmObject.hierarchySearchBObj.hierarchyName" of bean: "org.apache.struts.taglib.html.BEAN"
Why is this happening?


AyanBiswas
Ayan Biswas
Ranch Hand

Joined: Jul 10, 2010
Posts: 104
Ok.Found the solution to my problem(after a lot of googling).All that I needed to do was to instansiate the bean in my action class..Since ,if the property of a bean is null it shows property not found exception
This is what I wrote in my action class
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Invalid Argument looking up property Exception