Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By warlock

Thread: Invalid Argument looking up property Exception

  1. #1
    warlock is offline Member
    Join Date
    Mar 2011
    Posts
    16
    Rep Power
    0

    Default Invalid Argument looking up property Exception

    Here is a field in jsp page
    Java Code:
    <html:text property="addhierarchyVO.tcrmTx.tcrmObject.hierarchySearchBObj.hierarchyName" style="width: 1.8in;" />
    And here is my mapping in struts-config.xml
    Java Code:
    <action path="/addNode" name="MIBInfoForm" property="method"  
    validate="true" scope="request"    
    type="com.cts.mib.hierarchy.action.AddHierarchyNodeAction">   
    <forward name="success" path="/jsp/mib/hierarchy/Index.jsp" />   
    <forward name="failure" path="/jsp/mib/contract/common/Error.jsp" />   
    </action>
    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.hierarchySearchB Obj.hierarchyName" of bean: "org.apache.struts.taglib.html.BEAN" What to do?

  2. #2
    warlock is offline Member
    Join Date
    Mar 2011
    Posts
    16
    Rep Power
    0

    Default Re: Invalid Argument looking up property Exception

    Is there anybody who can give me some reason why I keep getting the above error!??

  3. #3
    warlock is offline Member
    Join Date
    Mar 2011
    Posts
    16
    Rep Power
    0

    Default Re: Invalid Argument looking up property Exception

    Ok.Found the solution to the problem.All that I needed to do was to instansiate the bean in my action class..
    Like this:
    HierarchySearchBObj hierarchySearchBObj=new HierarchySearchBObj();
    mibForm.getAddhierarchyVO().getTcrmTx().getTcrmObj ect().setHierarchySearchBObj(hierarchySearchBObj);
    DarrylBurke likes this.

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,422
    Rep Power
    20

    Default Re: Invalid Argument looking up property Exception

    Thank you for sharing the solution, in the true spirit of a forum!

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Java net SocketException Invalid argument create Socket.Java
    By compustarsg in forum Advanced Java
    Replies: 3
    Last Post: 10-13-2011, 09:51 AM
  2. No Property Editor Found Exception -JSF 1.2
    By venkatcanwin in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 11-18-2010, 07:02 AM
  3. Replies: 1
    Last Post: 10-23-2010, 03:42 PM
  4. Replies: 1
    Last Post: 07-02-2008, 03:15 PM
  5. Invalid Argument error in IE7
    By Kaviurs in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-01-2008, 10:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •