j8583

j8583 How to get debugString after parseMessage


When I get the debugString() of an IsoMessage that I build, it works fine, but when I try to get the debugString() of an IsoMessage that was created by parsing (mf.parseMessage(..)) the debugString() is empty. The parsing works fine, and the field values are there, but the debugString() returns empty string.

Am I missing something?

Isn't it possible to print the debugString of a parsedMessage?


Solution

  • The problem seems to be Eclipse's console. The debugString starts with a non printable character which seems to cause the problem. When run standalone, the debugString gets printed ok like this:

    ^@p023060180...

    (Notice the ^@p at the begining).