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 186366 - AssertionError: cannot switch to silent mode when not running
Summary: AssertionError: cannot switch to silent mode when not running
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Progress (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 147726 162127 200117 (view as bug list)
Depends on: 186636
Blocks:
  Show dependency tree
 
Reported: 2010-05-19 09:41 UTC by Alexander Simon
Modified: 2011-08-12 11:50 UTC (History)
22 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 169809


Attachments
stacktrace (1.02 KB, text/plain)
2010-05-19 09:41 UTC, Alexander Simon
Details
stacktrace (1.02 KB, text/plain)
2010-05-19 10:56 UTC, Vladimir Voskresensky
Details
stacktrace (1.02 KB, text/plain)
2010-05-19 11:47 UTC, Vladimir Kvashin
Details
stacktrace (1.02 KB, text/plain)
2010-05-19 12:20 UTC, Vladimir Kvashin
Details
stacktrace (1.02 KB, text/plain)
2010-05-19 12:41 UTC, Sergey Petrov
Details
stacktrace (1.02 KB, text/plain)
2010-05-19 15:56 UTC, Egor Ushakov
Details
stacktrace (1.02 KB, text/plain)
2010-05-19 22:11 UTC, Filip Zamboj
Details
stacktrace (1.02 KB, text/plain)
2010-05-20 06:17 UTC, Filip Zamboj
Details
stacktrace (2.73 KB, text/plain)
2010-05-20 10:26 UTC, Alexander Simon
Details
stacktrace (1.02 KB, text/plain)
2010-05-20 10:44 UTC, Vladimir Voskresensky
Details
stacktrace (4.25 KB, text/plain)
2010-05-20 11:56 UTC, Filip Zamboj
Details
stacktrace (1.02 KB, text/plain)
2010-05-20 18:35 UTC, Jan Lahoda
Details
stacktrace (1.02 KB, text/plain)
2010-05-20 22:02 UTC, host
Details
stacktrace (1.02 KB, text/plain)
2010-05-21 10:38 UTC, Peter Pis
Details
stacktrace (1.02 KB, text/plain)
2010-05-21 10:59 UTC, kawazu428
Details
stacktrace (2.65 KB, text/plain)
2010-05-21 11:56 UTC, Sergey Petrov
Details
stacktrace (1.02 KB, text/plain)
2010-05-21 12:14 UTC, Peter Pis
Details
stacktrace (3.92 KB, text/plain)
2010-05-21 13:14 UTC, Marian Mirilovic
Details
stacktrace (4.19 KB, text/plain)
2010-05-21 16:44 UTC, laurin1
Details
stacktrace (1.02 KB, text/plain)
2010-05-21 19:14 UTC, Martin Entlicher
Details
stacktrace (1.02 KB, text/plain)
2010-05-21 19:23 UTC, Martin Entlicher
Details
stacktrace (1.01 KB, text/plain)
2010-05-21 20:29 UTC, laurin1
Details
stacktrace (1.01 KB, text/plain)
2010-05-21 20:50 UTC, laurin1
Details
stacktrace (1.02 KB, text/plain)
2010-05-24 06:44 UTC, Vladimir Voskresensky
Details
stacktrace (1.02 KB, text/plain)
2010-05-24 06:53 UTC, Vladimir Voskresensky
Details
Diff against release69_base, please apply to release69 clone (1.40 KB, patch)
2010-05-24 10:47 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2010-05-19 09:41:03 UTC
Build: NetBeans IDE Dev (Build 100519-7f6d88b29728)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: SunOS

Stacktrace: 
java.lang.AssertionError: cannot switch to silent mode when not running
   at org.netbeans.modules.progress.spi.InternalHandle.toSilent(InternalHandle.java:160)
   at org.netbeans.api.progress.ProgressHandle.suspend(ProgressHandle.java:119)
   at org.netbeans.core.ui.warmup.MenuWarmUpTask$NbWindowsAdapter$1HandleBridge.run(MenuWarmUpTask.java:259)
   at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
   at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:137)
Comment 1 Alexander Simon 2010-05-19 09:41:07 UTC
Created attachment 99188 [details]
stacktrace
Comment 2 David Simonek 2010-05-19 10:35:07 UTC
Not the fault of progress API, but wrong usage of it.
Comment 3 Vladimir Voskresensky 2010-05-19 10:56:01 UTC
Created attachment 99190 [details]
stacktrace
Comment 4 Vladimir Kvashin 2010-05-19 11:47:02 UTC
Created attachment 99193 [details]
stacktrace

Launched a C/C++ profiling demo on remote host, pressed "Thread microstates details" - exception occurred
Comment 5 Vladimir Kvashin 2010-05-19 12:20:00 UTC
Created attachment 99201 [details]
stacktrace

I just went through the sources, used hyperlink, when exception occurred
Comment 6 Sergey Petrov 2010-05-19 12:41:01 UTC
Created attachment 99202 [details]
stacktrace

tried to reproduce the issue 61749 with glassfish v3 and got assertion on View Servlet action
Comment 7 Egor Ushakov 2010-05-19 15:56:02 UTC
Created attachment 99216 [details]
stacktrace
Comment 8 Filip Zamboj 2010-05-19 22:11:03 UTC
Created attachment 99224 [details]
stacktrace

