App Connect

 View Only
Expand all | Collapse all

mqsicreatebar for Project with MessageSets ACE 12

  • 1.  mqsicreatebar for Project with MessageSets ACE 12

    Posted Tue May 23, 2023 08:43 AM

    Hi Community

    I am running a Jenkins job to remotely deploy to an integration server; it is configured to build using "Execute Windows batch command"

    Below is the mqsicreatebar command it runs, but it fails to Add messageSet file to BAR Model.

    I have tried only with -deployAsSource
    then with only -compileOnly, which results in more errors. 
    and with both -compileOnly and -deployAsSource

    Please assist. 

    [ERROR]  { Error adding to BAR Model. fileToAdd: L/msCustomer/msCustomer/messageSet.mset }  - java.lang.IllegalStateException: Workbench has not been created yet.
    13:44:20      [exec] [2023/05/09/13:44:20] [ERROR]  { Error adding to BAR Model. fileToAdd: L/CustomerAPI/.project }  - com.ibm.etools.mft.bar.model.BrokerArchiveException
    [INFO] CommandProcessor: process { mqsicreatebar arguments: } 
    16:29:48      [exec] [2023/05/19/16:29:48] [INFO] CommandProcessor: process { [-showlocation, -b, C:\BUILDBARFILES_ACE\CustomerAPI\CustomerAPI20230519.bar, -a, CustomerAPI, -l, generalFlows, -compileOnly, -deployAsSource, -cleanBuild, -wmbtData] } 


    ------------------------------
    Boitumelo Mthethwa
    ------------------------------


  • 2.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Wed May 24, 2023 02:11 AM

    Hi Boitumelo

    The error "Workbench has not been created yet" suggests that your build environment is not setup properly. Mqsicreatebar starts a headless eclipse instance, when working on linux you need to emulate a virtual environment with xfvb-run in order to run mqsicreatebar. Not sure how this is handled by jenkins windows batch commands, but they would need to start a graphical environment and that might be the issue here. 

    If you are using v11 or v12 try switching to 
    ibmint package

    it is more tailured to be used in build pipelines.



    ------------------------------
    Regards
    Matthias Blomme
    ------------------------------



  • 3.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Thu June 01, 2023 07:38 AM

    Hi Matthias

    What I tried was changing the path to a new workspace.
    I get the below.

    I will have a look into ibmint package

    Thanks

    16:24:13 mqsicreatebar:
    16:24:13      [echo] Building Broker Archive file: CustomerAPI20230524.bar 
    16:24:16      [exec] [2023/05/24/16:24:16] [INFO] CommandProcessor: parseArgs { Adding file to compile list: CustomerAPI/.project } 
    16:24:16      [exec] [2023/05/24/16:24:16] [INFO] CommandProcessor: parseArgs { Adding file to compile list: generalFlows/.project } 
    16:24:16      [exec] [2023/05/24/16:24:16] [INFO] CommandProcessor: process { mqsicreatebar arguments: } 
    16:24:16      [exec] [2023/05/24/16:24:16] [INFO] CommandProcessor: process { [-showlocation, -b, C:\BUILDBARFILES_ACE\CustomerAPI\CustomerAPI20230524.bar, -a, CustomerAPI, -l, commonFlows, -deployAsSource, -cleanBuild, -wmbtData] } 
    16:24:17      [exec] [2023/05/24/16:24:17] [INFO] CommandProcessor: process { Disable auto-build before opening the projects } 
    16:24:17      [exec] [2023/05/24/16:24:17] [INFO] CommandProcessor: openWorkspace {  } 
    16:24:17      [exec] [2023/05/24/16:24:17] [INFO] CommandProcessor: openWorkspace { List of applications to be processed: CustomerAPI} 
    16:24:17      [exec] BIP0960E Incorrect "-a", "-l", "-s", "-p", or "-o" argument supplied to mqsicreatebar.
    16:24:17      [exec] 
    16:24:17      [exec] Project directory "CustomerAPI" does not exist.
    16:24:17      [exec] 
    16:24:17      [exec] 
    16:24:17      [exec] [2023/05/24/16:24:17] [INFO] CommandProcessor: projectToAddorOpen { Required project "CustomerAPI" does not exist on the file system } 
    16:24:19      [exec] Result: 1


    ------------------------------
    Boitumelo Mthethwa
    ------------------------------



  • 4.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Fri June 02, 2023 05:34 AM

    Hi Boitumelo

    You are missing the project you want to build apparently

    "CustomerAPI" does not exist on the file system 

    Have a look here: https://community.ibm.com/community/user/integration/blogs/matthias-blomme/2023/05/23/ace-bar-build-commands-unraveling-the-differences?CommunityKey=77544459-9fda-40da-ae0b-fc8c76f0ce18

    It describes different ways of packaging, including ibm int



    ------------------------------
    Regards
    Matthias Blomme
    ------------------------------



  • 5.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Wed May 24, 2023 03:41 AM

    Hello Boitumelo,   
      Here are a couple of suggestions for you.  
    1) If the mqsicreatebar command is actually running on windows then one possibility is windows defender causing issues if you are using windows defender: 
    Resolving errors that occur when using the IBM App Connect Enterprise Toolkit - IBM Documentation 
    2) Ensure there is no other toolkit using the same workspace when you run the command.   
    Regards, 



    ------------------------------
    Paul Lacy
    ------------------------------



  • 6.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Wed May 31, 2023 08:04 AM

    Hi Paul

    I have a look at this as well and verify.



    ------------------------------
    Boitumelo Mthethwa
    ------------------------------



  • 7.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Wed May 24, 2023 04:26 AM

    Hello Boitumelo ,
     I have just remembered that  there is a defect on 12.0.8.0 that would cause the problem you are seeing. 
    If you are on 12.0.8 then you could either try 12.0.7.0 or request a fix from IBM support and mention defect 95158. 
    To confirm that this is the case then take a look at the your workspace .log file which under the workspace\.metadata directory   and you will something like this:
    ava.lang.IllegalStateException: Workbench has not been created yet.
            at org.eclipse.ui.PlatformUI.getWorkbench(PlatformUI.java:99)
            at org.eclipse.ui.plugin.AbstractUIPlugin.getWorkbench(AbstractUIPlugin.java:293)
            at com.ibm.etools.fcb.plugin.FCBUtils.getActiveFCBGraphicalEditorPart(FCBUtils.java:397)
            at com.ibm.etools.mft.xpath.internal.properties.MFTXPathPropertyEditor.<init>(MFTXPathPropertyEditor.java:108)
            at com.ibm.etools.mft.ibmnodes.editors.xpath.XPathReadOnlyPropertyEditor.<init>(XPathReadOnlyPropertyEditor.java:47)
            at com.ibm.etools.mft.ibmnodes.validators.HTTPHeaderNodeValidator.validateNodeProperties(HTTPHeaderNodeValidator.java:126)
            at com.ibm.etools.mft.flow.builder.MessageFlowValidator.validateNode(MessageFlowValidator.java:640)

    Regards, 



    ------------------------------
    Paul Lacy
    ------------------------------



  • 8.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Wed May 31, 2023 08:03 AM
      |   view attached

    Hi Paul

    Thanks for your reply. I am using 12.0.1.0.
    Please find the attached log.
    I did not see that specific error.

    Thanks



    ------------------------------
    Boitumelo Mthethwa
    ------------------------------

    Attachment(s)

    log
    .log   15 KB 1 version


  • 9.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Mon June 05, 2023 05:07 AM

    Hello Boitumelo,

    There was an issue in 12.0.1.0 and that matches you  .log entry . 

     If you move to 12.0.2.0 or higher then it should resolve that issue.   

    Regards,  



    ------------------------------
    Paul Lacy
    ------------------------------



  • 10.  RE: mqsicreatebar for Project with MessageSets ACE 12

    Posted Fri June 09, 2023 09:33 AM

    Hi Paul

    I moved to a higher version and this helped as i was able to deploy with no errors.

    Thank you.



    ------------------------------
    Boitumelo Mthethwa
    ------------------------------