Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » "PHP Editor"
"PHP Editor" [message #494915] Tue, 03 November 2009 08:58 Go to next message
Daniela Waranie is currently offline Daniela WaranieFriend
Messages: 52
Registered: July 2009
Member
Hi all,

i am new to PDT. After i used PDT for 4 weeks now it fails to open PDT´s
PHP Editor with this error message:

"Could not open the editor: The editor class could not be instantiated.
This usually indicates a missing no-arg constructor or that the editor's
class name was mistyped in plugin.xml."

I think the PHP Editor is shipped with PDT so i am asking here.

My last action was to install PTI (PHP Tools Integration). Is that the
reason why the PHP Editor fails to load? Is that a known incompabilility
or is PTI not affecting PDTs PHP Editor?

By the way the "Aptana PHP Editor" is still working, so i seams to be
not a general problem.

What can i do to solve this problem?

Best regards
Daniela Waranie

PS:
Details:
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter $TerminatingClassNotFoundException:
An error occurred while automatically activating bundle
org.eclipse.php.ui (582).
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:125)
at
org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:449)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:211)
at
org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass (BundleLoader.java:376)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:452)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:405)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at
org.eclipse.osgi.internal.loader.BundleLoader.loadClass(Bund leLoader.java:321)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:231)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1193)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:160)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:874)
at
org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at
org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugi n.java:267)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPlugin.createExtension(Work benchPlugin.java:263)
at
org.eclipse.ui.internal.registry.EditorDescriptor.createEdit or(EditorDescriptor.java:235)
at org.eclipse.ui.internal.EditorManager.createPart(EditorManag er.java:845)
at
org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:606)
at
org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462)
at
org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:31 3)
at
org.eclipse.ui.internal.presentations.PresentablePart.setVis ible(PresentablePart.java:180)
at
org.eclipse.ui.internal.presentations.util.PresentablePartFo lder.select(PresentablePartFolder.java:270)
at
org.eclipse.ui.internal.presentations.util.LeftToRightTabOrd er.select(LeftToRightTabOrder.java:65)
at
org.eclipse.ui.internal.presentations.util.TabbedStackPresen tation.selectPart(TabbedStackPresentation.java:473)
at
org.eclipse.ui.internal.PartStack.refreshPresentationSelecti on(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.jav a:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:16 08)
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(Editor SashContainer.java:63)
at
org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorA reaHelper.java:225)
at
org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAre aHelper.java:213)
at
org.eclipse.ui.internal.EditorManager.createEditorTab(Editor Manager.java:778)
at
org.eclipse.ui.internal.EditorManager.openEditorFromDescript or(EditorManager.java:677)
at org.eclipse.ui.internal.EditorManager.openEditor(EditorManag er.java:638)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2854)
at
org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2762)
at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2754)
at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2705)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2701)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2685)
at
org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2676)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:651)
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:610)
at org.eclipse.ui.actions.OpenFileAction.openFile(OpenFileActio n.java:99)
at
org.eclipse.ui.actions.OpenSystemEditorAction.run(OpenSystem EditorAction.java:99)
at
org.eclipse.ui.views.navigator.OpenActionGroup.runDefaultAct ion(OpenActionGroup.java:133)
at
org.eclipse.ui.views.navigator.MainActionGroup.runDefaultAct ion(MainActionGroup.java:330)
at
org.eclipse.ui.views.navigator.ResourceNavigator.handleOpen( ResourceNavigator.java:787)
at
org.eclipse.ui.views.navigator.ResourceNavigator$6.open(Reso urceNavigator.java:499)
at
org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener. open(OpenAndLinkWithEditorHelper.java:48)
at
org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredV iewer.java:842)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:17 5)
at
org.eclipse.jface.viewers.StructuredViewer.fireOpen(Structur edViewer.java:840)
at
org.eclipse.jface.viewers.StructuredViewer.handleOpen(Struct uredViewer.java:1101)
at
org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(Stru cturedViewer.java:1205)
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrate gy.java:264)
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.ja va:258)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrate gy.java:298)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
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: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: org.osgi.framework.BundleException: The activator
org.eclipse.php.internal.ui.PHPUiPlugin for bundle org.eclipse.php.ui is
invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:157)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:750)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:280)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:408)
at
org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
... 93 more
Caused by: java.lang.NoClassDefFoundError:
org/eclipse/php/internal/ui/preferences/PHPTemplateStore
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:152)
... 98 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.php.internal.ui.preferences.PHPTemplateStore
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(BundleLoader.java:443)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:405)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 104 more
Re: "PHP Editor": Error - reproduced! [message #494933 is a reply to message #494915] Tue, 03 November 2009 10:13 Go to previous messageGo to next message
Daniela Waranie is currently offline Daniela WaranieFriend
Messages: 52
Registered: July 2009
Member
Hi all,

i am a lucky person. I did created a copy of my eclipse 2 days before.
So a can continue the work with my eclipse.

Now a create a further copy (of the working eclipse) for further tests
on this PHP Editor problem.

When i
1) add http://www.phpsrc.org/eclipse/pti-dev/ to the update sites
2) and then install the "PHP Tool Integration Core
[0.1.0.R20091029000000]" only
3) and restart eclipse after installation
i do have the same error with the PHP Editor of PDT.

