This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 228798 - NoSuchMethodError: jdk.nashorn.internal.codegen.Compiler.compiler(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/codegen/Compiler;
Summary: NoSuchMethodError: jdk.nashorn.internal.codegen.Compiler.compiler(Ljdk/nashor...
Status: VERIFIED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P1 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 228570 229891 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-04-20 15:40 UTC by sreimers
Modified: 2013-06-25 13:54 UTC (History)
19 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 200091


Attachments
stacktrace (4.74 KB, text/plain)
2013-04-20 15:40 UTC, sreimers
Details
stacktrace (4.51 KB, text/plain)
2013-04-22 11:31 UTC, Jiri Prox
Details
stacktrace (1.28 KB, text/plain)
2013-05-09 13:52 UTC, Vladimir Riha
Details
stacktrace (4.74 KB, text/plain)
2013-05-10 12:25 UTC, misterm
Details
stacktrace (4.51 KB, text/plain)
2013-05-13 20:10 UTC, michbarsinai
Details
stacktrace (4.51 KB, text/plain)
2013-05-13 20:19 UTC, michbarsinai
Details
stacktrace (4.51 KB, text/plain)
2013-05-14 01:55 UTC, michbarsinai
Details
stacktrace (4.62 KB, text/plain)
2013-05-16 19:55 UTC, misterm
Details
stacktrace (4.51 KB, text/plain)
2013-05-17 13:49 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sreimers 2013-04-20 15:40:23 UTC
This bug was originally marked as duplicate of bug 225868, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201304172301)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b28, Java(TM) SE Runtime Environment, 1.8.0-ea-b86
OS: Windows 7

User Comments:
sreimers: Scanning sources with JDK 8 b86




Stacktrace: 
java.lang.NoSuchMethodError: jdk.nashorn.internal.codegen.Compiler.compiler(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/codegen/Compiler;
   at org.netbeans.modules.javascript2.editor.parser.JsParser.parseSource(JsParser.java:94)
   at org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:149)
   at org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:129)
   at org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseSource(SanitizingParser.java:117)
   at org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parse(SanitizingParser.java:79)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:598)
Comment 1 sreimers 2013-04-20 15:40:25 UTC
Created attachment 133622 [details]
stacktrace
Comment 2 Exceptions Reporter 2013-04-21 12:04:16 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200091
Comment 3 Exceptions Reporter 2013-04-21 12:07:13 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200091
Comment 4 Jiri Prox 2013-04-22 11:31:15 UTC
Created attachment 133661 [details]
stacktrace

NoSuchMethodError when opening new project
Comment 5 Jiri Prox 2013-04-22 11:31:41 UTC
This issue is quite annoying when working with JDK8
Comment 6 Exceptions Reporter 2013-04-23 04:28:15 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200091
Comment 7 Vladimir Riha 2013-05-09 13:52:50 UTC
Created attachment 134260 [details]
stacktrace

started IDE on JDK8
Comment 8 misterm 2013-05-10 12:25:51 UTC
Created attachment 134290 [details]
stacktrace

.
Comment 9 Exceptions Reporter 2013-05-13 09:16:54 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=200091
Comment 10 Petr Hejl 2013-05-13 15:25:29 UTC
*** Bug 228570 has been marked as a duplicate of this bug. ***
Comment 11 michbarsinai 2013-05-13 20:10:53 UTC
Created attachment 134390 [details]
stacktrace

Restart after plugin installation
Comment 12 michbarsinai 2013-05-13 20:19:53 UTC
Created attachment 134391 [details]
stacktrace

Restarted the IDE
Comment 13 michbarsinai 2013-05-14 01:55:54 UTC
Created attachment 134399 [details]
stacktrace

Opened a Maven project
Comment 14 misterm 2013-05-16 19:55:58 UTC
Created attachment 134543 [details]
stacktrace

Opening a file in the editor
Comment 15 Petr Cyhelsky 2013-05-17 13:49:58 UTC
Created attachment 134568 [details]
stacktrace

why is nashorn needed for anagram game?
Comment 16 Petr Jiricka 2013-05-20 13:53:43 UTC
> why is nashorn needed for anagram game?

I don't see any comment saying it's needed - is anyone claiming it is needed?
Comment 17 Petr Cyhelsky 2013-05-20 14:05:22 UTC
just a comment for exception report - the exception occured when the only thing I have done was to open the anagram game in J2SE distro of NB That's why it seemed curious to see javascript there...
Comment 18 athompson 2013-05-20 18:55:06 UTC
My, this one is annoying!
Comment 19 Petr Hejl 2013-05-21 07:25:21 UTC
Fixed in web-main 66e408e0daec.

Marian, should this be fixed for 7.3.1? Not sure as this happens with JDK8 only.
Comment 20 Marian Mirilovic 2013-05-21 07:34:00 UTC
(In reply to comment #19)
> Marian, should this be fixed for 7.3.1? Not sure as this happens with JDK8
> only.

Sure, proceed with integration into release73 please.
Comment 21 Martin Fousek 2013-05-21 12:47:55 UTC
Patch looks safe.
Comment 22 Petr Hejl 2013-05-21 12:57:49 UTC
Please verify.
Comment 23 Quality Engineering 2013-05-22 02:37:02 UTC
Integrated into 'main-golden', will be available in build *201305212300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/66e408e0daec
User: Petr Hejl <phejl@netbeans.org>
Log: #228798 - NoSuchMethodError: jdk.nashorn.internal.codegen.Compiler.compiler(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/codegen/Compiler;
Comment 24 Vladimir Riha 2013-05-22 06:43:39 UTC
I started IDE on JDK8, created several projects (Java, PHP, HTML), opened old projects, restarted IDE and no problem => verified in trunk



Product Version: NetBeans IDE Dev (Build 201305212300)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b82
System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb)
Comment 25 Petr Hejl 2013-05-22 07:34:55 UTC
Fixed in release73 7991f076043d.
Comment 26 athompson 2013-05-22 11:48:15 UTC
w00t!
Comment 27 Quality Engineering 2013-05-23 00:18:40 UTC
Integrated into 'releases', will be available in build *201305222200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/7991f076043d
User: Petr Hejl <phejl@netbeans.org>
Log: #228798 - NoSuchMethodError: jdk.nashorn.internal.codegen.Compiler.compiler(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/Context;)Ljdk/nashorn/internal/codegen/Compiler;
Comment 28 Vladimir Riha 2013-05-28 11:38:55 UTC
verified

Product Version: NetBeans IDE 7.3.1 (Build 201305272201)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b82
System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb)
Comment 29 Petr Hejl 2013-06-25 13:54:20 UTC
*** Bug 229891 has been marked as a duplicate of this bug. ***