- This topic has 7 replies, 2 voices, and was last updated 18 years, 11 months ago by Riyad Kalla.
-
AuthorPosts
-
jgtanner43MemberI get the following null-pointer-exception message when trying to edit a *.umr document in Eclipse.
I think I installed the trial version of MyEclipse plugin properly, but this piece seems not to work. I would appreciate any suggestions for a remedy.
Jim Tanner
java.lang.NullPointerException
at com.genuitec.eclipse.uml.editor.UMLEditor.init(UMLEditor.java:667)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManager.java:773)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:572)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:365)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:552)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(EditorAreaHelper.java:258)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(EditorManager.java:1216)
at org.eclipse.ui.internal.EditorManager$5.run(EditorManager.java:944)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.EditorManager.restoreState(EditorManager.java:939)
at org.eclipse.ui.internal.WorkbenchPage.restoreState(WorkbenchPage.java:2535)
at org.eclipse.ui.internal.WorkbenchWindow.restoreState(WorkbenchWindow.java:1819)
at org.eclipse.ui.internal.Workbench.doRestoreState(Workbench.java:2566)
at org.eclipse.ui.internal.Workbench.access$14(Workbench.java:2515)
at org.eclipse.ui.internal.Workbench$19.run(Workbench.java:1514)
at org.eclipse.ui.internal.Workbench$16.run(Workbench.java:1263)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:346)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:291)
at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:447)
at org.eclipse.ui.internal.Workbench.runStartupWithProgress(Workbench.java:1258)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1512)
at org.eclipse.ui.internal.Workbench.access$12(Workbench.java:1491)
at org.eclipse.ui.internal.Workbench$17.run(Workbench.java:1374)
at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
at org.eclipse.core.runtime.Platform.run(Platform.java:783)
at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:1318)
at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState(WorkbenchConfigurer.java:183)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(WorkbenchAdvisor.java:700)
at org.eclipse.ui.internal.Workbench.init(Workbench.java:1034)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1636)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
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.core.launcher.Main.invokeFramework(Main.java:334)
at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
at org.eclipse.core.launcher.Main.run(Main.java:973)
at org.eclipse.core.launcher.Main.main(Main.java:948)
Riyad KallaMemberIs this a UMR file you created previously? If you open up the navigator view, and you should see a file with the same name and extension .umr~, if you rename that to .umr and try and open it, did that work?
If not, please paste the results of MyEclipse > About > Configuration Summary here for us.
jgtanner43MemberI don’t know what the protocol is for respoinding: post or private mesage. So I’m copying the configuration you asked for here.
Also, the file is new and 0 bytes in length.
*** Date: Mon Nov 28 12:52:42 PST 2005
*** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.4.2*** MyEclipse details:
MyEclipse Enterprise WorkbenchVersion: 4.0.3 GA
Build id: 20051025-4.0.3-GA*** Eclipse details:
Eclipse SDKVersion: 3.1.0
Build id: I20050627-1435Eclipse Platform
Version: 3.1.0
Build id: I20050627-1435Eclipse RCP
Version: 3.1.0
Build id: I20050627-1435Eclipse Java Development Tools
Version: 3.1.0
Build id: I20050627-1435Eclipse Plug-in Development Environment
Version: 3.1.0
Build id: I20050627-1435Eclipse Project SDK
Version: 3.1.0
Build id: I20050627-1435Eclipse startup command=-os
win32
-ws
win32
-arch
x86
-launcher
C:\eclipse\eclipse.exe
-name
Eclipse
-showsplash
600
-exitdata
bc8_60
-vm
C:\Program Files\JavaSoft\jre\1.4.2\bin\javaw.exe
Riyad KallaMemberJim,
The UMR file, even if it is empty, should still be a few KB big, if it is infact of size 0, then the file is likely corrupt and that is why it won’t open.Did you try my suggestion about the UMR~ file? Did it have a different size?
jgtanner43MemberThere was no umr~ file.
The error occurs when I try and create a new file with a umr extension. Eclipse/MyEclipse goes through an initialization sequence, but comes up with the error I indecated earlier.
I have a straight Eclipse 3.1 install has far as I know. Any other features and plugins have been installed outside of the Eclipse 3.1 install directory/location.
Riyad KallaMemberInstead of creating a file and manually typing the umr extension try using File > New > Other > MyEclipse > UML > UMR, and create the file that way, did that work?
If not, open your log file (<workspace dir>\.metadata\.log) and paste the exceptions near the end here for me to see.
Also, do you have any EMF or GEF plugins in your <eclipse dir>\plugins directory?
jgtanner43MemberFile > New > Other > MyEclipse > UML > UMR worked!
I do not have any EMF or GEF plugins.
Thanks for your help and patience with a new Eclipse and MyEclipse user.
Jim
Riyad KallaMemberAhh, the reason for this is that if you don’t use a file type, the file-associated wizard isn’t run; normally you don’t notice this with xml, jsp, html, etc. files because it’s OK if they are blank, but the UMR file is actually a ZIP of 3 separate metadata files, so it’s important to use the new file wizard. Glad it’s working.
-
AuthorPosts