Re: Exception saving many-to-many entity in Entity Modeler

From: Mike Schrag (mschra..dimension.com)
Date: Fri Dec 01 2006 - 16:52:39 EST

  • Next message: womai..ac.com: "Re: Updating WOLips..."

    Would it be possible for you to make a little test case model of this
    that demonstrates the problem, or email me the model that does it so
    I can work with it?

    On Dec 1, 2006, at 2:49 PM, Brendan Duddridge wrote:

    > Hello,
    >
    > I'm trying to save my entity in Entity Modeler. I just created a
    > join between 2 tables in a many-to-many configuration. When I save,
    > I get the following exception thrown:
    >
    > java.lang.NullPointerException
    > at
    > org.objectstyle.wolips.eomodeler.model.AbstractEOAttributePath.isToMan
    > y(AbstractEOAttributePath.java:105)
    > at org.objectstyle.wolips.eomodeler.model.EORelationship.isToMany
    > (EORelationship.java:506)
    > at org.objectstyle.wolips.eomodeler.model.EORelationship.isToOne
    > (EORelationship.java:528)
    > at org.objectstyle.wolips.eomodeler.model.EORelationship.verify
    > (EORelationship.java:704)
    > at org.objectstyle.wolips.eomodeler.model.EOEntity.verify
    > (EOEntity.java:1637)
    > at org.objectstyle.wolips.eomodeler.model.EOModel.verify
    > (EOModel.java:875)
    > at org.objectstyle.wolips.eomodeler.editors.EOModelEditor.doSave
    > (EOModelEditor.java:392)
    > at org.eclipse.ui.internal.SaveableHelper$1.run
    > (SaveableHelper.java:131)
    > at org.eclipse.ui.internal.SaveableHelper$4.run
    > (SaveableHelper.java:252)
    > at org.eclipse.jface.operation.ModalContext.runInCurrentThread
    > (ModalContext.java:369)
    > at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:
    > 313)
    > at org.eclipse.jface.window.ApplicationWindow$1.run
    > (ApplicationWindow.java:763)
    > at org.eclipse.swt.custom.BusyIndicator.showWhile
    > (BusyIndicator.java:67)
    > at org.eclipse.jface.window.ApplicationWindow.run
    > (ApplicationWindow.java:760)
    > at org.eclipse.ui.internal.WorkbenchWindow.run
    > (WorkbenchWindow.java:2283)
    > at
    > org.eclipse.ui.internal.SaveableHelper.runProgressMonitorOperation
    > (SaveableHelper.java:258)
    > at org.eclipse.ui.internal.SaveableHelper.savePart
    > (SaveableHelper.java:136)
    > at org.eclipse.ui.internal.EditorManager.savePart
    > (EditorManager.java:1386)
    > at org.eclipse.ui.internal.WorkbenchPage.savePart
    > (WorkbenchPage.java:2995)
    > at org.eclipse.ui.internal.WorkbenchPage.saveEditor
    > (WorkbenchPage.java:3008)
    > at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:67)
    > at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
    > at org.eclipse.jface.commands.ActionHandler.execute
    > (ActionHandler.java:119)
    > at org.eclipse.core.commands.Command.executeWithChecks
    > (Command.java:461)
    > at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks
    > (ParameterizedCommand.java:424)
    > at org.eclipse.ui.internal.handlers.HandlerService.executeCommand
    > (HandlerService.java:160)
    > at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand
    > (WorkbenchKeyboard.java:466)
    > at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press
    > (WorkbenchKeyboard.java:799)
    > at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent
    > (WorkbenchKeyboard.java:846)
    > at
    > org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindin
    > gs(WorkbenchKeyboard.java:564)
    > at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3
    > (WorkbenchKeyboard.java:506)
    > at org.eclipse.ui.internal.keys.WorkbenchKeyboard
    > $KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
    > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    > at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1109)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1495)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1520)
    > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1505)
    > at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1557)
    > at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1552)
    > at org.eclipse.swt.widgets.Control.kEventUnicodeKeyPressed
    > (Control.java:1820)
    > at org.eclipse.swt.widgets.Composite.kEventUnicodeKeyPressed
    > (Composite.java:583)
    > at org.eclipse.swt.widgets.Tree.kEventUnicodeKeyPressed(Tree.java:
    > 2299)
    > at
    > org.eclipse.swt.widgets.Control.kEventTextInputUnicodeForKeyEvent
    > (Control.java:1812)
    > at org.eclipse.swt.widgets.Widget.textInputProc(Widget.java:2000)
    > at org.eclipse.swt.widgets.Display.textInputProc(Display.java:3838)
    > at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget
    > (Native Method)
    > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2910)
    > at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
    > 1914)
    > at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
    > at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
    > (Workbench.java:419)
    > at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
    > 149)
    > at org.eclipse.ui.internal.ide.IDEApplication.run
    > (IDEApplication.java:95)
    > at org.eclipse.core.internal.runtime.PlatformActivator$1.run
    > (PlatformActivator.java:78)
    > at
    > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplic
    > ation(EclipseAppLauncher.java:92)
    > at
    > org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
    > (EclipseAppLauncher.java:68)
    > at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    > (EclipseStarter.java:400)
    > at org.eclipse.core.runtime.adaptor.EclipseStarter.run
    > (EclipseStarter.java:177)
    > 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:585)
    > at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    > at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    > at org.eclipse.core.launcher.Main.run(Main.java:977)
    > at org.eclipse.core.launcher.Main.main(Main.java:952)
    >
    >
    > ____________________________________________________________________
    > Brendan Duddridge | CTO | 403-277-5591 x24 | brenda..lickspace.com
    >
    > ClickSpace Interactive Inc.
    > Suite L100, 239 - 10th Ave. SE
    > Calgary, AB T2G 0V9
    >
    > http://www.clickspace.com
    >



    This archive was generated by hypermail 2.0.0 : Fri Dec 01 2006 - 16:52:54 EST