IBM Support

User Exit calling Java String method ReplaceAll fails

Troubleshooting


Problem

User Exit calling Java String method ReplaceAll fails

Symptom

Gentran Integration Suite 4.3, build 4312 running on  iSeries V5R3 with DB2

Java user exit in a Gentran Integration Suite map works in GIS 4.0 but fails in GIS 4.3.  This map contains a java user exit which perforns a character replacement function using the Java String method replaceAll(String String).

The map report indicated method not found.  There is a message in the noapp.log referencing a dangling metacharacter pointing to an asterisk.  This user exit was developed specifically to translate an asterisk in mapped field data to a blank, because the asterisk was conflicting with EDI element delimiters downstream from this map.

We discovered that this user exit worked in GIS 4.0 ( Java 1.3.1) but  Java 1.5.0 returns an error which is what Gentran Integration Suite 4.3 is running on. 

Error Message

java.lang.NoSuchMethodException: BfiReplaceAll

Report Entry:
       Section: INPUT       Severity: ERROR
       SyntaxSpecific: false       Syntax: -1        Code: 170 Extended Rule Error
       Info:
              10002: Block Count
              18
              10017: Map Iteration Count
              1
              10003: Block Name
              F47017
              10016: Block Signature Id Tag
              10004: Field Name
              SZDSC2
              10009: Field Number
              11
              10005: Field Data
              26x26                        
              10006: Exception
              java.lang.NoSuchMethodException: BfiReplaceAll
              10019: Location Index

[{"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

To view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use the link to actual document below to access the full document. You will be asked to log on if you are not already logged in. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Historical Number

NFX4994

Document Information

More support for:
IBM Sterling B2B Integrator

Software version:
All

Document number:
188711

Modified date:
14 November 2019

UID

swg21557374

Manage My Notification Subscriptions