Bug 559813 - An internal error occurred during: "Initializing Java Tooling". java/lang/Object not assignable to org/eclipse/jdt/internal/compiler/ast/ASTNode
Summary: An internal error occurred during: "Initializing Java Tooling". java/lang/Obj...
Status: RESOLVED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.14   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 4.15 M3   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2020-02-04 02:43 EST by cédric dall'agnola CLA
Modified: 2020-02-04 05:28 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cédric dall'agnola CLA 2020-02-04 02:43:36 EST
An internal error occurred during: "Initializing Java Tooling".
Bad type on operand stack
Exception Details:
  Location:
    org/eclipse/jdt/internal/core/search/matching/MatchLocator.reportMatching([Lorg/eclipse/jdt/internal/compiler/ast/Annotation;Lorg/eclipse/jdt/core/IJavaElement;[Lorg/eclipse/jdt/core/IJavaElement;Lorg/eclipse/jdt/internal/compiler/lookup/Binding;Lorg/eclipse/jdt/internal/core/search/matching/MatchingNodeSet;ZZ)V @317: invokevirtual
  Reason:
    Type 'java/lang/Object' (current frame, stack[1]) is not assignable to 'org/eclipse/jdt/internal/compiler/ast/ASTNode'
  Current Frame:
    bci: @317
    flags: { }
    locals: { 'org/eclipse/jdt/internal/core/search/matching/MatchLocator', '[Lorg/eclipse/jdt/internal/compiler/ast/Annotation;', 'org/eclipse/jdt/core/IJavaElement', '[Lorg/eclipse/jdt/core/IJavaElement;', 'org/eclipse/jdt/internal/compiler/lookup/Binding', 'org/eclipse/jdt/internal/core/search/matching/MatchingNodeSet', integer, integer, integer, integer, 'org/eclipse/jdt/internal/compiler/ast/Annotation', 'org/eclipse/jdt/core/IJavaElement', '[Lorg/eclipse/jdt/core/IJavaElement;', integer, integer, 'org/eclipse/jdt/internal/compiler/ast/TypeReference', 'java/lang/Integer', '[Lorg/eclipse/jdt/internal/compiler/ast/MemberValuePair;', integer, integer, 'org/eclipse/jdt/internal/compiler/ast/MemberValuePair', 'java/lang/Object' }
    stack: { 'org/eclipse/jdt/internal/core/search/matching/PatternLocator', 'java/lang/Object', 'org/eclipse/jdt/core/IJavaElement', 'org/eclipse/jdt/core/IJavaElement', '[Lorg/eclipse/jdt/core/IJavaElement;', 'org/eclipse/jdt/internal/compiler/lookup/MethodBinding', integer, 'org/eclipse/jdt/internal/core/search/matching/MatchLocator' }
  Bytecode:
    0x0000000: 2bc7 0004 b103 3608 2bbe 3609 a702 0a2b
    0x0000010: 1508 323a 0a01 3a0b 013a 0c2d c700 0703
    0x0000020: a700 052d be36 0d03 360e 190a b403 de3a
    0x0000030: 0f19 05b4 0a23 190f b60a 25c0 0590 3a10
    0x0000040: 1910 c600 6015 0799 005b 1506 9900 562a
    0x0000050: 190a 2cc0 03e2 b60a 5f3a 0b15 0d9e 002c
    0x0000060: 150d bd00 b33a 0c03 3611 a700 1819 0c15
    0x0000070: 112a 190a 2d15 1132 c003 e2b6 0a5f 5384
    0x0000080: 1101 1511 150d a1ff e704 360e 2ab4 019a
    0x0000090: 190f 2c19 0b19 0c19 0419 10b6 059c 2ab6
    0x00000a0: 0a2e 190a b60a 613a 1103 3612 1911 be36
    0x00000b0: 13a7 0092 1911 1512 323a 1419 05b4 0a23
    0x00000c0: 1914 b60a 25c0 0590 3a10 1910 c600 7415
    0x00000d0: 0799 006f 190a c10a 6599 0008 190a a700
    0x00000e0: 0519 143a 1515 0e9a 0040 2a19 0a2c c003
    0x00000f0: e2b6 0a5f 3a0b 150d 9e00 2c15 0dbd 00b3
    0x0000100: 3a0c 0336 16a7 0018 190c 1516 2a19 0a2d
    0x0000110: 1516 32c0 03e2 b60a 5f53 8416 0115 1615
    0x0000120: 0da1 ffe7 0436 0e2a b401 9a19 152c 190b
    0x0000130: 190c 1914 b40a 6719 10b6 059c 2ab6 0a2e
    0x0000140: 8412 0115 1215 13a1 ff6d 1905 190a b40a
    0x0000150: 6a19 0ab4 0a6b b60a 0e3a 1219 12c6 00b6
    0x0000160: 1506 9a00 2903 3613 1912 be36 14a7 0014
    0x0000170: 1905 b40a 2319 1215 1332 b60a 2557 8413
    0x0000180: 0115 1315 14a1 ffeb a700 8b03 3613 1912
    0x0000190: be36 14a7 0079 1912 1513 323a 1519 05b4
    0x00001a0: 0a23 1915 b60a 25c0 0590 3a10 1507 9900
    0x00001b0: 5b15 0e9a 0040 2a19 0a2c c003 e2b6 0a5f
    0x00001c0: 3a0b 150d 9e00 2c15 0dbd 00b3 3a0c 0336
    0x00001d0: 16a7 0018 190c 1516 2a19 0a2d 1516 32c0
    0x00001e0: 03e2 b60a 5f53 8416 0115 1615 0da1 ffe7
    0x00001f0: 0436 0e2a b401 9a19 152c 190b 190c 1904
    0x0000200: 1910 b605 9c2a b60a 2e84 1301 1513 1514
    0x0000210: a1ff 8684 0801 1508 1509 a1fd f5b1     
  Stackmap Table:
    same_frame(@5)
    append_frame(@15,Integer,Integer)
    append_frame(@35,Object[#991],Null,Null)
    same_locals_1_stack_item_frame(@37,Integer)
    full_frame(@109,{Object[#1],Object[#2683],Object[#179],Object[#1024],Object[#1296],Object[#1284],Integer,Integer,Integer,Integer,Object[#991],Object[#179],Object[#1024],Integer,Integer,Object[#764],Object[#1424],Integer},{})
    same_frame(@130)
    chop_frame(@137,1)
    same_frame(@162)
    append_frame(@180,Object[#2684],Integer,Integer)
    append_frame(@225,Object[#2664])
    same_locals_1_stack_item_frame(@227,Object[#3])
    append_frame(@264,Object[#3],Integer)
    same_frame(@285)
    chop_frame(@292,1)
    same_frame(@295)
    chop_frame(@320,1)
    chop_frame(@323,1)
    full_frame(@368,{Object[#1],Object[#2683],Object[#179],Object[#1024],Object[#1296],Object[#1284],Integer,Integer,Integer,Integer,Object[#991],Object[#179],Object[#1024],Integer,Integer,Object[#764],Object[#1424],Object[#2684],Object[#2619],Integer,Integer},{})
    same_frame(@385)
    chop_frame(@395,1)
    append_frame(@406,Integer)
    append_frame(@468,Object[#2117],Integer)
    same_frame(@489)
    chop_frame(@496,1)
    same_frame(@499)
    same_frame(@521)
    chop_frame(@524,1)
    chop_frame(@531,1)
    full_frame(@534,{Object[#1],Object[#2683],Object[#179],Object[#1024],Object[#1296],Object[#1284],Integer,Integer,Integer,Integer},{})
Comment 1 cédric dall'agnola CLA 2020-02-04 03:12:52 EST
Was working, and paste some code with compilation error and got this error.
Now I get this error on all my workspaces.

openjdk version "1.8.0_242"
OpenJDK Runtime Environment (build 1.8.0_242-8u242-b08-0ubuntu3~18.04-b08)
OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)



I tried this: https://stackoverflow.com/questions/22947217/sts-upgrate-leads-to-matchlocator-problems
without success
Comment 2 Andrey Loskutov CLA 2020-02-04 03:59:37 EST
Is this reproducible?
Which exact Eclipse version is used?
Does it appear in "plain" 4.15 M1 SDK that could be downloaded from https://download.eclipse.org/eclipse/downloads/index.html ?
Comment 3 cédric dall'agnola CLA 2020-02-04 04:06:43 EST
Hi,

Eclispe version is:
Version: 2019-12 (4.14.0)
Build id: 20191212-1212

Every time I run Eclipse I get this error and for all my workspaces.

I installed Eclipse again from eclipse-jee-2019-12-R-linux-gtk-x86_64.tar.gz
and it's ok.
Comment 4 Stephan Herrmann CLA 2020-02-04 05:16:36 EST
(In reply to cédric dall'agnola from comment #3)
> I installed Eclipse again from eclipse-jee-2019-12-R-linux-gtk-x86_64.tar.gz
> and it's ok.

Thanks for confirming. In your previous installation, did you have any additional plug-ins installed? If so, you may try incrementally installing the same set of plug-ins to find out which one is causing the problem.

For now I'll just assume the problem is not caused by JDT.
Comment 5 cédric dall'agnola CLA 2020-02-04 05:28:22 EST
Ok thanks, yes I add some plugins.
I reinstalled some of them and I get no problems.

I'll try to reinstall the others and open new ticket if it comes back and if I have more details about this issue.