[kaffe] Re: Trouble running Eclipse 3.0.1 with recent Kaffe snapshot

Haakon Nilsen haakonn at gmail.com
Sat Dec 18 03:47:46 PST 2004


Hi Dalibor!

Dalibor Topic wrote:

> thanks for your bug report. In order to get Eclipse3 to run, you need
> the CVS head

I assume you mean kaffe's CVS head. I updated my installation to this.

> and to run it with the following line (for 3.1.0): 
> 
> /path-to/bin/kaffe -mx 128M
> -Djava.library.path=plugins/org.eclipse.swt.gtk_3.1.0/os/linux/x86/
> -Dosgi.locking=none -cp startup.jar org.eclipse.core.launcher.Main -os
> linux -ws gtk -consolelog
> 
> the osgi.locking property is very important, as you've found out ;)

Thanks a lot for this, it did get me a long way! :)

However, it's still not really usable. Still on Eclipse 3.0.1 (are there any
newer experimental releases I should try?), eclipse starts loading and asks
me where I want my workspace directory. Fine so far! However, past this, I
get an error dialog box, and on the console I find this stack trace:

!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.NullPointerException
   at org.eclipse.jface.dialogs.DialogSettings.load
(DialogSettings.java:248)
   at org.eclipse.jface.dialogs.DialogSettings.load
(DialogSettings.java:276)
   at org.eclipse.jface.dialogs.DialogSettings.load
(DialogSettings.java:220)
   at org.eclipse.jface.dialogs.DialogSettings.load
(DialogSettings.java:235)
   at org.eclipse.ui.plugin.AbstractUIPlugin.loadDialogSettings
(AbstractUIPlugin.java:745)
   at org.eclipse.ui.plugin.AbstractUIPlugin.getDialogSettings
(AbstractUIPlugin.java:572)
   at org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration.getSettings
(JavaSourceViewerConfiguration.java:728)
   at
org.eclipse.jdt.ui.text.JavaSourceViewerConfiguration.getContentAssistant
(JavaSourceViewerConfiguration.java:378)
   at org.eclipse.jface.text.source.SourceViewer.configure
(SourceViewer.java:321)
   at org.eclipse.jdt.internal.ui.javaeditor.JavaSourceViewer.configure
(JavaSourceViewer.java:173)
   at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.configure
(CompilationUnitEditor.java:289)
   at org.eclipse.ui.texteditor.AbstractTextEditor.createPartControl
(AbstractTextEditor.java:2379)
   at org.eclipse.ui.texteditor.StatusTextEditor.createPartControl
(StatusTextEditor.java:53)
   at
org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.createPartControl
(AbstractDecoratedTextEditor.java:275)
   at org.eclipse.jdt.internal.ui.javaeditor.JavaEditor.createPartControl
(JavaEditor.java:3313)
   at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.createPartControl
(CompilationUnitEditor.java:1604)
   at org.eclipse.ui.internal.PartPane$2.run (PartPane.java:137)
   at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:616)
   at org.eclipse.core.runtime.Platform.run (Platform.java:747)
   at org.eclipse.ui.internal.PartPane.createChildControl
(PartPane.java:133)
   at org.eclipse.ui.internal.PartPane.createControl (PartPane.java:205)
   at org.eclipse.ui.internal.PartStack.refreshPresentationSelection
(PartStack.java:939)
   at org.eclipse.ui.internal.PartStack.setSelection (PartStack.java:921)
   at org.eclipse.ui.internal.EditorStack.setSelection
(EditorStack.java:196)
   at org.eclipse.ui.internal.PartStack.showPart (PartStack.java:1020)
   at org.eclipse.ui.internal.PartStack.add (PartStack.java:290)
   at org.eclipse.ui.internal.EditorStack.add (EditorStack.java:121)
   at org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:59)
   at org.eclipse.ui.internal.EditorAreaHelper.openEditor
(EditorAreaHelper.java:266)
   at org.eclipse.ui.internal.EditorManager$4.run (EditorManager.java:694)
   at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:69)
   at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:683)
   at org.eclipse.ui.internal.EditorManager.openInternalEditor
(EditorManager.java:779)
   at org.eclipse.ui.internal.EditorManager.access$12
(EditorManager.java:763)
   at org.eclipse.ui.internal.EditorManager$9.run (EditorManager.java:948)
   at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:616)
   at org.eclipse.core.runtime.Platform.run (Platform.java:747)
   at org.eclipse.ui.internal.EditorManager.busyRestoreEditor
(EditorManager.java:922)
   at org.eclipse.ui.internal.EditorManager$8.run (EditorManager.java:915)
   at org.eclipse.swt.custom.BusyIndicator.showWhile (BusyIndicator.java:69)
   at org.eclipse.ui.internal.EditorManager.restoreEditor
(EditorManager.java:911)
   at org.eclipse.ui.internal.EditorManager.restoreEditorState
(EditorManager.java:1487)
   at org.eclipse.ui.internal.EditorManager.restoreState
(EditorManager.java:874)
   at org.eclipse.ui.internal.WorkbenchPage.restoreState
(WorkbenchPage.java:2470)
   at org.eclipse.ui.internal.WorkbenchWindow.restoreState
