Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 295871 - Exception when opening .php file: java.lang.NoSuchMethodError: org.eclipse.dltk.compiler.IElementRequestor.acceptMethodReference
Summary: Exception when opening .php file: java.lang.NoSuchMethodError: org.eclipse.dl...
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-23 09:52 EST by Starcode CLA
Modified: 2020-05-14 11:17 EDT (History)
8 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Starcode CLA 2009-11-23 09:52:59 EST
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.20) Gecko/20081217 Firefox/2.0.0.20
Build Identifier: I20091030-1201

Each time I open a php file a new editor tab is opened containing "Could not open the editor: Editor could not be initialized." and the exception following Exception in the details:

java.lang.NoSuchMethodError: org.eclipse.dltk.compiler.IElementRequestor.acceptMethodReference([CIII)V
	at org.eclipse.php.internal.core.compiler.PHPSourceElementRequestor.visit(PHPSourceElementRequestor.java:467)
	at org.eclipse.php.internal.core.compiler.PHPSourceElementRequestor.visit(PHPSourceElementRequestor.java:649)
	at org.eclipse.php.internal.core.compiler.ast.nodes.Include.traverse(Include.java:61)
	at org.eclipse.php.internal.core.compiler.ast.nodes.ExpressionStatement.traverse(ExpressionStatement.java:44)
	at org.eclipse.dltk.ast.statements.Block.traverse(Block.java:43)
	at org.eclipse.dltk.ast.declarations.ModuleDeclaration.traverse(ModuleDeclaration.java:70)
	at org.eclipse.dltk.core.AbstractSourceElementParser.parseSourceModule(AbstractSourceElementParser.java:35)
[...]

This exception is only the case if the file really contains php code (only comments don't trigger the exception). If I close the editor tab and reopen the same file again, a editor tab containaing the PHP code is displayed and a Messagebox "Multiple problems have occurred" pops up containing 2 to 3 messages "An error has occurred. See error log for more details", the details contain always the same exception as already described above.

Maybe it is relevant to tell that it's a fresh Eclipse 3.6M3, DLTK 2.0, PDT_2.2 installation (without installation errors).


Reproducible: Always

Steps to Reproduce:
1. Open php file
Comment 1 Tomas Zilvar CLA 2009-11-29 05:42:50 EST
I confirm, this error occures in the Linux version too:

Distro: Ubuntu 9.10
Eclipse: Version: 3.5.1 Build id: M20090917-0800
PHP Development Tools (PDT) Runtime Feature 2.2.0.v200911190058-7L7JF8NcJKhTTUhJK5Y
Dynamic Languages Toolkit - Core Frameworks 2.0.0.v20090917-1518-7L--EAAoOQBUSjFBcvjL
Comment 2 Tomas Zilvar CLA 2009-11-29 05:45:33 EST
Additional info: It may be a duplicate of

https://bugs.eclipse.org/bugs/show_bug.cgi?id=295865
Comment 3 DonMartio CLA 2009-12-01 08:40:22 EST
I confirm this. Tried it with 3.5.1/3.6M3 and PDT 2.2 Stable builds.
This is critical. Any idea how to solve this.
Comment 4 DonMartio CLA 2009-12-02 06:19:08 EST
Well, tried the nightly build this morning and the problem seems to be gone. Very well! Hope there are no other drops now.
Comment 5 Sorin CLA 2009-12-02 07:44:36 EST
"Well, tried the nightly build this morning and the problem seems to be gone.
Very well! Hope there are no other drops now."

So what should i download? It is some new release or..?

Thanks!
Comment 6 Starcode CLA 2009-12-02 07:53:26 EST
I followed this Installation-Instruction:
http://wiki.eclipse.org/PDT/Installation#Eclipse_3.5_.2F_Galileo_.2F_PDT_2.2

But the DLTK Update Site
http://download.eclipse.org/technology/dltk/updates-dev/2.0/
does not provide the nightly build :-(. Where can I get it?
Comment 7 DonMartio CLA 2009-12-02 08:08:37 EST
It's the PDT 2.2 Nighly Build available here:
http://www.eclipse.org/pdt/downloads/

in fact i used this one:
http://www.eclipse.org/downloads/download.php?file=/tools/pdt/downloads/drops/2.2.0/N200912011513/pdt-Update-N200912011513.zip

- Download it
- go to help->Install new Software
- Press Add
- Press Archive
- Selecte the downloaded File
- Then it should install.
Comment 8 Roy Ganor CLA 2009-12-02 08:10:26 EST
It's surely a setup matter that can be resolved by using the required dependencies stack.

The install page can't be updated any day ;)
Comment 9 Sorin CLA 2009-12-02 09:00:16 EST
When i tried to install http://download.eclipse.org/technology/dltk/updates-dev/2.0/ , or the PDT 2.2 Nighly Build, i got the following error:

http://img25.imageshack.us/i/52916353.jpg/

What can i do? :(
Comment 10 DonMartio CLA 2009-12-03 05:21:08 EST
Hmm, haven't seen this before. Did you try a fresh version of Eclipse?
Comment 11 Gadi Goldbarg CLA 2010-01-20 10:55:04 EST
Te-tested in PDT 2.2.0 20091203-1849 - verified fixed.

Kalin Yanev
kalin.a@zend.com