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 48590 - Browser settings - duplicate SwingBrowser (random)
Summary: Browser settings - duplicate SwingBrowser (random)
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: RANDOM
: 48562 48690 49015 49083 49758 49866 49925 50016 50190 50210 50238 50424 50448 50449 50450 50535 50678 50726 50836 50918 51009 51032 51144 51165 51213 51232 51237 51351 51383 51493 51494 51515 51538 51546 51548 51592 51594 51785 51816 51860 51915 51985 52074 52290 52309 52359 52630 52734 53849 55108 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-07 14:26 UTC by zikmund
Modified: 2008-12-22 18:56 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log with IllegalStateException (47.57 KB, text/plain)
2004-09-07 14:26 UTC, zikmund
Details
Please try to simulate the problem with this patch (1.05 KB, patch)
2004-09-13 09:43 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zikmund 2004-09-07 14:26:10 UTC
Build 200409061800

Random behavior, happend twice (only in this
build) - maybe caused by issue 47568 fix.

1) There's exception in IDE startup -- see
attached IDE log
2) Since this exception you can't change browser -
similar exceptions appear, no IDE restart helps.
Notice: I can provide saved userdirs with this
problem.

This should be fixed in beta2.
Comment 1 zikmund 2004-09-07 14:26:54 UTC
Created attachment 17432 [details]
IDE log with IllegalStateException
Comment 2 zikmund 2004-09-07 14:50:19 UTC
I found reproducible steps:
1) Run IDE with clean userdir
2) Change 'Web Browser' to MS IE (Options|IDE
Configuration|System|System Settings|Web Browser)
3) Invalidate MS IE path - change the path (in Options|IDE
Configuration|Server and External Tool Settings|Web Browsers|Internet
Explorer) e.g. to "...\_iexplorer.exe ..."
4) Exit IDE
5) Run IDE
6) EXCEPTION on startup (see previous attached IDE log)

BTW: My first experience with this bug was in userdir where I didn't
change the Web Browsers pathes (I only set default Web Browser,
restarted IDE with different JDK 1.4/1.5 and did some other web
related stuff) and this exception was there too.
Comment 3 Jaroslav Tulach 2004-09-07 18:49:36 UTC
Would there be a way to simulate this on linux? 
Comment 4 Jaroslav Tulach 2004-09-08 13:37:45 UTC
The bug report says that somebody has to change the browser command
line to point to non existing file (_iexplorer.exe), if this is true,
then this is not p2 and maybe even p3.
Comment 5 Jaroslav Tulach 2004-09-13 09:10:23 UTC
*** Issue 48690 has been marked as a duplicate of this issue. ***
Comment 6 Jaroslav Tulach 2004-09-13 09:12:38 UTC
I still have no idea how situation like this can happen. I cannot
simulate the problem. Definitively not on linux, but I also tried that
on win2000 and everything worked. 

I'll attach a patch that might fix the problem.
Comment 7 Jaroslav Tulach 2004-09-13 09:43:54 UTC
Created attachment 17572 [details]
Please try to simulate the problem with this patch
Comment 8 Jaroslav Tulach 2004-09-13 09:44:44 UTC
Until further info given, I have to close this as works for me, as I
was unable to simulate the problem.
Comment 9 Martin Grebac 2004-09-13 09:53:05 UTC
*** Issue 48562 has been marked as a duplicate of this issue. ***
Comment 10 _ gtzabari 2004-09-13 12:17:47 UTC
Martin, I believe it is safe to say the problem is not fixed yet. I
remember seeing it in a build two days ago. When I see it again I will
reopen this issue.
Comment 11 _ gtzabari 2004-09-13 12:18:25 UTC
Oops, mistakenly reopened issue. Reverting back to closed until I can
reproduce it on newest build.
Comment 12 zikmund 2004-09-13 18:22:58 UTC
Reproducible scenario works fine now with the patch.
I hope it will help also in cases which are not based on invalid
browser path.
Comment 13 Jiri Skrivanek 2004-09-13 19:30:43 UTC
AFAIK, the patch was not applied, so I am reopening. Also raising
priority because it is random but frequent issue and no workaround
exists. I am able to reproduce it the following way:

