Author |
Message
|
sachint20 |
Posted: Thu May 26, 2011 7:14 am Post subject: mqsicreatebar using ANT script |
|
|
Newbie
Joined: 26 May 2011 Posts: 3
|
I am trying to Automate build bar files using ANT script. If anybody has success automating, could you please guide me through process.
Right now I am coping the projects to the workspace and trying to build bar using mqsicreatebar through command line and getting the java null pointer exception. Through toolkit could create the bar file successfully.
Thanks
|
|
Back to top |
|
 |
Vitor |
Posted: Thu May 26, 2011 7:24 am Post subject: Re: mqsicreatebar using ANT script |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sachint20 wrote: |
could you please guide me through process. |
The process is exactly what you seem do be attempting, running the mqsicreatebar inside an Ant script.
sachint20 wrote: |
Right now I am coping the projects to the workspace and trying to build bar using mqsicreatebar through command line and getting the java null pointer exception. |
Are you certain the command line enviroment in which Ant is running the mqsicreatebar has the mqsiprofile correctly sourced? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
sachint20 |
Posted: Thu May 26, 2011 7:42 am Post subject: |
|
|
Newbie
Joined: 26 May 2011 Posts: 3
|
Thanks for the reply, Right now I am trying to create bar file using mqsicreatebar -data..... getting the Java null pointer exception.
Not sure whats wrong with the toolkit could create the bar successfully. once this issue get resolved shall try the same in ANT script.
1) creating a workspace folder
2) copied all the projects
3) ran the mqsicreastebar |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 26, 2011 8:16 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
"getting the java null pointer exception" is not terribly helpful.
Can we see the full text of the mqsicreatebar command you are actually running and the full text of the output messages it produces? |
|
Back to top |
|
 |
