This is an automated email from the ASF dual-hosted git repository.

neilcsmith pushed a commit to branch delivery
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/delivery by this push:
     new 7d1b9b5  Payara Server UI disabled on the failed startup
     new 1903a1a  Merge pull request #3273 from jGauravGupta/FISH-1425-2
7d1b9b5 is described below

commit 7d1b9b5245f4db48b06528f5f2254600bf9227f6
Author: Gaurav Gupta <[email protected]>
AuthorDate: Tue Oct 26 17:07:23 2021 +0530

    Payara Server UI disabled on the failed startup
---
 .../src/org/netbeans/modules/payara/common/StartTask.java          | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git 
a/enterprise/payara.common/src/org/netbeans/modules/payara/common/StartTask.java
 
b/enterprise/payara.common/src/org/netbeans/modules/payara/common/StartTask.java
index a2f8e96..227dfa1 100644
--- 
a/enterprise/payara.common/src/org/netbeans/modules/payara/common/StartTask.java
+++ 
b/enterprise/payara.common/src/org/netbeans/modules/payara/common/StartTask.java
@@ -572,9 +572,10 @@ public class StartTask extends BasicTask<TaskState> {
             return change.fireOperationStateChanged();
         }
         if (!PayaraState.isOnline(instance)) {
-              return fireOperationStateChanged(
-                      TaskState.FAILED, TaskEvent.CMD_FAILED,
-                      "StartTask.startDAS.startFailed", instanceName);
+            PayaraStatus.suspend(instance);
+            return fireOperationStateChanged(
+                    TaskState.FAILED, TaskEvent.CMD_FAILED,
+                    "StartTask.startDAS.startFailed", instanceName);
         } else {
             return startClusterOrInstance(adminHost, adminPort);
         }

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to