Multi-Thread issue
Brought to you by:
nicanor
When lots of threads are submitted for big files,
EDIException for format errors are thrown. Single
thread working properly. Inspecting the code
EDIReaderFactory.java
has
protected static EDITokenizer tokenizer;
which is giving problems for many threads.
I have commented the static variable and changed
public static EDIReader createEDIReader(InputSource
source, boolean debug)
throws EDISyntaxException,
IOException {
EDIReader parser;
Reader inputReader =
EDIAbstractReader.createReader(source);
// NEW LOCAL VARIABLE Instead of static
EDITokenizer tokenizer=null;
Logged In: YES
user_id=1514697
3.8 release fixed this issue