Announcement Announcement Module
Collapse
No announcement yet.
Pet clinic example (java.lang.NullPointerException) Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pet clinic example (java.lang.NullPointerException)

    When I go to add a pet I get:

    Code:
    opened
    gained
    2006-03-16 13:25:34,268 ERROR org.springframework.richclient.application.config.ApplicationLifecycleAdvisor - 
    java.lang.NullPointerException
    	at org.springframework.richclient.samples.petclinic.ui.binder.PetTypeBinder.access$0(PetTypeBinder.java:42)
    	at org.springframework.richclient.samples.petclinic.ui.binder.PetTypeBinder$3.getValueModel(PetTypeBinder.java:69)
    	at org.springframework.richclient.form.binding.support.CustomBinding.<init>(CustomBinding.java:35)
    	at org.springframework.richclient.form.binding.swing.ComboBoxBinding.<init>(ComboBoxBinding.java:58)
    	at org.springframework.richclient.samples.petclinic.ui.binder.PetTypeBinder$3.<init>(PetTypeBinder.java:67)
    	at org.springframework.richclient.samples.petclinic.ui.binder.PetTypeBinder.doBind(PetTypeBinder.java:67)
    	at org.springframework.richclient.form.binding.support.AbstractBinder.bind(AbstractBinder.java:96)
    	at org.springframework.richclient.form.binding.support.AbstractBinder.bind(AbstractBinder.java:84)
    	at org.springframework.richclient.form.binding.support.AbstractBindingFactory.createBinding(AbstractBindingFactory.java:67)
    	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.springframework.richclient.samples.petclinic.ui.PetForm.createFormControl(PetForm.java:36)
    	at org.springframework.richclient.form.AbstractForm.createControl(AbstractForm.java:275)
    	at org.springframework.richclient.factory.AbstractControlFactory.getControl(AbstractControlFactory.java:48)
    	at org.springframework.richclient.dialog.FormBackedDialogPage.createControl(FormBackedDialogPage.java:74)
    	at org.springframework.richclient.dialog.AbstractDialogPage$1.createControl(AbstractDialogPage.java:52)
    	at org.springframework.richclient.factory.AbstractControlFactory.getControl(AbstractControlFactory.java:48)
    	at org.springframework.richclient.dialog.AbstractDialogPage.getControl(AbstractDialogPage.java:197)
    	at org.springframework.richclient.dialog.TitledPageApplicationDialog.createTitledDialogContentPane(TitledPageApplicationDialog.java:78)
    	at org.springframework.richclient.dialog.TitledApplicationDialog.createDialogContentPane(TitledApplicationDialog.java:132)
    	at org.springframework.richclient.dialog.TitledApplicationDialog.addDialogComponents(TitledApplicationDialog.java:120)
    	at org.springframework.richclient.dialog.ApplicationDialog.createDialog(ApplicationDialog.java:306)
    	at org.springframework.richclient.dialog.ApplicationDialog.showDialog(ApplicationDialog.java:272)
    	at org.springframework.richclient.samples.petclinic.ui.OwnerManagerView$NewPetAction.doExecuteCommand(OwnerManagerView.java:486)
    	at org.springframework.richclient.command.ActionCommand.execute(ActionCommand.java:188)
    	at org.springframework.richclient.command.ActionCommand$1.actionPerformed(ActionCommand.java:123)
    	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    	at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    	at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    	at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    	at java.awt.Component.processMouseEvent(Component.java:5100)
    	at java.awt.Component.processEvent(Component.java:4897)
    	at java.awt.Container.processEvent(Container.java:1569)
    	at java.awt.Component.dispatchEventImpl(Component.java:3615)
    	at java.awt.Container.dispatchEventImpl(Container.java:1627)
    	at java.awt.Component.dispatchEvent(Component.java:3477)
    	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    	at java.awt.Container.dispatchEventImpl(Container.java:1613)
    	at java.awt.Window.dispatchEventImpl(Window.java:1606)
    	at java.awt.Component.dispatchEvent(Component.java:3477)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    I ahve been working on writing my own custom bineder and kept getting a strange error, so I go the pet clinic. Boom! The sae exception.
    Last edited by mlavwilson2; Mar 16th, 2006, 02:06 PM.
Working...
X