Sample: Unsuspend When the Enterprise is in an Unsuspended State

Command

D:/installations/340/config.home/admin/dev-enterprise/samples$ ant -f enterprise_suspend_build.xml unsuspend
Buildfile: D:/installations/340/config.home/admin/dev-enterprise/samples/enterprise_suspend_build.xml

Output

unsuspend:
[AMXAdminTask] 25 Jun 2018 13:26:58 INFO - Initializing JSSE's crypto provider class com.sun.net.ssl.internal.ssl.Provider in default mode
[AMXAdminTask] 25 Jun 2018 13:26:58 INFO - Connecting to AMX Admin server at 'http://localhost:8120' as user 'root'.
[AMXAdminTask] 25 Jun 2018 13:26:58 INFO - Executing action 'unsuspend' for 1 objects from data file 'D:/installations/340/config.home/admin/dev-enterprise/samples/enterprise_suspend_data.xml'
[AMXAdminTask] 25 Jun 2018 13:26:59 INFO - Audit is in progress
[AMXAdminTask] 25 Jun 2018 13:26:59 INFO - Audit finished
[AMXAdminTask] 25 Jun 2018 13:26:59 INFO - Validations are in progress
[AMXAdminTask] 25 Jun 2018 13:26:59 ERROR - TIBCO-AMX-ENTERPRISE-SUSPEND-019031: Enterprise is already in unsuspended state, no action needed
[AMXAdminTask] 25 Jun 2018 13:26:59 ERROR - Validation failed. Check logs for more details
[AMXAdminTask] 25 Jun 2018 13:27:02 ERROR - Suspend enterprise action has failed
[AMXAdminTask] 25 Jun 2018 13:27:02 ERROR - com.tibco.amf.admin.api.core.exception.AdminException
[AMXAdminTask] summary = Suspend enterprise action has failed
[AMXAdminTask]
[AMXAdminTask] at com.tibco.amf.admin.cmdline.suspendenterprise.UnsuspendEnterpriseAction.invoke(UnsuspendEnterpriseAction.java:97)
[AMXAdminTask] at com.tibco.amf.admin.cmdline.Processor.invokeBulkAction(Processor.java:1040)
[AMXAdminTask] at com.tibco.amf.admin.cmdline.Processor.process(Processor.java:345)
[AMXAdminTask] at com.tibco.amf.admin.cmdline.ant.AMXAdminTask.process(AMXAdminTask.java:577)
[AMXAdminTask] at com.tibco.amf.admin.cmdline.ant.AMXAdminTask.execute(AMXAdminTask.java:325)
[AMXAdminTask] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[AMXAdminTask] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
[AMXAdminTask] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[AMXAdminTask] at java.lang.reflect.Method.invoke(Method.java:606)
[AMXAdminTask] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[AMXAdminTask] at org.apache.tools.ant.Task.perform(Task.java:348)
[AMXAdminTask] at org.apache.tools.ant.Target.execute(Target.java:435)
[AMXAdminTask] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[AMXAdminTask] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[AMXAdminTask] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[AMXAdminTask] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[AMXAdminTask] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[AMXAdminTask] at org.apache.tools.ant.Main.runBuild(Main.java:851)
[AMXAdminTask] at org.apache.tools.ant.Main.startAnt(Main.java:235)
[AMXAdminTask] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[AMXAdminTask] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
[AMXAdminTask]
[AMXAdminTask] 25 Jun 2018 13:27:02 ERROR - TIBCO-AMX-CLI-000020: Error invoking bulk action unsuspend on Enterprise: Suspend enterprise action has failed
BUILD FAILED
D:/installations/340/config.home/admin/dev-enterprise/samples/enterprise_suspend_build.xml:56: TIBCO-AMX-CLI-000042: Failed on error : 'TIBCO-AMX-CLI-000020: Error invoking bulk action unsuspend on Enterprise: Suspend enterprise action has failed'