- set Swing HTL Browser in the Setup Wizard
- open browser (View|Web Browser)
- restart IDE
- close browser, restart IDE, open browser etc. (play a while with IDE
and you will get the exception)

With the patch I haven't faced it so far. IMO it should be fixed in
beta2 too.
Comment 14 _ gtzabari 2004-09-13 23:10:46 UTC
I think you can reproduce it fairly easily in the following manner:

When you ask Netbeans to shut down, it pops up some dialog about
"serializing your settings" or something similar. If you then launch a
new instance of Netbeans while this is running, the new instance will
say it detected Netbeans was not properly shut down, are you sure you
wish to continue? Say no (don't clobber any settings). Both instances
should have shut down at this point. Now, restart Netbeans a 3rd time
and you should end up with the corrupt settings. A workaround for this
bug is to wipe out the <userdir>/dev/var/cache directory but the next
time you restart it needs to rebuild the classpath and this takes a
long while so this workaround is painful as well.

Anyway, assuming you are able to reproduce the bug using the
aforementioned method, you should now be able to fix it. You should
make absolutely sure that the shutdown/startup operations are atomic
and one can not clobber the settings of the other. I suspect this can
be very hard/impossible to do under pure Java but you guys probably
know more about this than I.
Comment 15 Jaroslav Tulach 2004-09-14 08:17:30 UTC
openide$ cvs -q ci -m "#48590: People report that this is the fix for
multiple equal pairs in the AbstractLookup. I have never seen such
problem, so I cannot judge. The way I manage to simulate it in unit
tests is pretty ugly and relies on changing of behaviour of equals
during the life time of the pair. Well, maybe someone in the IDE is
really doing that"
? X.diff
? TestThatCanBeAddedIntoLookup.diff
? ${build.test.unit.results.dir}
Checking in src/org/openide/util/lookup/InheritanceTree.java;
/cvs/openide/src/org/openide/util/lookup/InheritanceTree.java,v  <-- 
InheritanceTree.java
new revision: 1.34; previous revision: 1.33
done
Processing log script arguments...
More commits to come...
Checking in
test/unit/src/org/openide/util/lookup/AbstractLookupBaseHid.java;
/cvs/openide/test/unit/src/org/openide/util/lookup/AbstractLookupBaseHid.java,v
 <--  AbstractLookupBaseHid.java
new revision: 1.15; previous revision: 1.14
Comment 16 zikmund 2004-09-15 13:48:32 UTC
It is no longer considered as beta2-candidate since it doesn't occur
so often in pre-beta2 builds. Should be mentioned in Release notes
with workaround:

"If you get this exception (java.lang.IllegalStateException: Duplicate
pair in treePair1: ...) with any browser, exit IDE and delete files
folder-lookup.ser and lookup-stamp.txt in $USERDIR/var/cache"

