The Source for Java Technology Collaboration
User: Password:



Start New Message Delete Post a Reply

Article: 
 Further Down the Trail
Subject:  Parent child problem
Date:  2005-12-29 04:55:56
From:  oomtuinstoel


I get the following error when I try to add a child to a parent:
"org.apache.hivemind.ApplicationRuntimeException
Failure invoking listener method 'public void org.trails.page.EditPage.saveAndReturn(org.apache.tapestry.IRequestCycle)' on $EditPage_56@18dbef1[KindEdit]: target is null for method add
component: $EditPage_56@18dbef1[KindEdit]
location: context:/WEB-INF/KindEdit.page, line 2, column 54
1 <!DOCTYPE page-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd">
2 <page-specification class="org.trails.page.EditPage">
3 <property name="model" persist="session"/>
4 <property name="nextPage" />
5
6 <bean name="numberValidator" class="org.apache.tapestry.valid.NumberValidator" lifecycle="page">
7 <set name="valueType">"int"</set>

java.lang.NullPointerException
target is null for method add"

 Feed java.net RSS Feeds