Bug 570499 - Plug-in "org.eclipse.jdt.launching" was unable to instantiate class "org.eclipse.jdt.internal.launching.sourcelookup.advanced.AdvancedSourceLookupDirector"
Summary: Plug-in "org.eclipse.jdt.launching" was unable to instantiate class "org.ecli...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.18   Edit
Hardware: PC Linux
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-20 02:57 EST by Manfred Weiss CLA
Modified: 2023-09-04 13:49 EDT (History)
3 users (show)

See Also:


Attachments
Screenshot (48.32 KB, image/png)
2021-01-21 01:55 EST, Manfred Weiss CLA
no flags Details
Configuration details (3.86 MB, text/plain)
2021-01-21 02:45 EST, Manfred Weiss CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manfred Weiss CLA 2021-01-20 02:57:24 EST
After updating eclipse to 2020-12 I am unable to launch junit tests and tomcat server instances.
The same problem has already been posted at stackoverflow:
https://stackoverflow.com/questions/65676277/eclipse-unable-to-instantiate-class-javasourcelookupdirector-expecting-stackma


Error Message:
Plug-in "org.eclipse.jdt.launching" was unable to instantiate class "org.eclipse.jdt.internal.launching.JavaSourceLookupDirector".
Expecting a stackmap frame at branch target 53
Exception Details:
  Location:
    org/eclipse/debug/core/sourcelookup/AbstractSourceLookupDirector.dispose()V @29: goto
  Reason:
    Expected stackmap frame at this location.
  Bytecode:
    0000000: b801 f9b6 01fa 4c2b 2ab9 022c 0200 2b2a
    0000010: b902 2e02 002a b401 d6b6 01ef 4ea7 0018
    0000020: 2db9 021b 0100 c001 004d 2c2a a500 092c
    0000030: b902 3a01 002d b902 1a01 009a ffe5 2ab4
    0000040: 01d6 b601 eb2a b401 dbc6 0026 2ab4 01db
    0000050: 593a 05be 3604 033e a700 1119 051d 324d
    0000060: 2cb9 0234 0100 8403 011d 1504 a1ff ef2a
    0000070: 01b5 01db 2a01 b501 d7b1
Comment 1 Sarika Sinha CLA 2021-01-20 21:54:31 EST
This looks like some mismatch in plugins.
Whats is the plugin versions for org.eclipse.jdt.launching and org.eclipse.debug.core?
Comment 2 Manfred Weiss CLA 2021-01-21 01:22:31 EST
3.19.0.v20201106-0848	org.eclipse.jdt.launching
3.17.0.v20201109-1948	org.eclipse.debug.core
Comment 3 Sarika Sinha CLA 2021-01-21 01:29:54 EST
(In reply to Manfred Weiss from comment #2)
> 3.19.0.v20201106-0848	org.eclipse.jdt.launching
> 3.17.0.v20201109-1948	org.eclipse.debug.core

This looks fine. Can you try in a new workspace? 
Something looks corrupted.

Also please provide the JDK details.
Comment 4 Manfred Weiss CLA 2021-01-21 01:55:29 EST
Created attachment 285350 [details]
Screenshot
Comment 5 Manfred Weiss CLA 2021-01-21 01:55:45 EST
Same problem in a new empty workspace.

Eclipse is running with "openjdk version 11.0.9.1 2020-11-04". 
The default JRE is "openjdk version 1.8.0_275" but the problem also occurs when using the same JRE as Eclipse is running with.


Just found out that refactoring also does not work (see screenshot attached)
Comment 6 Sarika Sinha CLA 2021-01-21 02:00:44 EST
Looks like something went wrong in Update.
Will you be able to install a fresh Eclipse 4.18 build and try?
Comment 7 Manfred Weiss CLA 2021-01-21 02:16:25 EST
A new installation works. But I opened the bug, because I am not the only one who has this problem. 
I would really like to find out what led to this problem.
Comment 8 Sarika Sinha CLA 2021-01-21 02:21:38 EST
Did you use Oomph or direct p2 repo for updating?
Comment 9 Manfred Weiss CLA 2021-01-21 02:25:26 EST
Direct p2 via the eclipse update site https://download.eclipse.org/releases/latest and Help -> Check for Updates
Comment 10 Sarika Sinha CLA 2021-01-21 02:36:30 EST
Can you please attach the Configuration details from the Eclipse SDK Installation details?

Some dependent plug-in is not getting updated and we need to find that out.
Comment 11 Manfred Weiss CLA 2021-01-21 02:45:32 EST
Created attachment 285351 [details]
Configuration details
Comment 12 Sarika Sinha CLA 2021-01-22 02:44:08 EST
(In reply to Manfred Weiss from comment #11)
> Created attachment 285351 [details]
> Configuration details

I compared for the Eclipse SDK bundle but could not see any difference in plugin versions.

Not sure how to proceed.
Comment 13 Ed Merks CLA 2021-01-22 02:51:27 EST
Probably the error log would be helpful.

In the past there were occasionally problems after updates with bundle wiring, i.e., the wiring was incrementally updated which sometime produces different results from a new from-scratch wiring.  Running from the command line with -clean forces the rewiring, so I would try that.
Comment 14 Manfred Weiss CLA 2021-01-27 05:41:18 EST
"-clean" did not solve the problem
Comment 15 Christopher Lamb CLA 2021-02-04 05:08:26 EST
In my case this error seems to have been caused by installing the Kotlin Plugin 0.8.21 from Eclipse Marketplace

I was able to verify this by a step-by-step Eclipse setup process, as pointed out in my answer to the SO question.

https://stackoverflow.com/a/66043188/5675083
Comment 16 Eclipse Genie CLA 2023-09-04 13:49:04 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.