claudio
Aug 16th, 2004, 12:40 PM
Hi,
i was testing the WizardDialog in my Application and came across
following Bug. You can reproduce it in the sample Application too.
1. Start Petclinic Sample Application
2. Make a new owner ( Strg+O)
3. Close the dialog with the "dialog close button" on the upper right
4. Make (again) a new owner ( Strg+O)
after this, i get this IllegalArgumentException:
SCHWERWIEGEND: Child model by name 'generalPage' already exists
java.lang.IllegalArgumentException: Child model by name 'generalPage' already exists
at org.springframework.util.Assert.isTrue(Assert.java :137)
at org.springframework.rules.values.CompoundFormModel .addChildModel(CompoundFormModel.java:123)
at org.springframework.rules.values.CompoundFormModel .createChild(CompoundFormModel.java:79)
at org.springframework.richclient.forms.SwingFormMode l.createChildPageFormModel(SwingFormModel.java:117 )
at org.springframework.richclient.forms.AbstractFormP age.<init>(AbstractFormPage.java:76)
at org.springframework.richclient.samples.petclinic.u i.OwnerGeneralForm.<init>(OwnerGeneralForm.java:33)
at org.springframework.richclient.samples.petclinic.u i.NewOwnerWizard$OwnerGeneralWizardPage.<init>(NewOwnerWizard.java:52)
at org.springframework.richclient.samples.petclinic.u i.NewOwnerWizard.addPages(NewOwnerWizard.java:45)
at org.springframework.richclient.wizard.WizardDialog .createTitledDialogContentPane(WizardDialog.java:8 6)
at org.springframework.richclient.dialog.TitledApplic ationDialog.createDialogContentPane(TitledApplicat ionDialog.java:135)
at org.springframework.richclient.dialog.TitledApplic ationDialog.addDialogComponents(TitledApplicationD ialog.java:124)
at org.springframework.richclient.dialog.ApplicationD ialog.createDialog(ApplicationDialog.java:278)
at org.springframework.richclient.dialog.ApplicationD ialog.showDialog(ApplicationDialog.java:247)
at org.springframework.richclient.samples.petclinic.u i.NewOwnerWizard.execute(NewOwnerWizard.java:86)[l ist][/list]
.....
.....
I started to debug, but i'm not sure if it is a SwingFormModel.createChildPageFormModel(SwingFormM odel) or a Wizard bug :roll:
siu
Claudio
ps: is there a bug tracking or something?
i was testing the WizardDialog in my Application and came across
following Bug. You can reproduce it in the sample Application too.
1. Start Petclinic Sample Application
2. Make a new owner ( Strg+O)
3. Close the dialog with the "dialog close button" on the upper right
4. Make (again) a new owner ( Strg+O)
after this, i get this IllegalArgumentException:
SCHWERWIEGEND: Child model by name 'generalPage' already exists
java.lang.IllegalArgumentException: Child model by name 'generalPage' already exists
at org.springframework.util.Assert.isTrue(Assert.java :137)
at org.springframework.rules.values.CompoundFormModel .addChildModel(CompoundFormModel.java:123)
at org.springframework.rules.values.CompoundFormModel .createChild(CompoundFormModel.java:79)
at org.springframework.richclient.forms.SwingFormMode l.createChildPageFormModel(SwingFormModel.java:117 )
at org.springframework.richclient.forms.AbstractFormP age.<init>(AbstractFormPage.java:76)
at org.springframework.richclient.samples.petclinic.u i.OwnerGeneralForm.<init>(OwnerGeneralForm.java:33)
at org.springframework.richclient.samples.petclinic.u i.NewOwnerWizard$OwnerGeneralWizardPage.<init>(NewOwnerWizard.java:52)
at org.springframework.richclient.samples.petclinic.u i.NewOwnerWizard.addPages(NewOwnerWizard.java:45)
at org.springframework.richclient.wizard.WizardDialog .createTitledDialogContentPane(WizardDialog.java:8 6)
at org.springframework.richclient.dialog.TitledApplic ationDialog.createDialogContentPane(TitledApplicat ionDialog.java:135)
at org.springframework.richclient.dialog.TitledApplic ationDialog.addDialogComponents(TitledApplicationD ialog.java:124)
at org.springframework.richclient.dialog.ApplicationD ialog.createDialog(ApplicationDialog.java:278)
at org.springframework.richclient.dialog.ApplicationD ialog.showDialog(ApplicationDialog.java:247)
at org.springframework.richclient.samples.petclinic.u i.NewOwnerWizard.execute(NewOwnerWizard.java:86)[l ist][/list]
.....
.....
I started to debug, but i'm not sure if it is a SwingFormModel.createChildPageFormModel(SwingFormM odel) or a Wizard bug :roll:
siu
Claudio
ps: is there a bug tracking or something?