Error while comparing BMA Snapshots in RHEL through CLI
Ashwin Radhakrishnan Feb 14, 2018 5:25 AMHi Guys,
I am facing the following error while comparing two snapshots through CLI in RHEL box but I am not having this issue while doing it in Windows through CLI.
[root@vm-81cd-5346 ~]# cd /root/BMA/bma/cli
[root@vm-81cd-5346 cli]# ./runDeliver.sh -mode compare -sourceInput /root/BMA/ASPAC/Vaidy/FDS/current-snapshot/new_snapshot.xml -targetInput /root/BMA/ASPAC/Vaidy/FDS/old-snapshot/old_snapshot.xml
2012-10-30 05:08:34,027 INFO [main] (CompareAntLauncher.java:32) - Compare tool was not found in /root/BMA/bma
2012-10-30 05:08:34,029 INFO [main] (CompareAntLauncher.java:33) - Deliver executable will be used
2012-10-30 05:08:34,032 INFO [main] (PhurnaceAntLauncher.java:59) - Initializing the build file /root/BMA/bma/cli/./121030050834-0400/build.xml
2012-10-30 05:08:34,033 INFO [main] (PhurnaceAntLauncher.java:60) - Working directory /root/BMA/bma/cli/./121030050834-0400
2012-10-30 05:08:34,033 INFO [main] (PhurnaceAntLauncher.java:61) - Creating AntLauncher
2012-10-30 05:08:34,037 INFO [main] (PhurnaceAntLauncher.java:63) - AntLauncher created
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile /root/BMA/bma/cli/121030050834-0400/build.xml with URI = file:/root/BMA/bma/cli/121030050834-0400/build.xml
Setting ro project property: ant.project.name -> phurnace-launcher
Adding reference: phurnace-launcher
Setting ro project property: ant.file.phurnace-launcher -> /root/BMA/bma/cli/121030050834-0400/build.xml
Project base dir set to: /root/BMA/bma/cli/121030050834-0400
+Target:
+Target: _defineClasspath
+Target: _init_websphere
+Target: _init_weblogic
+Target: _init_jboss
+Target: _init_tomcat
+Target: _init_geronimo
+Target: _init_webspherece
+Target: _init_wps
+Target: _init_appserver
+Target: _define_tasks
+Target: _init
+Target: setup
+Target: launch-phurnace
+Target: launch-copy-portal
+Target: launch-portal
+Target: launch-connection-manager
+Target: launch-connection-manager-thin-client
+Target: report-gen
+Target: thin-client-report
+Target: launch-compare
+Target: launch-image-engine
+Target: emma_setup
+Target: launch-emma-phurnace
[antlib:org.apache.tools.ant] Could not load definitions from resource org/apache/tools/ant/antlib.xml. It could not be found.
[property] Loading /root/phurnace-launcher.properties
[property] Unable to find property file: /root/phurnace-launcher.properties
[property] Loading /root/BMA/bma/cli/121030050834-0400/build.properties
[property] Unable to find property file: /root/BMA/bma/cli/121030050834-0400/build.properties
Property "custom.properties" has not been set
[property] Loading /root/BMA/bma/cli/121030050834-0400/${custom.properties}
[property] Unable to find property file: /root/BMA/bma/cli/121030050834-0400/${custom.properties}
Setting project property: jvmargs.custom ->
Setting project property: ph.mainClass -> com.phurnace.DeliverEngineMain
Setting project property: dir.customAppServerHome ->
Setting project property: signalInterval -> 1000
2012-10-30 05:08:34,272 INFO [main] (PhurnaceAntLauncher.java:66) - Build file is initialized
Setting project property: input.file2 -> /root/BMA/ASPAC/Vaidy/FDS/current-snapshot/new_snapshot.xml
Setting project property: converted.output ->
Setting project property: input.file1 -> /root/BMA/ASPAC/Vaidy/FDS/old-snapshot/old_snapshot.xml
Setting project property: compare.report.output.file -> /root/BMA/bma/cli/./121030050834-0400/report.xml
Setting project property: compare.executable -> /root/BMA/bma/deliver
Setting project property: dir.workingDir -> /root/BMA/bma/cli/./121030050834-0400
Setting project property: properties.file -> /root/BMA/bma/cli/./121030050834-0400/vmargs.properties
Setting project property: compare.package.output.file ->
Build sequence for target(s) `launch-compare' is [launch-compare]
Complete build sequence is [launch-compare, _init_tomcat, _init_weblogic, _defineClasspath, _init, _init_websphere, _init_jboss, _init_wps, _init_geronimo, _init_webspherece, _init_appserver, setup, _define_tasks, report-gen, launch-connection-manager, launch-image-engine, launch-phurnace, emma_setup, launch-emma-phurnace, launch-connection-manager-thin-client, launch-copy-portal, thin-client-report, , launch-portal]
launch-compare:
[exec] Current OS is Linux
[exec] Executing '/root/BMA/bma/deliver' with arguments:
[exec] '--launcher.suppressErrors'
[exec] '-nosplash'
[exec] '-application'
[exec] 'com.phurnace.deliver.emf.compare.compareTool'
[exec] '-input1'
[exec] '/root/BMA/ASPAC/Vaidy/FDS/old-snapshot/old_snapshot.xml'
[exec] '-input2'
[exec] '/root/BMA/ASPAC/Vaidy/FDS/current-snapshot/new_snapshot.xml'
[exec] '-report'
[exec] '/root/BMA/bma/cli/./121030050834-0400/report.xml'
[exec] '-workingDir'
[exec] '/root/BMA/bma/cli/./121030050834-0400'
[exec] '-properties'
[exec] '/root/BMA/bma/cli/./121030050834-0400/vmargs.properties'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
Execute:Java13CommandLauncher: Executing '/root/BMA/bma/deliver' with arguments:
'--launcher.suppressErrors'
'-nosplash'
'-application'
'com.phurnace.deliver.emf.compare.compareTool'
'-input1'
'/root/BMA/ASPAC/Vaidy/FDS/old-snapshot/old_snapshot.xml'
'-input2'
'/root/BMA/ASPAC/Vaidy/FDS/current-snapshot/new_snapshot.xml'
'-report'
'/root/BMA/bma/cli/./121030050834-0400/report.xml'
'-workingDir'
'/root/BMA/bma/cli/./121030050834-0400'
'-properties'
'/root/BMA/bma/cli/./121030050834-0400/vmargs.properties'
The ' characters around the executable and arguments are
not part of the command.
[exec] 2012-10-30 05:08:36,010 INFO [main] (CompareApplication.java:142) - Set property deliverToken to value 1256332013
[exec] Deliver:
[exec] An error has occurred. See the log file
[exec] /root/BladeLogic/AppRelease/workspace/.metadata/.log.
[exec] Result: 13
2012-10-30 05:09:11,066 INFO [main] (DeliverMain.java:581) - doWork finished
================================================================================================
[root@vm-81cd-5346 cli]# cat /root/BladeLogic/AppRelease/workspace/.metadata/.log
!SESSION 2012-10-30 03:06:03.370 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -application com.phurnace.deliver.emf.compare.compareTool -input1 /root/BMA/ASPAC/Vaidy/FDS/current-snapshot/new_snapshot.xml -input2 /root/BMA/ASPAC/Vaidy/FDS/old-snapshot/old_snapshot.xml -package /root/BMA/ASPAC/Vaidy/FDS/result/Snapshot-Compare-Tue Oct 30 03:05:59 EDT 2012.xml -report /root/BMA/ASPAC/Vaidy/FDS/report/Snapshot-diff-Tue Oct 30 03:05:59 EDT 2012.pdf -workingDir /root/BMA/./121030030600-0400 -convertedOutput /root/BMA/./121030030600-0400/converted-output.report -properties /root/BMA/./121030030600-0400/vmargs.properties
Command-line arguments: -os linux -ws gtk -arch x86_64 -data @user.home/BladeLogic/AppRelease/workspace -application com.phurnace.deliver.emf.compare.compareTool -input1 /root/BMA/ASPAC/Vaidy/FDS/current-snapshot/new_snapshot.xml -input2 /root/BMA/ASPAC/Vaidy/FDS/old-snapshot/old_snapshot.xml -package /root/BMA/ASPAC/Vaidy/FDS/result/Snapshot-Compare-Tue Oct 30 03:05:59 EDT 2012.xml -report /root/BMA/ASPAC/Vaidy/FDS/report/Snapshot-diff-Tue Oct 30 03:05:59 EDT 2012.pdf -workingDir /root/BMA/./121030030600-0400 -convertedOutput /root/BMA/./121030030600-0400/converted-output.report -properties /root/BMA/./121030030600-0400/vmargs.properties
!ENTRY org.eclipse.osgi 4 0 2012-10-30 03:06:55.285
!MESSAGE Application error
!STACK 1
org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
at org.eclipse.swt.SWT.error(SWT.java:4308)
at org.eclipse.swt.widgets.Display.createDisplay(Display.java:909)
at org.eclipse.swt.widgets.Display.create(Display.java:897)
at org.eclipse.swt.graphics.Device.<init>(Device.java:157)
at org.eclipse.swt.widgets.Display.<init>(Display.java:500)
at org.eclipse.swt.widgets.Display.<init>(Display.java:491)
at org.eclipse.swt.widgets.Display.getDefault(Display.java:1681)
at org.eclipse.jface.preference.PreferenceConverter.<clinit>(PreferenceConverter.java:81)
at com.phurnace.deliver.ui.compare.internal.preferences.EMFComparePreferencesInitializer.initializeDefaultPreferences(EMFComparePreferencesInitializer.java:46)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:281)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:284)
at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:130)
at org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:368)
at org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:166)
at org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:237)
at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:308)
at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:544)
at org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:670)
at org.eclipse.core.internal.preferences.PreferencesService$5.run(PreferencesService.java:623)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.preferences.PreferencesService.getNodes(PreferencesService.java:607)
at org.eclipse.core.internal.preferences.PreferencesService.getBoolean(PreferencesService.java:477)
at com.phurnace.deliver.emf.compare.DeliverEmfComparePlugin.isShowReferenceOrderChange(DeliverEmfComparePlugin.java:96)
at com.phurnace.deliver.compare.diff.engine.check.SymmetricalReferencesCheck.checkContainmentReferenceOrderChange(SymmetricalReferencesCheck.java:31)
at org.eclipse.emf.compare.diff.engine.check.ReferencesCheck.checkReferencesUpdates(ReferencesCheck.java:80)
at org.eclipse.emf.compare.diff.engine.GenericDiffEngine.checkForDiffs(GenericDiffEngine.java:336)
at com.phurnace.deliver.compare.diff.engine.PhurnaceDiffEngine.checkForDiffs(PhurnaceDiffEngine.java:36)
at org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiffDelegate(GenericDiffEngine.java:890)
at org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiffTwoWay(GenericDiffEngine.java:572)
at org.eclipse.emf.compare.diff.engine.GenericDiffEngine.doDiff(GenericDiffEngine.java:110)
at org.eclipse.emf.compare.diff.service.DiffService.doDiff(DiffService.java:102)
at com.phurnace.deliver.emf.compare.ConfigDiffUtil.compare(ConfigDiffUtil.java:245)
at com.phurnace.deliver.compare.api.CompareWorker.createDiffModel(CompareWorker.java:214)
at com.phurnace.deliver.compare.api.CompareWorker.compareToPackage(CompareWorker.java:165)
at com.phurnace.deliver.compare.api.CompareApplication.createPackage(CompareApplication.java:226)
at com.phurnace.deliver.compare.api.CompareApplication.dispatch(CompareApplication.java:165)
at com.phurnace.deliver.compare.api.CompareApplication.start(CompareApplication.java:128)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Please advise on why its having issue in RHEL and not in windows. I am attaching the setupDeliver.properties file also.
Thanks and Regards,
Ashwin