Postillion TermApp.ISO 5.2 - JPOS Error

0 views
Skip to first unread message

okay chakanyuka

unread,
8:03 AM (6 hours ago) 8:03 AM
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.

Reply all
Reply to author
Forward
0 new messages