Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 173914 - AssertionError: BaseKit.install() incorrectly called from non-AWT thread.
AssertionError: BaseKit.install() incorrectly called from non-AWT thread.
Product: debugger
Classification: Unclassified
Component: Java
All All
: P1 (vote)
: 6.x
Assigned To: Martin Entlicher
Depends on:
  Show dependency treegraph
Reported: 2009-10-06 21:23 UTC by Jesse Glick
Modified: 2009-10-15 10:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2009-10-06 21:23:47 UTC
Seems to be breaking commit validation:

SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor org.netbeans.modules.debugger.jpda.ui.CodeEvaluator$2
java.lang.AssertionError: BaseKit.install() incorrectly called from non-AWT thread.
	at org.netbeans.editor.BaseKit.install(
	at javax.swing.JEditorPane.setEditorKit(
	at org.netbeans.api.editor.DialogBinding.bind(
	at org.netbeans.api.editor.DialogBinding.bindComponentToDocument(
	at org.netbeans.modules.debugger.jpda.ui.WatchPanel.setupContext(
	at org.netbeans.modules.debugger.jpda.ui.WatchPanel.setupContext(
	at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator.setupContextLazily(
	at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator.access$400(
	at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator$
	at org.openide.util.RequestProcessor$
	at org.openide.util.RequestProcessor$
Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to
	at org.openide.util.RequestProcessor$Task.schedule(
	at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator.setupContext(
	at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator.access$2100(
	at org.netbeans.modules.debugger.jpda.ui.CodeEvaluator$
	at java.awt.event.InvocationEvent.dispatch(
	at java.awt.EventQueue.dispatchEvent(
	at org.netbeans.jemmy.QueueTool$JemmyQueue.dispatchEvent(
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy(
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(
	at java.awt.EventDispatchThread.pumpEvents(
	at java.awt.EventDispatchThread.pumpEvents(
[catch] at
Comment 1 Jesse Glick 2009-10-06 21:31:19 UTC
main #8dde4fa8546a most likely responsible.
Comment 2 Martin Entlicher 2009-10-07 10:46:02 UTC
Right, is responsible.
Comment 3 Martin Entlicher 2009-10-07 13:19:00 UTC
It definitely did not cause the commit validation to fail.
Also in dev builds it does not print any error into messages.log...

Fixed in changeset:   148419:9acf737bf00f
Comment 4 Jesse Glick 2009-10-07 15:27:51 UTC
*** Issue 173949 has been marked as a duplicate of this issue. ***
Comment 5 Jesse Glick 2009-10-07 17:08:22 UTC
I think this was indeed the cause of C/V failure. High priority uncaught exception/error -> exception dialog displayed
-> GUI components related to dialog hold on to state -> memory unreclaimed -> test failure.
Comment 6 Martin Entlicher 2009-10-07 19:44:16 UTC
Yes, you're right. But I think that it's really unfortunate that the original failure is masked with a GC test.
Comment 7 Jesse Glick 2009-10-07 19:51:21 UTC
We do actually have a facility to make a C/V test fail immediately (and more informatively) if there is an uncaught
exception reported to the logger. Last I recall it had to be turned off due to frequent but random exceptions from PHP.
Probably we could try again.
Comment 8 Jaroslav Tulach 2009-10-08 07:23:16 UTC
Go ahead. It is one simple NbModuleSuite.Configuration.failOnError call.
Comment 9 Quality Engineering 2009-10-09 23:05:13 UTC
Integrated into 'main-golden', will be available in build *200910091401* on (upload may still be in progress)
Log: #173914 - DialogBinding.bindComponentToDocument() must be called in AWT.
Comment 10 Quality Engineering 2009-10-15 10:19:57 UTC
Integrated into 'main-golden', will be available in build *200910150201* on (upload may still be in progress)
User: Jesse Glick <>
Log: Mentioned in #173914: reenable C/V failures in case stack traces are printed or SEVERE messages printed.
Cannot currently fail on WARNING messages due to:
WARNING [org.netbeans.core.ui.warmup.DiagnosticTask]: Using netbeans.full.hack=true; see
WARNING [org.netbeans.modules.project.ui.ProjectsRootNode]: Warning - project of class org.netbeans.test.ide.WatchProjects$1 in /space/src/nb/core-main/java.kit/build/test/qa-functional/work/userdir0/config failed to supply a LogicalViewProvider in its lookup

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo