Author |
Message
|
Sosed |
Posted: Tue Aug 28, 2012 11:30 pm Post subject: mqsicreatebar.exe crashes |
|
|
Apprentice
Joined: 24 Aug 2012 Posts: 43
|
Hi
Folks, please, help me.
I use WBM 7.
I was testing automatic deploy. So i tried to execute mqsicreatebar, mqsideploy on first machine (unix). They have done with success.
Then i tried to execute mqsicreatebar on second machine (windows XP Professional Service Pack 3). I created a copy of workspace (workspace for tests, have one project with one simple msgflow. There is no errors/warnings in the workspace.) First, i created Ant build.xml. It looks like:
Code: |
<?xml version="1.0"?>
<project name="project" default="run">
<target name="run" description="">
<property name="toolkit.home" value="C:\Program Files\IBM\WMBT700" />
<property name="ant.bars.basedir" value="C:\Documents and Settings\sberdyshev\IBM\wmbt70\DeploymentBars" />
<property name="workspaces.dir" value="C:\Documents and Settings\sberdyshev\IBM\wmbt70\test_workspace" />
<property name="bar.name" value="${ant.bars.basedir}\test123.bar" />
<antcall target="mqsicreatebar.buildbar" />
</target>
<!--
Target to build the broker archive using mqsicreatebar
-->
<target name="mqsicreatebar.buildbar">
<echo message="Building Broker Archive file: ${bar.name} " />
<exec executable="${toolkit.home}\mqsicreatebar.exe" spawn="false">
<arg value="-data" />
<arg value="${workspaces.dir}" />
<arg value="-b" />
<arg value="${bar.name}" />
<arg value="-p" />
<arg value="TestDeployment" />
<arg value="-o" />
<arg value="TestDeployment\Test.msgflow" />
</exec>
<echo message="Completed building Broker Archive file - ${bar.name} " />
</target>
</project> |
Then, i executed it by my WMB Toolkit 7.0.0.1 (External Tools Configuration -> Ant build), and i got following output:
Code: |
Buildfile: C:\Documents and Settings\sberdyshev\IBM\wmbt70\workspace\Test\build.xml
run:
mqsicreatebar.buildbar:
[echo] Building Broker Archive file: C:\Documents and Settings\sberdyshev\IBM\wmbt70\DeploymentBars\test123.bar
[exec] Result: -1073740972
[echo] Completed building Broker Archive file - C:\Documents and Settings\sberdyshev\IBM\wmbt70\DeploymentBars\test123.bar
BUILD SUCCESSFUL
Total time: 2 seconds |
But, Windows showed me a message about mqsicreabar.exe crash. (I can post this message, if it needed). I have the same error code http://www.mqseries.net/phpBB/viewtopic.php?p=314292&sid=a561a660e0171cb3a45ec44c1c6b8222
And BAR file wasn't created.
Then, i executed mqsicreatebar from windows command promt and got: "mqsicreatebar" is not recognized as an internal or external command, operable program or batch file.
I changed directory to C:\Program Files\IBM\WMBT700, and tried again, but it failed (with the same crash message).
But, mqsireadbar.exe works well. When i run it, i got result:
Code: |
C:\Program Files\IBM\WMBT700>mqsireadbar.exe
BIP1048I: This command displays information about a broker archive file.
Syntax:
mqsireadbar -b barFileName [-v traceFileName] Command options:
'-b barFileName' The name of the bar file to display.
'-v traceFileName' Verbose internal trace is sent to the specified file. |
I didn't find anything usefull here, most people advices to rise a PMR. And there is nothing usefull on the web.
Any ideas about it? |
|
Back to top |
|
 |
Sosed |
Posted: Wed Aug 29, 2012 12:19 am Post subject: |
|
|
Apprentice
Joined: 24 Aug 2012 Posts: 43
|
at Windows event log i found:
Quote: |
Application error in mqsicreatebar.exe, version 0.0.0.0, module msvcr80.dll, version 8.0.50727.4053, address 0x00012331. |
May be information about msvcr80.dll could help. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 29, 2012 4:49 am Post subject: Re: mqsicreatebar.exe crashes |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Sosed wrote: |
Then, i executed mqsicreatebar from windows command promt and got: "mqsicreatebar" is not recognized as an internal or external command, operable program or batch file. |
Which means you're issuing the command from a Windows command prompt not the WMB Command Console, i.e. a command prompt in which mqsiprofile is not in effect.
Sosed wrote: |
I changed directory to C:\Program Files\IBM\WMBT700, and tried again, but it failed (with the same crash message). |
It would. See above.
Sosed wrote: |
But, mqsireadbar.exe works well. |
It does. You can fluke that command in this way. It's still not the right environment.
Sosed wrote: |
I didn't find anything usefull here, most people advices to rise a PMR. |
What's not useful about that advice? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Aug 29, 2012 4:59 am Post subject: Re: mqsicreatebar.exe crashes |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
Sosed wrote: |
Then, i executed mqsicreatebar from windows command promt and got: "mqsicreatebar" is not recognized as an internal or external command, operable program or batch file. |
Which means you're issuing the command from a Windows command prompt not the WMB Command Console, i.e. a command prompt in which mqsiprofile is not in effect. |
Except mqsicreatebar is a Toolkit command and not a Runtime command. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Aug 29, 2012 5:00 am Post subject: Re: mqsicreatebar.exe crashes |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
Vitor wrote: |
Sosed wrote: |
Then, i executed mqsicreatebar from windows command promt and got: "mqsicreatebar" is not recognized as an internal or external command, operable program or batch file. |
Which means you're issuing the command from a Windows command prompt not the WMB Command Console, i.e. a command prompt in which mqsiprofile is not in effect. |
Except mqsicreatebar is a Toolkit command and not a Runtime command. |
Really? And you don't need mqsiprofile for it?
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Aug 29, 2012 5:01 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Make mqsicreatebar work first interactively, then transpose that command to Ant. Don't try to do Ant first.
There is nothing wrong with the mqsicreatebar executable. Sometimes the human needs adjustment. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Sosed |
Posted: Wed Aug 29, 2012 5:45 am Post subject: |
|
|
Apprentice
Joined: 24 Aug 2012 Posts: 43
|
Thanks for your reply!
Quote: |
Quote: |
Sosed wrote:
I changed directory to C:\Program Files\IBM\WMBT700, and tried again, but it failed (with the same crash message). |
It would. See above.
|
crash message is
Quote: |
Application error in mqsicreatebar.exe, version 0.0.0.0, module msvcr80.dll, version 8.0.50727.4053, address 0x00012331. |
but not
Quote: |
"mqsicreatebar" is not recognized as an internal or external command, operable program or batch file. |
The last message appears because i didn't run mqsiprofile.
File "mqsicreatebar.exe" is in the foldel C:\Program Files\IBM\WMBT700, and when i execute it manually, i have tha same crash message "application error...".
Manually executing another commands is not rising any error:
C:\Program Files\IBM\WMBT700\mqsiapplybaroverride.exe
C:\Program Files\IBM\WMBT700\mqsicreatemsgdefs.exe
C:\Program Files\IBM\WMBT700\mqsicreatemsgdefsfromwsdl.exe
C:\Program Files\IBM\WMBT700\mqsireadbar.exe
Quote: |
Quote: |
Sosed wrote:
I didn't find anything usefull here, most people advices to rise a PMR. |
What's not useful about that advice? |
Do you think that PMR is only way to solve this problem? |
|
Back to top |
|
 |
