Sample: Suspend When the Enterprise is in a Suspended State (failOnError Set to True)
Command
D:/installations/340/config.home/admin/dev-enterprise/samples$ ant -f enterprise_suspend_build.xml suspend Buildfile: D:/installations/340/config.home/admin/dev-enterprise/samples/enterprise_suspend_build.xml
Output
suspend: [AMXAdminTask] 25 Jun 2018 13:27:36 INFO - Initializing JSSE's crypto provider class com.sun.net.ssl.internal.ssl.Provider in default mode [AMXAdminTask] 25 Jun 2018 13:27:36 INFO - Connecting to AMX Admin server at 'http://localhost:8120' as user 'root'. [AMXAdminTask] 25 Jun 2018 13:27:36 INFO - Executing action 'suspend' for 1 objects from data file 'D:/installations/340/config.home/admin/dev-enterprise/samples/enterprise_suspend_data.xml' [AMXAdminTask] 25 Jun 2018 13:27:36 INFO - Audit is in progress [AMXAdminTask] 25 Jun 2018 13:27:36 INFO - Audit finished [AMXAdminTask] 25 Jun 2018 13:27:36 INFO - Validations are in progress [AMXAdminTask] 25 Jun 2018 13:27:36 ERROR - TIBCO-AMX-ENTERPRISE-SUSPEND-019031: Enterprise is already in suspended state, no action needed [AMXAdminTask] 25 Jun 2018 13:27:36 ERROR - Validation failed. Check logs for more details [AMXAdminTask] 25 Jun 2018 13:27:39 ERROR - Suspend enterprise action has failed [AMXAdminTask] 25 Jun 2018 13:27:39 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.SuspendEnterpriseAction.invoke(SuspendEnterpriseAction.java:107) [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:39 ERROR - TIBCO-AMX-CLI-000020: Error invoking bulk action suspend on Enterprise: Suspend enterprise action has failed BUILD FAILED D:/installations/340/config.home/admin/dev-enterprise/samples/enterprise_suspend_build.xml:45: TIBCO-AMX-CLI-000042: Failed on error : 'TIBCO-AMX-CLI-000020: Error invoking bulk action suspend on Enterprise: Suspend enterprise action has failed'
Copyright © Cloud Software Group, Inc. All rights reserved.