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 194135 - AbstractMethodError: org.netbeans.modules.php.editor.PHPCodeCompletion.getApplicableTemplates(Ljavax/swing/text/Document;II)Ljava/util/Set;
Summary: AbstractMethodError: org.netbeans.modules.php.editor.PHPCodeCompletion.getApp...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: CSL (API & infrastructure) (show other bugs)
Version: 7.0
Hardware: All All
: P1 normal (vote)
Assignee: David Strupl
URL:
Keywords:
: 194159 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-08 11:43 UTC by martinvium
Modified: 2011-01-11 08:59 UTC (History)
13 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 175665


Attachments
stacktrace (2.32 KB, text/plain)
2011-01-08 11:43 UTC, martinvium
Details
stacktrace (2.35 KB, text/plain)
2011-01-10 00:23 UTC, Filip Zamboj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martinvium 2011-01-08 11:43:04 UTC
Build: NetBeans IDE Dev (Build 201012100001)
VM: Java HotSpot(TM) Client VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Windows 7

User Comments:
martinvium: Happens all the time, not sure what starts it

martinvium: Every time i make a selection

GUEST: selected text

GUEST: double clicked a variable to select it.  basically every time i select text, whether by keyboard or mouse i get this error.  makes netbeans unusable.




Stacktrace: 
java.lang.AbstractMethodError: org.netbeans.modules.php.editor.PHPCodeCompletion.getApplicableTemplates(Ljavax/swing/text/Document;II)Ljava/util/Set;
   at org.netbeans.modules.csl.editor.codetemplates.GsfCodeTemplateFilter.<init>(GsfCodeTemplateFilter.java:75)
   at org.netbeans.modules.csl.editor.codetemplates.GsfCodeTemplateFilter.<init>(GsfCodeTemplateFilter.java:62)
   at org.netbeans.modules.csl.editor.codetemplates.GsfCodeTemplateFilter$Factory.createFilter(GsfCodeTemplateFilter.java:96)
   at org.netbeans.lib.editor.codetemplates.CodeTemplateManagerOperation.getTemplateFilters(CodeTemplateManagerOperation.java:230)
   at org.netbeans.lib.editor.codetemplates.SurroundWithFix.getFixes(SurroundWithFix.java:74)
   at org.netbeans.lib.editor.codetemplates.AbbrevDetection$2.run(AbbrevDetection.java:431)
Comment 1 martinvium 2011-01-08 11:43:08 UTC
Created attachment 104804 [details]
stacktrace
Comment 2 David Strupl 2011-01-08 20:19:00 UTC
Honzo, I have bumped the spec version of CSL module when doing the API change. Seems like the reporters have the new CSL version (from autoupdate) with old dependent modules. Should have I bumped all the dependent modules versions as well? Would that be enough? Thanks for your advice.
Comment 3 Jan Lahoda 2011-01-08 20:59:30 UTC
Bumping the spec. versions of all dependent modules+ensuring they depend on the new version of CSL API will help(*). Sorry I forgot about that. I can do the change if needed.

(*) It is still possible that exceptions like this will appear even after this change, if some language modules are not updated from the AUC but CSL is, but that will be easy to resolve by updating from the AUC, and cannot be easily prevented using module dependencies.
Comment 4 David Strupl 2011-01-08 22:31:19 UTC
I will do it. I hope I will not forget a module this time ;-)
Comment 5 Exceptions Reporter 2011-01-09 12:47:08 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=175665
Comment 6 Filip Zamboj 2011-01-10 00:23:08 UTC
Created attachment 104830 [details]
stacktrace

created javascript file and attempted to edit
Comment 7 Exceptions Reporter 2011-01-10 00:23:17 UTC
This bug already has 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=175665
Comment 8 David Strupl 2011-01-10 08:48:11 UTC
Should be fixed after
http://hg.netbeans.org/jet-main/rev/49407a515ebc

The problems were caused by some modules being updated from the update center while the dependencies were not.

Quick fix for the people facing the problem is to grab a consistent build without any updates. I apologize for the troubles.
Comment 9 Quality Engineering 2011-01-11 06:11:08 UTC
Integrated into 'main-golden', will be available in build *201101110000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/49407a515ebc
User: David Strupl <dstrupl@netbeans.org>
Log: #194135: fixing module dependencies after #193935
Comment 10 David Strupl 2011-01-11 08:59:47 UTC
*** Bug 194159 has been marked as a duplicate of this bug. ***