KB Article #182873

OFTP - Outbound response send to incorrect trading pickup

Problem

When we have both tls and non-tls oftp trading pickup configured, the response from customer goes into firstly created oftp TP.

ERROR [Worker66-1135][P/EP: OFTP Stage/ OFTP Stage - OFTP2 TLS] (ProducerTask) - Error producing message ci1690782042053.569381@abc03_te<mailto:ci1690782042053.569381@abc03_te>, ExchangePointId: 298962222, URL: oftp://edi.group.com:6619, Name: OFTP Stage - OFTP2 TLS

com.cyclonecommerce.tradingengine.transport.oftp.protocol.vx.OftpProtocolException: Command Exchange Buffer could not parse byte stream

at com.cyclonecommerce.tradingengine.transport.oftp.protocol.vx.AbstractState.errorReleaseWithException(AbstractState.java:207) ~[interchange-server.jar:26.5.6-8]

at com.cyclonecommerce.tradingengine.transport.oftp.protocol.vx.SpeakerState.startSession(SpeakerState.java:251) ~[interchange-server.jar:26.5.6-8]

Sending file over oftp v2 TLS, file were failing. Community has both TLS and non-TLS oftp Trading pickups configured.

Caused by: java.nio.BufferUnderflowException

at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:178) ~[?:?]

at java.nio.ByteBuffer.get(ByteBuffer.java:762) ~[?:?]

Resolution

When you have both TLS and non-TLS trading pickups created under community end.

The reason is whenever you send a file it creates a binary collaboration and add the firstly created oftp server in the rule and causing this issue.

In order to fix this, there is an option under partner delivery exchange->Advanced TAB-> 'Override local SSID code and password'

Add your Trading pickup OFTP TLS SSID into that and test again.