hi Shawn, it certainly is not your fault !
i think some of core query & navigation stuff needs to be re-engineered. at some point debugging is not enough - one really needs to "try it again". i think 90% of the work invested in DbForms is NOT about the kernel - therefore i think, that even a radical a re-engineering of the query/nav-kernel would not harm the other parts of the project, which make 90%. sorry that i am no great help these days maybe i can jump into the project again but currently it looks i get no time for coding best regards, joe On Tuesday 25 February 2003 22:07, Shawn wrote: > When I try to navigate to the next record in a subform, I get: > > java.lang.NullPointerException > at > org.dbforms.taglib.DbBaseHandlerTag.getFormFieldName(DbBaseHandlerTag.java: >745) at org.dbforms.taglib.DbTextAreaTag.doStartTag(DbTextAreaTag.java:78) > > I can see in debugging that I get: > > FIELD/KEY#1 -OK > > DEBUG [Thread-3] (DbBaseHandlerTag.java:742) - keyIndex= [EMAIL PROTECTED] > DEBUG [Thread-3] (DbBaseHandlerTag.java:745) - > parentForm.getTable().getId())=7 DEBUG [Thread-3] > (DbBaseHandlerTag.java:751) - field.getId()=0 > DEBUG [Thread-3] (DbBaseHandlerTag.java:753) - [EMAIL PROTECTED] = Stringbuffer > > > fIELD/KEY#2 -OK > > DEBUG [Thread-3] (DbBaseHandlerTag.java:742) - keyIndex= [EMAIL PROTECTED] > DEBUG [Thread-3] (DbBaseHandlerTag.java:745) - > parentForm.getTable().getId())=7 DEBUG [Thread-3] > (DbBaseHandlerTag.java:751) - field.getId()=1 > DEBUG [Thread-3] (DbBaseHandlerTag.java:753) - [EMAIL PROTECTED] = Stringbuffer > > > FIELD/KEY#3 chokes on field.getId() > > DEBUG [Thread-3] (DbBaseHandlerTag.java:742) - keyIndex= [EMAIL PROTECTED] > DEBUG [Thread-3] (DbBaseHandlerTag.java:745) - > parentForm.getTable().getId())=7 INFO [Thread-3] (DbFormTag.java:2858) - > doCatch called - java.lang.NullPointerException > > Why? > > When the page loads initially, for the third key, I get: > > DEBUG [Thread-3] (DbBaseHandlerTag.java:751) - field.getId()=2 > DEBUG [Thread-3] (DbBaseHandlerTag.java:753) - [EMAIL PROTECTED]@root_2 = > Stringbuffer > > And everything is happy-- (note extra 0@ is added to all the FIELD/KEYS > in the dbBodyTag when the page is initally loaded -- and is not the > problem) > > > HOW COME NON-PROGRAMMERS FIGURE THIS OUT BEFORE ME???? AAARGH ;( > > WE NEED A CHAPTER ON SUBFORMS FOR IDIOTS LIKE ME!!!!!!!!!!!!!!!!!!! ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms
