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 145115 - [65cat]GlassFish V3 Prelude server node doesn't get refreshed upon stopping the server
Summary: [65cat]GlassFish V3 Prelude server node doesn't get refreshed upon stopping ...
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-26 11:06 UTC by rajivderas
Modified: 2008-11-28 12:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
145115 Screen Shot (111.85 KB, image/png)
2008-08-26 11:10 UTC, rajivderas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rajivderas 2008-08-26 11:06:58 UTC
Steps to reproduce:
1) Switch to the Services explorer
2) Expand the Servers node and if you have not registered GlassFish V3 Prelude server then register it
3) Right click on the GlassFish V3 Prelude server node in Services explorer window and select Start to start the server
4) The GlassFish V3 Prelude server node icon gets change displaying its running
5) After the server has been started then Right click on the GlassFish V3 Prelude server node and select Stop which will
stop the server

Now the server has been stopped and you can assure it viewing the server console
if you examine the GlassFish V3 Prelude server node now by right clicking you will find the Start option is disable BUT
the server is already stopped and the green play badge still displays in the node depicting the server is still running
which is not at all. If you refresh this node then you will get the start option enabled and the green play icon
disapeared. I thing the server node doesn't get refreshed when the server is set to Stop.

Dev Build 200808251401
JDK 6 Update 10
Comment 1 rajivderas 2008-08-26 11:10:18 UTC
Created attachment 68324 [details]
145115 Screen Shot
Comment 2 _ pcw 2008-09-04 02:41:01 UTC
Can you reproduce this on any other operating systems?  Can you reproduce this with an FCS JDK? (e.g. shipping build of
JDK6 or JDK 5)?

Are you certain you stopped the server via the right click menu for the server instance node on the Services tab?  What
you describe is what would happen if you were to stop the server from Admin GUI or the admin CLI and then switched back
to NetBeans.

Does the <Refresh> action put things into a correct state?  (I think you said yes to this, but I want to be clear)

This works as expected on my Solaris 10 box with JDK 1.6.0_06.
Comment 3 rajivderas 2008-09-04 05:23:49 UTC
I only have windows xp as the operating system and am using jdk 6 updated 10 exe.
yes, i stopped the server via the right click menu for the server instance node on the Services tab.
Yes, the <Refresh> action put things into a correct state
Comment 4 _ pcw 2008-09-04 05:39:45 UTC
Is this easily reproducible? (every time, most of the time, some of time, or rare?)
Comment 5 rajivderas 2008-09-04 05:45:16 UTC
pcw, this is easily reproducible  bug every time in Dev Build 200808251401
Comment 6 _ pcw 2008-09-04 07:41:16 UTC
Which build of V3 is this?
Comment 7 _ pcw 2008-09-04 07:55:32 UTC
Also, can you try to reproduce this with the latest nightly build of NetBeans (9/03 or 9/04) and Glassfish V3 B22.

I just tried latest NetBeans 6.5 + V3 B22 on Windows XP with JDK 1.6_10 RC1 and the behavior is exactly as I expect it
to be --

* Start the server via popup menu on server instance node and the output window appears, all buttons save refresh go
gray, once server is started, stop and restart buttons become live.
* Stop server via same menu and again, all buttons go gray for a second or two, then start and start/debug buttons
become life.  There is a bit of flicker on the stop action and I know about that and what the cause is.

The only way I know to reproduce the behavior you describe is to start the server from inside the IDE, then stop it from
outside and switch back to the IDE.  In that case, the IDE will not know the server has stopped until you do <refresh>.
Comment 8 rajivderas 2008-09-04 09:13:38 UTC
i used GlassFish_V3_Prelude
Comment 9 _ pcw 2008-09-04 16:34:23 UTC
Exactly which build of V3 Prelude?  Was it bundled with NetBeans or downloaded separately?

Also, have you checked the latest NetBeans + latest V3 Prelude yet?
Comment 10 rajivderas 2008-09-05 06:58:23 UTC
>>>Exactly which build of V3 Prelude?  
GlassFish 10.0-SNAPSHOT (build b22)

>>>Was it bundled with NetBeans or downloaded separately? 
downloaded seperatley

>>>Also, have you checked the latest NetBeans + latest V3 Prelude yet?
Yes, I tried it works ok

But the issues arose with this same b22 which downloaded seperatley and Dev Build 200808251401

Comment 11 mvanek 2008-11-28 12:59:35 UTC
feel free to reopen if you see similar issue