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 218475 - AssertionError at org.openide.loaders.TemplateWizard.updateState
Summary: AssertionError at org.openide.loaders.TemplateWizard.updateState
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 218635 219028 219170 219220 219311 219312 219412 219550 219599 219630 219866 220238 220353 220358 220379 220384 220416 220432 220452 220465 220472 220497 220553 220554 220618 220647 220648 220653 220692 220948 220987 221021 221121 221138 221186 221291 221404 222052 222141 222306 224049 224070 224218 224376 224412 224686 224797 225378 225660 226374 226405 226947 226961 227122 229492 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-09-17 13:56 UTC by Tomas Mysik
Modified: 2013-06-12 08:12 UTC (History)
12 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 192492


Attachments
stacktrace (5.87 KB, text/plain)
2012-09-17 13:56 UTC, Tomas Mysik
Details
stacktrace (5.96 KB, text/plain)
2012-09-21 06:14 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Mysik 2012-09-17 13:56:49 UTC
Build: NetBeans IDE Dev (Build 20120917-236291c75541)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.10-b01, Java(TM) SE Runtime Environment, 1.6.0_35-b10
OS: Linux

User Comments:
tmysik: Using WizardDescriptor.AsynchronousValidatingPanel for wizard panel validation




Stacktrace: 
java.lang.AssertionError
   at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:745)
   at org.netbeans.modules.project.ui.NewProjectWizard.updateState(NewProjectWizard.java:71)
   at org.openide.WizardDescriptor$10.run(WizardDescriptor.java:1445)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2036)
Comment 1 Tomas Mysik 2012-09-17 13:56:52 UTC
Created attachment 124458 [details]
stacktrace
Comment 2 Tomas Mysik 2012-09-17 14:17:51 UTC
Discovered while fixing issue #217759.
Comment 3 Tomas Mysik 2012-09-17 14:33:52 UTC
It seems to me that now the WizardDescriptor.AsynchronousValidatingPanel does not work properly since TemplateWizard.updateState() is not called in EDT so it is rescheduled. This causes that this method is usually called _after_ error message from WizardValidationException is set [1] (but it should be called _before_ so possible error from the WizardValidationException can be shown).

I am afraid but I think that this issue is P2 (since no error message is displayed to the user), sorry.

Thanks.
[1] WizardDescriptor:1448
Comment 4 Milos Kleint 2012-09-17 14:44:26 UTC
tmysik: do I read your report correctly that the problem is not in projects, but in generic wizard infrastructure? reassigning..
Comment 5 Stanislav Aubrecht 2012-09-17 14:56:48 UTC
updateState() is indeed rescheduled but so is setMessage() as it must be called from EDT as well.
Please re-evaluate and reopen, thanks.
Comment 6 Tomas Mysik 2012-09-17 15:03:20 UTC
OK, I see. Well, frankly, I don't want to spend more time with this issue (at least now), I am sure that you know the code better ;)

