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 111419 - AssertionError (6.0)
Summary: AssertionError (6.0)
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
: 112205 112813 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-31 00:31 UTC by Thomas Preisler
Modified: 2007-11-16 15:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Preisler 2007-07-31 00:31:05 UTC
I'm getting the following assertion error when running cnd 6.0 (with NB6.0):
java.lang.AssertionError
	at org.openide.text.CloneableEditorSupport.getOpenedPanes(CloneableEditorSupport.java:868)
	at org.netbeans.modules.cnd.modelutil.CsmUtilities.getCsmFile(CsmUtilities.java:213)
	at org.netbeans.modules.cnd.highlight.HighlightProvider.checkNodes(HighlightProvider.java:255)
	at org.netbeans.modules.cnd.highlight.HighlightProvider.checkNodes(HighlightProvider.java:249)
	at org.netbeans.modules.cnd.highlight.HighlightProvider.access$000(HighlightProvider.java:56)
	at org.netbeans.modules.cnd.highlight.HighlightProvider$1.run(HighlightProvider.java:179)
	at org.netbeans.modules.cnd.modelimpl.csm.core.CodeModelRequestProcessor$1.run(CodeModelRequestProcessor.java:57)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)

The problem may not be in CND. Please evaluate our code and verify we are correctly using the API. If we are, I will
refile the bug against NB.
Comment 1 Thomas Preisler 2007-07-31 00:45:39 UTC
From Ivan:
It's this one:
	assert SwingUtilities.isEventDispatchThread(); // NOI18N
It is a valid asertion and is definitely a dbxgui (or other client of
editors) problem.
Comment 2 ivan 2007-08-02 03:31:31 UTC
For dbxguis part:
        This assertion checks to see if the function,
        CloneableEditorSupport.getOpenedPanes() is called on the AWT EventQ.
        This function plays a crucial role in all NB idioms for getting
        information from the editor:
        http://wiki.netbeans.org/wiki/view/DevFaqFindCaretPositionInEditor

        dbxgui access this through a utility class EditorBridge.
        It's easy to check all places where EditorBridge is used and all of
        them seem to be already on the eventq ... except default actions
        based on ActionsProviderSupport.

        Since all such dbxgui actions have a base class NativeActionsProvider
        it's easy to have NativeActionsProvider override postAction() and
        directly call doAction() instead of letting the default implementation
        route it through a request processor.
Comment 3 Thomas Preisler 2007-08-07 22:45:34 UTC
See also http://www.netbeans.org/issues/show_bug.cgi?id=112205
Comment 4 Vladimir Voskresensky 2007-08-13 10:12:13 UTC
*** Issue 112205 has been marked as a duplicate of this issue. ***
Comment 5 Vladimir Voskresensky 2007-08-13 10:59:05 UTC
fixed

cvs log:
Checking in CsmUtilities.java;
/shared/data/ccvs/repository/cnd/modelutil/src/org/netbeans/modules/cnd/modelutil/CsmUtilities.java,v  <-- 
CsmUtilities.java
new revision: 1.18; previous revision: 1.17
done
Comment 6 Vladimir Voskresensky 2007-08-16 05:59:08 UTC
*** Issue 112813 has been marked as a duplicate of this issue. ***