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 231435 - restarting a remote server fails with Invalid option: force
Summary: restarting a remote server fails with Invalid option: force
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-18 11:49 UTC by infonaut
Modified: 2013-08-03 02:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description infonaut 2013-06-18 11:49:17 UTC
Product Version = NetBeans IDE 7.4 Beta (Build 201306132201)
Operating System = Linux version 3.5.0-34-generic running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01
GlassFish Version: GlassFish Server Open Source Edition 3.1.2.2 (build 5)

try to restart the remote server in Server Log Tab fails and stalled the glassfish entry in [Services][Servers] with the waiting icon and never comes back.
glassfish logs this message:
[#|2013-06-18T13:40:50.835+0200|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=62;_ThreadName=Thread-2;| Invalid option: force|#]
Comment 1 TomasKraus 2013-07-09 14:24:14 UTC
This is quite important, keeping P2 and targeting for 7.4.
Comment 2 TomasKraus 2013-07-18 14:17:58 UTC
Restarting code is broken after rewriting server status monitoring. It works fine for local server but not for remote.
But server status monitoring was pushed on 16th July so Build 201306132201 is an indication that this issue was here even before that.

Anyway, RestartTask is buggy and needs to be rewritten to integrate it with much better server status monitoring.
Comment 3 TomasKraus 2013-07-22 12:30:39 UTC
Checked into web-main:
----------------------
changeset:   258604:5b9538b81f72
summary:     #231435 - Some minor changes in RestartTask code but it is
             not fixed yet
Comment 4 Quality Engineering 2013-07-23 02:40:17 UTC
Integrated into 'main-silver', will be available in build *201307222300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5b9538b81f72
User: Tomas Kraus <TomasKraus@netbeans.org>
Log: #231435 - Some minor changes in RestartTask code but it is not fixed yet
Comment 5 TomasKraus 2013-08-01 14:08:52 UTC
Yes, there was an issue with remote asadmin restart-domain command.
This is fixed now and server can be restarted.

I'm currently in the middle of rewriting whole RestartTask class but I'll push this with old code to get it resolved now.
Comment 6 TomasKraus 2013-08-01 14:56:31 UTC
Checked into GF Tooling Library:
--------------------------------
changeset:   631:a321872a7eab
summary:     Bug# 231435 - Fixed restart-domain asadmin command arguments

Checked into web-main:
----------------------
changeset:   259883:e4a4704dbd3d
summary:     #231435 - Restarting a remote server fails
             with Invalid option: force
changeset:   259884:b232c1cb1efa
summary:     #231435 - Switching RestartTask code
Comment 7 TomasKraus 2013-08-01 14:57:43 UTC
This needs some more testing. Will push tomorrow. But looks like new RestartTask code removed problem with waiting icon on server node.
Comment 8 TomasKraus 2013-08-01 22:02:04 UTC
Pushed into web-main, closing.
Comment 9 Quality Engineering 2013-08-03 02:08:38 UTC
Integrated into 'main-silver', will be available in build *201308022300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/e4a4704dbd3d
User: Tomas Kraus <TomasKraus@netbeans.org>
Log: #231435 - Restarting a remote server fails with Invalid option: force