switched from borwser to netbeans several times in a row and quickly
Comment 9 Filip Zamboj 2010-05-20 06:17:04 UTC
Created attachment 99229 [details]
stacktrace

switched from php to js file
Comment 10 Alexander Simon 2010-05-20 10:26:05 UTC
Created attachment 99242 [details]
stacktrace
Comment 11 Vladimir Voskresensky 2010-05-20 10:44:05 UTC
Created attachment 99245 [details]
stacktrace
Comment 12 Filip Zamboj 2010-05-20 11:56:05 UTC
Created attachment 99248 [details]
stacktrace

help->about
Comment 13 Jan Lahoda 2010-05-20 18:35:05 UTC
Created attachment 99271 [details]
stacktrace
Comment 14 host 2010-05-20 22:02:07 UTC
Created attachment 99281 [details]
stacktrace
Comment 15 Peter Pis 2010-05-21 10:38:12 UTC
Created attachment 99302 [details]
stacktrace

Debugging java desktop app with jnlp enabled.
Comment 16 kawazu428 2010-05-21 10:59:12 UTC
Created attachment 99303 [details]
stacktrace
Comment 17 Sergey Petrov 2010-05-21 11:56:13 UTC
Created attachment 99308 [details]
stacktrace

just open new project wizard (may ave sense: it's firstide start, new wizardwas invoked after an hour or more after startup)
Comment 18 Peter Pis 2010-05-21 12:14:12 UTC
Created attachment 99310 [details]
stacktrace
Comment 19 Marian Mirilovic 2010-05-21 13:14:14 UTC
Created attachment 99315 [details]
stacktrace

Tried to exit IDE (2 debugging sessions were running)
Comment 20 laurin1 2010-05-21 16:44:13 UTC
Created attachment 99325 [details]
stacktrace
Comment 21 Martin Entlicher 2010-05-21 19:14:15 UTC
Created attachment 99329 [details]
stacktrace
Comment 22 Martin Entlicher 2010-05-21 19:23:14 UTC
Created attachment 99330 [details]
stacktrace
Comment 23 laurin1 2010-05-21 20:29:14 UTC
Created attachment 99331 [details]
stacktrace
Comment 24 laurin1 2010-05-21 20:50:14 UTC
Created attachment 99333 [details]
stacktrace
Comment 25 Vladimir Voskresensky 2010-05-24 06:44:24 UTC
Created attachment 99366 [details]
stacktrace
Comment 26 Marian Mirilovic 2010-05-24 06:46:28 UTC
42 duplicates in last 5 days ... sounds like recent regression
Comment 27 Vladimir Voskresensky 2010-05-24 06:53:23 UTC
Created attachment 99367 [details]
stacktrace
Comment 28 Jaroslav Tulach 2010-05-24 09:36:51 UTC
core-main#3fb655a91860

The error is just assert (shall not appear in a release), but probably this still deserves backport to 6.9.
Comment 29 Marian Mirilovic 2010-05-24 09:44:59 UTC
(In reply to comment #28)
> The error is just assert (shall not appear in a release), but probably this
> still deserves backport to 6.9.

I think so, would be really nice to have it fixed for 6.9
Comment 30 Jaroslav Tulach 2010-05-24 10:47:59 UTC
Created attachment 99382 [details]
Diff against release69_base, please apply to release69 clone
Comment 31 Antonin Nebuzelsky 2010-05-24 11:06:32 UTC
Applied in release69

http://hg.netbeans.org/release69/rev/b7033ed58948
Comment 32 Jesse Glick 2010-05-24 19:50:54 UTC
Catching Throwable (i.e. AssertionError, but also ThreadDeath, etc. etc.) is not an acceptable long-term fix; it is a hotfix until the cause of the assertion failure can be properly diagnosed. Either the calling code should not "switch to silent mode while not running" (and the assertion should be changed to an IllegalStateException); or, if this is not really an error, the throw site should be changed to just print a warning or do nothing.
Comment 33 Jesse Glick 2010-05-24 19:51:13 UTC
...therefore reopening.
Comment 34 Marian Mirilovic 2010-05-25 06:43:50 UTC
(In reply to comment #33)
> ...therefore reopening.
created new issue 186636 for tracking this and closing this one for NB 6.9 (avoid having Opened P3 HR FIX issue)
Comment 35 Quality Engineering 2010-05-25 07:33:40 UTC
Integrated into 'main-golden', will be available in build *201005250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/3fb655a91860
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #186366: Unforgiving APIs require clueless use: Prevent errors by catching them.
Comment 36 Jan Peska 2011-08-10 12:09:08 UTC
*** Bug 200117 has been marked as a duplicate of this bug. ***
Comment 37 Jan Peska 2011-08-11 14:21:08 UTC
*** Bug 162127 has been marked as a duplicate of this bug. ***
Comment 38 Jan Peska 2011-08-12 11:50:23 UTC
*** Bug 147726 has been marked as a duplicate of this bug. ***