Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » NPE Generating Entity
NPE Generating Entity [message #605527] Sat, 08 September 2007 13:52
Shawn Peters is currently offline Shawn Peters
Messages: 9
Registered: July 2009
Junior Member
I am getting a NPE when I try an generate an entity for one particular
table. So far all of my other tables have been generated just fine, but it
keeps erroring out on this table. Here is the stack Trace of the error:

eclipse.buildId=I20070323-1616
java.version=1.6.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86

Error
Sat Sep 08 08:36:24 CDT 2007
Unhandled event loop exception

java.lang.NullPointerException
at
org.eclipse.jpt.db.internal.ForeignKey.getReferencedTable(Fo reignKey.java:104)
at
org.eclipse.jpt.gen.internal.GenTable.addReferencedTablesTo( GenTable.java:106)
at
org.eclipse.jpt.gen.internal.GenScope.buildReferencedTables( GenScope.java:169)
at
org.eclipse.jpt.gen.internal.GenScope.configureManyToManyRel ations(GenScope.java:81)
at org.eclipse.jpt.gen.internal.GenScope.initialize(GenScope.ja va:46)
at org.eclipse.jpt.gen.internal.GenScope.<init>(GenScope.java:33)
at
org.eclipse.jpt.gen.internal.PackageGenerator.<init>(PackageGenerator.java:48)
at
org.eclipse.jpt.gen.internal.PackageGenerator.generateEntiti es(PackageGenerator.java:38)
at
org.eclipse.jpt.ui.internal.generic.EntitiesGenerator$Genera teEntitiesRunnable.run(EntitiesGenerator.java:129)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1797)
at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1779)
at
org.eclipse.jpt.ui.internal.generic.EntitiesGenerator.genera te(EntitiesGenerator.java:88)
at
org.eclipse.jpt.ui.internal.generic.EntitiesGenerator.genera te(EntitiesGenerator.java:56)
at
org.eclipse.jpt.ui.internal.BaseJpaPlatformUi.generateEntiti es(BaseJpaPlatformUi.java:66)
at
org.eclipse.jpt.ui.internal.actions.GenerateEntitiesAction.e xecute(GenerateEntitiesAction.java:27)
at
org.eclipse.jpt.ui.internal.actions.ProjectAction.execute(Pr ojectAction.java:90)
at
org.eclipse.jpt.ui.internal.actions.ProjectAction.execute(Pr ojectAction.java:71)
at
org.eclipse.jpt.ui.internal.actions.ProjectAction.run(Projec tAction.java:63)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginActi on.java:256)
at
org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:545)
at
org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:490)
at
org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Previous Topic:It works, but does not compile (only half a joke!)
Next Topic:Error Initializing JPA Model
Goto Forum:
  


Current Time: Sat Oct 25 18:15:27 GMT 2014

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

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