I am implementing an ATM Simulator that receives ISO8583 msg from a client and decompresses it using the jPOS library. An error occurred while unpacking my message: "Error decompression field 102: negativearraysizeexception". I investigated this error and thought about adding a registrar to my program so that when printing I get information about what data goes to which field.
The code that I am including in an existing Java application is as follows:
Logger logger = new Logger(); logger.addListener (new SimpleLogListener(System.out)); ((LogSource)p).setLogger(logger, "debug");
This gives me a compilation error since 1- Constructor Logger () is undefined
2- addListener method undefined for Logger type
3 LogSource cannot be allowed for type
Help me solve these errors. Any help would be greatly appreciated. Thanks in advance.
source share