# Input field from java is not being set to Applinx path procedure input field.

**URL:** <https://techcommunity.softwareag.com/t/input-field-from-java-is-not-being-set-to-applinx-path-procedure-input-field/176652>\
**Category:** Forum\
**Tags:** Mainframe-Integration, ApplinX\
**Created:** [May 27, 2014, 9:50pm UTC](https://techcommunity.softwareag.com/t/input-field-from-java-is-not-being-set-to-applinx-path-procedure-input-field/176652 "2014-05-27T21:50:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![janu\_b](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@janu\_b](https://techcommunity.softwareag.com/u/janu_b)\
**Post date:** [May 27, 2014, 9:50pm UTC](https://techcommunity.softwareag.com/t/input-field-from-java-is-not-being-set-to-applinx-path-procedure-input-field/176652/1 "2014-05-27T21:50:38Z")

</div>

Hi,

Please see the below Input from java and output from applinx debug log file. Please note that the field highlighted in bold is not being set to the input of applinx path procedure. Please let me know the probable reason or solution for it?

Input from java application: -

AgeOldestRequest request = new AgeOldestRequest();  
request.setCenter(“0”);  
request.setCurrPasswd(logonId2);  
request.setLoginid(logonId1);  
request.setKeyNumber(keyNumber);  
request.setOperator(operator);  
request.setParm(“xxxxx”);  
request.setPasswd(password1);  
request.setSurqa(“xxxxxxxx”);  
AgeOldestResponse resp = surservice.AgeOldest(request);

Below is the debugging log which is not having “keyNumber” as the parameter:

19/05/2014 09:01:05.479\> An error has occurred during a procedure call [/AgeOldest/AgeOldest]. Procedure debug data:  
09:01:04-Starting node path  
09:01:04-Node path (Root) completed.

09:01:04-Starting node Procedure\_1  
Mapping data: In.Center → \_appfield\_Center value: 0  
Mapping data: In.Passwd → \_appfield\_Passwd value: xxxxxxxx  
Mapping data: In.surqa → \_appfield\_surqa value: xxxxx  
Mapping data: In.Parm → \_appfield\_Parm value: xxxxxx  
Mapping data: In.Loginid → \_appfield\_Loginid value: xxxxxx  
Mapping data: In.Operator → \_appfield\_Operator value: xxxxxxx  
Mapping data: In.CurrPasswd → \_appfield\_CurrPasswd value: xxxxxx  
Mapping data: Session.SessionId → SessionId value: xxxxxxxx  
Flow exception occured on [Step07]  
Path: [/Procedure\_1]  
Message: Stopping path /AgeOldest/AgeOldest\_Path\_Procedure: repeat limit reached in step: Step07: 31 repetitions.  
Original Exception: java.lang.Exception: Stopping path /AgeOldest/AgeOldest\_Path\_Procedure: repeat limit reached in step: Step07: 31 repetitions.

---

<div class="post-metadata">

**Author:** ![Gadi](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/gadi/32/16051_2.png) [@Gadi](https://techcommunity.softwareag.com/u/Gadi)\
**Post date:** [May 28, 2014, 1:23pm UTC](https://techcommunity.softwareag.com/t/input-field-from-java-is-not-being-set-to-applinx-path-procedure-input-field/176652/2 "2014-05-28T13:23:34Z")

</div>

Hi,

These are the two reasons that we can think of just from the information presented:

1. If the keyNumber is NULL it will not be mapped to the procedure’s input.
2. If the keyNumber variable was renamed after the procedure was generated.

If these are not the cause of the problem I suggest opening a support call request and we’ll look into it.  
Please provide us with the GXAR file of the ApplinX application, a suitable GCT file and the generated procedure code.

Regards,  
Gadi

---

<div class="post-metadata">

**Author:** ![janu\_b](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@janu\_b](https://techcommunity.softwareag.com/u/janu_b)\
**Post date:** [May 28, 2014, 3:34pm UTC](https://techcommunity.softwareag.com/t/input-field-from-java-is-not-being-set-to-applinx-path-procedure-input-field/176652/3 "2014-05-28T15:34:51Z")

</div>

Hi Gadi,

I know if we comment the line of keynumber setting to the request like below, it won’t be mapped. I am thinking that as that line is not commented, whatever is the value that passes in keynumber like null, empty space or any other value, my understanding is that it should send to applinx input.

[//request.setKeyNumber](https://request.setKeyNumber)(keyNumber);

As of now, i believe this issue is intermittent. this is not happening to all the user requests. Also i have debugged the path and it is working fine in applinx8.2 designer.

I am currently waiting for the approvals to enable .gct files in production env.

thanks!

---

<div class="post-metadata">

**Author:** ![janu\_b](https://avatars.discourse-cdn.com/v4/letter/j/e9c0ed/32.png) [@janu\_b](https://techcommunity.softwareag.com/u/janu_b)\
**Post date:** [May 29, 2014, 3:35pm UTC](https://techcommunity.softwareag.com/t/input-field-from-java-is-not-being-set-to-applinx-path-procedure-input-field/176652/4 "2014-05-29T15:35:21Z")

</div>

Hi Gadi,

I have an array in my flow procedure output. I would like to print the contents of the array using “Log Message”.

CountOf(Exec\_Proc\_1\_Out/KeyNumber) —\> this gives size of an array.

I want to print the contents of the array in Exec\_Proc\_1\_Out/KeyNumber using Log Message for logging purposes. Could you please help me how to do it?

thanks,  
Janardhan

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [May 29, 2014, 4:00pm UTC](https://techcommunity.softwareag.com/t/input-field-from-java-is-not-being-set-to-applinx-path-procedure-input-field/176652/5 "2014-05-29T16:00:16Z")

</div>

Hi Janardhan,

You could use the ‘For Each’ node from the ‘Workflow’ drawer to iterate over the array.

The node will show: ‘For each ForEach\_1\_Item in Object where condition’

You should assign the array to the ‘Object’, and add a ‘Mapper’ node (Assignment drawer) as a child node of the ‘For Each’ node.

On the ‘Mapper’ node you could map whatever values you would like according to the index of the 'ForEach\_1\_Item of the ‘For Each’ parent node.

Hope it gives you a general direction, will glad to assist.

Gad,

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:31pm UTC](https://techcommunity.softwareag.com/t/input-field-from-java-is-not-being-set-to-applinx-path-procedure-input-field/176652/6 "2021-04-02T15:31:13Z")

</div>


