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 192884 - [70cat] StackOverflowError at java.util.Hashtable.get
Summary: [70cat] StackOverflowError at java.util.Hashtable.get
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords:
: 197863 199674 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-12-05 07:38 UTC by Chiana
Modified: 2011-11-18 11:58 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 174695


Attachments
stacktrace (83.45 KB, text/plain)
2010-12-05 07:38 UTC, Chiana
Details
stacktrace (80.90 KB, text/plain)
2011-02-19 23:31 UTC, Exceptions Reporter
Details
stacktrace (80.90 KB, text/plain)
2011-02-23 22:12 UTC, Exceptions Reporter
Details
stacktrace (84.97 KB, text/plain)
2011-04-19 10:21 UTC, ytn01
Details
Stack trace (83.89 KB, text/plain)
2011-07-11 18:17 UTC, devon_c_miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2010-12-05 07:38:35 UTC
This issue was reported manually by Chiana.
It already has 2 duplicates 


Build: NetBeans IDE Dev (Build 201012040001)
VM: Java HotSpot(TM) Client VM, 17.1-b03, Java(TM) SE Runtime Environment, 1.6.0_22-b04
OS: Windows Vista

User Comments:
Chiana: same as #448579 but for an other field.

Chiana: Was trying to remove a focuslistener from a field, this might be cause by #192863




Stacktrace: 
java.lang.StackOverflowError
   at java.util.Hashtable.get(Hashtable.java:334)
   at javax.swing.ArrayTable.get(ArrayTable.java:132)
   at javax.swing.ActionMap.get(ActionMap.java:100)
   at javax.swing.plaf.basic.LazyActionMap.get(LazyActionMap.java:90)
   at javax.swing.ActionMap.get(ActionMap.java:107)
   at org.openide.windows.DelegateActionMap.get(DelegateActionMap.java:118)
Comment 1 Chiana 2010-12-05 07:38:38 UTC
Created attachment 103602 [details]
stacktrace
Comment 2 Exceptions Reporter 2011-02-19 23:31:16 UTC
Created attachment 106201 [details]
stacktrace
Comment 3 Exceptions Reporter 2011-02-23 22:12:32 UTC
Created attachment 106381 [details]
stacktrace

right clicked on combo box and selected properties.  Properties window was blank and then crashed
Comment 4 Exceptions Reporter 2011-03-25 17:03:59 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=174695
Comment 5 Marian Mirilovic 2011-03-25 23:14:34 UTC
Please evaluate : if you do not plan to fix it for NB 7.0 ask for waiver ASAP.
Comment 6 Stanislav Aubrecht 2011-03-29 10:47:31 UTC
i wasn't able to reproduce this bug and the multiview code is too fragile to make any blind changes there as there's high risk of regressions.
Comment 7 Jesse Glick 2011-03-29 17:18:07 UTC
Looking at the code in MultiViewActionMap, there is already SOE protection in this method (preventRecursive flag), just in a different section. That should be fixed to use a try-finally block

Action a;
preventRecursive = true;
try {
  a = m.getkey);
} finally {
  preventRecursive = false;
}

and the corresponding guard added to the line triggering the recursion in this case.
Comment 8 Marian Mirilovic 2011-03-30 12:13:26 UTC
Standa, are you still asking for waiver ? If so, I would propose to fix it into 7.0.1 .
Comment 9 Stanislav Aubrecht 2011-03-30 12:48:37 UTC
(In reply to comment #8)
> Standa, are you still asking for waiver ? If so, I would propose to fix it into
> 7.0.1 .

yes, unless QA has reliable steps to reproduce this issue, i'd rather fix it after 7.0 release
Comment 10 Marian Mirilovic 2011-03-30 13:01:44 UTC
Ok, I agree with waiver for 7.0
Comment 11 ytn01 2011-04-19 10:21:05 UTC
Created attachment 107829 [details]
stacktrace

Switched to a JDialog form file that was already opened & in "Source" view.
Switched to the "Design" view of the form.
The Exception was generated.
Comment 12 Stanislav Aubrecht 2011-04-20 09:17:56 UTC
*** Bug 197863 has been marked as a duplicate of this bug. ***
Comment 13 Stanislav Aubrecht 2011-05-23 15:32:00 UTC
fixed in core-main cc309d13b023
Comment 14 Stanislav Aubrecht 2011-05-23 15:58:19 UTC
transplanted to release701 branch as 491c7a5ad6c4
Comment 15 Quality Engineering 2011-05-24 10:36:50 UTC
Integrated into 'main-golden', will be available in build *201105240400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/cc309d13b023
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #192884 - prevent stack overflow
Comment 16 Stanislav Aubrecht 2011-06-24 10:25:28 UTC
*** Bug 199674 has been marked as a duplicate of this bug. ***
Comment 17 devon_c_miller 2011-07-11 18:17:16 UTC
Created attachment 109376 [details]
Stack trace
Comment 18 devon_c_miller 2011-07-11 19:27:42 UTC
I am seeing this as of dev 201107110600.

This is the sequence that will reproduce this form me:

- Create a new "Swing Gui Form/JPanel", call it "A" and add a JLabel to it.
- Drag "B" out to its own window.
- Now, in either form, click the JLabel and copy it (Ctrl-C or right-click>Copy).
- Click form "B" (in its own window).
- Click form "A" (in the main window).

Clicking on the form in the main window raises the exception.
Comment 19 ttokoly 2011-07-12 14:34:57 UTC
Product Version: NetBeans IDE 7.0.1 (Build 201107102202)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)

It's reproducible. Devon c miller - thanks for steps for reproduce! We are evaluating this bug now.

Steps to reproduce:
1. Create new project
2. Create new JPanel, name it "A"
3. Create second new JPanel, name it "B"
4. Add a JLabel to JPanel "A" and save it to clipboard (i.e. CTRL+C)
5. Undock JPanel "B" and give focus to it
6. Give focus JPanel "A" in main window
7. EXCEPTION occurred

Necessary conditions for this bug:
a) Both JPanels must be in "Design" mode - if one of them is in "Source" mode, it's OK
b) In clipboard must be some JComponent - if clipboard is empty or with some ordinary text, it's OK
c) One of the window must be undocked - if both windows are in one window (with two tabs) or if both windows are undocked at once, it's OK
Comment 20 Stanislav Aubrecht 2011-07-14 08:55:52 UTC
core-main 4c1d8958a7c8
Comment 21 Quality Engineering 2011-07-15 14:06:51 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/4c1d8958a7c8
User: S. Aubrecht <saubrecht@netbeans.org>
Log: #192884 - stack overflow
Comment 22 ttokoly 2011-11-18 11:58:11 UTC
Verified, works for me.
Thanks!