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 132261 - V2 tries to synchronize with running V3 instance.
Summary: V2 tries to synchronize with running V3 instance.
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: Sun All
: P1 blocker (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-07 22:05 UTC by _ pcw
Modified: 2008-04-25 13:05 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
modal dialog image (15.69 KB, image/png)
2008-04-07 22:08 UTC, _ pcw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pcw 2008-04-07 22:05:18 UTC
V2 and V3 have the same default port structure (HTTP = 8080, admin = 4848, etc.)

If two similarly configured V2 and V3 server instances are added to the Servers node in the IDE, and the V3 instance is
running, then, sometimes in response to user activity and sometimes spontaneously, the V2 plugin will attempt to
synchronize the V2 instance node with the V3 server process.  When this fails (sometimes after a timeout), an incorrect
modal message box is displayed (image attached) with the following (incorrect) text:

    Authentication for GlassFish V2 failed with message 
    http://localhost:4848/web1/remotejmx.
    
    If the username or password is incorrect, you can change them via Tools | Servers.

There are some circumstances where the box is displayed repeatedly and is rather annoying, but I can't recall the
circumstance.

This happens because the server signatures are similar as well as the recognition algorithm in the respective plugins
and the V2 plugin is trying to talk to the V3 instance, not realizing it is a different server entirely.

What should happen here is V2 should realize at some reasonable point that the server process is not V2 at all and
ignore it.  Exactly what "some reasonable point" means and to what certainty we can differentiate between "bad password
for V2" and "not V2 at all" is left as an exercise for the person who gets to resolve this :)
Comment 1 _ pcw 2008-04-07 22:08:02 UTC
Created attachment 59799 [details]
modal dialog image
Comment 2 Vince Kraemer 2008-04-07 23:33:00 UTC
http://hg.netbeans.org/main/rev/f800e3a56b3c

set tm to dev, since I don't see a 6.x where x > 1....
Comment 3 Vince Kraemer 2008-04-08 01:00:24 UTC
ludo wants this included in 6.1 bits...
Comment 4 Radim Roska 2008-04-08 15:45:31 UTC
verified - integrate it to the 6.1 branch please
Comment 5 _ ludo 2008-04-08 16:33:43 UTC
Thanks, it helps a lot our future v3 story on top of 6.1 FCS.
Comment 6 _ pcw 2008-04-08 23:04:02 UTC
Reviewed and tested by me as well.  Looks great, thanks!
Comment 7 Martin Schovanek 2008-04-11 08:06:29 UTC
Radime, please verify it in release61.
Comment 8 _ ludo 2008-04-11 17:22:06 UTC
works for me, now.
Ludo