tilln / jmeter-iso8583

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

ERROR while sending request to switch #50

Closed knav28 closed 2 years ago

knav28 commented 2 years ago

@tilln

I am facing below issue while sending request to switch . Using this plugin first time .

pls find attached screen shot for details 66CE2417-0515-4E1E-99E4-5CF1798828A9

tilln commented 2 years ago

Hi @knav28

jmeter.iso8583.channelReconnectDelay has to be a value in milliseconds rather than true or false.

mchhil-incomm commented 2 years ago

There is a possibility that you have configured the property jmeter.iso8583.channelReconnectDelay= true instead of using a number.

This guess is based on your plugin is using jpos 2.1.6 and ChannelAdaptor Line 274 is trying to parse the long value of reconnect-delay. https://github.com/jpos/jPOS/blob/v2_1_6/jpos/src/main/java/org/jpos/q2/iso/ChannelAdaptor.java#L274-L275

tilln commented 2 years ago

@mchhil

My guess exactly, except I spotted the jPOS version number 2.1.4 at the bottom of the screenshot :-)

knav28 commented 2 years ago

Thanks for your response

i am still facing some exception like in screen shot and also attached properties of jmeter for your Refference . So pls suggest on this issue and need any changes in properties too.

pls share me the location for latest jmeter plugin if jmeter-iso8583-1.2.jar that I am using it now is not the correct one. ![Uploading CE960B60-4365-4136-8FCA-555736D1A4B7.jpeg…]()

knav28 commented 2 years ago

1BAE0985-C4DF-41CD-8F92-25DC044E24C1

knav28 commented 2 years ago

![Uploading image.jpg…]()

mchhil-incomm commented 2 years ago

You could make it easier by posting the text of the log instead of images.

knav28 commented 2 years ago

Ok .. is there way to know connection established to server from jmeter ?.. it looks like my request is not reaching to server .

Now I could see below error in log

read timeout / EOF -reconnecting

knav28 commented 2 years ago

Any suggestion on my issue above ?

chhil commented 2 years ago

There is probably a connection and the jmeter plugin is waiting to receive data and at the tcp level a SO_TIMEOUT occurs. Readtimeout is a normal java tcp exception. Its also possible your configuration is not correct and causing read timeouts.

You can use a normal netstat command to check if the connection is there.

knav28 commented 2 years ago

Thanks ! It looks like connection is not there as port and ip using in jmeter is not displayed in netstat command list .

is there way to establish connection from jmeter and to listen server port and ip ?

chhil commented 2 years ago

It's clearly mentioned in the usage section on the main page. Leave the hostname blank and set the port number you want to listen on.

https://github.com/tilln/jmeter-iso8583#iso8583-connection-configuration

Hostname:
Client mode (JMeter connects to switch socket): Name or IP address of the switch to connect to.
Server mode (switch connects to JMeter socket): Leave blank. JMeter will wait for incoming connection from the switch before starting threads (timeout configurable via JMeter property jmeter.iso8583.incomingConnectionTimeout).
no-response[bot] commented 2 years ago

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.