Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Cannot open file in PHP editor
Cannot open file in PHP editor [message #35752] Mon, 16 July 2007 15:03 Go to next message
Eclipse UserFriend
Originally posted by: nobody.spamcop.net

Until recently, I was running Eclipse 3.2.

Last weekend I installed Eclipse 3.3 expressly so I would be able to use
PDT - installed the platform, reinstalled all my plugins (but replacing
Mylar with Mylyn), then installed PDT.

Then I "removed" some existing PHPeclipse projects and re-created them
as PDT PHP projects.

All looked fine, until I actually tried to open a PHP file in PDT's PHP
editor. That doesn't work: all I get is a
"java.lang.NullPointerException".

(I can still work with PHP files using the "old" PHPeclipse PHP editor
or even Aptana's PHP editor - but of course that's not what I installed
PDT for!)

I tried installing some extra likely-looking components, but that didn't
make any difference - and yes, I know that one shouldn't be able to
install a component when its requirements aren't met in the first place:
it just looked as if "something" might be missing.

I have no idea how to resolve this or where to look for a solution: I'm
out of ideas.

Any suggestions anyone?

--
Marjolein Katsma
* Travel blog: http://blog.iamback.com/
* Spam reporting addresses: http://banspam.javawoman.com/report3.html
Re: Cannot open file in PHP editor [message #35788 is a reply to message #35752] Mon, 16 July 2007 15:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

Marjolein Katsma wrote:
> Until recently, I was running Eclipse 3.2.
>
> Last weekend I installed Eclipse 3.3 expressly so I would be able to use
> PDT - installed the platform, reinstalled all my plugins (but replacing
> Mylar with Mylyn), then installed PDT.
>
> Then I "removed" some existing PHPeclipse projects and re-created them
> as PDT PHP projects.
>
> All looked fine, until I actually tried to open a PHP file in PDT's PHP
> editor. That doesn't work: all I get is a
> "java.lang.NullPointerException".

Check the error log (under Window > Show View > Other > Error Log),
you'll probably find more details about the error.

HTH,
Daniel Serodio
Re: Cannot open file in PHP editor [message #35822 is a reply to message #35788] Mon, 16 July 2007 17:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nobody.spamcop.net

Daniel Serodio (dserodio@gmail.com) wrote in
news:f7g395$lns$1@build.eclipse.org:

> Marjolein Katsma wrote:
>> Until recently, I was running Eclipse 3.2.
>>
>> Last weekend I installed Eclipse 3.3 expressly so I would be able to
>> use PDT - installed the platform, reinstalled all my plugins (but
>> replacing Mylar with Mylyn), then installed PDT.
>>
>> Then I "removed" some existing PHPeclipse projects and re-created
>> them as PDT PHP projects.
>>
>> All looked fine, until I actually tried to open a PHP file in PDT's
>> PHP editor. That doesn't work: all I get is a
>> "java.lang.NullPointerException".
>
> Check the error log (under Window > Show View > Other > Error Log),
> you'll probably find more details about the error.

I see some warnings after startup of Eclipse (mostly referring to
keybinding conflicts which don't worry me right now), but one other one
of them _might_ be relevant:

------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Warning
Mon Jul 16 18:46:44 CEST 2007
A handler conflict occurred. This may disable some commands.
------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Warning
Mon Jul 16 18:46:44 CEST 2007
Conflict for
'AUTOGEN:::net.sourceforge.phpeclipse.actions.popupShowActio n/net.source
forge.phpeclipse.actions.showAction':HandlerActivation
(commandId=AUTOGEN:::net.sourceforge.phpeclipse.actions.popu pShowAction/
net.sourceforge.phpeclipse.actions.showAction,
handler=ActionDelegateHandlerProxy
(null,net.sourceforge.phpeclipse.actions.PHPEclipseShowActio n),
expression=WorkbenchWindowExpression
(org.eclipse.ui.internal.WorkbenchWindow@6d3b92),sourcePriority=16384)
HandlerActivation
(commandId=AUTOGEN:::net.sourceforge.phpeclipse.actions.popu pShowAction/
net.sourceforge.phpeclipse.actions.showAction,
handler=ActionDelegateHandlerProxy
(null,net.sourceforge.phpeclipse.actions.PHPEclipseShowActio n),
expression=WorkbenchWindowExpression
(org.eclipse.ui.internal.WorkbenchWindow@6d3b92),sourcePriority=16384)
------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Warning
Mon Jul 16 18:46:44 CEST 2007
Conflict for
'AUTOGEN:::net.sourceforge.phpdt.externaltools.actions.exter nalParserAct
ion/net.sourceforge.phpdt.externaltools.actions.externalPars erAction':Ha
ndlerActivation
(commandId=AUTOGEN:::net.sourceforge.phpdt.externaltools.act ions.externa
lParserAction/net.sourceforge.phpdt.externaltools.actions.ex ternalParser
Action,
handler=ActionDelegateHandlerProxy
(null,net.sourceforge.phpdt.externaltools.actions.PHPExterna lParserActio
n),
expression=WorkbenchWindowExpression
(org.eclipse.ui.internal.WorkbenchWindow@6d3b92),sourcePriority=16384)
HandlerActivation
(commandId=AUTOGEN:::net.sourceforge.phpdt.externaltools.act ions.externa
lParserAction/net.sourceforge.phpdt.externaltools.actions.ex ternalParser
Action,
handler=ActionDelegateHandlerProxy
(null,net.sourceforge.phpdt.externaltools.actions.PHPExterna lParserActio
n),
expression=WorkbenchWindowExpression
(org.eclipse.ui.internal.WorkbenchWindow@6d3b92),sourcePriority=16384)
------------------------------------------------------------ ----------


Then after I try to open a PHP file from a PDT PHP project with the PDT
PHP editor, two errors appear at the top of the log:

------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Error
Mon Jul 16 18:54:53 CEST 2007
Unable to create editor ID org.eclipse.php.editor: An exception was
thrown during initialization

java.lang.NullPointerException
at org.eclipse.wst.sse.ui.StructuredTextEditor.getModel
(StructuredTextEditor.java:2403)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.getFi le
(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor
$1.getProject(Unknown Source)
at
org.eclipse.php.internal.core.project.properties.handlers.Ph pVersionChan
gedHandler.addPhpVersionChangedListener(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init
(Unknown Source)
at org.eclipse.ui.internal.EditorManager.createSite
(EditorManager.java:794)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:643)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.EditorReference.getEditor
(EditorReference.java:263)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12
(WorkbenchPage.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run
(WorkbenchPage.java:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2572)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2556)
at org.eclipse.ui.actions.OpenWithMenu.openEditor
(OpenWithMenu.java:340)
at org.eclipse.ui.actions.OpenWithMenu.access$0
(OpenWithMenu.java:328)
at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent
(OpenWithMenu.java:226)
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.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java: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
(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicat
ion(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start
(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Error
Mon Jul 16 18:54:53 CEST 2007
An unexpected exception was thrown.

java.lang.NullPointerException
at org.eclipse.wst.sse.ui.StructuredTextEditor.getModel
(StructuredTextEditor.java:2403)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.getFi le
(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor
$1.getProject(Unknown Source)
at
org.eclipse.php.internal.core.project.properties.handlers.Ph pVersionChan
gedHandler.removePhpVersionChangedListener(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.dispo se
(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:689)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.EditorReference.getEditor
(EditorReference.java:263)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12
(WorkbenchPage.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run
(WorkbenchPage.java:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2572)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2556)
at org.eclipse.ui.actions.OpenWithMenu.openEditor
(OpenWithMenu.java:340)
at org.eclipse.ui.actions.OpenWithMenu.access$0
(OpenWithMenu.java:328)
at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent
(OpenWithMenu.java:226)
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.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java: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
(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicat
ion(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start
(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
------------------------------------------------------------ ----------

That doesn't really mean anything to me as I'm not familiar with the
internals of Eclipse (let alone Java) - it looks like a trace, but
that's as far as I get.

BTW, the OS=win32 I see in there is actually Windows 2000 SP4.

--
Marjolein Katsma
* Travel blog: http://blog.iamback.com/
* Spam reporting addresses: http://banspam.javawoman.com/report3.html
Re: Cannot open file in PHP editor [message #35924 is a reply to message #35822] Tue, 17 July 2007 08:37 Go to previous messageGo to next message
Guy Gurfinkel is currently offline Guy GurfinkelFriend
Messages: 39
Registered: July 2009
Member
Hi,
It looks like you didn't create your projects correctly.
What you have to do is create a new PHP project and then import your files
(either from file system or version control server) using the import wizard.


--
Guy Gurfinkel,
Team Leader, Development Tools
Zend.



"Marjolein Katsma" <nobody@spamcop.net> wrote in message
news:Xns996FC2D587887iambackeclipse@206.191.52.34...
> Daniel Serodio (dserodio@gmail.com) wrote in
> news:f7g395$lns$1@build.eclipse.org:
>
>> Marjolein Katsma wrote:
>>> Until recently, I was running Eclipse 3.2.
>>>
>>> Last weekend I installed Eclipse 3.3 expressly so I would be able to
>>> use PDT - installed the platform, reinstalled all my plugins (but
>>> replacing Mylar with Mylyn), then installed PDT.
>>>
>>> Then I "removed" some existing PHPeclipse projects and re-created
>>> them as PDT PHP projects.
>>>
>>> All looked fine, until I actually tried to open a PHP file in PDT's
>>> PHP editor. That doesn't work: all I get is a
>>> "java.lang.NullPointerException".
>>
>> Check the error log (under Window > Show View > Other > Error Log),
>> you'll probably find more details about the error.
>
> I see some warnings after startup of Eclipse (mostly referring to
> keybinding conflicts which don't worry me right now), but one other one
> of them _might_ be relevant:
>
> ------------------------------------------------------------ ----------
> eclipse.buildId=I20070625-1500
> java.version=1.5.0_10
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
> This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
> Created Time: 2007-07-16 18:45:46.157
>
> Warning
> Mon Jul 16 18:46:44 CEST 2007
> A handler conflict occurred. This may disable some commands.
> ------------------------------------------------------------ ----------
> eclipse.buildId=I20070625-1500
> java.version=1.5.0_10
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
> This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
> Created Time: 2007-07-16 18:45:46.157
>
> Warning
> Mon Jul 16 18:46:44 CEST 2007
> Conflict for
> 'AUTOGEN:::net.sourceforge.phpeclipse.actions.popupShowActio n/net.source
> forge.phpeclipse.actions.showAction':HandlerActivation
> (commandId=AUTOGEN:::net.sourceforge.phpeclipse.actions.popu pShowAction/
> net.sourceforge.phpeclipse.actions.showAction,
> handler=ActionDelegateHandlerProxy
> (null,net.sourceforge.phpeclipse.actions.PHPEclipseShowActio n),
> expression=WorkbenchWindowExpression
> (org.eclipse.ui.internal.WorkbenchWindow@6d3b92),sourcePriority=16384)
> HandlerActivation
> (commandId=AUTOGEN:::net.sourceforge.phpeclipse.actions.popu pShowAction/
> net.sourceforge.phpeclipse.actions.showAction,
> handler=ActionDelegateHandlerProxy
> (null,net.sourceforge.phpeclipse.actions.PHPEclipseShowActio n),
> expression=WorkbenchWindowExpression
> (org.eclipse.ui.internal.WorkbenchWindow@6d3b92),sourcePriority=16384)
> ------------------------------------------------------------ ----------
> eclipse.buildId=I20070625-1500
> java.version=1.5.0_10
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
> This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
> Created Time: 2007-07-16 18:45:46.157
>
> Warning
> Mon Jul 16 18:46:44 CEST 2007
> Conflict for
> 'AUTOGEN:::net.sourceforge.phpdt.externaltools.actions.exter nalParserAct
> ion/net.sourceforge.phpdt.externaltools.actions.externalPars erAction':Ha
> ndlerActivation
> (commandId=AUTOGEN:::net.sourceforge.phpdt.externaltools.act ions.externa
> lParserAction/net.sourceforge.phpdt.externaltools.actions.ex ternalParser
> Action,
> handler=ActionDelegateHandlerProxy
> (null,net.sourceforge.phpdt.externaltools.actions.PHPExterna lParserActio
> n),
> expression=WorkbenchWindowExpression
> (org.eclipse.ui.internal.WorkbenchWindow@6d3b92),sourcePriority=16384)
> HandlerActivation
> (commandId=AUTOGEN:::net.sourceforge.phpdt.externaltools.act ions.externa
> lParserAction/net.sourceforge.phpdt.externaltools.actions.ex ternalParser
> Action,
> handler=ActionDelegateHandlerProxy
> (null,net.sourceforge.phpdt.externaltools.actions.PHPExterna lParserActio
> n),
> expression=WorkbenchWindowExpression
> (org.eclipse.ui.internal.WorkbenchWindow@6d3b92),sourcePriority=16384)
> ------------------------------------------------------------ ----------
>
>
> Then after I try to open a PHP file from a PDT PHP project with the PDT
> PHP editor, two errors appear at the top of the log:
>
> ------------------------------------------------------------ ----------
> eclipse.buildId=I20070625-1500
> java.version=1.5.0_10
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
> This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
> Created Time: 2007-07-16 18:45:46.157
>
> Error
> Mon Jul 16 18:54:53 CEST 2007
> Unable to create editor ID org.eclipse.php.editor: An exception was
> thrown during initialization
>
> java.lang.NullPointerException
> at org.eclipse.wst.sse.ui.StructuredTextEditor.getModel
> (StructuredTextEditor.java:2403)
> at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.getFi le
> (Unknown Source)
> at org.eclipse.php.internal.ui.editor.PHPStructuredEditor
> $1.getProject(Unknown Source)
> at
> org.eclipse.php.internal.core.project.properties.handlers.Ph pVersionChan
> gedHandler.addPhpVersionChangedListener(Unknown Source)
> at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init
> (Unknown Source)
> at org.eclipse.ui.internal.EditorManager.createSite
> (EditorManager.java:794)
> at org.eclipse.ui.internal.EditorReference.createPartHelper
> (EditorReference.java:643)
> at org.eclipse.ui.internal.EditorReference.createPart
> (EditorReference.java:426)
> at org.eclipse.ui.internal.WorkbenchPartReference.getPart
> (WorkbenchPartReference.java:592)
> at org.eclipse.ui.internal.EditorReference.getEditor
> (EditorReference.java:263)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
> (WorkbenchPage.java:2721)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
> (WorkbenchPage.java:2633)
> at org.eclipse.ui.internal.WorkbenchPage.access$12
> (WorkbenchPage.java:2625)
> at org.eclipse.ui.internal.WorkbenchPage$10.run
> (WorkbenchPage.java:2577)
> at org.eclipse.swt.custom.BusyIndicator.showWhile
> (BusyIndicator.java:67)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor
> (WorkbenchPage.java:2572)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor
> (WorkbenchPage.java:2556)
> at org.eclipse.ui.actions.OpenWithMenu.openEditor
> (OpenWithMenu.java:340)
> at org.eclipse.ui.actions.OpenWithMenu.access$0
> (OpenWithMenu.java:328)
> at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent
> (OpenWithMenu.java:226)
> 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.java:3682)
> at org.eclipse.swt.widgets.Display.readAndDispatch
> (Display.java:3293)
> at org.eclipse.ui.internal.Workbench.runEventLoop
> (Workbench.java: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
> (Workbench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench
> (PlatformUI.java:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start
> (IDEApplication.java:106)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run
> (EclipseAppHandle.java:153)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicat
> ion(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start
> (EclipseAppLauncher.java:76)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run
> (EclipseStarter.java:363)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run
> (EclipseStarter.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)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
> ------------------------------------------------------------ ----------
> eclipse.buildId=I20070625-1500
> java.version=1.5.0_10
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
> Command-line arguments: -os win32 -ws win32 -arch x86
> This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
> Created Time: 2007-07-16 18:45:46.157
>
> Error
> Mon Jul 16 18:54:53 CEST 2007
> An unexpected exception was thrown.
>
> java.lang.NullPointerException
> at org.eclipse.wst.sse.ui.StructuredTextEditor.getModel
> (StructuredTextEditor.java:2403)
> at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.getFi le
> (Unknown Source)
> at org.eclipse.php.internal.ui.editor.PHPStructuredEditor
> $1.getProject(Unknown Source)
> at
> org.eclipse.php.internal.core.project.properties.handlers.Ph pVersionChan
> gedHandler.removePhpVersionChangedListener(Unknown Source)
> at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.dispo se
> (Unknown Source)
> at org.eclipse.ui.internal.EditorReference.createPartHelper
> (EditorReference.java:689)
> at org.eclipse.ui.internal.EditorReference.createPart
> (EditorReference.java:426)
> at org.eclipse.ui.internal.WorkbenchPartReference.getPart
> (WorkbenchPartReference.java:592)
> at org.eclipse.ui.internal.EditorReference.getEditor
> (EditorReference.java:263)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
> (WorkbenchPage.java:2721)
> at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
> (WorkbenchPage.java:2633)
> at org.eclipse.ui.internal.WorkbenchPage.access$12
> (WorkbenchPage.java:2625)
> at org.eclipse.ui.internal.WorkbenchPage$10.run
> (WorkbenchPage.java:2577)
> at org.eclipse.swt.custom.BusyIndicator.showWhile
> (BusyIndicator.java:67)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor
> (WorkbenchPage.java:2572)
> at org.eclipse.ui.internal.WorkbenchPage.openEditor
> (WorkbenchPage.java:2556)
> at org.eclipse.ui.actions.OpenWithMenu.openEditor
> (OpenWithMenu.java:340)
> at org.eclipse.ui.actions.OpenWithMenu.access$0
> (OpenWithMenu.java:328)
> at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent
> (OpenWithMenu.java:226)
> 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.java:3682)
> at org.eclipse.swt.widgets.Display.readAndDispatch
> (Display.java:3293)
> at org.eclipse.ui.internal.Workbench.runEventLoop
> (Workbench.java: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
> (Workbench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench
> (PlatformUI.java:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start
> (IDEApplication.java:106)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run
> (EclipseAppHandle.java:153)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicat
> ion(EclipseAppLauncher.java:106)
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start
> (EclipseAppLauncher.java:76)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run
> (EclipseStarter.java:363)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run
> (EclipseStarter.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)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
> ------------------------------------------------------------ ----------
>
> That doesn't really mean anything to me as I'm not familiar with the
> internals of Eclipse (let alone Java) - it looks like a trace, but
> that's as far as I get.
>
> BTW, the OS=win32 I see in there is actually Windows 2000 SP4.
>
> --
> Marjolein Katsma
> * Travel blog: http://blog.iamback.com/
> * Spam reporting addresses: http://banspam.javawoman.com/report3.html
Re: Cannot open file in PHP editor [message #35995 is a reply to message #35924] Tue, 17 July 2007 10:35 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nobody.spamcop.net

Guy Gurfinkel (guy.g@zend.com) wrote in
news:f7hv4f$keb$1@build.eclipse.org:

> Hi,
> It looks like you didn't create your projects correctly.
> What you have to do is create a new PHP project and then import your
> files (either from file system or version control server) using the
> import wizard.

It used to be possible to create a project from an existing working copy,
which is what I did to create my new PHP projects now. What's wrong with
that method?

However, I tried your suggestion - after deleting the project and its
contents first and re-creating the directory:

1. I created a new PHP project at that directory; then did import from SVN
repository. When it was ready to import, it first gave me an overwrite
warning, which I OKed, but this was followed by an error message "Cannot
create project to checkout to".

2. I then tried it the other way round (after deleting the PHP project
again): just chose import, picked the SVN repository, and chose to create
a project from that - choosing "Check out as a project in the work space".
That seemed to work, but the resulting project did not have the "P"
marker: it's not PHP project. Trying to open a file in the PHP editor then
resulted in a java.lang.NullPointerException again.

3. Third try (after deleting the project again and re-creating the
directory): chose import, picked the SVN repository, and chose to create a
project from that, this time using the New Project Wizard, and choosing a
PHP project, pointing it to my directory as work space. I then get a
"Confirm overwrite" dialog, which states:

"The project you created, SmNotes wiki, contains resources other
than the standard .project file. If any of these resources have
the same name and relative location of a resource you are
checking out, the local resource will be replaced with the
resource from the repository."

Actually, what's created is not only a .project file but also a
..projectOptions file and a .settings directory. I don't know what
"resources" from the repository this message is referring to (but it
contains a couple of .htaccess files - could it be referring to these?). I
OKed the dialog, after which the checkout takes place. All seems healthy.
But then, when I try to open a file in the PHP editor, I again get a
java.lang.NullPointerException ...

Why do all these paths exist to create a (PHP) project when supposedly
there's only one that "works" - which I haven't found yet? I think I've no
tried all possible paths to PHP Project creation (from SVN working copy or
from SVN import).

But I'm beginning to fear the way I create a PHP project is not actually
the problem. What else can I look at or try?



From the error log (in the order they were created):

attempt 1.
------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Error
Tue Jul 17 11:39:03 CEST 2007
Cannot create project to checkout to
------------------------------------------------------------ ----------

attempt 2.
------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Error
Tue Jul 17 11:44:18 CEST 2007
An unexpected exception was thrown.

java.lang.NullPointerException
at org.eclipse.wst.sse.ui.StructuredTextEditor.getModel
(StructuredTextEditor.java:2403)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.getFi le
(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor
$1.getProject(Unknown Source)
at
org.eclipse.php.internal.core.project.properties.handlers.Ph pVersionChange
dHandler.removePhpVersionChangedListener(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.dispo se
(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:689)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.EditorReference.getEditor
(EditorReference.java:263)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12
(WorkbenchPage.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run
(WorkbenchPage.java:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2572)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2556)
at org.eclipse.ui.actions.OpenWithMenu.openEditor
(OpenWithMenu.java:340)
at org.eclipse.ui.actions.OpenWithMenu.access$0
(OpenWithMenu.java:328)
at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent
(OpenWithMenu.java:226)
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.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java: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
(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicatio
n(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start
(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Error
Tue Jul 17 11:44:18 CEST 2007
Unable to create editor ID org.eclipse.php.editor: An exception was thrown
during initialization

java.lang.NullPointerException
at org.eclipse.wst.sse.ui.StructuredTextEditor.getModel
(StructuredTextEditor.java:2403)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.getFi le
(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor
$1.getProject(Unknown Source)
at
org.eclipse.php.internal.core.project.properties.handlers.Ph pVersionChange
dHandler.addPhpVersionChangedListener(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init
(Unknown Source)
at org.eclipse.ui.internal.EditorManager.createSite
(EditorManager.java:794)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:643)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.EditorReference.getEditor
(EditorReference.java:263)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2721)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12
(WorkbenchPage.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run
(WorkbenchPage.java:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2572)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2556)
at org.eclipse.ui.actions.OpenWithMenu.openEditor
(OpenWithMenu.java:340)
at org.eclipse.ui.actions.OpenWithMenu.access$0
(OpenWithMenu.java:328)
at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent
(OpenWithMenu.java:226)
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.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java: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
(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicatio
n(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start
(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
------------------------------------------------------------ ----------

attempt 3.
------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Error
Tue Jul 17 12:22:06 CEST 2007
An unexpected exception was thrown.

java.lang.NullPointerException
at org.eclipse.wst.sse.ui.StructuredTextEditor.getModel
(StructuredTextEditor.java:2403)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.getFi le
(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor
$1.getProject(Unknown Source)
at
org.eclipse.php.internal.core.project.properties.handlers.Ph pVersionChange
dHandler.removePhpVersionChangedListener(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.dispo se
(Unknown Source)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:689)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
at org.eclipse.ui.internal.presentations.PresentablePart.setVis ible
(PresentablePart.java:179)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select
(PresentablePartFolder.java:268)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select
(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectP
art(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on
(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection
(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout
(EditorAreaHelper.java:217)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor
(EditorAreaHelper.java:207)
at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:774)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescript or
(EditorManager.java:673)
at org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:634)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2719)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12
(WorkbenchPage.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run
(WorkbenchPage.java:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2572)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2556)
at org.eclipse.ui.actions.OpenWithMenu.openEditor
(OpenWithMenu.java:340)
at org.eclipse.ui.actions.OpenWithMenu.access$0
(OpenWithMenu.java:328)
at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent
(OpenWithMenu.java:226)
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.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java: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
(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicatio
n(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start
(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
------------------------------------------------------------ ----------
eclipse.buildId=I20070625-1500
java.version=1.5.0_10
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file P:\Eclipse 3.3\.metadata\.bak_0.log
Created Time: 2007-07-16 18:45:46.157

Error
Tue Jul 17 12:22:06 CEST 2007
Unable to create editor ID org.eclipse.php.editor: An exception was thrown
during initialization

java.lang.NullPointerException
at org.eclipse.wst.sse.ui.StructuredTextEditor.getModel
(StructuredTextEditor.java:2403)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.getFi le
(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor
$1.getProject(Unknown Source)
at
org.eclipse.php.internal.core.project.properties.handlers.Ph pVersionChange
dHandler.addPhpVersionChangedListener(Unknown Source)
at org.eclipse.php.internal.ui.editor.PHPStructuredEditor.init
(Unknown Source)
at org.eclipse.ui.internal.EditorManager.createSite
(EditorManager.java:794)
at org.eclipse.ui.internal.EditorReference.createPartHelper
(EditorReference.java:643)
at org.eclipse.ui.internal.EditorReference.createPart
(EditorReference.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart
(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:29 9)
at org.eclipse.ui.internal.presentations.PresentablePart.setVis ible
(PresentablePart.java:179)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select
(PresentablePartFolder.java:268)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select
(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectP
art(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on
(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection
(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 04)
at org.eclipse.ui.internal.PartStack.add(PartStack.java:499)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:103 )
at org.eclipse.ui.internal.PartStack.add(PartStack.java:485)
at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:112 )
at org.eclipse.ui.internal.EditorSashContainer.addEditor
(EditorSashContainer.java:63)
at org.eclipse.ui.internal.EditorAreaHelper.addToLayout
(EditorAreaHelper.java:217)
at org.eclipse.ui.internal.EditorAreaHelper.addEditor
(EditorAreaHelper.java:207)
at org.eclipse.ui.internal.EditorManager.createEditorTab
(EditorManager.java:774)
at org.eclipse.ui.internal.EditorManager.openEditorFromDescript or
(EditorManager.java:673)
at org.eclipse.ui.internal.EditorManager.openEditor
(EditorManager.java:634)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched
(WorkbenchPage.java:2719)
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor
(WorkbenchPage.java:2633)
at org.eclipse.ui.internal.WorkbenchPage.access$12
(WorkbenchPage.java:2625)
at org.eclipse.ui.internal.WorkbenchPage$10.run
(WorkbenchPage.java:2577)
at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2572)
at org.eclipse.ui.internal.WorkbenchPage.openEditor
(WorkbenchPage.java:2556)
at org.eclipse.ui.actions.OpenWithMenu.openEditor
(OpenWithMenu.java:340)
at org.eclipse.ui.actions.OpenWithMenu.access$0
(OpenWithMenu.java:328)
at org.eclipse.ui.actions.OpenWithMenu$3.handleEvent
(OpenWithMenu.java:226)
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.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java: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
(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplicatio
n(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start
(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.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)
at org.eclipse.equinox.launcher.Main.main(Main.java:1144)
------------------------------------------------------------ ----------

--
Marjolein Katsma
* Travel blog: http://blog.iamback.com/
* Spam reporting addresses: http://banspam.javawoman.com/report3.html
Re: Cannot open file in PHP editor [message #36165 is a reply to message #35995] Tue, 17 July 2007 13:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dserodio.gmail.com

Marjolein Katsma wrote:
> Guy Gurfinkel (guy.g@zend.com) wrote in
> news:f7hv4f$keb$1@build.eclipse.org:
>
>> Hi,
>> It looks like you didn't create your projects correctly.
>> What you have to do is create a new PHP project and then import your
>> files (either from file system or version control server) using the
>> import wizard.
>
> It used to be possible to create a project from an existing working copy,
> which is what I did to create my new PHP projects now. What's wrong with
> that method?
>
> However, I tried your suggestion - after deleting the project and its
> contents first and re-creating the directory:
>
> 1. I created a new PHP project at that directory; then did import from SVN
> repository. When it was ready to import, it first gave me an overwrite
> warning, which I OKed, but this was followed by an error message "Cannot
> create project to checkout to".

You probably have conflicting PHPeclipse and PDT project settings. Did
you try creating a brand new project with a "hello world" PHP file to
check if it works or not?

It it works, I'd try the following:

1) Checkout project
2) Delete project (but preserve contents)
3) Remove all pending .* files (filenames starting with a period)
4) Create a new PDT project, choosing the previous (deleted) project folder

HTH,
Daniel Serodio
Re: Cannot open file in PHP editor [message #36232 is a reply to message #35924] Tue, 17 July 2007 13:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nobody.spamcop.net

Guy Gurfinkel (guy.g@zend.com) wrote in news:f7hv4f$keb$1
@build.eclipse.org:

> It looks like you didn't create your projects correctly.

I found a/the cause! Apparently nothing to do with how the (PHP) project
was created.

I had a little brainwave ...

Without any change to the project, I disabled *PHPeclipse* in Manage
Configuration. Closing Eclipse after that, there was a lengthy delay
where all sorts of scanning and rebuilding was taking place.

When I restarted after that, the first thing I noticed was that suddenly
the Tasks view was populated (which it had stopped to do since my
upgrade to 3.3 *except* for CSS files). Then I tried a double-click on
one of the items in the Tasks view ... which opened the referenced file
- in the PHP editor! Also, when I did that, the (linked) PHP Explorer
expanded to locate on the opened file, and the files now have a "P
document" icon instead of the "PHP icon" associated with PHPeclipse.

So, almost certainly, all the problems with opening the PHP editor were
caused by a conflict with PHPeclipse. PHPeclipse was installed before I
installed PDT.

It would be great if such a conflict between plugins were *reported* as
a conflict (during installation, or usage), or there were an easier way
to discover any conflicts like this. The error log really gave (me) no
clue pointing to PHPeclipse.

--
Marjolein Katsma
* Travel blog: http://blog.iamback.com/
* Spam reporting addresses: http://banspam.javawoman.com/report3.html
Re: Cannot open file in PHP editor [message #36894 is a reply to message #36232] Wed, 18 July 2007 16:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nobody.spamcop.net

*bump*

Should I report this -undetected- plugin conflict as a bug somewhere?

If so, where, exactly?


Extra note:
I also have Aptana installed; it provides a PHP editor as well, which also
seems to inherit from the platfrom structured editor. There is *no*
conflict with Aptana, or its PHP editor, unlike with the PHP editor from
PHP eclipse.

In fact, I've already formed the habit of having most files I work on open
in both the PDT PHP editor and Aptana's PHP editor, since the former
provides useful outline and PHPdoc integration etc., but Aptana's editor
is otherwise much more usable, with *far* better indenting/outdenting
algorithms, and more advanced (and useful) syntax highlighting.

Marjolein Katsma (nobody@spamcop.net) wrote in
news:Xns99709DD828CD8iambackeclipse@206.191.52.34:

> Guy Gurfinkel (guy.g@zend.com) wrote in news:f7hv4f$keb$1
> @build.eclipse.org:
>
>> It looks like you didn't create your projects correctly.
>
> I found a/the cause! Apparently nothing to do with how the (PHP) project
> was created.
>
> I had a little brainwave ...
>
> Without any change to the project, I disabled *PHPeclipse* in Manage
> Configuration. Closing Eclipse after that, there was a lengthy delay
> where all sorts of scanning and rebuilding was taking place.
>
> When I restarted after that, the first thing I noticed was that suddenly
> the Tasks view was populated (which it had stopped to do since my
> upgrade to 3.3 *except* for CSS files). Then I tried a double-click on
> one of the items in the Tasks view ... which opened the referenced file
> - in the PHP editor! Also, when I did that, the (linked) PHP Explorer
> expanded to locate on the opened file, and the files now have a "P
> document" icon instead of the "PHP icon" associated with PHPeclipse.
>
> So, almost certainly, all the problems with opening the PHP editor were
> caused by a conflict with PHPeclipse. PHPeclipse was installed before I
> installed PDT.
>
> It would be great if such a conflict between plugins were *reported* as
> a conflict (during installation, or usage), or there were an easier way
> to discover any conflicts like this. The error log really gave (me) no
> clue pointing to PHPeclipse.

--
Marjolein Katsma
* Travel blog: http://blog.iamback.com/
* Spam reporting addresses: http://banspam.javawoman.com/report3.html
Re: Cannot open file in PHP editor [message #37266 is a reply to message #36894] Thu, 19 July 2007 13:08 Go to previous messageGo to next message
Guy Gurfinkel is currently offline Guy GurfinkelFriend
Messages: 39
Registered: July 2009
Member
I don't see this as a conflict but two options to do the same thing (same as
two SVN support providers), also the is no mechanism in Eclipse that can
provide you this information.
As one developer to another I recommend you to choose one of the solutions
(I recommend PDT of course :)), remove all others plugins and also create
your projects accordingly.

--
Guy Gurfinkel,
Team Leader, Development Tools
Zend.

"Marjolein Katsma" <nobody@spamcop.net> wrote in message
news:Xns9971B8F16B044iambackeclipse@206.191.52.34...
> *bump*
>
> Should I report this -undetected- plugin conflict as a bug somewhere?
>
> If so, where, exactly?
>
>
> Extra note:
> I also have Aptana installed; it provides a PHP editor as well, which also
> seems to inherit from the platfrom structured editor. There is *no*
> conflict with Aptana, or its PHP editor, unlike with the PHP editor from
> PHP eclipse.
>
> In fact, I've already formed the habit of having most files I work on open
> in both the PDT PHP editor and Aptana's PHP editor, since the former
> provides useful outline and PHPdoc integration etc., but Aptana's editor
> is otherwise much more usable, with *far* better indenting/outdenting
> algorithms, and more advanced (and useful) syntax highlighting.
>
> Marjolein Katsma (nobody@spamcop.net) wrote in
> news:Xns99709DD828CD8iambackeclipse@206.191.52.34:
>
>> Guy Gurfinkel (guy.g@zend.com) wrote in news:f7hv4f$keb$1
>> @build.eclipse.org:
>>
>>> It looks like you didn't create your projects correctly.
>>
>> I found a/the cause! Apparently nothing to do with how the (PHP) project
>> was created.
>>
>> I had a little brainwave ...
>>
>> Without any change to the project, I disabled *PHPeclipse* in Manage
>> Configuration. Closing Eclipse after that, there was a lengthy delay
>> where all sorts of scanning and rebuilding was taking place.
>>
>> When I restarted after that, the first thing I noticed was that suddenly
>> the Tasks view was populated (which it had stopped to do since my
>> upgrade to 3.3 *except* for CSS files). Then I tried a double-click on
>> one of the items in the Tasks view ... which opened the referenced file
>> - in the PHP editor! Also, when I did that, the (linked) PHP Explorer
>> expanded to locate on the opened file, and the files now have a "P
>> document" icon instead of the "PHP icon" associated with PHPeclipse.
>>
>> So, almost certainly, all the problems with opening the PHP editor were
>> caused by a conflict with PHPeclipse. PHPeclipse was installed before I
>> installed PDT.
>>
>> It would be great if such a conflict between plugins were *reported* as
>> a conflict (during installation, or usage), or there were an easier way
>> to discover any conflicts like this. The error log really gave (me) no
>> clue pointing to PHPeclipse.
>
> --
> Marjolein Katsma
> * Travel blog: http://blog.iamback.com/
> * Spam reporting addresses: http://banspam.javawoman.com/report3.html
Re: Cannot open file in PHP editor [message #37334 is a reply to message #37266] Thu, 19 July 2007 15:09 Go to previous message
Eclipse UserFriend
Originally posted by: nobody.spamcop.net

Guy Gurfinkel (guy.g@zend.com) wrote in
news:f7nnod$b9o$1@build.eclipse.org:

> I don't see this as a conflict but two options to do the same thing
> (same as two SVN support providers), also the is no mechanism in
> Eclipse that can provide you this information.

Surely when the presence of two plugins causes an error when choosing an
option from one of them, there is a conflict!

But there is NO error when I choose to open a file in Aptana's PHP
editor, while there is one with PHPeclipse's PHP editor?

This indicates that the mere presence of another plugin which provides a
PHP editor does not itself cause a problem - it's *only* the
comnbination of PDT + PHPeclipse that causes such an error. Obviously
there's a conflict between those two.

Rather disappointing there is no mechanism to detect such a conflict (on
installation or at least when such a conflict arises causing an error
like I've described). A "java.lang.NullPointerException" and the error
log when it happens is not good enough to find the actual cause -
nothing in there points to where the conflict arises.

> As one developer to another I recommend you to choose one of the
> solutions (I recommend PDT of course :)), remove all others plugins
> and also create your projects accordingly.

Well, I *did* choose PDT (of course :)) or I wouldn't be here.
And I did create my projects "accordingly" (removing old projetcs and
creating new PDT versions of my projects). I'm not convinced any of the
project creation methods I used are wrong, as long as it actually
creates a PDT project. My original method of just using an existing
working copy created a PDT project as well, and I'm sure that would have
worked just as well as my latest version: the actual project is no
different! (It merely required an extra checkout.)

I certainly can't "remove all other plugins" - I *use* what I have
installed!

Meanwhile, until PDT's PHP editor grows up a bit, I'll have to continue
to use Aptana's PHP editor alongside it - its indenting behavior and
syntax highlighting are superior. (And even then I miss several editing
facilities that I've been used to since I was editing source on DOS with
a good programmer's editor well over 10 years ago...).

Eclipse and the integration it provides is great, but the code editors
still have a long way to go - it still feels as if I'm trading in
powerful editing for integration. See also the thread "newline after
single line comment returns cursor to column 1". And *configurable*
syntax highlighting (not just colors, but *what* is highlighted) would
be great as well.

--
Marjolein Katsma
* Travel blog: http://blog.iamback.com/
* Spam reporting addresses: http://banspam.javawoman.com/report3.html
Previous Topic:newline after single line comment returns cursor to column 1
Next Topic:How Do I Get Debugging Working?
Goto Forum:
  


Current Time: Thu Jan 16 23:18:08 GMT 2025

Powered by FUDForum. Page generated in 0.06424 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top