I am implementing ATM Simulator, which accepts ISO8583 msg from client and unpack it using jPOS library.
Error that has occured while unpacking my msg is : "error unpacking field 102: negativearraysizeexception" .
I researched about this error and thought about adding logger to my program so that on printing, i would get the information on which data is going into which field.
Code that i include in my existing java application is as follows :
Logger logger = new Logger();
logger.addListener (new SimpleLogListener(System.out));
((LogSource)p).setLogger(logger, "debug");// p is my ISOPackger
It is giving me compilation error as
1- Constructor Logger() is undefined
2- Method addListener is undefined for type Logger
3- LogSource cannot be resolved to a type
Help me in solving these errors. Any help would be appreciated. Thanks in advance.