
|
If you were logged in you would be able to see more operations.
|
|
|
|
the following code parses up to about 5200 messages and then throws an exception:
<code>
DefaultSource src = new DefaultSource();
src.setLookAhead(199999999);
src.setReader(new FileReader(new File("C:\\c24_sandbox\\CITI Group\\mt535Bulk.txt")));
int i = 1;
do{
Object sma535 = src.readObject(MT535iElement.getInstance())
System.out.println("Parsed " + i + " Messages");
i++;
}while(src.ready());
</code>
<exception>
biz.c24.io.api.ParserException: Probable Cause:
Initiator(s) not found (expecting '{1:') at offset 3658122 (line 187597, column 3) whilst attempting to parse MT535i/Block1
at biz.c24.io.api.presentation.DefaultSource.readObject(DefaultSource.java:249)
at biz.c24.io.api.presentation.DefaultSource.readObject(DefaultSource.java:226)
at Test.loadMessage(Test.java:125)
at Test.main(Test.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
</exception>
The test data file has been attached.
|
|
Description
|
the following code parses up to about 5200 messages and then throws an exception:
<code>
DefaultSource src = new DefaultSource();
src.setLookAhead(199999999);
src.setReader(new FileReader(new File("C:\\c24_sandbox\\CITI Group\\mt535Bulk.txt")));
int i = 1;
do{
Object sma535 = src.readObject(MT535iElement.getInstance())
System.out.println("Parsed " + i + " Messages");
i++;
}while(src.ready());
</code>
<exception>
biz.c24.io.api.ParserException: Probable Cause:
Initiator(s) not found (expecting '{1:') at offset 3658122 (line 187597, column 3) whilst attempting to parse MT535i/Block1
at biz.c24.io.api.presentation.DefaultSource.readObject(DefaultSource.java:249)
at biz.c24.io.api.presentation.DefaultSource.readObject(DefaultSource.java:226)
at Test.loadMessage(Test.java:125)
at Test.main(Test.java:107)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
</exception>
The test data file has been attached. |
Show » |
|
However, there still seems to be an issue with the ready() method. We are currently looking into this.