tksk / jing-trang

Automatically exported from code.google.com/p/jing-trang
0 stars 0 forks source link

getting ConcurrentModificationException while converting one xml to xsd #193

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attached sample xml.
2. Trying to convert it to xsd format using trang (version : 20081028)
   java -jar trang.jar -I xml  -O xsd "sample.xml" "sample.xsd"
3. Getting ConcurrentModificationException. Attached trace below.

What is the expected output? What do you see instead?

>java -jar trang.jar -I xml  -O xsd "sample.xml" "sample.xsd"

Exception in thread "main" java.util.ConcurrentModificationException
        at java.util.Vector$Itr.checkForComodification(Unknown Source)
        at java.util.Vector$Itr.next(Unknown Source)
        at com.thaiopensource.relaxng.input.xml.Inferrer.<init>(Unknown Source)
        at com.thaiopensource.relaxng.input.xml.Inferrer.infer(Unknown Source)
        at com.thaiopensource.relaxng.input.xml.XmlInputFormat.load(Unknown Sour
ce)
        at com.thaiopensource.relaxng.input.AbstractMultiInputFormat.load(Unknow
n Source)
        at com.thaiopensource.relaxng.translate.Driver.doMain(Unknown Source)
        at com.thaiopensource.relaxng.translate.Driver.main(Unknown Source)

What version of the product are you using? On what operating system?

Using trang-20081028

Please provide any additional information below.

Original issue reported on code.google.com by Ami.visp...@gmail.com on 3 Feb 2015 at 12:21

Attachments:

GoogleCodeExporter commented 9 years ago
Can you check with the latest Jing? I think this problem was already fixed.

Original comment by georgebina76 on 3 Feb 2015 at 4:14

GoogleCodeExporter commented 9 years ago
Thank You.
Issue is resolved.

Original comment by Ami.visp...@gmail.com on 5 Feb 2015 at 5:07

GoogleCodeExporter commented 9 years ago
The issue was already fixed, most probably at revision r2307.

Original comment by georgebina76 on 5 Feb 2015 at 6:40