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 201996 - IllegalStateException: Queue full
Summary: IllegalStateException: Queue full
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 7.1
Hardware: All All
: P2 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
: 202547 (view as bug list)
Depends on:
Blocks: 191951
  Show dependency tree
 
Reported: 2011-09-12 09:33 UTC by Martin Fousek
Modified: 2012-04-04 12:32 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 181096


Attachments
stacktrace (975 bytes, text/plain)
2011-09-12 09:34 UTC, Martin Fousek
Details
stacktrace (975 bytes, text/plain)
2011-11-10 09:07 UTC, Vladimir Voskresensky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2011-09-12 09:33:57 UTC
Build: NetBeans IDE Dev (Build 20110912-c50ade4b58c7)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.0-b09, Java(TM) SE Runtime Environment, 1.6.0_23-b05
OS: Linux

User Comments:
marfous: 1, generated many Session Beans from Entity Beans




Stacktrace: 
java.lang.IllegalStateException: Queue full
   at java.util.AbstractQueue.add(AbstractQueue.java:71)
   at java.util.concurrent.ArrayBlockingQueue.add(ArrayBlockingQueue.java:209)
   at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:437)
   at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:252)
   at org.openide.loaders.TemplateWizardIteratorWrapper$ProgressInstantiatingIterator.instantiate(TemplateWizardIteratorWrapper.java:180)
   at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1550)
Comment 1 Martin Fousek 2011-09-12 09:34:01 UTC
Created attachment 110653 [details]
stacktrace
Comment 2 Stanislav Aubrecht 2011-09-12 13:12:11 UTC
please provide exact steps to reproduce, thanks
Comment 3 Alexander Simon 2011-11-09 17:41:24 UTC
1. WizardDescriptor.ProgressInstantiatingIterator<WizardDescriptor>.instantiate() throws IOException.
2. Wizard shows last step. Press Finish again.
3. If instantiate() throws IOException again the IllegalStateException is appeared.
Comment 4 Vladimir Voskresensky 2011-11-10 09:07:11 UTC
Created attachment 113075 [details]
stacktrace

call Finish second time, because first time some data was incorrect and second data was incorrect too
Comment 5 Vladimir Voskresensky 2011-11-10 09:09:59 UTC
I'm rising priority, because it's really impossible to do long validations in
instantiate(...) of WizardDescriptor.ProgressInstantiatingIterator which throws
IOException.
If user entered twice incorrect info => 100% on the second Finish this bug
occurs
Comment 6 Stanislav Aubrecht 2011-11-14 15:49:41 UTC
jesse, you've introduced the blocking queue when fixing #191951. can you look at this one pls?
Comment 7 Jesse Glick 2011-11-14 16:33:08 UTC
Not sure how to reproduce so would appreciate verification of fix.
Comment 8 Jesse Glick 2011-11-14 16:44:15 UTC
core-main #efbeea4eae74
Comment 9 Vladimir Voskresensky 2011-11-14 16:56:00 UTC
I can check when commit appears in cnd-main, but the easiest way for you could be:
- find your own ProgressInstantiatingIterator implementation
- throw IOException in instantiate method
Comment 10 Vladimir Voskresensky 2011-11-15 10:25:15 UTC
efbeea4eae74 is not propagated into cnd-main, because core-main is not stable on deadlock
http://deadlock.netbeans.org/hudson/job/NB-Core-Build
Comment 11 Jesse Glick 2011-11-16 01:45:37 UTC
The only such class I can trivially find is JavacardPlatformWizardIterator, which I cannot run on Linux anyway. This is in main-silver, can you check it please?
Comment 12 Vladimir Voskresensky 2011-11-16 10:37:58 UTC
it works, thanks!
Comment 13 Quality Engineering 2011-11-16 15:45:52 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/efbeea4eae74
User: Jesse Glick <jglick@netbeans.org>
Log: #201996: IllegalStateException: Queue full
Comment 14 Stanislav Aubrecht 2012-04-04 12:32:51 UTC
*** Bug 202547 has been marked as a duplicate of this bug. ***