(WorkbenchWindow.java:1372)
   at org.eclipse.ui.internal.Workbench.restoreState (Workbench.java:1224)
   at org.eclipse.ui.internal.Workbench.access$10 (Workbench.java:1185)
   at org.eclipse.ui.internal.Workbench$13.run (Workbench.java:1096)
   at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:616)
   at org.eclipse.core.runtime.Platform.run (Platform.java:747)
   at org.eclipse.ui.internal.Workbench.restoreState (Workbench.java:1029)
   at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState
(WorkbenchConfigurer.java:167)
   at org.eclipse.ui.application.WorkbenchAdvisor.openWindows
(WorkbenchAdvisor.java:652)
   at org.eclipse.ui.internal.Workbench.init (Workbench.java:819)
   at org.eclipse.ui.internal.Workbench.runUI (Workbench.java:1325)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:254)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java:141)
   at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:96)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:335)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:273)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:129)
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:255)
   at org.eclipse.core.launcher.Main.basicRun (Main.java:185)
   at org.eclipse.core.launcher.Main.run (Main.java:704)
   at org.eclipse.core.launcher.Main.main (Main.java:688)

!ENTRY org.eclipse.core.runtime 4 2 Dec 18, 2004 12:29:10.442
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.ClassCastException: can't cast
`org/eclipse/ui/internal/EditorPane$1$ErrorEditorPart' (org/eclipse/core/runtime/adaptor/EclipseClassLoader at 0x84caa7c)
to
`org/eclipse/jdt/internal/ui/javaeditor/JavaEditor' (org/eclipse/core/runtime/adaptor/EclipseClassLoader at 0x987d53c)
   at
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.activeJavaEditorChanged
(ASTProvider.java:218)
   at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.access$0
(ASTProvider.java:213)
   at
org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$ActivationListener.partOpened
(ASTProvider.java:100)
   at org.eclipse.ui.internal.PartListenerList2$5.run
(PartListenerList2.java:101)
   at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:616)
   at org.eclipse.core.runtime.Platform.run (Platform.java:747)
   at org.eclipse.ui.internal.PartListenerList2.firePartOpened
(PartListenerList2.java:99)
   at org.eclipse.ui.internal.WWinPartService.firePartOpened
(WWinPartService.java:230)
   at org.eclipse.ui.internal.WWinPartService.pageActivated
(WWinPartService.java:131)
   at org.eclipse.ui.internal.WWinPartService.pageOpened
(WWinPartService.java:152)
   at org.eclipse.ui.internal.WorkbenchWindow.firePageOpened
(WorkbenchWindow.java:810)
   at org.eclipse.ui.internal.WorkbenchWindow.restoreState
(WorkbenchWindow.java:1374)
   at org.eclipse.ui.internal.Workbench.restoreState (Workbench.java:1224)
   at org.eclipse.ui.internal.Workbench.access$10 (Workbench.java:1185)
   at org.eclipse.ui.internal.Workbench$13.run (Workbench.java:1096)
   at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:616)
   at org.eclipse.core.runtime.Platform.run (Platform.java:747)
   at org.eclipse.ui.internal.Workbench.restoreState (Workbench.java:1029)
   at org.eclipse.ui.internal.WorkbenchConfigurer.restoreState
(WorkbenchConfigurer.java:167)
   at org.eclipse.ui.application.WorkbenchAdvisor.openWindows
(WorkbenchAdvisor.java:652)
   at org.eclipse.ui.internal.Workbench.init (Workbench.java:819)
   at org.eclipse.ui.internal.Workbench.runUI (Workbench.java:1325)
   at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:254)
   at org.eclipse.ui.PlatformUI.createAndRunWorkbench (PlatformUI.java:141)
   at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:96)
   at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:335)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:273)
   at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:129)
   at java.lang.reflect.Method.invoke0 (Method.java)
   at java.lang.reflect.Method.invoke (Method.java:255)
   at org.eclipse.core.launcher.Main.basicRun (Main.java:185)
   at org.eclipse.core.launcher.Main.run (Main.java:704)
   at org.eclipse.core.launcher.Main.main (Main.java:688)

I press OK in the dialog box, and Eclipse actually does start up, opening my
current project in Debug perspective (at this point it also gave a
ClassCastException trying to create the editor window for one of the .java
files, but I was able to open it later). I have to say it's not really
usable, though, many strange things :( One of the worst being it cannot
save files:

!MESSAGE Save Failed
!STACK 0
java.lang.IllegalAccessError: .fElement
   at
org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$2.getSchedulingRule
(CompilationUnitDocumentProvider.java:957)
   at org.eclipse.ui.internal.editors.text.WorkspaceOperationRunner.run
(WorkspaceOperationRunner.java:63)
   at org.eclipse.ui.editors.text.TextFileDocumentProvider.executeOperation
(TextFileDocumentProvider.java:440)
   at org.eclipse.ui.editors.text.TextFileDocumentProvider.saveDocument
(TextFileDocumentProvider.java:699)
   at org.eclipse.ui.texteditor.AbstractTextEditor.performSave
(AbstractTextEditor.java:3536)
...

The code completion feature also does not work, but no exceptions either.
The addictive QuickFix feature was also missing for some reason, and when
trying to run a JUnit test, I was told it couldn't find any.

I'd help debug all this if I had the time (and skills :), but unfortunately
I don't. So I'm back on SUN's j2se for now, for those applications that
need it. I appreciate your help!

Thanks,
Haakon.






More information about the kaffe mailing list