Skip to main content



      Home
Home » Eclipse Projects » Dali » IllegalStateException thrown by Dali
IllegalStateException thrown by Dali [message #491950] Fri, 16 October 2009 13:19 Go to next message
Eclipse UserFriend
Using Dali, I created entities from the database tables and renamed most of the fields from a "database" name to a "java" name. Everything worked fine without issues.

However, the DBA added several tables and removed several others. The next time I ran the 'entities from tables' wizard again, I get the exception below and the wizard doesn't move past the first page.

I'm guessing that it's because the entitygen cache file (in .settings) has references to tables to that do not exist anymore. Is there any way I can hack on the file to remove the references?

Thanks,
Dan


EXCEPTION:

java.lang.IllegalStateException
at java.util.AbstractList$Itr.remove(AbstractList.java:356)
at org.eclipse.jpt.gen.internal2.ORMGenCustomizer.addForeignKey Associations(ORMGenCustomizer.java:693)
at org.eclipse.jpt.gen.internal2.ORMGenCustomizer.addForeignKey Associations(ORMGenCustomizer.java:643)
at org.eclipse.jpt.gen.internal2.ORMGenCustomizer.getAssociatio ns(ORMGenCustomizer.java:619)
at org.eclipse.jpt.gen.internal2.ORMGenCustomizer.getAssociatio ns(ORMGenCustomizer.java:419)
at org.eclipse.jpt.ui.internal.wizards.gen.TableAssociationsWiz ardPage.updateAssociationsListPanel(TableAssociationsWizardP age.java:562)
at org.eclipse.jpt.ui.internal.wizards.gen.TableAssociationsWiz ardPage.setVisible(TableAssociationsWizardPage.java:290)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDi alog.java:1171)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog. java:1149)
at org.eclipse.jface.wizard.WizardDialog$5.run(WizardDialog.jav a:1138)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog. java:1136)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:830)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3112)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.jpt.ui.internal.platform.base.EntitiesGenerator2 .generate(EntitiesGenerator2.java:64)
at org.eclipse.jpt.ui.internal.platform.base.EntitiesGenerator2 .generate(EntitiesGenerator2.java:39)
at org.eclipse.jpt.ui.internal.platform.base.BaseJpaPlatformUi. generateEntities(BaseJpaPlatformUi.java:288)
at org.eclipse.jpt.ui.internal.actions.GenerateEntitiesAction.e xecute(GenerateEntitiesAction.java:24)
at org.eclipse.jpt.ui.internal.actions.ProjectAction.execute(Pr ojectAction.java:87)
at org.eclipse.jpt.ui.internal.actions.ProjectAction.execute(Pr ojectAction.java:63)
at org.eclipse.jpt.ui.internal.actions.ProjectAction.run(Projec tAction.java:55)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1176)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3493)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3112)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Re: IllegalStateException thrown by Dali [message #492478 is a reply to message #491950] Tue, 20 October 2009 11:02 Go to previous messageGo to next message
Eclipse UserFriend
Created bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=292773. It's a really easy fix - add a break after line 693 in ORMGenCustomizer.
Re: IllegalStateException thrown by Dali [message #492490 is a reply to message #492478] Tue, 20 October 2009 11:23 Go to previous message
Eclipse UserFriend
Thanks for entering the bug, sorry for the delayed reply.

Karen
Previous Topic:Is it possible to configure Dali
Next Topic:Validating OneToMany references to composite key components
Goto Forum:
  


Current Time: Fri Jul 25 05:52:20 EDT 2025

Powered by FUDForum. Page generated in 0.25895 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top