Eclipse File System (EFS) and PDT -- Compatibility Problems [message #58779] |
Tue, 16 October 2007 21:30  |
Eclipse User |
|
|
|
Hello, I'm writing a sftp remote filesystem browser for eclipse as an
extension of EFS. I was hoping it would be compatible with PDT. Are
there any known compatibility problems with EFS and anything in PDT? My
plugin causes a NullPointerException when I try to open a file. Stack
trace follows. Probably a shot in the dark but I'd appreciate any help.
--Thanks, Bret
java.lang.NullPointerException
at
org.eclipse.wst.sse.core.internal.FileBufferModelManager.cre ateURIResolver(FileBufferModelManager.java:419)
at
org.eclipse.wst.sse.core.internal.FileBufferModelManager.get Model(FileBufferModelManager.java:656)
at
org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._ge tModelFor(ModelManagerImpl.java:393)
at
org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.get ModelForEdit(ModelManagerImpl.java:1020)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.doSetInput(Struc turedTextEditor.java:2113)
at
org.eclipse.php.internal.ui.editor.PHPStructuredEditor.doSet Input(Unknown
Source)
at
org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:2994)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
at
org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:758)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:755)
at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2451)
at
org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:3012)
at
org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:3039)
at
org.eclipse.wst.sse.ui.StructuredTextEditor.init(StructuredT extEditor.java:2615)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init( Unknown
Source)
at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
at
org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2721)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2572)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2556)
at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu. java:340)
at org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.ja va:328)
at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMe nu.java:190)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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.equinox.launcher.Main.invokeFramework(Main.java: 504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
|
|
|
|
Re: Eclipse File System (EFS) and PDT -- Compatibility Problems [message #58873 is a reply to message #58828] |
Wed, 17 October 2007 11:55  |
Eclipse User |
|
|
|
Thanks Kevin,
I updated to the latest version of WST and this seemed to fix it. I will
take a look at the Target Management project. Hopefully it is not like
most of the sftp plugins i've seen that recursively load the entire
filesystem into memory. I need something that will load directories on
demand.
Thanks Again,
Bret
Kevin Doyle wrote:
> Hi Bret,
>
> The reason you are seeing this NPE is because WST Editors are not fully
> EFS aware. Bug 196172 (
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=196172 ) is open for
> tracking this issue. To fix this you can upgrade to WST 2.0.1. I
> haven't had a chance to test it completely and since the bug is still
> open it looks like WST isn't fully EFS aware still, but you can at least
> open files with WST 2.0.1.
>
> btw. You may want to check out the Target Management (
> http://www.eclipse.org/dsdp/tm ) project. It's Remote System Explorer
> EFS implementation supports sftp. This is what I am using.
>
> Regards,
> Kevin Doyle
>
> Bret Lester wrote:
>> Hello, I'm writing a sftp remote filesystem browser for eclipse as an
>> extension of EFS. I was hoping it would be compatible with PDT. Are
>> there any known compatibility problems with EFS and anything in PDT?
>> My plugin causes a NullPointerException when I try to open a file.
>> Stack trace follows. Probably a shot in the dark but I'd appreciate
>> any help. --Thanks, Bret
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.wst.sse.core.internal.FileBufferModelManager.cre ateURIResolver(FileBufferModelManager.java:419)
>>
>> at
>> org.eclipse.wst.sse.core.internal.FileBufferModelManager.get Model(FileBufferModelManager.java:656)
>>
>> at
>> org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._ge tModelFor(ModelManagerImpl.java:393)
>>
>> at
>> org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.get ModelForEdit(ModelManagerImpl.java:1020)
>>
>> at
>> org.eclipse.wst.sse.ui.StructuredTextEditor.doSetInput(Struc turedTextEditor.java:2113)
>>
>> at
>> org.eclipse.php.internal.ui.editor.PHPStructuredEditor.doSet Input(Unknown
>> Source)
>> at
>> org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:2994)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:369)
>>
>> at
>> org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:313)
>> at
>> org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:758)
>>
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:755)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2451)
>> at
>> org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:3012)
>>
>> at
>> org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:3039)
>>
>> at
>> org.eclipse.wst.sse.ui.StructuredTextEditor.init(StructuredT extEditor.java:2615)
>>
>> at
>> org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init( Unknown
>> Source)
>> at
>> org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:794)
>> at
>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:643)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:592)
>>
>> at
>> org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:263)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2721)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2633)
>>
>> at
>> org.eclipse.ui.internal.WorkbenchPage.access$12(WorkbenchPag e.java:2625)
>> at
>> org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2577)
>> at
>> org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:67)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2572)
>> at
>> org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2556)
>> at
>> org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu. java:340)
>> at
>> org.eclipse.ui.actions.OpenWithMenu.access$0(OpenWithMenu.ja va:328)
>> at
>> org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMe nu.java:190)
>> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :66)
>> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
>> at
>> org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3682)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3293)
>> at
>> org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2389)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>> at
>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>
>> at
>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>
>> at
>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at
>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>>
>> at
>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:153)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>
>> at
>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>
>> at
>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>
>> 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.equinox.launcher.Main.invokeFramework(Main.java: 504)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
|
|
|
Powered by
FUDForum. Page generated in 0.04515 seconds