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 176666 - Exception: class org.netbeans.editor.ActionFactory$FormatAction$1 is too slow
Summary: Exception: class org.netbeans.editor.ActionFactory$FormatAction$1 is too slow
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: mslama
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-12 06:06 UTC by Filip Zamboj
Modified: 2009-11-25 08:00 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 161939


Attachments
stacktrace (2.84 KB, text/plain)
2009-11-12 06:06 UTC, Filip Zamboj
Details
stacktrace (2.84 KB, text/plain)
2009-11-18 07:49 UTC, Alexandr Scherbatiy
Details
stacktrace (2.84 KB, text/plain)
2009-11-18 09:25 UTC, Filip Zamboj
Details
stacktrace (2.84 KB, text/plain)
2009-11-19 03:03 UTC, Alexandr Scherbatiy
Details
stacktrace (2.84 KB, text/plain)
2009-11-20 00:29 UTC, stefan79
Details
stacktrace (2.84 KB, text/plain)
2009-11-20 01:25 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Filip Zamboj 2009-11-12 06:06:46 UTC
Build: NetBeans IDE Dev (Build 091110-1c3b2021de36)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.28-16-generic, amd64

User Comments:
fzamboj: invoked formatting on the whole file in php



Stacktrace: 
java.lang.Exception: class org.netbeans.editor.ActionFactory$FormatAction$1 is too slow
        at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventDispatchThread(RunOffEDTImpl.java:97)
        at org.netbeans.api.progress.ProgressUtils.runOffEventDispatchThread(ProgressUtils.java:81)
        at org.netbeans.editor.ActionFactory$FormatAction.actionPerformed(ActionFactory.java:1635)
        at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:336)
        at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:139)
        at org.netbeans.modules.openide.util.ActionsBridge.implPerformAction(ActionsBridge.java:83)
Comment 1 Filip Zamboj 2009-11-12 06:06:49 UTC
Created attachment 90899 [details]
stacktrace
Comment 2 Vitezslav Stejskal 2009-11-13 05:39:50 UTC
local changeset: 73dc8a7b0e54
Comment 3 Quality Engineering 2009-11-16 03:18:12 UTC
Integrated into 'main-golden', will be available in build *200911160201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/73dc8a7b0e54
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #176666: just ignore this exception
Comment 4 Alexandr Scherbatiy 2009-11-18 07:49:20 UTC
Created attachment 91257 [details]
stacktrace
Comment 5 Alexandr Scherbatiy 2009-11-18 07:56:09 UTC
I often see the issue during the JavaFX code refactoring in build 200911171401.
I did not see this issue in the previous build.

See exception report:
http://statistics.netbeans.org/analytics/exception.do?id=303244
Comment 6 Filip Zamboj 2009-11-18 09:25:20 UTC
Created attachment 91270 [details]
stacktrace
Comment 7 Filip Zamboj 2009-11-18 09:51:11 UTC
I got it today as well while formatting php file that has 16 lines only.
Comment 8 Jiri Prox 2009-11-19 02:48:42 UTC
Filip, can you provide the file, please? Which build did you use?
Comment 9 Alexandr Scherbatiy 2009-11-19 03:03:10 UTC
Created attachment 91319 [details]
stacktrace
Comment 10 Filip Zamboj 2009-11-19 04:03:33 UTC
I used dev build 091118. I changed the file a lot since I reproduced. However, I'll attach a new file right after I reproduce again.
Comment 11 Vitezslav Stejskal 2009-11-19 07:23:02 UTC
http://hg.netbeans.org/jet-main/rev/1ce4381a018b

As discussed with Tomas Holy these exceptions won't be shown in release versions. Tomasi, please review the fix. Thanks
Comment 12 t_h 2009-11-19 07:34:10 UTC
looks OK
Comment 13 stefan79 2009-11-20 00:29:53 UTC
Created attachment 91388 [details]
stacktrace
Comment 14 stefan79 2009-11-20 01:25:56 UTC
Created attachment 91391 [details]
stacktrace
Comment 15 Quality Engineering 2009-11-20 03:14:31 UTC
Integrated into 'main-golden', will be available in build *200911200201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/1ce4381a018b
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #176666: do not show these artificial exceptions in release versions of Netbeans
Comment 16 Filip Zamboj 2009-11-25 08:00:19 UTC
verified in 
Product Version: NetBeans IDE 6.8 RC1 (Build 091125-b38570a37849)
Java: 1.5.0_17-ea; Java HotSpot(TM) 64-Bit Server VM 1.5.0_17-ea-b01