Sosed |
Posted: Wed Aug 29, 2012 5:49 am Post subject: |
|
|
Apprentice
Joined: 24 Aug 2012 Posts: 43
|
I want to attach screen shot with that error, may be it will help. But I don't know how could i do it. Also, all error description in Russian, but i will traslate it. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Aug 29, 2012 6:17 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Quote: |
File "mqsicreatebar.exe" is in the foldel C:\Program Files\IBM\WMBT700, and when i execute it manually, i have tha same crash message "application error...". |
Means the arguments you are passing into the command are incorrect. Fix the arguments and the command will work correctly. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Aug 29, 2012 6:18 am Post subject: Re: mqsicreatebar.exe crashes |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Sosed wrote: |
I use WBM 7. Any ideas about it? |
WMB version numbers have 4 digits. Hopefully you are on 7.0.0.4 or later. What version is your toolkit? Help -> About... _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Last edited by lancelotlinc on Wed Aug 29, 2012 6:19 am; edited 1 time in total |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Aug 29, 2012 6:19 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Sosed wrote: |
I want to attach screen shot with that error, may be it will help. But I don't know how could i do it. Also, all error description in Russian, but i will traslate it. |
No it wont help because we already know the root cause. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Aug 29, 2012 6:26 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Don't forget to add your hockey stick quote marks in both your interactive command and your Ant file:
Code: |
<property name="bfo9.name.i" value=""${source.home}/bfo/${_barname}_${destination.os.name.i}_${system.name.i}.bfo"" /> |
_________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
Sosed |
Posted: Thu Aug 30, 2012 12:18 am Post subject: |
|
|
Apprentice
Joined: 24 Aug 2012 Posts: 43
|
Thank you for your help.
lancelotlinc wrote: |
Quote: |
File "mqsicreatebar.exe" is in the foldel C:\Program Files\IBM\WMBT700, and when i execute it manually, i have tha same crash message "application error...". |
Means the arguments you are passing into the command are incorrect. Fix the arguments and the command will work correctly. |
Now i execute this command with arguments:
Code: |
C:\Program Files\IBM\WMBT700>mqsireadbar
BIP1048I: This command displays information about a broker archive file.
Syntax:
mqsireadbar -b barFileName [-v traceFileName] Command options:
'-b barFileName' The name of the bar file to display.
'-v traceFileName' Verbose internal trace is sent to the specified file.
C:\Program Files\IBM\WMBT700>mqsicreatebar
C:\Program Files\IBM\WMBT700>mqsicreatebar.exe
C:\Program Files\IBM\WMBT700>mqsicreatebar.exe -data C:\Documents and Settings\sberdyshev\IBM\wmbt70\test_workspace -b C:\Documents and Settings\sberdyshev\IBM\wmbt70\test_workspace\TestDeployment\test123.bar -o TestDeployment\Test.msgflow -p TestDeployment
C:\Program Files\IBM\WMBT700> |
And i get the same application error. Every time I execute this command, I see Winows error and that's all. I get no response (even no response with code like "BIP0957 Incorrect arguments supplied to mqsicreatebar").
I execute the same command with the similar argument on another machine (unix). I use a copy of workspace. And i get success:
Code: |
mqsicreatebar -data /app/mqsi/logs/test_workspace -b /app/mqsi/logs/test_workspace/TestDeployment/test123.bar -o TestDeployment/Test.msgflow -p TestDeployment |
lancelotlinc wrote: |
WMB version numbers have 4 digits. Hopefully you are on 7.0.0.4 or later. What version is your toolkit? Help -> About...
|
Yes, I already have told about version:
Sosed wrote: |
Then, i executed it by my WMB Toolkit 7.0.0.1 (External Tools Configuration -> Ant build), and i got following output: |
lancelotlinc wrote: |
Don't forget to add your hockey stick quote marks in both your interactive command and your Ant file:
Code: |
<property name="bfo9.name.i" value=""${source.home}/bfo/${_barname}_${destination.os.name.i}_${system.name.i}.bfo"" /> |
|
Thank you for your advise, lancelotlinc. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Aug 30, 2012 4:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So you tried it on a separate machine with the same arguments and the same inputs, and it worked.
That means you need to reinstall Toolkit on the machine that doesn't work. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Thu Aug 30, 2012 4:55 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
You forgot your quotes:
Code: |
C:\Program Files\IBM\WMBT700>mqsicreatebar.exe -data C:\Documents and Settings\sberdyshev\IBM\wmbt70\test_workspace -b C:\Documents and Settings\sberdyshev\IBM\wmbt70\test_workspace\TestDeployment\test123.bar -o TestDeployment\Test.msgflow -p TestDeployment |
You have spaces in
Code: |
C:\Documents and Settings\sberdyshev\IBM\wmbt70\test_workspace
|
which is why you need quotes.
Like so:
Code: |
'C:\Documents and Settings\sberdyshev\IBM\wmbt70\test_workspace'
|
You also need to update your toolkit. It is very far out of date. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|