Message missing the first 4 digits using hexchannel

79 views
Skip to first unread message

Rifqi Al Ghazali

unread,
Jan 20, 2023, 3:26:20 AM1/20/23
to jPOS Users
Hi All,

I'm send message  using hexchannel, before send message I'm print raw looks ok and see from log message ok.
But on simulator read message missing the first 4 digit. 

Is there any configuration missing?

* my channel config

<channel-adaptor name="xxx-channel" class="org.jpos.q2.iso.ChannelAdaptor" logger="Q2-xxx-logger">
    <channel class="org.jpos.iso.channel.HEXChannel" logger="Q2-matrix-logger" packager= "org.jpos.iso.packager.GenericPackager" >
        <property name="host" value="xxx.xxx" />
        <property name="port" value="xxx" />
        <property name="timeout" value="300000" />
        <property name="keep-alive" value="true" />
        <property name="packager-config" value="xxx" />
        <property name="packager-logger" value="Q2-xxx-logger" />
        <property name="packager-realm" value="Q2-xxx-channel" />
    </channel>
    <in>xxx-send</in>
    <out>xxx-receive</out>
    <reconnect-delay>10000</reconnect-delay>
</channel-adaptor> 

* Raw message 
raw.PNG

* Simulator receive
Simulator.PNG

Thanks and regards,
Rifqi


Mark Salter

unread,
Jan 20, 2023, 3:32:41 AM1/20/23
to jpos-...@googlegroups.com
What format of message length is the Simulatore expecting to be present?

The Channel you select has to satisfy it's expectation. If the expected length is not present or is incorrectly formatted then the Simulator will try but get odd results.

Here it seems that the first two bytes of the MTI have been taken as a length or perhaps a message header (missing, so the MTI has been absorbed).

Check your Simulator network parsing needs and match it to the message (or vice versa).


-- 
Mark


Sent from Proton Mail mobile



-------- Original Message --------
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/6c16af25-36cb-4cc9-b5e5-e07c0ec7e7a7n%40googlegroups.com.
signature.asc

Alejandro Revilla

unread,
Jan 20, 2023, 7:24:23 AM1/20/23
to jpos-...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages