Hi folks,
I am getting the following exception when using TableFormBuilder to create a form.
Here is my code:
Code:public class ConversationForm extends AbstractForm { public ConversationForm(FormModel model) { super(model, "ConversationForm"); } @Override protected JComponent createFormControl() { TableFormBuilder formBuilder = new TableFormBuilder(getBindingFactory()); formBuilder.add("requestMethod"); formBuilder.add("requestUrl"); formBuilder.add("requestVersion"); formBuilder.row(); formBuilder.add("requestContent"); formBuilder.row(); formBuilder.add("responseVersion"); formBuilder.add("responseStatus"); formBuilder.add("responseMessage"); formBuilder.row(); formBuilder.add("responseContent"); return formBuilder.getForm(); } }The null pointer seems to be that the value that is being passed to the HashTable is null (not the key). As best I can judge, this is related to the undoCommand globalID. I have tried to debug this, but I have been unsuccessful so far.Code:java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source) at javax.swing.text.JTextComponent$DefaultKeymap.addActionForKeyStroke(Unknown Source) at org.springframework.richclient.text.TextComponentPopup.registerAccelerators(TextComponentPopup.java:156) at org.springframework.richclient.text.TextComponentPopup.<init>(TextComponentPopup.java:108) at org.springframework.richclient.text.TextComponentPopup.attachPopup(TextComponentPopup.java:67) at org.springframework.richclient.text.TextComponentPopupInterceptorFactory$TextComponentPopupInterceptor.processComponent(TextComponentPopupInterceptorFactory.java:55) at org.springframework.richclient.form.builder.support.ChainedInterceptorFactory$ChainedInterceptor.processComponent(ChainedInterceptorFactory.java:82) at org.springframework.richclient.form.binding.support.AbstractBindingFactory.interceptBinding(AbstractBindingFactory.java:90) at org.springframework.richclient.form.binding.support.AbstractBindingFactory.createBinding(AbstractBindingFactory.java:68) at org.springframework.richclient.form.binding.support.AbstractBindingFactory.createBinding(AbstractBindingFactory.java:53) at org.springframework.richclient.form.builder.AbstractFormBuilder.getDefaultBinding(AbstractFormBuilder.java:72) at org.springframework.richclient.form.builder.TableFormBuilder.add(TableFormBuilder.java:55) at org.springframework.richclient.form.builder.TableFormBuilder.add(TableFormBuilder.java:47) at org.owasp.webscarab.ui.ConversationForm.createFormControl(ConversationForm.java:27)
Does anyone have any ideas?
Thanks,
Rogan


Reply With Quote
Mine, eclipse or Spring? Should Spring parse its XMLs better?
