IBM Support

JR49853: ERROR:"TYPE MISMATCH" WHEN RUN A JAVA INTEGRATION.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Scenario:
    
    1. Create a PA with a BPD.
    2. Add a private variable to the BPD and set its type to
    NameValuePair (needs to be a complex object in a toolkit)
    3. Check the Has Default checkbox and notice that the simple
    table editor underneath is populated (do not touch any of the
    fields in the table).
    4. Go to File > Preferences ... > IBM BPM > Capabilities and
    check IBM BPM Advanced Features
    5. Observe that the simple table editor disappears and an
    advanced script editor is in its place
    6. Verify that the script generated has the following first
    line:
    var autoObject = new tw.object.toolkit.TWSYS.NameValuePair();
    7. Repeat step 4 but this time uncheck the advanced features.
    8. Observe that the advance script editor disappears and the
    simple table editor appears (might need to close the BPD editor
    and reopen it for this to actually happen - most likely a
    separate defect).
    9. Edit a single field (ie. name) in the table editor and click
    off of it.
    10. Repeat step 4 to view the advanced editor again.
    11. Observe that the script generated has the following first
    line:
    var autoObject = new tw.object.NameValuePair();
    
    Expected result: The first line in step 11 should be the same as
    step 6.
    
    Actual result: Error "Type mismatch" is displayed to the end
    user, in browser.
    

Local fix

  • 1. In Process Designer, open the Preferences, via File >
    Preferences and navigate to IBM BPM > Capabilities > IBM BPM
    Advanced Features. Select the check box beside this Capability
    to enable it. Press Ok on Preference dialog.
    2. Open the Integration service in question, and navigate to the
    problematic Variable, and select it.
    3. Deselect "Has Default", and reselect it.
    
    Result: Consider a Business object named MyObject which exists
    in the Process app as well as in a depended on Toolkit, with
    acronym MYTLKIT. Once the Advanced capability is enabled to
    reveal the Javascript in the "Has Default" edit area, it can
    be observed that performing the above steps will change the
    first line from,
    
    var autoObject = new tw.object.MyObject
    
    to
    
    var autoObject = new tw.object.MYTLKIT.MyObject
    

Problem summary

  • Affects,
    
    IBM Business Process Manager (BPM) Advanced
    
    IBM BPM Standard
    
    IBM BPM Express
    

Problem conclusion

  • A fix is available for IBM BPM 8.5.0.0. On Fix Central
    (http://www.ibm.com/support/fixcentral), search for JR49853:
    
        1. Select IBM Business Process Manager with your edition
    from the product selector, the installed version to the fix pack
    level, and your platform, and then click Continue.
        2. Select APAR or SPR, enter JR49853, and click Continue.
    
    When you download fix packages, ensure that you also download
    the readme file for each fix. Review each readme file for
    additional installation instructions and information about the
    fix.
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR49853

  • Reported component name

    BPM ADVANCED

  • Reported component ID

    5725C9400

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-04-02

  • Closed date

    2014-06-02

  • Last modified date

    2014-06-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    BPM ADVANCED

  • Fixed component ID

    5725C9400

Applicable component levels

  • R850 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSFTN5","label":"IBM Business Process Manager Advanced"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.5","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
02 June 2014