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 178957 - [68cat] Exception: class org.netbeans.editor.ActionFactory$FormatAction$1 is too slow
Summary: [68cat] Exception: class org.netbeans.editor.ActionFactory$FormatAction$1 is ...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Actions/Menu/Toolbar (show other bugs)
Version: 6.x
Hardware: All All
: P2 normal (vote)
Assignee: issues@editor
URL:
Keywords:
: 176931 177019 177025 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-12-22 01:22 UTC by Chiana
Modified: 2010-05-12 11:16 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 163834


Attachments
stacktrace (2.68 KB, text/plain)
2009-12-22 01:22 UTC, Chiana
Details
stacktrace (2.81 KB, text/plain)
2010-01-13 10:30 UTC, mpapis
Details
SolarSystem JavaFX file (4.67 KB, application/octet-stream)
2010-02-05 06:51 UTC, Alexandr Scherbatiy
Details
IDE log file (86.54 KB, application/octet-stream)
2010-02-05 06:52 UTC, Alexandr Scherbatiy
Details
stacktrace (2.73 KB, text/plain)
2010-02-09 10:34 UTC, Filip Zamboj
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2009-12-22 01:22:47 UTC
This bug was originally marked as duplicate of bug 176666, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 200912200200)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Windows Vista, 6.0, x86

User Comments:
sunflower: - Create a JavaFX project
- Copy a code to the editor
- Format code

The exception pops up

fzamboj: formatting a php file that has 16 lines

Chiana: Just created a new .js file, cut the scripts from an xhtml since they started to be big, pasted the scripts into the new js file and pressed <shift><alt>-F to reformat

sunflower: - Install NetBeand full bundle
- Create New Project ->Samples-> JavaFX -> Media Box sample
- Open com.sun.javafx.mediabox.MediaBox file
- Format the code
The exception pops up



Stacktrace: 
java.lang.Exception: class org.netbeans.editor.ActionFactory$FormatAction$1 is too slow
   at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventDispatchThread(RunOffEDTImpl.java:101)
   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 Chiana 2009-12-22 01:22:52 UTC
Created attachment 92841 [details]
stacktrace
Comment 2 mpapis 2010-01-13 10:30:12 UTC
Created attachment 93257 [details]
stacktrace

paste long js from myspace and clicked format (error on second file)
Comment 3 David Simonek 2010-02-01 08:52:40 UTC
Passing to editor product...
Comment 4 Vitezslav Stejskal 2010-02-01 09:29:43 UTC
I deeply apologize to any end user who may see this, but I am not even going to comment on this issue...
Comment 5 mpapis 2010-02-01 13:23:20 UTC
Although it is hard to reproduce this error closing it without any special reason is not something I like to accept. Formating is one of the basic features of Netbeans IDE. 

Do you need additional input, or more steps how to reproduce it ?
Comment 6 Vitezslav Stejskal 2010-02-02 02:52:11 UTC
(In reply to comment #5)
> Although it is hard to reproduce this error closing it without any special
> reason is not something I like to accept. Formating is one of the basic
> features of Netbeans IDE. 

Agreed. I am sorry for closing it.


> 
> Do you need additional input, or more steps how to reproduce it ?

Well, any input is valuable and welcome... Thanks
Comment 7 Alexandr Scherbatiy 2010-02-05 06:50:33 UTC
I see the issue in the JavaFX editor.
NetBeans 6.9 NetBeans-JavaFX-Soma: #143

Steps to reproduce:
- Create a JavaFX project
- Copy the code fro the attached SolarSystem.fx file to the Main.fx file
- Format the Main.fx file

The exception pops up.
Comment 8 Alexandr Scherbatiy 2010-02-05 06:51:30 UTC
Created attachment 93912 [details]
SolarSystem JavaFX file
Comment 9 Alexandr Scherbatiy 2010-02-05 06:52:17 UTC
Created attachment 93913 [details]
IDE log file
Comment 10 Filip Zamboj 2010-02-09 10:34:33 UTC
Created attachment 94012 [details]
stacktrace

formating a long javascript file (3236 lines)
Comment 11 Vitezslav Stejskal 2010-02-17 04:36:22 UTC
local changeset: 42651596988d
Comment 12 Jesse Glick 2010-02-18 17:10:16 UTC
Your change caused a test failure in NB-Core-Build #4072. I put in a hotfix in core-main #3e23b357458c but a review of the tests would be appreciated.
Comment 13 Quality Engineering 2010-02-18 21:47:17 UTC
Integrated into 'main-golden', will be available in build *201002190200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/42651596988d
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #178957: log statistics for lengthy operations
Comment 14 Vitezslav Stejskal 2010-02-19 00:14:53 UTC
(In reply to comment #12)
> Your change caused a test failure in NB-Core-Build #4072. I put in a hotfix in
> core-main #3e23b357458c but a review of the tests would be appreciated.

I'm sorry about not running the tests myself before integrating. Your fix looks ok. Thanks
Comment 15 Jan Lahoda 2010-05-12 08:41:22 UTC
*** Bug 176931 has been marked as a duplicate of this bug. ***
Comment 16 Jan Lahoda 2010-05-12 08:41:44 UTC
*** Bug 177019 has been marked as a duplicate of this bug. ***
Comment 17 Jan Lahoda 2010-05-12 11:16:25 UTC
*** Bug 177025 has been marked as a duplicate of this bug. ***