Menu

How to set up ...

Help
2006-11-06
2012-10-23
  • Malte Kempff

    Malte Kempff - 2006-11-06

    Now i am running to a Exception beause of the log4j:

    log4j:WARN No appenders could be found for logger (net.sourceforge.wife.swift.SwiftParser2).
    log4j:WARN Please initialize the log4j system properly.
    java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;
    at net.sourceforge.wife.swift.model.SwiftBlock.<init>(Unknown Source)
    at net.sourceforge.wife.swift.SwiftParser2.consumeBlock(Unknown Source)
    at net.sourceforge.wife.swift.SwiftParser2.message(Unknown Source)
    at de.tai.swiftsplitting.SwiftSplitter.split(SwiftSplitter.java:74)
    at de.tai.swiftsplitting.SwiftSplitter.main(SwiftSplitter.java:123)
    Exception in thread "main"

    I am not realy used to that Logger-Api.
    can u give an example please, may be also in ur next distribution?

    Another thing would also helpful: to a note what API Versions have been used or what particular Versions are the minumum (for the other used libraries in that Project) for a proper working of teh Swiftparser-Library.

    Thank you in advance

    Malte

     
    • Miguel Griffa

      Miguel Griffa - 2006-11-06

      I'm afraid this is another java 1.4 incompatibility. I'm setting a testing environment for java 1.4 now, and I hope to have the hole thing worked out in a few hours or tomorrow early.
      There are two different issues in what you mention:

      java.lang.NoSuchMethodError: java.lang.Integer.valueOf(I)Ljava/lang/Integer;

      missing api in java 1.4 (to be fixed soon)

      and

      log4j:WARN No appenders could be found for logger (net.sourceforge.wife.swift.SwiftParser2).
      log4j:WARN Please initialize the log4j system properly.

      That's because log4j is not initialized, the easiest way to fix this is adding a log4.properties to your classpath with some content similar to this:

      log4j.rootCategory INFO, CONSOLE
      log4j.logger.net.sourceforge.wife.swift.SwiftParser2 DEBUG
      log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
      log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
      log4j.appender.CONSOLE.layout.ConversionPattern = %-5p %F:%L %M() %m %n

      I hope this helps

       
      • Miguel Griffa

        Miguel Griffa - 2006-11-06

        I've just uploaded version 3.1.1, this should version was compiled and tested under java 1.4, please, let me know of any issue.
        Again, thanks for giving us feedback

         
    • Malte Kempff

      Malte Kempff - 2006-11-07

      Hi Miguel,
      thanks for the hint about the logger. I have it now running a bit further but still having some kind of problem.
      The trouble is divided in 2 parts: The first one about the logging...
      I have added the Line PropertyConfigurator.configure("log4.propteries"); in my main routine of my application to get logging from your library.
      Now i tried to get also looging from my application trying to follow some information in the log4j home page. what I did was adding a line in your above suggestion for logging:

      log4j.rootCategory INFO, CONSOLE
      log4j.logger.net.sourceforge.wife.swift.SwiftParser2 FINE
      log4j.logger.de.tai.swiftsplitting.SwiftSplitter FINE
      log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
      log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
      log4j.appender.CONSOLE.layout.ConversionPattern = %-5p %F:%L %M() %m %n

      i used also a static member-variable logger in my application class like this:

      static Logger logger = Logger.getLogger(SwiftSplitter.class.getName());

      but the logger just ignores it :-(

      my second Problem is that i get an Exception while trying to write my swift-msg just having read

      java.lang.UnsupportedOperationException: Can't write block data on block 4
      at net.sourceforge.wife.swift.writer.FINWriterVisitor.tag(Unknown Source)
      at net.sourceforge.wife.swift.model.SwiftMessage.visit(Unknown Source)
      at net.sourceforge.wife.swift.model.SwiftMessage.visit(Unknown Source)
      at net.sourceforge.wife.swift.writer.SwiftWriter.writeMessage(Unknown Source)
      at de.tai.swiftsplitting.SwiftSplitter.split(SwiftSplitter.java:91)
      at de.tai.swiftsplitting.SwiftSplitter.main(SwiftSplitter.java:135)

      here is the logger-output and also some output from my read msg

      gesammelte Swift-Nachricht:
      {1:F01GENODEFFAXXX4321100001}{2:O1030711060804MARKDEFFAXXX12342000010608040711N}{4:
      :20:TEST-IBAN001
      :13C:/SNDTIME/0701+0200
      :13C:/RNCTIME/0701+0200
      :23B:CRED
      :32A:060804EUR18001,01
      :33B:EUR18001,01
      :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      :57A:GENODE51LOS
      :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      :70:TEST IBAN 01P DE
      IBAN KORREKT
      :71A:SHA
      -}{5:{MAC:11111111}{CHK:222222222222}}


      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() start: 1
      DEBUG ?:? readUntilBlockEnds() end: 28
      DEBUG ?:? readUntilBlockEnds() substring from start: 1:F01GENODEFFAXXX4321100001}
      DEBUG ?:? readUntilBlockEnds() len: 27
      DEBUG ?:? consumeBlock() block buffer: "1:F01GENODEFFAXXX4321100001"
      DEBUG ?:? consumeBlock() blockId: 1
      DEBUG ?:? message() first block: [SwiftBlock: id: null number: 1 tags: [[Tag: name: null value: 1:F01GENODEFFAXXX4321100001 sortKey: null]]]
      DEBUG ?:? message() consumed block: [SwiftBlock: id: null number: 1 tags: [[Tag: name: null value: 1:F01GENODEFFAXXX4321100001 sortKey: null]]]
      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() start: 30
      DEBUG ?:? readUntilBlockEnds() end: 79
      DEBUG ?:? readUntilBlockEnds() substring from start: 2:O1030711060804MARKDEFFAXXX12342000010608040711N}
      DEBUG ?:? readUntilBlockEnds() len: 49
      DEBUG ?:? consumeBlock() block buffer: "2:O1030711060804MARKDEFFAXXX12342000010608040711N"
      DEBUG ?:? consumeBlock() blockId: 2
      DEBUG ?:? message() consumed block: [SwiftBlock: id: null number: 2 tags: [[Tag: name: null value: 2:O1030711060804MARKDEFFAXXX12342000010608040711N sortKey: null]]]
      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() start: 81
      DEBUG ?:? readUntilBlockEnds() end: 505
      DEBUG ?:? readUntilBlockEnds() substring from start: 4:
      :20:TEST-IBAN001
      :13C:/SNDTIME/0701+0200
      :13C:/RNCTIME/0701+0200
      :23B:CRED
      :32A:060804EUR18001,01
      :33B:EUR18001,01
      :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      :57A:GENODE51LOS
      :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      :70:TEST IBAN 01P DE
      IBAN KORREKT
      :71A:SHA
      -}
      DEBUG ?:? readUntilBlockEnds() len: 424
      DEBUG ?:? consumeBlock() block buffer: "4:
      :20:TEST-IBAN001
      :13C:/SNDTIME/0701+0200
      :13C:/RNCTIME/0701+0200
      :23B:CRED
      :32A:060804EUR18001,01
      :33B:EUR18001,01
      :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      :57A:GENODE51LOS
      :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      :70:TEST IBAN 01P DE
      IBAN KORREKT
      :71A:SHA
      -"
      DEBUG ?:? consumeBlock() blockId: 4
      DEBUG ?:? getBlock4() l: 4:
      DEBUG ?:? consumeTag() buf: 4:

      DEBUG ?:? getBlock4() consumed: null
      DEBUG ?:? getBlock4() l: :20:TEST-IBAN001
      DEBUG ?:? consumeTag() buf: :20:TEST-IBAN001

      DEBUG ?:? consumeTag() name: 20
      DEBUG ?:? consumeTag() value: TEST-IBAN001
      DEBUG ?:? getBlock4() consumed: [Tag: name: 20 value: TEST-IBAN001 sortKey: null]
      DEBUG ?:? getBlock4() l: :13C:/SNDTIME/0701+0200
      DEBUG ?:? consumeTag() buf: :13C:/SNDTIME/0701+0200

      DEBUG ?:? consumeTag() name: 13C
      DEBUG ?:? consumeTag() value: /SNDTIME/0701+0200
      DEBUG ?:? getBlock4() consumed: [Tag: name: 13C value: /SNDTIME/0701+0200 sortKey: null]
      DEBUG ?:? getBlock4() l: :13C:/RNCTIME/0701+0200
      DEBUG ?:? consumeTag() buf: :13C:/RNCTIME/0701+0200

      DEBUG ?:? consumeTag() name: 13C
      DEBUG ?:? consumeTag() value: /RNCTIME/0701+0200
      DEBUG ?:? getBlock4() consumed: [Tag: name: 13C value: /RNCTIME/0701+0200 sortKey: null]
      DEBUG ?:? getBlock4() l: :23B:CRED
      DEBUG ?:? consumeTag() buf: :23B:CRED

      DEBUG ?:? consumeTag() name: 23B
      DEBUG ?:? consumeTag() value: CRED
      DEBUG ?:? getBlock4() consumed: [Tag: name: 23B value: CRED sortKey: null]
      DEBUG ?:? getBlock4() l: :32A:060804EUR18001,01
      DEBUG ?:? consumeTag() buf: :32A:060804EUR18001,01

      DEBUG ?:? consumeTag() name: 32A
      DEBUG ?:? consumeTag() value: 060804EUR18001,01
      DEBUG ?:? getBlock4() consumed: [Tag: name: 32A value: 060804EUR18001,01 sortKey: null]
      DEBUG ?:? getBlock4() l: :33B:EUR18001,01
      DEBUG ?:? consumeTag() buf: :33B:EUR18001,01

      DEBUG ?:? consumeTag() name: 33B
      DEBUG ?:? consumeTag() value: EUR18001,01
      DEBUG ?:? getBlock4() consumed: [Tag: name: 33B value: EUR18001,01 sortKey: null]
      DEBUG ?:? getBlock4() l: :50K:KUNDE WO AUCH IMMER
      DEBUG ?:? getBlock4() sb: :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      DEBUG ?:? getBlock4() sb: :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      DEBUG ?:? getBlock4() sb: :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      DEBUG ?:? consumeTag() buf: :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE

      DEBUG ?:? consumeTag() name: 50K
      DEBUG ?:? consumeTag() value: KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      DEBUG ?:? getBlock4() consumed: [Tag: name: 50K value: KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE sortKey: null]

      DEBUG ?:? getBlock4() l: :52A://TAGRPRNKGRAAXXX052/S/20115
      DEBUG ?:? getBlock4() sb: :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      DEBUG ?:? consumeTag() buf: :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX

      DEBUG ?:? consumeTag() name: 52A
      DEBUG ?:? consumeTag() value: //TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      DEBUG ?:? getBlock4() consumed: [Tag: name: 52A value: //TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX sortKey: null]

      DEBUG ?:? getBlock4() l: :57A:GENODE51LOS
      DEBUG ?:? consumeTag() buf: :57A:GENODE51LOS

      DEBUG ?:? consumeTag() name: 57A
      DEBUG ?:? consumeTag() value: GENODE51LOS
      DEBUG ?:? getBlock4() consumed: [Tag: name: 57A value: GENODE51LOS sortKey: null]
      DEBUG ?:? getBlock4() l: :59:/DE66593922000000045500
      DEBUG ?:? getBlock4() sb: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      DEBUG ?:? getBlock4() sb: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      DEBUG ?:? getBlock4() sb: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      DEBUG ?:? getBlock4() sb: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      DEBUG ?:? consumeTag() buf: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY

      DEBUG ?:? consumeTag() name: 59
      DEBUG ?:? consumeTag() value: /DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      DEBUG ?:? getBlock4() consumed: [Tag: name: 59 value: /DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY sortKey: null]

      DEBUG ?:? getBlock4() l: :70:TEST IBAN 01P DE
      DEBUG ?:? getBlock4() sb: :70:TEST IBAN 01P DE
      IBAN KORREKT
      DEBUG ?:? consumeTag() buf: :70:TEST IBAN 01P DE
      IBAN KORREKT

      DEBUG ?:? consumeTag() name: 70
      DEBUG ?:? consumeTag() value: TEST IBAN 01P DE
      IBAN KORREKT
      DEBUG ?:? getBlock4() consumed: [Tag: name: 70 value: TEST IBAN 01P DE
      IBAN KORREKT sortKey: null]

      DEBUG ?:? getBlock4() l: :71A:SHA
      DEBUG ?:? consumeTag() buf: :71A:SHA

      DEBUG ?:? consumeTag() name: 71A
      DEBUG ?:? consumeTag() value: SHA
      DEBUG ?:? getBlock4() consumed: [Tag: name: 71A value: SHA sortKey: null]
      DEBUG ?:? getBlock4() [SwiftBlock: id: null number: 4 tags: [[Tag: name: 20 value: TEST-IBAN001 sortKey: 0], [Tag: name: 13C value: /SNDTIME/0701+0200 sortKey: 1], [Tag: name: 13C value: /RNCTIME/0701+0200 sortKey: 2], [Tag: name: 23B value: CRED sortKey: 3], [Tag: name: 32A value: 060804EUR18001,01 sortKey: 4], [Tag: name: 33B value: EUR18001,01 sortKey: 5], [Tag: name: 50K value: KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE sortKey: 6], [Tag: name: 52A value: //TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX sortKey: 7], [Tag: name: 57A value: GENODE51LOS sortKey: 8], [Tag: name: 59 value: /DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY sortKey: 9], [Tag: name: 70 value: TEST IBAN 01P DE
      IBAN KORREKT sortKey: 10], [Tag: name: 71A value: SHA sortKey: 11]]]

      DEBUG ?:? message() consumed block: [SwiftBlock: id: null number: 4 tags: [[Tag: name: 20 value: TEST-IBAN001 sortKey: 0], [Tag: name: 13C value: /SNDTIME/0701+0200 sortKey: 1], [Tag: name: 13C value: /RNCTIME/0701+0200 sortKey: 2], [Tag: name: 23B value: CRED sortKey: 3], [Tag: name: 32A value: 060804EUR18001,01 sortKey: 4], [Tag: name: 33B value: EUR18001,01 sortKey: 5], [Tag: name: 50K value: KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE sortKey: 6], [Tag: name: 52A value: //TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX sortKey: 7], [Tag: name: 57A value: GENODE51LOS sortKey: 8], [Tag: name: 59 value: /DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY sortKey: 9], [Tag: name: 70 value: TEST IBAN 01P DE
      IBAN KORREKT sortKey: 10], [Tag: name: 71A value: SHA sortKey: 11]]]

      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() start: 507
      DEBUG ?:? readUntilBlockEnds() end: 541
      DEBUG ?:? readUntilBlockEnds() substring from start: 5:{MAC:11111111}{CHK:222222222222}}
      DEBUG ?:? readUntilBlockEnds() len: 34
      DEBUG ?:? consumeBlock() block buffer: "5:{MAC:11111111}{CHK:222222222222}"
      DEBUG ?:? consumeBlock() blockId: 5
      DEBUG ?:? simpleBlockConsumer() [Tag: name: MAC value: 11111111 sortKey: null]
      DEBUG ?:? simpleBlockConsumer() [Tag: name: CHK value: 222222222222 sortKey: null]
      DEBUG ?:? message() consumed block: [SwiftBlock: id: null number: 5 tags: [[Tag: name: MAC value: 11111111 sortKey: 0], [Tag: name: CHK value: 222222222222 sortKey: 1]]]
      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() Found EOF
      WARN ?:? readUntilBlockEnds() unbalanced '{' and '}' inside block (starts=1)
      DEBUG ?:? readUntilBlockEnds() start: 543
      DEBUG ?:? readUntilBlockEnds() end: 543
      DEBUG ?:? readUntilBlockEnds() substring from start:
      DEBUG ?:? readUntilBlockEnds() len: 0
      DEBUG ?:? consumeBlock() block buffer: ""
      DEBUG ?:? consumeBlock() blockId: -1
      INFO ?:? consumeBlock() Unidentified block for buffer: "" you can safelfy ignore this if it is blank or empty, eg: no data

       
    • Malte Kempff

      Malte Kempff - 2006-11-08

      Hello,
      I am still wondering why the MT-message i can read successfull cannot be written in a different file.
      I have not idea what I am doing wrog or what else is missing.. :-( ??

      Can you give me a hint?

      Malte

      The message i read is this
      {1:F01GENODEFFAXXX4321100001}{2:O1030711060804MARKDEFFAXXX12342000010608040711N}{4:
      :20:TEST-IBAN001
      :13C:/SNDTIME/0701+0200
      :13C:/RNCTIME/0701+0200
      :23B:CRED
      :32A:060804EUR18001,01
      :33B:EUR18001,01
      :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      :57A:GENODE51LOS
      :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      :70:TEST IBAN 01P DE
      IBAN KORREKT
      :71A:SHA
      -}{5:{MAC:11111111}{CHK:222222222222}}

      When i try to write it i get the Exception:

      java.lang.UnsupportedOperationException: Can't write block data on block 4
      at net.sourceforge.wife.swift.writer.FINWriterVisitor.tag(Unknown Source)
      at net.sourceforge.wife.swift.model.SwiftMessage.visit(Unknown Source)
      at net.sourceforge.wife.swift.model.SwiftMessage.visit(Unknown Source)
      at net.sourceforge.wife.swift.writer.SwiftWriter.writeMessage(Unknown Source)
      at de.tai.swiftsplitting.SwiftSplitter.split(SwiftSplitter.java:91)
      at de.tai.swiftsplitting.SwiftSplitter.main(SwiftSplitter.java:135)

      the Fine Trace i get from the library is this:

      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() start: 1
      DEBUG ?:? readUntilBlockEnds() end: 28
      DEBUG ?:? readUntilBlockEnds() substring from start: 1:F01GENODEFFAXXX4321100001}
      DEBUG ?:? readUntilBlockEnds() len: 27
      DEBUG ?:? consumeBlock() block buffer: "1:F01GENODEFFAXXX4321100001"
      DEBUG ?:? consumeBlock() blockId: 1
      DEBUG ?:? message() first block: [SwiftBlock: id: null number: 1 tags: [[Tag: name: null value: 1:F01GENODEFFAXXX4321100001 sortKey: null]]]
      DEBUG ?:? message() consumed block: [SwiftBlock: id: null number: 1 tags: [[Tag: name: null value: 1:F01GENODEFFAXXX4321100001 sortKey: null]]]
      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() start: 30
      DEBUG ?:? readUntilBlockEnds() end: 79
      DEBUG ?:? readUntilBlockEnds() substring from start: 2:O1030711060804MARKDEFFAXXX12342000010608040711N}
      DEBUG ?:? readUntilBlockEnds() len: 49
      DEBUG ?:? consumeBlock() block buffer: "2:O1030711060804MARKDEFFAXXX12342000010608040711N"
      DEBUG ?:? consumeBlock() blockId: 2
      DEBUG ?:? message() consumed block: [SwiftBlock: id: null number: 2 tags: [[Tag: name: null value: 2:O1030711060804MARKDEFFAXXX12342000010608040711N sortKey: null]]]
      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() start: 81
      DEBUG ?:? readUntilBlockEnds() end: 505
      DEBUG ?:? readUntilBlockEnds() substring from start: 4:
      :20:TEST-IBAN001
      :13C:/SNDTIME/0701+0200
      :13C:/RNCTIME/0701+0200
      :23B:CRED
      :32A:060804EUR18001,01
      :33B:EUR18001,01
      :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      :57A:GENODE51LOS
      :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      :70:TEST IBAN 01P DE
      IBAN KORREKT
      :71A:SHA
      -}
      DEBUG ?:? readUntilBlockEnds() len: 424
      DEBUG ?:? consumeBlock() block buffer: "4:
      :20:TEST-IBAN001
      :13C:/SNDTIME/0701+0200
      :13C:/RNCTIME/0701+0200
      :23B:CRED
      :32A:060804EUR18001,01
      :33B:EUR18001,01
      :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      :57A:GENODE51LOS
      :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      :70:TEST IBAN 01P DE
      IBAN KORREKT
      :71A:SHA
      -"
      DEBUG ?:? consumeBlock() blockId: 4
      DEBUG ?:? getBlock4() l: 4:
      DEBUG ?:? consumeTag() buf: 4:

      DEBUG ?:? getBlock4() consumed: null
      DEBUG ?:? getBlock4() l: :20:TEST-IBAN001
      DEBUG ?:? consumeTag() buf: :20:TEST-IBAN001

      DEBUG ?:? consumeTag() name: 20
      DEBUG ?:? consumeTag() value: TEST-IBAN001
      DEBUG ?:? getBlock4() consumed: [Tag: name: 20 value: TEST-IBAN001 sortKey: null]
      DEBUG ?:? getBlock4() l: :13C:/SNDTIME/0701+0200
      DEBUG ?:? consumeTag() buf: :13C:/SNDTIME/0701+0200

      DEBUG ?:? consumeTag() name: 13C
      DEBUG ?:? consumeTag() value: /SNDTIME/0701+0200
      DEBUG ?:? getBlock4() consumed: [Tag: name: 13C value: /SNDTIME/0701+0200 sortKey: null]
      DEBUG ?:? getBlock4() l: :13C:/RNCTIME/0701+0200
      DEBUG ?:? consumeTag() buf: :13C:/RNCTIME/0701+0200

      DEBUG ?:? consumeTag() name: 13C
      DEBUG ?:? consumeTag() value: /RNCTIME/0701+0200
      DEBUG ?:? getBlock4() consumed: [Tag: name: 13C value: /RNCTIME/0701+0200 sortKey: null]
      DEBUG ?:? getBlock4() l: :23B:CRED
      DEBUG ?:? consumeTag() buf: :23B:CRED

      DEBUG ?:? consumeTag() name: 23B
      DEBUG ?:? consumeTag() value: CRED
      DEBUG ?:? getBlock4() consumed: [Tag: name: 23B value: CRED sortKey: null]
      DEBUG ?:? getBlock4() l: :32A:060804EUR18001,01
      DEBUG ?:? consumeTag() buf: :32A:060804EUR18001,01

      DEBUG ?:? consumeTag() name: 32A
      DEBUG ?:? consumeTag() value: 060804EUR18001,01
      DEBUG ?:? getBlock4() consumed: [Tag: name: 32A value: 060804EUR18001,01 sortKey: null]
      DEBUG ?:? getBlock4() l: :33B:EUR18001,01
      DEBUG ?:? consumeTag() buf: :33B:EUR18001,01

      DEBUG ?:? consumeTag() name: 33B
      DEBUG ?:? consumeTag() value: EUR18001,01
      DEBUG ?:? getBlock4() consumed: [Tag: name: 33B value: EUR18001,01 sortKey: null]
      DEBUG ?:? getBlock4() l: :50K:KUNDE WO AUCH IMMER
      DEBUG ?:? getBlock4() sb: :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      DEBUG ?:? getBlock4() sb: :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      DEBUG ?:? getBlock4() sb: :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      DEBUG ?:? consumeTag() buf: :50K:KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE

      DEBUG ?:? consumeTag() name: 50K
      DEBUG ?:? consumeTag() value: KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE
      DEBUG ?:? getBlock4() consumed: [Tag: name: 50K value: KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE sortKey: null]

      DEBUG ?:? getBlock4() l: :52A://TAGRPRNKGRAAXXX052/S/20115
      DEBUG ?:? getBlock4() sb: :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      DEBUG ?:? consumeTag() buf: :52A://TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX

      DEBUG ?:? consumeTag() name: 52A
      DEBUG ?:? consumeTag() value: //TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX
      DEBUG ?:? getBlock4() consumed: [Tag: name: 52A value: //TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX sortKey: null]

      DEBUG ?:? getBlock4() l: :57A:GENODE51LOS
      DEBUG ?:? consumeTag() buf: :57A:GENODE51LOS

      DEBUG ?:? consumeTag() name: 57A
      DEBUG ?:? consumeTag() value: GENODE51LOS
      DEBUG ?:? getBlock4() consumed: [Tag: name: 57A value: GENODE51LOS sortKey: null]
      DEBUG ?:? getBlock4() l: :59:/DE66593922000000045500
      DEBUG ?:? getBlock4() sb: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      DEBUG ?:? getBlock4() sb: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      DEBUG ?:? getBlock4() sb: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      DEBUG ?:? getBlock4() sb: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      DEBUG ?:? consumeTag() buf: :59:/DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY

      DEBUG ?:? consumeTag() name: 59
      DEBUG ?:? consumeTag() value: /DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY
      DEBUG ?:? getBlock4() consumed: [Tag: name: 59 value: /DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY sortKey: null]

      DEBUG ?:? getBlock4() l: :70:TEST IBAN 01P DE
      DEBUG ?:? getBlock4() sb: :70:TEST IBAN 01P DE
      IBAN KORREKT
      DEBUG ?:? consumeTag() buf: :70:TEST IBAN 01P DE
      IBAN KORREKT

      DEBUG ?:? consumeTag() name: 70
      DEBUG ?:? consumeTag() value: TEST IBAN 01P DE
      IBAN KORREKT
      DEBUG ?:? getBlock4() consumed: [Tag: name: 70 value: TEST IBAN 01P DE
      IBAN KORREKT sortKey: null]

      DEBUG ?:? getBlock4() l: :71A:SHA
      DEBUG ?:? consumeTag() buf: :71A:SHA

      DEBUG ?:? consumeTag() name: 71A
      DEBUG ?:? consumeTag() value: SHA
      DEBUG ?:? getBlock4() consumed: [Tag: name: 71A value: SHA sortKey: null]
      DEBUG ?:? getBlock4() [SwiftBlock: id: null number: 4 tags: [[Tag: name: 20 value: TEST-IBAN001 sortKey: 0], [Tag: name: 13C value: /SNDTIME/0701+0200 sortKey: 1], [Tag: name: 13C value: /RNCTIME/0701+0200 sortKey: 2], [Tag: name: 23B value: CRED sortKey: 3], [Tag: name: 32A value: 060804EUR18001,01 sortKey: 4], [Tag: name: 33B value: EUR18001,01 sortKey: 5], [Tag: name: 50K value: KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE sortKey: 6], [Tag: name: 52A value: //TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX sortKey: 7], [Tag: name: 57A value: GENODE51LOS sortKey: 8], [Tag: name: 59 value: /DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY sortKey: 9], [Tag: name: 70 value: TEST IBAN 01P DE
      IBAN KORREKT sortKey: 10], [Tag: name: 71A value: SHA sortKey: 11]]]

      DEBUG ?:? message() consumed block: [SwiftBlock: id: null number: 4 tags: [[Tag: name: 20 value: TEST-IBAN001 sortKey: 0], [Tag: name: 13C value: /SNDTIME/0701+0200 sortKey: 1], [Tag: name: 13C value: /RNCTIME/0701+0200 sortKey: 2], [Tag: name: 23B value: CRED sortKey: 3], [Tag: name: 32A value: 060804EUR18001,01 sortKey: 4], [Tag: name: 33B value: EUR18001,01 sortKey: 5], [Tag: name: 50K value: KUNDE WO AUCH IMMER
      SYMMACH. ODOS OREOKASTRO-DIAVATA
      GR-57008 THESSALONIKI
      GREECE sortKey: 6], [Tag: name: 52A value: //TAGRPRNKGRAAXXX052/S/20115
      PRNKGRAAXXX sortKey: 7], [Tag: name: 57A value: GENODE51LOS sortKey: 8], [Tag: name: 59 value: /DE66593922000000045500
      KUNDE DER VOLKS-RAIFFEISENBANK
      RAIFFEISENPLATZ
      D-66787 WADGASSEN-HOSTENBACH
      GERMANY sortKey: 9], [Tag: name: 70 value: TEST IBAN 01P DE
      IBAN KORREKT sortKey: 10], [Tag: name: 71A value: SHA sortKey: 11]]]

      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() start: 507
      DEBUG ?:? readUntilBlockEnds() end: 541
      DEBUG ?:? readUntilBlockEnds() substring from start: 5:{MAC:11111111}{CHK:222222222222}}
      DEBUG ?:? readUntilBlockEnds() len: 34
      DEBUG ?:? consumeBlock() block buffer: "5:{MAC:11111111}{CHK:222222222222}"
      DEBUG ?:? consumeBlock() blockId: 5
      DEBUG ?:? simpleBlockConsumer() [Tag: name: MAC value: 11111111 sortKey: null]
      DEBUG ?:? simpleBlockConsumer() [Tag: name: CHK value: 222222222222 sortKey: null]
      DEBUG ?:? message() consumed block: [SwiftBlock: id: null number: 5 tags: [[Tag: name: MAC value: 11111111 sortKey: 0], [Tag: name: CHK value: 222222222222 sortKey: 1]]]
      DEBUG ?:? consumeBlock() block start found
      DEBUG ?:? readUntilBlockEnds() Found EOF
      WARN ?:? readUntilBlockEnds() unbalanced '{' and '}' inside block (starts=1)
      DEBUG ?:? readUntilBlockEnds() start: 543
      DEBUG ?:? readUntilBlockEnds() end: 543
      DEBUG ?:? readUntilBlockEnds() substring from start:
      DEBUG ?:? readUntilBlockEnds() len: 0
      DEBUG ?:? consumeBlock() block buffer: ""
      DEBUG ?:? consumeBlock() blockId: -1
      INFO ?:? consumeBlock() Unidentified block for buffer: "" you can safelfy ignore this if it is blank or empty, eg: no data

       
      • Miguel Griffa

        Miguel Griffa - 2006-11-08

        The code you mention was some functionallity that was missing. I updated this code in CVS, I'd advise you to get sources from CVS and build the up-to-date version yourself, I can email it to you if you preferr, the release will be in a couple of hours., 1 day max I guess

         

Log in to post a comment.