java.lang.RuntimeException: java.lang.reflect.InvocationTargetException

Spring JIRA | Joe Kelly | 1 decade ago
  1. 0

    When you try to enter a new name on the Rename Owner dialog in Petclinic, you get an InvocationTargetException. Here is the log and the stack trace: --------------------------------------------- SEVERE: Invocation target exception invoking method 'visit(firstName relationalOperator.=(eq) lastName)@class org.springframework.rules.reporting.BeanValidationResultsCollector'java.lang.IllegalArgumentException: The property 'lastName' has not been added to this form model (or to any parents.) 4-Nov-2004 10:45:29 AM org.springframework.util.visitor.ReflectiveVisitorSupport invokeVisit SEVERE: Invocation target exception invoking method 'visit(not(firstName relationalOperator.=(eq) lastName))@class org.springframework.rules.reporting.BeanValidationResultsCollector'java.lang.RuntimeException: java.lang.reflect.InvocationTa rgetException 4-Nov-2004 10:45:29 AM org.springframework.util.visitor.ReflectiveVisitorSupport invokeVisit SEVERE: Invocation target exception invoking method 'visit([And@1f4cdd2 constraints = list[[And@f3770c constraints = list[required, [strLength(arg) relationalOperator.<=(lte) 25], org.springframework.rules.constraint.RegexpConstraint@cbf92] ], not(firstName relationalOperator.=(eq) lastName)]])@class org.springframework.rules.reporting.BeanValidationResultsCollector'java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 4-Nov-2004 10:45:29 AM org.springframework.util.visitor.ReflectiveVisitorSupport invokeVisit SEVERE: Invocation target exception invoking method 'visit([And@1f4cdd2 constraints = list[[And@f3770c constraints = list[required, [strLength(arg) relationalOperator.<=(lte) 25], org.springframework.rules.constraint.RegexpConstraint@cbf92] ], not(firstName relationalOperator.=(eq) lastName)]])@class org.springframework.rules.reporting.BeanValidationResultsCollector'java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 4-Nov-2004 10:45:29 AM org.springframework.richclient.application.config.ApplicationAdvisor$DefaultEventExceptionHandler handle SEVERE: java.lang.reflect.InvocationTargetException java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:231) at org.springframework.rules.reporting.BeanValidationResultsCollector.collectPropertyResultsInternal(BeanValidationResultsCollector.java:73) at org.springframework.rules.reporting.BeanValidationResultsCollector.collectPropertyResults(BeanValidationResultsCollector.java:67) at org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.validatePropertyConstraint(ValidatingFormModel.java:298) at org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.validate(ValidatingFormModel.java:280) at org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.setValue(ValidatingFormModel.java:274) at org.springframework.richclient.forms.AbstractValueSetter.componentValueChanged(AbstractValueSetter.java:46) at org.springframework.richclient.forms.AsYouTypeTextValueSetter.controlTextValueChanged(AsYouTypeTextValueSetter.java:56) at org.springframework.richclient.forms.AsYouTypeTextValueSetter.insertUpdate(AsYouTypeTextValueSetter.java:47) at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184) at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:749) at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:706) at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114) at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:669) at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1052) at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:839) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1512) at javax.swing.JComponent.processKeyBinding(JComponent.java:2435) at javax.swing.JComponent.processKeyBindings(JComponent.java:2470) at javax.swing.JComponent.processKeyEvent(JComponent.java:2398) at java.awt.Component.processEvent(Component.java:4943) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1708) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559) at java.awt.Component.dispatchEventImpl(Component.java:3509) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Window.dispatchEventImpl(Window.java:1590) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140) at java.awt.Dialog.show(Dialog.java:551) at java.awt.Component.show(Component.java:1134) at java.awt.Component.setVisible(Component.java:1089) at org.springframework.richclient.dialog.ApplicationDialog.showDialog(ApplicationDialog.java:261) at org.springframework.richclient.samples.petclinic.ui.OwnerManagerView$RenameCommand.doExecuteCommand(OwnerManagerView.java:225) 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:1764) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) 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:5134) at java.awt.Component.processEvent(Component.java:4931) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Window.dispatchEventImpl(Window.java:1590) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224) ... 69 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:231) at org.springframework.rules.reporting.BeanValidationResultsCollector.visit(BeanValidationResultsCollector.java:89) ... 74 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224) ... 75 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:231) at org.springframework.rules.reporting.ValidationResultsCollector.visit(ValidationResultsCollector.java:90) ... 80 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224) ... 81 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:231) at org.springframework.rules.reporting.ValidationResultsCollector.visit(ValidationResultsCollector.java:137) ... 86 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224) ... 87 more Caused by: java.lang.IllegalArgumentException: The property 'lastName' has not been added to this form model (or to anyparents.) at org.springframework.util.Assert.isTrue(Assert.java:91) at org.springframework.binding.form.support.AbstractFormModel.assertValueModelNotNull(AbstractFormModel.java:184) at org.springframework.binding.form.support.AbstractFormModel.getRequiredValueModel(AbstractFormModel.java:170) at org.springframework.binding.form.support.AbstractFormModel.getValue(AbstractFormModel.java:139) at org.springframework.binding.form.support.ValidatingFormModel.getPropertyValue(ValidatingFormModel.java:80) at org.springframework.rules.constraint.property.PropertiesConstraint.test(PropertiesConstraint.java:71) at org.springframework.rules.constraint.property.AbstractPropertyConstraint.test(AbstractPropertyConstraint.java:46) at org.springframework.rules.reporting.BeanValidationResultsCollector.testBeanPropertyExpression(BeanValidationResultsCollector.java:107) at org.springframework.rules.reporting.BeanValidationResultsCollector.visit(BeanValidationResultsCollector.java:96) ... 92 more --------------------------------------------- Steps to reproduce: 1) Launch petclinic-standalone.bat 2) Right-click on Kieth Donald and click Rename... on the popup menu. The Rename Owner dialog will appear. 3) Start typing in the New First Name field...you'll get the exception. Cheers, Joe

    Spring JIRA | 1 decade ago | Joe Kelly
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
  2. 0

    When you try to enter a new name on the Rename Owner dialog in Petclinic, you get an InvocationTargetException. Here is the log and the stack trace: --------------------------------------------- SEVERE: Invocation target exception invoking method 'visit(firstName relationalOperator.=(eq) lastName)@class org.springframework.rules.reporting.BeanValidationResultsCollector'java.lang.IllegalArgumentException: The property 'lastName' has not been added to this form model (or to any parents.) 4-Nov-2004 10:45:29 AM org.springframework.util.visitor.ReflectiveVisitorSupport invokeVisit SEVERE: Invocation target exception invoking method 'visit(not(firstName relationalOperator.=(eq) lastName))@class org.springframework.rules.reporting.BeanValidationResultsCollector'java.lang.RuntimeException: java.lang.reflect.InvocationTa rgetException 4-Nov-2004 10:45:29 AM org.springframework.util.visitor.ReflectiveVisitorSupport invokeVisit SEVERE: Invocation target exception invoking method 'visit([And@1f4cdd2 constraints = list[[And@f3770c constraints = list[required, [strLength(arg) relationalOperator.<=(lte) 25], org.springframework.rules.constraint.RegexpConstraint@cbf92] ], not(firstName relationalOperator.=(eq) lastName)]])@class org.springframework.rules.reporting.BeanValidationResultsCollector'java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 4-Nov-2004 10:45:29 AM org.springframework.util.visitor.ReflectiveVisitorSupport invokeVisit SEVERE: Invocation target exception invoking method 'visit([And@1f4cdd2 constraints = list[[And@f3770c constraints = list[required, [strLength(arg) relationalOperator.<=(lte) 25], org.springframework.rules.constraint.RegexpConstraint@cbf92] ], not(firstName relationalOperator.=(eq) lastName)]])@class org.springframework.rules.reporting.BeanValidationResultsCollector'java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 4-Nov-2004 10:45:29 AM org.springframework.richclient.application.config.ApplicationAdvisor$DefaultEventExceptionHandler handle SEVERE: java.lang.reflect.InvocationTargetException java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:231) at org.springframework.rules.reporting.BeanValidationResultsCollector.collectPropertyResultsInternal(BeanValidationResultsCollector.java:73) at org.springframework.rules.reporting.BeanValidationResultsCollector.collectPropertyResults(BeanValidationResultsCollector.java:67) at org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.validatePropertyConstraint(ValidatingFormModel.java:298) at org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.validate(ValidatingFormModel.java:280) at org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.setValue(ValidatingFormModel.java:274) at org.springframework.richclient.forms.AbstractValueSetter.componentValueChanged(AbstractValueSetter.java:46) at org.springframework.richclient.forms.AsYouTypeTextValueSetter.controlTextValueChanged(AsYouTypeTextValueSetter.java:56) at org.springframework.richclient.forms.AsYouTypeTextValueSetter.insertUpdate(AsYouTypeTextValueSetter.java:47) at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184) at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:749) at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:706) at javax.swing.text.PlainDocument.insertString(PlainDocument.java:114) at javax.swing.text.AbstractDocument.replace(AbstractDocument.java:669) at javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1052) at javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:839) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1512) at javax.swing.JComponent.processKeyBinding(JComponent.java:2435) at javax.swing.JComponent.processKeyBindings(JComponent.java:2470) at javax.swing.JComponent.processKeyEvent(JComponent.java:2398) at java.awt.Component.processEvent(Component.java:4943) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1708) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559) at java.awt.Component.dispatchEventImpl(Component.java:3509) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Window.dispatchEventImpl(Window.java:1590) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140) at java.awt.Dialog.show(Dialog.java:551) at java.awt.Component.show(Component.java:1134) at java.awt.Component.setVisible(Component.java:1089) at org.springframework.richclient.dialog.ApplicationDialog.showDialog(ApplicationDialog.java:261) at org.springframework.richclient.samples.petclinic.ui.OwnerManagerView$RenameCommand.doExecuteCommand(OwnerManagerView.java:225) 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:1764) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) 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:5134) at java.awt.Component.processEvent(Component.java:4931) at java.awt.Container.processEvent(Container.java:1566) at java.awt.Component.dispatchEventImpl(Component.java:3639) at java.awt.Container.dispatchEventImpl(Container.java:1623) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095) at java.awt.Container.dispatchEventImpl(Container.java:1609) at java.awt.Window.dispatchEventImpl(Window.java:1590) at java.awt.Component.dispatchEvent(Component.java:3480) at java.awt.EventQueue.dispatchEvent(EventQueue.java:450) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136) at java.awt.EventDispatchThread.run(EventDispatchThread.java:99) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224) ... 69 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:231) at org.springframework.rules.reporting.BeanValidationResultsCollector.visit(BeanValidationResultsCollector.java:89) ... 74 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224) ... 75 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:231) at org.springframework.rules.reporting.ValidationResultsCollector.visit(ValidationResultsCollector.java:90) ... 80 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224) ... 81 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:231) at org.springframework.rules.reporting.ValidationResultsCollector.visit(ValidationResultsCollector.java:137) ... 86 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224) ... 87 more Caused by: java.lang.IllegalArgumentException: The property 'lastName' has not been added to this form model (or to anyparents.) at org.springframework.util.Assert.isTrue(Assert.java:91) at org.springframework.binding.form.support.AbstractFormModel.assertValueModelNotNull(AbstractFormModel.java:184) at org.springframework.binding.form.support.AbstractFormModel.getRequiredValueModel(AbstractFormModel.java:170) at org.springframework.binding.form.support.AbstractFormModel.getValue(AbstractFormModel.java:139) at org.springframework.binding.form.support.ValidatingFormModel.getPropertyValue(ValidatingFormModel.java:80) at org.springframework.rules.constraint.property.PropertiesConstraint.test(PropertiesConstraint.java:71) at org.springframework.rules.constraint.property.AbstractPropertyConstraint.test(AbstractPropertyConstraint.java:46) at org.springframework.rules.reporting.BeanValidationResultsCollector.testBeanPropertyExpression(BeanValidationResultsCollector.java:107) at org.springframework.rules.reporting.BeanValidationResultsCollector.visit(BeanValidationResultsCollector.java:96) ... 92 more --------------------------------------------- Steps to reproduce: 1) Launch petclinic-standalone.bat 2) Right-click on Kieth Donald and click Rename... on the popup menu. The Rename Owner dialog will appear. 3) Start typing in the New First Name field...you'll get the exception. Cheers, Joe

    Spring JIRA | 1 decade ago | Joe Kelly
    java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
  3. 0

    Application startup failed with org.hibernate:hibernate-search-orm.XYZ on class path

    GitHub | 2 years ago | dirkrathje
    java.lang.IllegalArgumentException: @ConditionalOnMissingBean annotations must specify at least one bean (type, name or annotation)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue of pagination in Spring Data JPA

    Stack Overflow | 5 years ago | Tom
    java.lang.IllegalArgumentException: Paging query needs to have a Pageable parameter!
  6. 0

    SubProtocolWebSocketHandler - No handlers

    Stack Overflow | 2 years ago
    org.springframework.web.context.ContextLoaderListener: org.springframework.context.ApplicationContextException: Failed to start bean 'subProtocolWebSocketHandler'; nested exception is java.lang.IllegalArgumentException: No handlers
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    The property 'lastName' has not been added to this form model (or to anyparents.)

    at org.springframework.util.Assert.isTrue()
  2. Spring Core
    Assert.isTrue
    1. org.springframework.util.Assert.isTrue(Assert.java:91)
    1 frame
  3. org.springframework.binding
    ValidatingFormModel.getPropertyValue
    1. org.springframework.binding.form.support.AbstractFormModel.assertValueModelNotNull(AbstractFormModel.java:184)
    2. org.springframework.binding.form.support.AbstractFormModel.getRequiredValueModel(AbstractFormModel.java:170)
    3. org.springframework.binding.form.support.AbstractFormModel.getValue(AbstractFormModel.java:139)
    4. org.springframework.binding.form.support.ValidatingFormModel.getPropertyValue(ValidatingFormModel.java:80)
    4 frames
  4. org.springframework.rules
    BeanValidationResultsCollector.visit
    1. org.springframework.rules.constraint.property.PropertiesConstraint.test(PropertiesConstraint.java:71)
    2. org.springframework.rules.constraint.property.AbstractPropertyConstraint.test(AbstractPropertyConstraint.java:46)
    3. org.springframework.rules.reporting.BeanValidationResultsCollector.testBeanPropertyExpression(BeanValidationResultsCollector.java:107)
    4. org.springframework.rules.reporting.BeanValidationResultsCollector.visit(BeanValidationResultsCollector.java:96)
    4 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  6. org.springframework.util
    ReflectiveVisitorSupport.invokeVisit
    1. org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224)
    1 frame
  7. org.springframework.rules
    ValidationResultsCollector.visit
    1. org.springframework.rules.reporting.ValidationResultsCollector.visit(ValidationResultsCollector.java:137)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  9. org.springframework.util
    ReflectiveVisitorSupport.invokeVisit
    1. org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224)
    1 frame
  10. org.springframework.rules
    ValidationResultsCollector.visit
    1. org.springframework.rules.reporting.ValidationResultsCollector.visit(ValidationResultsCollector.java:90)
    1 frame
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  12. org.springframework.util
    ReflectiveVisitorSupport.invokeVisit
    1. org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224)
    1 frame
  13. org.springframework.rules
    BeanValidationResultsCollector.visit
    1. org.springframework.rules.reporting.BeanValidationResultsCollector.visit(BeanValidationResultsCollector.java:89)
    1 frame
  14. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  15. org.springframework.util
    ReflectiveVisitorSupport.invokeVisit
    1. org.springframework.util.visitor.ReflectiveVisitorSupport.invokeVisit(ReflectiveVisitorSupport.java:224)
    1 frame
  16. org.springframework.rules
    BeanValidationResultsCollector.collectPropertyResults
    1. org.springframework.rules.reporting.BeanValidationResultsCollector.collectPropertyResultsInternal(BeanValidationResultsCollector.java:73)
    2. org.springframework.rules.reporting.BeanValidationResultsCollector.collectPropertyResults(BeanValidationResultsCollector.java:67)
    2 frames
  17. org.springframework.binding
    ValidatingFormModel$ValidatingFormValueModel.setValue
    1. org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.validatePropertyConstraint(ValidatingFormModel.java:298)
    2. org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.validate(ValidatingFormModel.java:280)
    3. org.springframework.binding.form.support.ValidatingFormModel$ValidatingFormValueModel.setValue(ValidatingFormModel.java:274)
    3 frames
  18. org.springframework.richclient
    AsYouTypeTextValueSetter.insertUpdate
    1. org.springframework.richclient.forms.AbstractValueSetter.componentValueChanged(AbstractValueSetter.java:46)
    2. org.springframework.richclient.forms.AsYouTypeTextValueSetter.controlTextValueChanged(AsYouTypeTextValueSetter.java:56)
    3. org.springframework.richclient.forms.AsYouTypeTextValueSetter.insertUpdate(AsYouTypeTextValueSetter.java:47)
    3 frames
  19. Java RT
    Component.setVisible
    1. javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:184)
    2. javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:749)
    3. javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:706)
    4. javax.swing.text.PlainDocument.insertString(PlainDocument.java:114)
    5. javax.swing.text.AbstractDocument.replace(AbstractDocument.java:669)
    6. javax.swing.text.JTextComponent.replaceSelection(JTextComponent.java:1052)
    7. javax.swing.text.DefaultEditorKit$DefaultKeyTypedAction.actionPerformed(DefaultEditorKit.java:839)
    8. javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1512)
    9. javax.swing.JComponent.processKeyBinding(JComponent.java:2435)
    10. javax.swing.JComponent.processKeyBindings(JComponent.java:2470)
    11. javax.swing.JComponent.processKeyEvent(JComponent.java:2398)
    12. java.awt.Component.processEvent(Component.java:4943)
    13. java.awt.Container.processEvent(Container.java:1566)
    14. java.awt.Component.dispatchEventImpl(Component.java:3639)
    15. java.awt.Container.dispatchEventImpl(Container.java:1623)
    16. java.awt.Component.dispatchEvent(Component.java:3480)
    17. java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1708)
    18. java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:593)
    19. java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:765)
    20. java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:698)
    21. java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:559)
    22. java.awt.Component.dispatchEventImpl(Component.java:3509)
    23. java.awt.Container.dispatchEventImpl(Container.java:1623)
    24. java.awt.Window.dispatchEventImpl(Window.java:1590)
    25. java.awt.Component.dispatchEvent(Component.java:3480)
    26. java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    27. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    28. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    29. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
    30. java.awt.Dialog.show(Dialog.java:551)
    31. java.awt.Component.show(Component.java:1134)
    32. java.awt.Component.setVisible(Component.java:1089)
    32 frames
  20. org.springframework.richclient
    ActionCommand$1.actionPerformed
    1. org.springframework.richclient.dialog.ApplicationDialog.showDialog(ApplicationDialog.java:261)
    2. org.springframework.richclient.samples.petclinic.ui.OwnerManagerView$RenameCommand.doExecuteCommand(OwnerManagerView.java:225)
    3. org.springframework.richclient.command.ActionCommand.execute(ActionCommand.java:188)
    4. org.springframework.richclient.command.ActionCommand$1.actionPerformed(ActionCommand.java:123)
    4 frames
  21. Java RT
    EventDispatchThread.run
    1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    2. javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    5. javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
    7. javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
    8. java.awt.Component.processMouseEvent(Component.java:5134)
    9. java.awt.Component.processEvent(Component.java:4931)
    10. java.awt.Container.processEvent(Container.java:1566)
    11. java.awt.Component.dispatchEventImpl(Component.java:3639)
    12. java.awt.Container.dispatchEventImpl(Container.java:1623)
    13. java.awt.Component.dispatchEvent(Component.java:3480)
    14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    17. java.awt.Container.dispatchEventImpl(Container.java:1609)
    18. java.awt.Window.dispatchEventImpl(Window.java:1590)
    19. java.awt.Component.dispatchEvent(Component.java:3480)
    20. java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    21. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    22. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    23. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    24. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    25. java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    25 frames