BTW: Jirka Skrivanek's steps are reproducible on 200409061800 build in
several IDE restarts, with the patch they work fine.
Comment 17 Marian Mirilovic 2004-09-15 16:24:25 UTC
*** Issue 49083 has been marked as a duplicate of this issue. ***
Comment 18 zikmund 2004-09-16 15:25:23 UTC
Verified.
Comment 19 Marian Mirilovic 2004-09-20 10:56:54 UTC
*** Issue 49015 has been marked as a duplicate of this issue. ***
Comment 20 Martin Grebac 2004-10-01 08:17:12 UTC
*** Issue 49758 has been marked as a duplicate of this issue. ***
Comment 21 Jaroslav Tulach 2004-10-04 13:13:10 UTC
*** Issue 49866 has been marked as a duplicate of this issue. ***
Comment 22 Jaroslav Tulach 2004-10-05 12:04:42 UTC
*** Issue 49866 has been marked as a duplicate of this issue. ***
Comment 23 Jaroslav Tulach 2004-10-05 17:59:40 UTC
*** Issue 49925 has been marked as a duplicate of this issue. ***
Comment 24 Martin Grebac 2004-10-06 13:53:31 UTC
*** Issue 50016 has been marked as a duplicate of this issue. ***
Comment 25 mabrown 2004-10-06 20:46:45 UTC
As of 4.0 beta 2, this is still an issue. The workaround (deleting
folder-lookup.ser and lookup-stamp.txt from <userdir>\var\cache)
*does* work, or at least it did in my case. I am unable to test the
patch because I'm not working with the NB source. If they would be
helpful to anyone else testing this, I saved copies of the two files I
deleted. Just let me know.
Comment 26 zikmund 2004-10-07 09:48:21 UTC
The patch has been verified in trunk (hence the VERIFIED status).
You can download latest daily build of NetBeans where this patch is
applied (even in all daily builds since 2004-09-15).
Comment 27 Martin Grebac 2004-10-11 17:30:30 UTC
*** Issue 50238 has been marked as a duplicate of this issue. ***
Comment 28 Jaroslav Tulach 2004-10-13 15:33:53 UTC
*** Issue 50210 has been marked as a duplicate of this issue. ***
Comment 29 Jan Pokorsky 2004-10-14 19:51:09 UTC
*** Issue 50449 has been marked as a duplicate of this issue. ***
Comment 30 zikmund 2004-10-15 07:15:09 UTC
*** Issue 50450 has been marked as a duplicate of this issue. ***
Comment 31 Jaroslav Tulach 2004-10-15 15:23:05 UTC
*** Issue 50448 has been marked as a duplicate of this issue. ***
Comment 32 Martin Grebac 2004-10-18 08:43:45 UTC
*** Issue 50535 has been marked as a duplicate of this issue. ***
Comment 33 Jiri Rechtacek 2004-10-18 12:52:27 UTC
*** Issue 50190 has been marked as a duplicate of this issue. ***
Comment 34 zikmund 2004-10-21 07:46:22 UTC
*** Issue 50678 has been marked as a duplicate of this issue. ***
Comment 35 _ rkubacki 2004-10-21 15:46:18 UTC
*** Issue 50424 has been marked as a duplicate of this issue. ***
Comment 36 zikmund 2004-10-22 09:08:16 UTC
*** Issue 50726 has been marked as a duplicate of this issue. ***
Comment 37 _ rkubacki 2004-10-26 08:14:54 UTC
*** Issue 50836 has been marked as a duplicate of this issue. ***
Comment 38 Jaroslav Tulach 2004-10-27 18:16:48 UTC
*** Issue 50918 has been marked as a duplicate of this issue. ***
Comment 39 _ rkubacki 2004-11-03 07:48:29 UTC
*** Issue 51032 has been marked as a duplicate of this issue. ***
Comment 40 _ rkubacki 2004-11-04 08:00:25 UTC
*** Issue 51144 has been marked as a duplicate of this issue. ***
Comment 41 _ rkubacki 2004-11-07 17:47:18 UTC
*** Issue 51237 has been marked as a duplicate of this issue. ***
Comment 42 zikmund 2004-11-08 15:29:37 UTC
*** Issue 51232 has been marked as a duplicate of this issue. ***
Comment 43 Jan Chalupa 2004-11-09 20:58:41 UTC
*** Issue 51213 has been marked as a duplicate of this issue. ***
Comment 44 zikmund 2004-11-11 10:52:55 UTC
*** Issue 51165 has been marked as a duplicate of this issue. ***
Comment 45 jcatchpoole 2004-11-11 11:54:20 UTC
*** Issue 51351 has been marked as a duplicate of this issue. ***
Comment 46 Martin Grebac 2004-11-14 17:36:23 UTC
*** Issue 51493 has been marked as a duplicate of this issue. ***
Comment 47 Jan Chalupa 2004-11-15 06:01:07 UTC
*** Issue 51494 has been marked as a duplicate of this issue. ***
Comment 48 zikmund 2004-11-15 12:34:46 UTC
*** Issue 51515 has been marked as a duplicate of this issue. ***
Comment 49 Jan Chalupa 2004-11-18 08:10:47 UTC
*** Issue 51592 has been marked as a duplicate of this issue. ***
Comment 50 Jan Chalupa 2004-11-18 12:50:56 UTC
*** Issue 51594 has been marked as a duplicate of this issue. ***
Comment 51 zikmund 2004-11-24 09:36:10 UTC
*** Issue 51785 has been marked as a duplicate of this issue. ***
Comment 52 zikmund 2004-11-24 09:36:22 UTC
*** Issue 51785 has been marked as a duplicate of this issue. ***
Comment 53 zikmund 2004-11-24 09:38:59 UTC
*** Issue 51785 has been marked as a duplicate of this issue. ***
Comment 54 Marian Mirilovic 2004-11-24 12:48:19 UTC
*** Issue 51548 has been marked as a duplicate of this issue. ***
Comment 55 Marian Mirilovic 2004-11-24 12:48:38 UTC
*** Issue 51546 has been marked as a duplicate of this issue. ***
Comment 56 Martin Grebac 2004-11-29 08:23:03 UTC
*** Issue 51860 has been marked as a duplicate of this issue. ***
Comment 57 Jan Chalupa 2004-12-01 14:52:40 UTC
*** Issue 51915 has been marked as a duplicate of this issue. ***
Comment 58 _ rkubacki 2004-12-01 15:30:26 UTC
*** Issue 51816 has been marked as a duplicate of this issue. ***
Comment 59 Jan Chalupa 2004-12-05 15:41:14 UTC
*** Issue 52074 has been marked as a duplicate of this issue. ***
Comment 60 Jan Chalupa 2004-12-05 15:42:26 UTC
*** Issue 51009 has been marked as a duplicate of this issue. ***
Comment 61 Jan Chalupa 2004-12-05 15:43:42 UTC
*** Issue 51538 has been marked as a duplicate of this issue. ***
Comment 62 Jan Chalupa 2004-12-05 15:46:07 UTC
*** Issue 51383 has been marked as a duplicate of this issue. ***
Comment 63 Jan Chalupa 2004-12-05 15:55:58 UTC
*** Issue 51383 has been marked as a duplicate of this issue. ***
Comment 64 Marian Mirilovic 2004-12-06 10:23:01 UTC
*** Issue 51383 has been marked as a duplicate of this issue. ***
Comment 65 Jan Chalupa 2004-12-07 06:57:51 UTC
*** Issue 51985 has been marked as a duplicate of this issue. ***
Comment 66 zikmund 2004-12-13 09:19:25 UTC
*** Issue 52309 has been marked as a duplicate of this issue. ***
Comment 67 zikmund 2004-12-13 09:20:24 UTC
*** Issue 52290 has been marked as a duplicate of this issue. ***
Comment 68 Petr Jiricka 2004-12-14 08:42:25 UTC
Wow, 51 duplicates so far!
Comment 69 Marian Mirilovic 2004-12-21 09:14:53 UTC
*** Issue 52359 has been marked as a duplicate of this issue. ***
Comment 70 Marian Mirilovic 2004-12-21 15:21:56 UTC
*** Issue 52734 has been marked as a duplicate of this issue. ***
Comment 71 Jaroslav Tulach 2004-12-21 16:02:41 UTC
*** Issue 52630 has been marked as a duplicate of this issue. ***
Comment 72 zikmund 2005-01-25 12:42:34 UTC
*** Issue 53849 has been marked as a duplicate of this issue. ***
Comment 73 zikmund 2005-02-17 10:17:42 UTC
*** Issue 55108 has been marked as a duplicate of this issue. ***