WARNING: Ignoring blank message This is just because you have the file starting with the $ separator, so the RJE parser expects a message first. The separator should only be present between two messages. Exception in thread "main" java.lang.NullPointerException at com.swift.testproject.swiftParse.main(swiftParse.java:56) This is a general Java issue in your program. You are probably calling a getter to an object that is null because it is not present in your message sample. You should check for nulls...
Hi, We no longer use the tickets and forum at sourceforge. This type of help queries shoulb be posted ononline forums such s stack overflow. And if it were a bug it should go to https://github.com/prowide/prowide-core/issues You might also consider subscribing to professional support to received detailed help integrating the library in your project: https://www.prowidesoftware.com/services Regards
Validation function
Hi, Please in the future post tickets at: https://github.com/prowide/prowide-core/issues We no longer use this ticket tracking in SourceForge. As for your questions, that's the expected behaviour. The isType mehtod uses the block 2 data to identify the message type. Then the field gentters in the MT class will return null for any field that is not found. Notice the Prowide Core library does not validate the message content. The parser and model are designed and implemented to be lenient on purpose....
You can always access the repository https://github.com/prowide/prowide-core-examples and browse to the examples. The one you are looking for is at: src/main/java/com/prowidesoftware/swift/samples/core/ParseMT940TransactionsExample.java