Postillion TermApp.ISO 5.2 - JPOS Error

25 views
Skip to first unread message

okay chakanyuka

unread,
Jun 25, 2026, 8:03:16 AMJun 25
to jpos-...@googlegroups.com
Good day


Kindly assist am getting the following error when sending message to Postillion TermApp.ISO 5.2:


[Jun 25 13h12:45.005] - CONNECT FROM X,62331

A connection was made to NixBridge SAP EcoMerchPOSPrimSvr. Other details: 
CONNECT FROM X,62331
[Informational event 10001]

 [Jun 25 13h12:45.129] - <8048> DATA RECEIVED FROM X,62331.

 8048:

   [Fixed  n       6 006] 003 [400000] 
   [Fixed  n      10 010] 007 [0000000000] 
   [Fixed  n       8 008] 008 [62511124] 
   [Fixed  n       3 003] 020 [524] 
   [Fixed  ans    12 012] 037 [389700000013] 
   [Fixed  ans     6 006] 038 [124580]

binary data

0000(0000)  31 38 30 34 38 32 33 30  30 31 30 30 30 30 43 30   18048230010000C0
0016(0010)  30 30 30 30 30 34 30 30  30 30 30 30 30 30 30 30   0000040000000000
0032(0020)  30 30 30 30 30 36 32 35  31 31 31 32 34 35 32 34   0000062511124524
0048(0030)  33 38 39 37 30 30 30 30  30 30 31 33 31 32 34 35   3897000000131245
0064(0040)  38 30                                              80

[Jun 25 13h12:45.129] - Error event 30002

No message key could be derived for an incoming message (see event data) on 
NixBridge SAP EcoMerchPOSPrimSvr.
binary data

0000(0000)  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a   ****************
0016(0010)  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a   ****************
0032(0020)  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a   ****************
0048(0030)  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a   ****************
0064(0040)  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a 2a 2a 2a   ****************
0080(0050)  2a 2a 2a 2a 2a 2a 2a 2a  2a 2a 2a 2a 2a            *************

[Error event 30002]

Am using ISO93APackager in JPOS and when i send am seeing message

<isomsg>

  <!-- org.jpos.iso.packager.ISO93APackager -->

  <field id="0" value="1804"/>

  <field id="7" value="0625111245"/>

  <field id="11" value="243897"/>

  <field id="12" value="131245"/>

  <field id="24" value="805"/>

  <field id="41" value="29000600"/>

  <field id="42" value="FX0000050000001"/>

  <field id="70" value="301"/>

</isomsg>


Sending using using this code



EchoResponse resp = null;

try {


ISO93APackager  packager = new ISO93APackager();

ISOChannel channel = new PostChannel(ip, port, packager);

channel.connect();

ISOMsg isoMsg = new ISOMsg();

isoMsg.setPackager(packager);

isoMsg.setMTI("1804");

LocalDateTime todayUTC = LocalDateTime.now(Clock.systemUTC());

LocalTime transactionLocalTime = LocalTime.now();

LocalDate transactionLocalDate = LocalDate.now();

DateTimeFormatter transmissionDateTimeDateFormatter = DateTimeFormatter.ofPattern("MMddHHmmss");

DateTimeFormatter transactionLocalDateFormatter = DateTimeFormatter.ofPattern("MMdd");

isoMsg.set(7, transmissionDateTimeDateFormatter.format(todayUTC)); //MMddHHmmss

Random rand = new Random();

long stanNextValue = rand.nextInt(999999); 

isoMsg.set(11, String.valueOf(stanNextValue)); //STAN

DateTimeFormatter localTimeDateTimeFormatter = DateTimeFormatter.ofPattern("HHmmss");

isoMsg.set(12, localTimeDateTimeFormatter.format(transactionLocalTime)); //HHmmss

isoMsg.set(24, "805");

isoMsg.set(41, "29000600");

isoMsg.set(42, "FX0000050000001");

isoMsg.setPackager(packager);

System.out.println("\n====================Request======================\n");

isoMsg.dump(System.out, "");

System.out.println("\n==================================================\n");

isoMsg.pack(System.out);

channel.send(isoMsg);

ISOMsg response = channel.receive();

System.out.println("\n=====================Response==================\n");

response.dump(System.out, "");

System.out.println("\n================================================\n");

channel.disconnect();


final String successCode = response.getString("39");


String respDes = "";


if (successCode.equals("00")) {

respDes = "Transaction successful";

} else {

respDes = "Transaction failed";

}

System.out.println("respDes: "+ respDes);

return resp = new EchoResponse(successCode, respDes, ip, port.toString());

} catch (Exception e) {

System.out.println("Error: "+ e.getMessage());

return null;


Kindly assist with where i am getting it wrong.

Andrés Alcarraz

unread,
Jun 26, 2026, 7:20:38 PMJun 26
to jpos-...@googlegroups.com

Hi.

It looks like there is a misalignment, at some point, why did you choose that packager?

I’m not familiar with Postilion, so I don’t know its log format, the 8408: looks like the last 3 digits of your MTI and the first of the bitmap. I don’t know if that is the MTI read by Postilion or something else, but somehow it is omitting the first byte (1), that looks like a question for the other side or Postilion. The weird thing is that it is showing the first byte in the binary data.

Apart from that, your ISO message XML does not match your code, are you sure that is the same code you used for your test?

Kind regards.

Andrés Alcarraz
--
--
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 visit https://groups.google.com/d/msgid/jpos-users/CAE%2Bycam41ERdQmJLAko0AjTr2QdA5zU_BB7KTsdpPZWJBLH--w%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages