thanks, that's it. ernst
> -----Oorspronkelijk bericht----- > Van: Kees Jongenburger [mailto:[EMAIL PROTECTED] > Verzonden: donderdag 19 juni 2003 10:58 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: bridge question > > > On Thursday 19 June 2003 10:39 am, Ernst Bunders wrote: > > hello > > > > can anybody tell me why this gives a nullpointer exception. > > the idear is to delete a specific relation: > > > > NodeIterator myIterator=myCloud.getList( > > "varamail", //start node > > "users,rolerel,groups", // nodePath > > "users.number",// fields > > "users.number='7850'",//constraints > > null,//order by > > null,//directions > > null,//searchDir > > true// distinct > > ).nodeIterator(); > > Hi i added the parameter names... > the last parameter is the distinct. If that is set to true > the cloud.getList skips the number fields .so it's not > possible to do getNodeValue("rolerel"); > it's possible that that is the problem/bug you need to add > rolerel.number to the list of required fields > > or try changing the true to false > > > > > Node temp; > > while(myIterator.hasNext()){ > > temp=myIterator.nextNode().getNodeValue("rolerel"); > > temp.delete(); > > } > > > > somehow i can not get the rolerel node from the > clusternode. if i try to > > get a not-relation node, like users with: > > temp=myIterator.nextNode().getNodeValue("users"); > > it works ok. I have been thinking of another way to delete > a specific > > node, but unfortunately the there is no getRelations flavour with a > > constraints argument... > > > > Ernst > > > > > > > > -- > Kees Jongenburger > Mediapark C101 Hilversum > +31 (0)35 6772910 > >
