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 251985 - AbstractMethodError: org.netbeans.modules.javascript2.requirejs.editor.model.DefineInterceptor.intercept(Lorg/netbeans/modules/parsing/api/Snapshot;Ljava/lang/String;Lorg/netbeans/modules/javascript2/
Summary: AbstractMethodError: org.netbeans.modules.javascript2.requirejs.editor.model....
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-22 11:41 UTC by bakape
Modified: 2015-04-27 07:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 212622


Attachments
stacktrace (3.18 KB, text/plain)
2015-04-22 11:41 UTC, bakape
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bakape 2015-04-22 11:41:17 UTC
Build: NetBeans IDE Dev (Build nbms-and-javadoc-2768-on-20150308)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Linux

User Comments:
GUEST: just opening a javascript file

bakape: Clicked on a another tab contating an open Javascript fie. Happens consistently on most tabs, but not all. Can not determine the difference between these.

GUEST: I don't know why

GUEST: error keep popingUp, can't work at all

GUEST: when switch to opened tabs containt angularjs code

GUEST: <Please provide a description of the problem or the steps to reproduce>d

GUEST: I keep seeing this error when using the latest stable dev build of NB.

Wasn't seeing this before I updated to the latest bits today.

GUEST: just opening ide

GUEST: random error




Stacktrace: 
java.lang.AbstractMethodError: org.netbeans.modules.javascript2.requirejs.editor.model.DefineInterceptor.intercept(Lorg/netbeans/modules/parsing/api/Snapshot;Ljava/lang/String;Lorg/netbeans/modules/javascript2/editor/model/JsObject;Lorg/netbeans/modules/javascript2/editor/model/DeclarationScope;Lorg/netbeans/modules/javascript2/editor/spi/model/ModelElementFactory;Ljava/util/Collection;)Ljava/util/Collection;
   at org.netbeans.modules.javascript2.editor.model.Model.getModelVisitor(Model.java:195)
   at org.netbeans.modules.javascript2.editor.model.Model.getGlobalObject(Model.java:503)
   at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.run(JsSemanticAnalyzer.java:114)
   at org.netbeans.modules.javascript2.editor.JsSemanticAnalyzer.run(JsSemanticAnalyzer.java:80)
   at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.process(SemanticHighlighter.java:306)
   at org.netbeans.modules.csl.editor.semantic.SemanticHighlighter.access$000(SemanticHighlighter.java:79)
Comment 1 bakape 2015-04-22 11:41:19 UTC
Created attachment 153297 [details]
stacktrace
Comment 2 Petr Pisl 2015-04-22 17:25:28 UTC
I'm not sure how it can happened. The latest says that there is loaded module org.netbeans.modules.html.angular [1.9 201504210001] and org.netbeans.modules.javascript2.editor/1 [0.63 nbms-and-javadoc-80-on-20150422]

Yesterday was added one parameter to an api method in javascript2.editor module and its version was increased into 0.63. This is ok. But the html.angular module is from previous day, which mean that the implementation of the api doesn't corresponds with the newer api in javascript2.editor. 

I have increased in all modules the required version of javascript2.editor and will see what happen. Probably it doesn't help.
Comment 3 Mardonis 2015-04-23 17:16:31 UTC
I have received the same error on my end as well. Here is the exception as stated below:

java.lang.AbstractMethodError: org.netbeans.modules.html.angular.model.AngularWhenInterceptor.intercept(Lorg/netbeans/modules/parsing/api/Snapshot;Ljava/lang/String;Lorg/netbeans/modules/javascript2/editor/model/JsObject;Lorg/netbeans/modules/javascript2/editor/model/DeclarationScope;Lorg/netbeans/modules/javascript2/editor/spi/model/ModelElementFactory;Ljava/util/Collection;)Ljava/util/Collection;
	at org.netbeans.modules.javascript2.editor.model.Model.getModelVisitor(Model.java:195)
	at org.netbeans.modules.javascript2.editor.model.Model.resolve(Model.java:521)
	at org.netbeans.modules.javascript2.editor.JsStructureScanner.scan(JsStructureScanner.java:88)
	at org.netbeans.modules.csl.navigation.ElementScanningTask$1.run(ElementScanningTask.java:172)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
	at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:204)
	at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:201)
	at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
	at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
	at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:141)
	at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:88)
	at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:201)
	at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:104)
	at org.netbeans.modules.csl.navigation.ElementScanningTask.computeStructureRoot(ElementScanningTask.java:160)
	at org.netbeans.modules.csl.navigation.ClassMemberPanelUI$1.run(ClassMemberPanelUI.java:226)
	at org.netbeans.modules.csl.navigation.ClassMemberPanelUI$1.run(ClassMemberPanelUI.java:216)
	at org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:138)
	at org.netbeans.modules.csl.navigation.ClassMemberNavigatorSourceFactory$ProxyElementScanningTask.run(ClassMemberNavigatorSourceFactory.java:110)
	at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:584)
	at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:809)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:304)
	at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:725)
[catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:686)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1425)
	at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
	at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2038)


Thank you.
Comment 4 Petr Pisl 2015-04-27 07:39:39 UTC
Should be fixed in trunk. On the dev autoupdate should appear new versions of modules with js frameworkds.