[OS-JIRA] Created: (WOL-400) Subclass entity fails with NullPointerException

From: Denis Frolov (JIRA) ("Denis)
Date: Thu Apr 19 2007 - 07:34:59 EDT

  • Next message: Denis Frolov (JIRA): "[OS-JIRA] Created: (WOL-401) "No default database config found" verification failure for model with config"

    Subclass entity fails with NullPointerException
    -----------------------------------------------

                     Key: WOL-400
                     URL: http://issues.objectstyle.org/jira/browse/WOL-400
                 Project: WOProject/WOLips
              Issue Type: Bug
              Components: wolips
        Affects Versions: 2.0.0.* (unreleased please specify)
             Environment: 2.0.0.3921, Eclipse 3.2.2, Mac OS X 10.4
                Reporter: Denis Frolov
             Attachments: MyEOModel.eomodeld.zip

    Steps to reproduce:
    1. Create entities A and B
    2. Create many-to-many relationship between A and B (with flatten)
    3. Click Subclass Entity for A and choose horizontal inheritance type.
    4. Get an error dialog box with Details.. button showing:

    org.eclipse.core.commands.ExecutionException: While executing the operation, an exception occurred
            at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:517)
            at org.objectstyle.wolips.eomodeler.actions.SubclassEntityAction.run(Unknown Source)
            at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
            at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
            at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
            at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
            at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:441)
            at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
            at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1496)
            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.notifyListeners(Widget.java:1279)
            at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3312)
            at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2941)
            at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
            at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
            at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
            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.runApplication(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)
    Caused by: java.lang.NullPointerException
            at org.objectstyle.wolips.eomodeler.model.EORelationship.pasted(Unknown Source)
            at org.objectstyle.wolips.eomodeler.model.EOEntity.pasted(Unknown Source)
            at org.objectstyle.wolips.eomodeler.model.EOModel.addEntity(Unknown Source)
            at org.objectstyle.wolips.eomodeler.model.EOModel.addEntity(Unknown Source)
            at org.objectstyle.wolips.eomodeler.actions.SubclassOperation.execute(Unknown Source)
            at org.eclipse.core.commands.operations.DefaultOperationHistory.execute(DefaultOperationHistory.java:509)
            ... 31 more

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Thu Apr 19 2007 - 07:36:12 EDT