sachint20 |
Posted: Thu May 26, 2011 8:50 am Post subject: |
|
|
Newbie
Joined: 26 May 2011 Posts: 3
|
D:\IBM\MQSI\7.0>mqsicreatebar -data D:\wmbt70\Temp3 -b c:\sachinTemp3.bar -p BCBSMI_5010_Common.MF -o BCBSMI_5010_Common.MF\com\bcbsmi\common\ASCII_TO_EBCDIC.msgflow
java.lang.NullPointerException
at org.eclipse.core.internal.runtime.FindSupport.findInPlugin(Unknown Source)
at org.eclipse.core.internal.runtime.FindSupport.find(Unknown Source)
at org.eclipse.core.internal.runtime.FindSupport.find(Unknown Source)
at org.eclipse.core.runtime.FileLocator.find(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getMetaData(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getResourceData(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.populateMessageNotAvailable(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.isMissingRequiredMessageSets(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNode(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNodes(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateMessageFlow(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateMessageFlow(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validate(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowBuilder.processChangedFile(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowBuilder.processAddedFile(Unknown Source)
at com.ibm.etools.mft.builder.AbstractBuilder.buildFiles(Unknown Source)
at com.ibm.etools.mft.builder.AbstractBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.build(Unknown Source)
at org.eclipse.core.internal.resources.Project.internalBuild(Unknown Source)
at org.eclipse.core.internal.resources.Project.build(Unknown Source)
at com.ibm.etools.mft.uri.URIPlugin$1.runInWorkspace(Unknown Source)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
May 26, 2011 12:49:22 PM com.ibm.etools.mft.uri.udn.UDNUtils handleError
SEVERE: null
Throwable occurred: java.lang.NullPointerException
at org.eclipse.core.internal.runtime.FindSupport.findInPlugin(Unknown Source)
at org.eclipse.core.internal.runtime.FindSupport.find(Unknown Source)
at org.eclipse.core.internal.runtime.FindSupport.find(Unknown Source)
at org.eclipse.core.runtime.FileLocator.find(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getMetaData(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getResourceData(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.populateMessageNotAvailable(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.isMissingRequiredMessageSets(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNode(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNodes(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateMessageFlow(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateMessageFlow(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validate(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowBuilder.processChangedFile(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowBuilder.processAddedFile(Unknown Source)
at com.ibm.etools.mft.builder.AbstractBuilder.buildFiles(Unknown Source)
at com.ibm.etools.mft.builder.AbstractBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.build(Unknown Source)
at org.eclipse.core.internal.resources.Project.internalBuild(Unknown Source)
at org.eclipse.core.internal.resources.Project.build(Unknown Source)
at com.ibm.etools.mft.uri.URIPlugin$1.runInWorkspace(Unknown Source)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
java.lang.NullPointerException
at org.eclipse.core.internal.runtime.FindSupport.findInPlugin(Unknown Source)
at org.eclipse.core.internal.runtime.FindSupport.find(Unknown Source)
at org.eclipse.core.internal.runtime.FindSupport.find(Unknown Source)
at org.eclipse.core.runtime.FileLocator.find(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getMetaData(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getResourceData(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.populateMessageNotAvailable(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.isMissingRequiredMessageSets(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNode(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNodes(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateMessageFlow(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateMessageFlow(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validate(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowBuilder.processChangedFile(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowBuilder.processAddedFile(Unknown Source)
at com.ibm.etools.mft.builder.AbstractBuilder.buildFiles(Unknown Source)
at com.ibm.etools.mft.builder.AbstractBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.build(Unknown Source)
at org.eclipse.core.internal.resources.Project.internalBuild(Unknown Source)
at org.eclipse.core.internal.resources.Project.build(Unknown Source)
at com.ibm.etools.mft.uri.URIPlugin$1.runInWorkspace(Unknown Source)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
May 26, 2011 12:49:22 PM com.ibm.etools.mft.uri.udn.UDNUtils handleError
SEVERE: null
Throwable occurred: java.lang.NullPointerException
at org.eclipse.core.internal.runtime.FindSupport.findInPlugin(Unknown Source)
at org.eclipse.core.internal.runtime.FindSupport.find(Unknown Source)
at org.eclipse.core.internal.runtime.FindSupport.find(Unknown Source)
at org.eclipse.core.runtime.FileLocator.find(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getMetaData(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getResourceData(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.getAllMessageSets(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.populateMessageNotAvailable(Unknown Source)
at com.ibm.etools.mft.uri.udn.UDNManager.isMissingRequiredMessageSets(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNode(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNodes(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateMessageFlow(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateMessageFlow(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validate(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowBuilder.processChangedFile(Unknown Source)
at com.ibm.etools.mft.flow.builder.MessageFlowBuilder.processAddedFile(Unknown Source)
at com.ibm.etools.mft.builder.AbstractBuilder.buildFiles(Unknown Source)
at com.ibm.etools.mft.builder.AbstractBuilder.build(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$2.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager$1.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.basicBuild(Unknown Source)
at org.eclipse.core.internal.events.BuildManager.build(Unknown Source)
at org.eclipse.core.internal.resources.Project.internalBuild(Unknown Source)
at org.eclipse.core.internal.resources.Project.build(Unknown Source)
at com.ibm.etools.mft.uri.URIPlugin$1.runInWorkspace(Unknown Source)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Unknown Source)
See if this tells u something..Thanks a lot |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 26, 2011 8:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sachint20 wrote: |
TRight now I am trying to create bar file using mqsicreatebar -data..... getting the Java null pointer exception.
|
I repeat my previous advice and shall attempt to be clearer.
Are you running the mqsicreatebar command from any old command prompt, or from a command prompt in which mqsiprofile has been properly sourced?
It will not work without mqsiprofile. Even if the source code is fine and the Toolkit can build it. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 26, 2011 9:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
sachint20 wrote: |
See if this tells u something.. |
It tells me that the headless eclipse session the command starts can't load the needed plug-ins and other components.
I'm not going to repeat one reason this could happen. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 26, 2011 10:57 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
It will not work without mqsiprofile. Even if the source code is fine and the Toolkit can build it. |
I'm gonna have to disagree with your police work there, Lou.
mqsicreatebar is a Toolkit command. Toolkit commands do not run under the runtime mqsiprofile.
So it may, in face, be that the problem is trying to run it under the mqsiprofile. But it's not as likely.
I'd suspect that the issue is trying to build a message flow that uses a user defined node for which the local toolkit doesn't have a plugin installed...
Or that the Toolkit install is otherwise broken somehow. Make sure it's at the latest FP and iFix level and try again. |
|
Back to top |
|
 |
Vitor |
Posted: Thu May 26, 2011 11:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
mqsicreatebar is a Toolkit command. Toolkit commands do not run under the runtime mqsiprofile. |
Really? It goes crackers with exactly this sort of Java-ish rubbish if I try and run it in a shell that doesn't have mqsiprofile. Then seems to work if I source the profile.
I should just not post on any thread that makes any reference to Java....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
paintpot |
Posted: Fri May 27, 2011 6:44 am Post subject: |
|
|
Centurion
Joined: 19 Sep 2005 Posts: 112 Location: UK
|
Vitor wrote: |
Really? It goes crackers with exactly this sort of Java-ish rubbish if I try and run it in a shell that doesn't have mqsiprofile. Then seems to work if I source the profile. |
We do the same  |
|
Back to top |
|
 |
vininx |
Posted: Tue Nov 29, 2011 8:16 am Post subject: |
|
|
Acolyte
Joined: 13 Oct 2009 Posts: 69
|
Hi All,
I am also getting the above error. I got WTX 8.3 recently installed and I am executing the mqsicreatebar (with a message flow involving a WTX map node) in windows console. The bar is has been built successfully, but on every run this error is also thrown. Is that I am missing anything after WTX installation? Please advise. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Nov 29, 2011 9:00 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Step 1: Uninstall WTX.
Seriously, you can build Bars with Ant and WTX. But why use WTX when standard Broker will give you better performance? WTX is a nuisance. WTX is a legacy product and will be replaced/revamped soon. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|