qiuwei / jing-trang

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

NPE when converting XML to DTD #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<?xml version="1.0" encoding="UTF-8"?>
<test>
    <a>
        <x>...</x>
    </a>
    <x>...</x>
</test>

D:\users\george\workspace\jingOnGoogle\build>java -jar trang.jar -I xml -O
dtd test.xml test.dtd
Exception in thread "main" java.lang.NullPointerException
        at com.thaiopensource.relaxng.output.dtd.Analysis.getBody(Unknown
Source)
        at com.thaiopensource.relaxng.output.dtd.DtdOutput.getBody(Unknown
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$ParenthesizedContentModelOutput.
visitRef(Unknown
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$ParenthesizedContentModelOutput.
visitRef(Unknown
Source)
        at com.thaiopensource.relaxng.edit.RefPattern.accept(Unknown Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$ContentModelOutput.visitGroup(Un
known
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$ContentModelOutput.visitGroup(Un
known
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$TopLevelContentModelOutput.visit
Group(Unknown
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$TopLevelContentModelOutput.visit
Group(Unknown
Source)
        at com.thaiopensource.relaxng.edit.GroupPattern.accept(Unknown Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput.outputElement(Unknown Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput.outputQueuedElements(Unknown 
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$GrammarOutput.visitDefine(Unknow
n
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$GrammarOutput.visitDefine(Unknow
n
Source)
        at com.thaiopensource.relaxng.edit.DefineComponent.accept(Unknown
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput$GrammarOutput.visitContainer(Unk
nown
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutput.topLevelOutput(Unknown Source)
        at com.thaiopensource.relaxng.output.dtd.DtdOutput.output(Unknown
Source)
        at
com.thaiopensource.relaxng.output.dtd.DtdOutputFormat.output(Unknown Source)
        at com.thaiopensource.relaxng.translate.Driver.doMain(Unknown Source)
        at com.thaiopensource.relaxng.translate.Driver.main(Unknown Source)

Original issue reported on code.google.com by georgebina76 on 23 Oct 2008 at 9:46

GoogleCodeExporter commented 8 years ago
Fixed in r2056.

Original comment by jjc.jclark.com on 23 Oct 2008 at 1:04