tilln / jmeter-iso8583

ISO8583 Plugin for JMeter
MIT License
62 stars 32 forks source link

Timeout and no response in jmeter even the server sent to response back #54

Closed maob92 closed 1 year ago

maob92 commented 1 year ago

I had same "timeout" issue today. Tried to look into it but no luck yet. The ISO8583 msg was sent successfully but got a timeout error and no any response showed in JMeter. checked the server log, and the response was sent to jmeter test session. do I have version some issues on sampler, libs, java? or something else? I am using Jmeter 5.4.3, and downloaded ISO8583 Sampler 7/20. can you pls help? The server log and jmeter log are as follows. Thanks for your early response!

iso8583-test-errors.log

tilln commented 1 year ago

Hi @maob92

Thanks for attaching those log files.

They show that the 0810 response message that is sent back to JMeter does not include field DE41.

2022-07-25 14:43:11,081 DEBUG n.c.b.j.i.Q2: (channel/127.0.0.1:9009) [send] Out: 0800 832686 12060412
2022-07-25 14:43:11,293 DEBUG n.c.b.j.i.Q2: (channel/127.0.0.1:9009) [receive]  In: 0810 832686
25-07-22 14:43:11:291:ISS: Message response sent  by Issuer
25-07-22 14:43:11:291:ISS: MessageType                   : 0810
25-07-22 14:43:11:291:ISS: Bitmap                        : 0220000002000000 [7,11,39]
25-07-22 14:43:11:291:ISS: F07_TransmissionDateTime      : 0725144311
25-07-22 14:43:11:291:ISS: F11_SystemTraceAuditNumber    : 832686
25-07-22 14:43:11:291:ISS: F39_ActionCode                : 00

However, DE41 is used (by the underlying jPOS framework) for finding a match between incoming and outgoing messages, i.e. to relate a response to a request.

So even though a response was received, the Mux does not know that it belongs to the request the sampler sent out and therefore times out.

See also the FAQ section.

You would want to change what fields are used for response matching in your ISO8583 Connection Configuration, specifically for 0800 messages:

image

maob92 commented 1 year ago

Hi Tilln, thank you very much for the quick response! after applying what you had suggested, still getting a timeout and nothing in jmeter's response body. also still not seeing the DE41 in the simulator log. interesting.

Both jmeter and simulator logs are in the attached file. iso8583-test-errorslog2.txt

image

Thanks much, Ben

tilln commented 1 year ago

@maob92 I failed to mention that you would have to send a value for DE07 otherwise it would again not be able to match request (with DE11 and DE41) to response (with DE07 and DE11).

maob92 commented 1 year ago

That resolved the timeout issue for 0800 MTI. Thanks so much!