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

Jason Hunter jhunter at servlets.com
Wed Sep 11 15:28:07 PDT 2002


Seems like you should write VmTools about this.  They use JDOM, not the
other way around, so if there's a problem they'll be able to identify
it.

-jh-

"Eladio B. Caritos II" wrote:
> 
> 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.JdomDifferenceFi!
> nder.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





More information about the jdom-interest mailing list