I have a reconstructed WO app; right now it is only comprised of a page to search the database. Everything displays correctly, including the to-many and to-one relationships in the page.
However, when I submit the "search" command, which has worked until now, I get a NullPointer, which is not a major problem, until you see no error messages stating WHY it occurred. Just NullPointer with
error: java.lang.NullPointerException NA : Non applicable, JIT activated
I'm pretty sure this has something to do with my newly-created to-many. Here are the bindings:
destinationDisplayKey: "department_name" relationshipKey: "departmentRelationship" sourceEntityName: "MemberRecord" sourceObject: userEntries
Java on the search: public WOComponent search() { EOFetchSpecification boundFs; EOEditingContext ec = session().defaultEditingContext(); EOFetchSpecification fs = EOFetchSpecification.fetchSpecificationNamed("fetchFindAllMembers", "MemberRecord"); //NSArray result = ec.objectsWithFetchSpecification(fs); boundFs = fs.fetchSpecificationWithQualifierBindings(userEntries); fetchResults = ec.objectsWithFetchSpecification(boundFs); return null; }
If anyone sees anything immediate, let me know. Otherwise, any pointers on to-many's would be appreciated.
Thanks, jeremy |