This leads me to the question:
1) Is that a problem of PDT or PTI?
2) How to solve the problem?

Best regards
Daniela Waranie
Re: "PHP Editor": Error - reproduced! [message #494947 is a reply to message #494933] Tue, 03 November 2009 11:12 Go to previous messageGo to next message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
Daniela Waranie schreef:
> When i
> 1) add http://www.phpsrc.org/eclipse/pti-dev/ to the update sites
> 2) and then install the "PHP Tool Integration Core
> [0.1.0.R20091029000000]" only
> 3) and restart eclipse after installation
> i do have the same error with the PHP Editor of PDT.

I think it is the problem of pti, becausw without pdi your pdt shows no
problems. But I think that installing "PHP Tool Integration Core" only
is not correct. I think you need at least the pear library feature as well.

I would have installed everythin. If this still gives you the same
errors (even after project cleaning), I would head over to this
project's bug tracker:
http://sourceforge.net/tracker/?atid=1127654&group_id=26 3892&func=browse
Re: "PHP Editor": Error - reproduced! [message #494985 is a reply to message #494947] Tue, 03 November 2009 13:22 Go to previous messageGo to next message
Daniela Waranie is currently offline Daniela WaranieFriend
Messages: 52
Registered: July 2009
Member
Hi Exeption e,

thanks for your reply.

Even this do not fix the problem:
1) add http://www.phpsrc.org/eclipse/pti-dev/ to the update sites
2) and then install the "PHP Tool Integration Core
[0.1.0.R20091029000000]" only
3) and restart eclipse after installation
4) and then install the "PHP PEAR Library 1.1.0.R2009102900000"
5) and restart eclipse after installation
6) and then install the "PHP Tool CodeSniffer 1.1.0.R20091029000000"
7) and restart eclipse after installation
8) and then install the "PHP Tool PHPUnit 0.1.0.R20091029000000"
9) and restart eclipse after installation
I am still getting the same error.

> I think it is the problem of pti, becausw without pdi your pdt shows
> no problems.
That was my first opinion, but goolge told me that other users do have
the same problem, but with other software in additon to PDT installed.
I think this problem can caused by the installation of other software,
but i am wondering why always the PDT PHP Editor is affected.

What do you mean by "project cleaning"?
"eclipse -clean" did not help.

Best regards
Daniela Waranie
Re: "PHP Editor": Error - reproduced! [message #495033 is a reply to message #494985] Tue, 03 November 2009 15:19 Go to previous messageGo to next message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
Daniela Waranie schreef:
> That was my first opinion, but goolge told me that other users do have
> the same problem, but with other software in additon to PDT installed.
> I think this problem can caused by the installation of other software,
> but i am wondering why always the PDT PHP Editor is affected.

I am inclined to think this is an issue which should be investigated by
the developers of pti first, as they provide a function that typically
is installed alongside of pdt.
If they find out that the bug it is not in their code, they will tell you.

I recommend to fill a bug at their site, and attach your log-file, so
they can see what happens.

> What do you mean by "project cleaning"?
> "eclipse -clean" did not help.

Yeah right, that's what I mean by cleaning.
Re: "PHP Editor": Error - reproduced! [message #495046 is a reply to message #495033] Tue, 03 November 2009 15:57 Go to previous messageGo to next message
Daniela Waranie is currently offline Daniela WaranieFriend
Messages: 52
Registered: July 2009
Member
Hi,

for your information:
I opened a bug ticket at:
https://sourceforge.net/tracker/?func=detail&aid=2891241 &group_id=263892&atid=1127654

Best regards
Daniela Waranie
Re: "PHP Editor": Error - reproduced! [message #495109 is a reply to message #495046] Tue, 03 November 2009 19:33 Go to previous message
exceptione is currently offline exceptioneFriend
Messages: 96
Registered: July 2009
Member
> for your information:
> I opened a bug ticket at:
> https://sourceforge.net/tracker/?func=detail&aid=2891241 &group_id=263892&atid=1127654

Good that you've let us know. It is stange you get get errors from a
PHPTemplateStore.

I (should) have the latest stable version I thougt. If you use an
unstable version from pdt, you could try to downgrade to the latest
galileo release (should be pdt 2.1-SR1).
But it seems you have the same pdt-version, after comparing both.

If pti thinks you have a pdt-bug, you could create an issue at the pdt
bug tracker:
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT& format=guided

I hope you don't give up, sometimes open source takes your time :).
Previous Topic:ANT & PHP
Next Topic:debug: not a valid exe
Goto Forum:
  


Current Time: Thu Mar 28 11:55:10 GMT 2024

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

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

Back to the top