Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse "Unable to instantiate class JavaSourceLookupDirector, Expecting stackmap frame at branch target 53" after upgrade

Just updated eclipse and now I can't run my spring application anymore.

Version: Eclipse IDE for Java Developers (includes Incubating components) Version: 2020-12 (4.18.0) Build id: 20201210-1552

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

Installed Jdk is: AdoptopenJDK 11.0.9.101-hotspot (also selected as default under Installed JRE)

I already had problems starting eclipse after the update so I set in eclipse.ini:

-vm C:\Program Files\AdoptOpenJDK\jdk-11.0.9.101-hotspot\bin

The application is a normal java spring application, with "gradlew bootRun" runs perfectly fine.

Honestly how can such an obscure error occur? Can anyone help with this issue?

like image 579
judos Avatar asked Jan 12 '21 00:01

judos


3 Answers

I faced similar issue with eclipse version Version: 2020-12 (4.18.0) where I was getting below error

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

I was running spring boot app with java but found kotlin was also installed which was not required for my project.

To fix, I uninstalled kotlin development tools and restarted eclipse which worked pretty well

You can view all installed software with Help > About Eclipse IDE > Installation details. It might be helpful when you only keep required softwares while uninstalling all non required ones.

like image 94
deeps Avatar answered Oct 23 '22 06:10

deeps


Uninstalling Kotlin from About Eclipse IDE> Installation Details > Kotlin > Uninstall solved my problem.

like image 29
Saravanan Avatar answered Oct 23 '22 04:10

Saravanan


I had exactly the same issue, but I need to import and start Kotlin project, so uninstalling Kotlin plugin is not an option.

My setup: Eclipse 2021-03 + Kotlin Plugin 0.8.21.

Installing latest AspectJ Development Tools (today it is 2.2.4) worked for me, give it a try.

like image 8
lubo karaba Avatar answered Oct 23 '22 04:10

lubo karaba