Re: EOModel problem

From: Chuck Hill (chil..lobal-village.net)
Date: Fri Mar 16 2007 - 12:14:49 EDT

  • Next message: Pierre Frisch: "Re: EOModel problem"

    The file name and the line number parsing failed on (if available)
    would be a big help.

    Chuck

    On Mar 16, 2007, at 3:56 AM, Mike Schrag wrote:

    > Yeah -- All of the problems in Entity Modeler which are so bad that
    > I can't even open the model result in an exception and one of the
    > "Eclipse had a problem" screens. It's really lame. I don't know
    > exactly how I should handle these. If loading the model throws an
    > exception, I can't open the editor (right now). Any suggestions on
    > how you think it should behave? It's been like this for a long
    > time and it's always bugged me.
    >
    > ms
    >
    > On Mar 15, 2007, at 11:37 PM, Pierre Frisch wrote:
    >
    >> Hi Mike,
    >>
    >> I have Entity Modeler crashing on me when the old EOModeler can
    >> open the model just fine. Any idea? The NPE is not the cause of
    >> the problem Entity Modeler cannot read the model and return a null
    >> model. Entity Modeler then fails with a NPE which is not very nice
    >> because it does not display the reason it could not load the
    >> model. There is probably something wrong with the model but could
    >> we improve the reporting?
    >>
    >> Thanks
    >>
    >> Pierre
    >>
    >> <RealEstate.eomodeld.zip>
    >>
    >> !ENTRY org.eclipse.ui 4 0 2007-03-15 20:19:37.062
    >> !MESSAGE Unable to create editor ID
    >> org.objectstyle.wolips.eomodeler.editors.EOModelEditor: Failed to
    >> create EOModelEditorInput for org.eclipse.ui.part.FileEditorInput(/
    >> JavaRealEstate/wo-resources/Resources/RealEstate.eomodeld/
    >> index.eomodeld).
    >> !STACK 0
    >> java.lang.NullPointerException
    >> at
    >> org.objectstyle.wolips.eomodeler.editors.EOModelEditor.getIndexFile
    >> (EOModelEditor.java:433)
    >> at org.objectstyle.wolips.eomodeler.editors.EOModelEditor.init
    >> (EOModelEditor.java:472)
    >> at org.eclipse.ui.internal.EditorManager.createSite
    >> (EditorManager.java:842)
    >> at org.eclipse.ui.internal.EditorReference.createPartHelper
    >> (EditorReference.java:583)
    >> at org.eclipse.ui.internal.EditorReference.createPart
    >> (EditorReference.java:372)
    >> at org.eclipse.ui.internal.WorkbenchPartReference.getPart
    >> (WorkbenchPartReference.java:566)
    >> at org.eclipse.ui.internal.EditorReference.getEditor
    >> (EditorReference.java:214)
    >> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
    >> (WorkbenchPage.java:2595)
    >> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
    >> (WorkbenchPage.java:2528)
    >> at org.eclipse.ui.internal.WorkbenchPage.access$10
    >> (WorkbenchPage.java:2520)
    >> at org.eclipse.ui.internal.WorkbenchPage$9.run(WorkbenchPage.java:
    >> 2505)
    >> at org.eclipse.swt.custom.BusyIndicator.showWhile
    >> (BusyIndicator.java:67)
    >> at org.eclipse.ui.internal.WorkbenchPage.openEditor
    >> (WorkbenchPage.java:2500)
    >> at org.eclipse.ui.internal.WorkbenchPage.openEditor
    >> (WorkbenchPage.java:2485)
    >> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:388)
    >> at org.eclipse.ui.ide.IDE.openEditor(IDE.java:350)
    >> at
    >> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
    >> (EditorUtility.java:275)
    >> at
    >> org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor
    >> (EditorUtility.java:139)
    >> at org.eclipse.jdt.internal.ui.actions.OpenActionUtil.open
    >> (OpenActionUtil.java:49)
    >> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:190)
    >> at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:174)
    >> at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
    >> (SelectionDispatchAction.java:267)
    >> at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
    >> (SelectionDispatchAction.java:243)
    >> at
    >> org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.ha
    >> ndleOpen(PackageExplorerActionGroup.java:306)
    >> at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart
    >> $4.open(PackageExplorerPart.java:653)
    >> at org.eclipse.jface.viewers.StructuredViewer$2.run
    >> (StructuredViewer.java:817)
    >> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
    >> at org.eclipse.core.runtime.Platform.run(Platform.java:843)
    >> at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
    >> at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149)
    >> at org.eclipse.jface.viewers.StructuredViewer.fireOpen
    >> (StructuredViewer.java:815)
    >> at org.eclipse.jface.viewers.StructuredViewer.handleOpen
    >> (StructuredViewer.java:1069)
    >> at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen
    >> (StructuredViewer.java:1168)
    >> at org.eclipse.jface.util.OpenStrategy.fireOpenEvent
    >> (OpenStrategy.java:249)
    >> at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:
    >> 243)
    >> at org.eclipse.jface.util.OpenStrategy$1.mouseSelectItem
    >> (OpenStrategy.java:414)
    >> at org.eclipse.jface.util.OpenStrategy$1.handleEvent
    >> (OpenStrategy.java:350)
    >> 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.runAppli
    >> cation(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)
    >>
    >>
    >
    >
    >

    -- 
    

    Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects



    This archive was generated by hypermail 2.0.0 : Fri Mar 16 2007 - 12:16:06 EDT