[jdom-interest] Using VmTools-0.5 with JDOM Beta 8

Eladio B. Caritos II ecaritos at yahoo.com
Wed Sep 4 07:07:57 PDT 2002


There are conflicts with using VmTools-0.5 and JDOM Beta 8.  The VmTools-0.5 works with JDOM Beta 7 just fine but it seems to have been broken going to JDOM Beta 8.  I've included the VmTools Xmldiff output as well as the input file for review.  Is there a patch to fix this problem.

E:\>java XmlDiff file:E:\Xml\test\b1.xml file:E:\Xml\test\b2.xml
parsing...
instantiating OtaUpdate...
generating diffs...
9 of 9 (100%)
java.lang.NullPointerException
        at org.vmguys.vmtools.utils.SubtreeInsertOperation.getOperationNodeNumber(SubtreeInsertOpera
tion.java:144)
        at org.vmguys.vmtools.utils.OperationNodeNumberComparator.compare(OperationNodeNumberCompara
tor.java:20)
        at java.util.Arrays.mergeSort(Arrays.java:1241)
        at java.util.Arrays.sort(Arrays.java:1188)
        at java.util.Collections.sort(Collections.java:153)
        at org.vmguys.vmtools.utils.CostOps.sortOperations(CostOps.java:226)
        at org.vmguys.vmtools.utils.JdomDifferenceFinder.findDifferences(JdomDifferenceFinder.java:1
43)
        at org.vmguys.vmtools.ota.OtaUpdate.generateUpdate(OtaUpdate.java:325)
        at org.vmguys.vmtools.ota.OtaUpdate.generateDiffs(OtaUpdate.java:226)
        at org.vmguys.vmtools.ota.OtaUpdate.generateDiffs(OtaUpdate.java:181)
        at XmlDiff.go(XmlDiff.java:120)
        at XmlDiff.main(XmlDiff.java:89)


E:\Xml\test>type b1.xml
<?xml version="1.0"?>
<People>
  <Last>Smith</Last>
</People>
E:\Xml\test>type b2.xml
<?xml version="1.0"?>
<People>
  <Last></Last>
</People>



---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020904/10ee8932/attachment.htm


More information about the jdom-interest mailing list