when I try to impot MT940 file generated by my internet banking following is the exception thrown:
java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NumberFormatException
at net.bzzt.swift.mt940.ImportMt940Action$ImportMt940.done(ImportMt940Action.java:121)
at javax.swing.SwingWorker$5.run(SwingWorker.java:737)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(SwingWorker.java:832)
at sun.swing.AccumulativeRunnable.run(AccumulativeRunnable.java:112)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(SwingWorker.java:842)
at javax.swing.Timer.fireActionPerformed(Timer.java:312)
at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:682)
at java.awt.EventQueue$3.run(EventQueue.java:680)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:691)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Caused by: java.util.concurrent.ExecutionException: java.lang.NumberFormatException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at javax.swing.SwingWorker.get(SwingWorker.java:602)
at net.bzzt.swift.mt940.ImportMt940Action$ImportMt940.done(ImportMt940Action.java:105)
... 20 more
Caused by: java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:470)
at java.math.BigDecimal.<init>(BigDecimal.java:739)
at net.bzzt.swift.mt940.parser.Mt940Parser.parseBetrag(Mt940Parser.java:205)
at net.bzzt.swift.mt940.parser.Mt940Parser.parseRecord(Mt940Parser.java:156)
at net.bzzt.swift.mt940.parser.Mt940Parser.parse(Mt940Parser.java:76)
at net.bzzt.swift.mt940.ImportMt940Action$ImportMt940.doInBackground(ImportMt940Action.java:94)
at net.bzzt.swift.mt940.ImportMt940Action$ImportMt940.doInBackground(ImportMt940Action.java:84)
at javax.swing.SwingWorker$1.call(SwingWorker.java:296)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at javax.swing.SwingWorker.run(SwingWorker.java:335)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
I can't provide import input due to privacy.
However if stack trace is insufficient, I can try to debug and see what causes the problem so that sample import data can be provided.
It appears as if it does not like the numeric format for the file. Without seeing a small portion, there is not much I can do. I suspect it may have commas for decimal fields.
Thanks,
Craig
No working sample, closing