However the assertion error is still valid so reopening.
Comment 7 Milos Kleint 2012-09-20 06:25:38 UTC
*** Bug 218635 has been marked as a duplicate of this bug. ***
Comment 8 John Jullion-ceccarelli 2012-09-20 16:51:40 UTC
Showstopper for usability study. Seriously guys, if you can't successfully create an HTML5 project how is this marked as a P3? Are there others such P3s in our backlog?
Comment 9 Petr Jiricka 2012-09-20 19:59:55 UTC
What are the exact steps to reproduce? I am not able to reproduce.
Comment 10 Vladimir Riha 2012-09-20 20:34:56 UTC
(In reply to comment #9)
> What are the exact steps to reproduce? I am not able to reproduce.

My report in issue 218635 (comment #4) is reproducible this way:
- create a new HTML/JS project, select some online template
- add some JS library and press Finish
(now it fails with issue 218677)
- press Finish again
=> AE
Comment 11 Vladimir Riha 2012-09-20 20:36:08 UTC
seems that if you either select:
- template and no JS library 
or
- no template and some JS library

then it works
Comment 12 Tomas Mysik 2012-09-21 04:21:02 UTC
It is an assertion so only dev builds are affected (that is the reason why I left P3 priority).
Comment 13 Vladimir Riha 2012-09-21 06:14:10 UTC
Created attachment 124677 [details]
stacktrace

Downloading

"angular.js" (not "AngularJS") and version "1.0.0rc6 minified"

in New Project dialog
Comment 14 Vladimir Riha 2012-09-21 06:56:24 UTC
Since issue 218677 is fixed, the reproducible way (at least now) is:
- invoke New Project dialog, select HTML/JavaScript
- all default values
- in JavaScript Files step, select "angular.js" library (MUST BE the one with lower case) and left version as it is
- press Finish

The reason for that particular library is that it is not available (404 Not Found) so the process fails.

I'm really not sure if this is a stopper for beta. Fixing 218677 made it less urgent
Comment 15 Vladimir Riha 2012-09-21 07:03:31 UTC
(or easier way is to disconnect from internet and try to create project from online template and/or add JS library)
Comment 16 Marian Mirilovic 2012-09-21 07:12:43 UTC
If this issue is reproducible 'only' if the URL is broken (or library not available) and we will not face the issue during our J1 demo, I do not think it's a stopper for Beta.
Comment 17 Stanislav Aubrecht 2012-09-21 08:53:44 UTC
core-main 067effe42306
Comment 18 Petr Jiricka 2012-09-21 09:41:37 UTC
Standa says the fix is quite risky, and since it is possible to avoid this, I recommend not putting this into beta. Please speak up if you feel strongly this is a beta stopper.
Comment 19 Marian Mirilovic 2012-09-21 09:52:13 UTC
(In reply to comment #18)
> Standa says the fix is quite risky, and since it is possible to avoid this, I
> recommend not putting this into beta. Please speak up if you feel strongly this
> is a beta stopper.

+1
Comment 20 Quality Engineering 2012-09-22 02:17:56 UTC
Integrated into 'main-golden', will be available in build *201209220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/067effe42306
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #218475 - make sure we call updateState from EDT only
Comment 21 Milos Kleint 2012-09-26 09:21:46 UTC
*** Bug 219028 has been marked as a duplicate of this bug. ***
Comment 22 Milos Kleint 2012-10-01 05:10:31 UTC
*** Bug 219220 has been marked as a duplicate of this bug. ***
Comment 23 Milos Kleint 2012-10-01 05:10:53 UTC
*** Bug 219170 has been marked as a duplicate of this bug. ***
Comment 24 Milos Kleint 2012-10-02 08:29:39 UTC
*** Bug 219311 has been marked as a duplicate of this bug. ***
Comment 25 Milos Kleint 2012-10-02 09:31:06 UTC
*** Bug 219312 has been marked as a duplicate of this bug. ***
Comment 26 Milos Kleint 2012-10-03 06:05:29 UTC
*** Bug 219412 has been marked as a duplicate of this bug. ***
Comment 27 Milos Kleint 2012-10-05 06:55:46 UTC
*** Bug 219550 has been marked as a duplicate of this bug. ***
Comment 28 Milos Kleint 2012-10-05 14:46:44 UTC
*** Bug 219599 has been marked as a duplicate of this bug. ***
Comment 29 Milos Kleint 2012-10-06 05:57:01 UTC
*** Bug 219630 has been marked as a duplicate of this bug. ***
Comment 30 Milos Kleint 2012-10-11 04:40:25 UTC
*** Bug 219866 has been marked as a duplicate of this bug. ***
Comment 31 Milos Kleint 2012-10-17 06:52:33 UTC
*** Bug 220238 has been marked as a duplicate of this bug. ***
Comment 32 Milos Kleint 2012-10-18 12:16:07 UTC
*** Bug 220353 has been marked as a duplicate of this bug. ***
Comment 33 Milos Kleint 2012-10-18 12:54:25 UTC
*** Bug 220358 has been marked as a duplicate of this bug. ***
Comment 34 Milos Kleint 2012-10-18 19:18:58 UTC
*** Bug 220379 has been marked as a duplicate of this bug. ***
Comment 35 Milos Kleint 2012-10-19 07:43:00 UTC
*** Bug 220384 has been marked as a duplicate of this bug. ***
Comment 36 Milos Kleint 2012-10-19 12:46:51 UTC
*** Bug 220416 has been marked as a duplicate of this bug. ***
Comment 37 Milos Kleint 2012-10-19 16:43:18 UTC
*** Bug 220432 has been marked as a duplicate of this bug. ***
Comment 38 Milos Kleint 2012-10-19 20:27:59 UTC
*** Bug 220452 has been marked as a duplicate of this bug. ***
Comment 39 Milos Kleint 2012-10-20 12:15:52 UTC
*** Bug 220465 has been marked as a duplicate of this bug. ***
Comment 40 Milos Kleint 2012-10-21 19:13:15 UTC
*** Bug 220472 has been marked as a duplicate of this bug. ***
Comment 41 Milos Kleint 2012-10-21 19:13:26 UTC
*** Bug 220497 has been marked as a duplicate of this bug. ***
Comment 42 Milos Kleint 2012-10-22 10:47:45 UTC
*** Bug 220553 has been marked as a duplicate of this bug. ***
Comment 43 Milos Kleint 2012-10-22 13:16:09 UTC
*** Bug 220554 has been marked as a duplicate of this bug. ***
Comment 44 Milos Kleint 2012-10-23 05:58:11 UTC
*** Bug 220618 has been marked as a duplicate of this bug. ***
Comment 45 Milos Kleint 2012-10-23 10:49:38 UTC
*** Bug 220647 has been marked as a duplicate of this bug. ***
Comment 46 Milos Kleint 2012-10-23 11:16:32 UTC
*** Bug 220653 has been marked as a duplicate of this bug. ***
Comment 47 Milos Kleint 2012-10-23 11:27:24 UTC
*** Bug 220648 has been marked as a duplicate of this bug. ***
Comment 48 Milos Kleint 2012-10-24 06:39:10 UTC
*** Bug 220692 has been marked as a duplicate of this bug. ***
Comment 49 Milos Kleint 2012-10-29 06:18:05 UTC
*** Bug 220987 has been marked as a duplicate of this bug. ***
Comment 50 Milos Kleint 2012-10-29 06:18:55 UTC
*** Bug 220948 has been marked as a duplicate of this bug. ***
Comment 51 Milos Kleint 2012-10-29 12:41:13 UTC
*** Bug 221021 has been marked as a duplicate of this bug. ***
Comment 52 Milos Kleint 2012-10-30 20:05:21 UTC
*** Bug 221121 has been marked as a duplicate of this bug. ***
Comment 53 Milos Kleint 2012-10-31 05:57:04 UTC
*** Bug 221138 has been marked as a duplicate of this bug. ***
Comment 54 Milos Kleint 2012-10-31 14:40:03 UTC
*** Bug 221186 has been marked as a duplicate of this bug. ***
Comment 55 Milos Kleint 2012-11-02 05:54:14 UTC
*** Bug 221291 has been marked as a duplicate of this bug. ***
Comment 56 Milos Kleint 2012-11-05 07:28:34 UTC
*** Bug 221404 has been marked as a duplicate of this bug. ***
Comment 57 Milos Kleint 2012-11-14 10:00:26 UTC
*** Bug 222052 has been marked as a duplicate of this bug. ***
Comment 58 Milos Kleint 2012-11-14 18:55:37 UTC
*** Bug 222141 has been marked as a duplicate of this bug. ***
Comment 59 Milos Kleint 2012-11-17 15:20:55 UTC
*** Bug 222306 has been marked as a duplicate of this bug. ***
Comment 60 Milos Kleint 2012-12-19 17:22:42 UTC
*** Bug 224049 has been marked as a duplicate of this bug. ***
Comment 61 Milos Kleint 2012-12-20 08:37:32 UTC
*** Bug 224070 has been marked as a duplicate of this bug. ***
Comment 62 Milos Kleint 2012-12-27 07:00:52 UTC
*** Bug 224218 has been marked as a duplicate of this bug. ***
Comment 63 Milos Kleint 2013-01-02 12:29:25 UTC
*** Bug 224376 has been marked as a duplicate of this bug. ***
Comment 64 Milos Kleint 2013-01-03 10:15:03 UTC
*** Bug 224412 has been marked as a duplicate of this bug. ***
Comment 65 Milos Kleint 2013-01-10 09:07:25 UTC
*** Bug 224686 has been marked as a duplicate of this bug. ***
Comment 66 Milos Kleint 2013-01-12 20:26:00 UTC
*** Bug 224797 has been marked as a duplicate of this bug. ***
Comment 67 Milos Kleint 2013-01-28 08:57:19 UTC
*** Bug 225378 has been marked as a duplicate of this bug. ***
Comment 68 Milos Kleint 2013-02-11 09:04:18 UTC
*** Bug 225660 has been marked as a duplicate of this bug. ***
Comment 69 Milos Kleint 2013-02-20 07:12:25 UTC
*** Bug 226374 has been marked as a duplicate of this bug. ***
Comment 70 Milos Kleint 2013-02-20 14:21:06 UTC
*** Bug 226405 has been marked as a duplicate of this bug. ***
Comment 71 Milos Kleint 2013-03-03 19:02:39 UTC
*** Bug 226947 has been marked as a duplicate of this bug. ***
Comment 72 Milos Kleint 2013-03-06 20:10:22 UTC
*** Bug 227122 has been marked as a duplicate of this bug. ***
Comment 73 Milos Kleint 2013-05-08 06:51:06 UTC
*** Bug 229492 has been marked as a duplicate of this bug. ***
Comment 74 Tomas Zezula 2013-06-12 08:12:55 UTC
*** Bug 226961 has been marked as a duplicate of this bug. ***