[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20031030: Is projections.xml invalid XML?



Hi Todd-

Sorry for the delay in responding.  Do you have enough information
that you can report this to SGI?  Looks like it's a bug in their
JVM.

Regarding stations.xml, that is just a template and is not used
anywhere.

Let us know if there is anything else we can do to help.

Don

Todd Plessel wrote:

So with Jeff's code (thanks!) java 1.4.1_02 -hotspot fails with some files:

oz:/home/plessel/test:63 >/usr/java2/bin/java -hotspot XmlTest
/home/plessel/tmp/junk/ucar/unidata/idv/resources/*.xml
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/aliases.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/categories.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/choosers.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/colortables.xml ok
error processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/controls.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/datasource.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/defaultmenu.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/derived.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/enduserformulas.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/helptips.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/nexradstns.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/paramdefaults.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/paramgroups.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/profilerstns.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/projections.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/publishers.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error
processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/stationmodels.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
error processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/stations.xml
java.lang.ArrayIndexOutOfBoundsException
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1111)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
oz:/home/plessel/test:64 >


And java 1.4.1_02 -classic fails only with stations.xml:


oz:/home/plessel/test:64 >/usr/java2/bin/java -classic XmlTest
/home/plessel/tmp/junk/ucar/unidata/idv/resources/*.xml
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/aliases.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/categories.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/choosers.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/colortables.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/controls.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/datasource.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/defaultmenu.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/derived.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/enduserformulas.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/helptips.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/nexradstns.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/paramdefaults.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/paramgroups.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/profilerstns.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/projections.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/publishers.xml ok
file:/home/plessel/tmp/junk/ucar/unidata/idv/resources/stationmodels.xml ok
error processing:/home/plessel/tmp/junk/ucar/unidata/idv/resources/stations.xml
org.xml.sax.SAXParseException: Element type "station" must be followed by
either attribute specifications, ">" or "/>".
        at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1213)
        at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:579)
        at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:628)
        at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanner.java:1800)
        at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1182)
        at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
        at XmlTest.getDocument(XmlTest.java:19)
        at XmlTest.main(XmlTest.java:28)
oz:/home/plessel/test:65 >

--
*************************************************************
Don Murray                               UCAR Unidata Program
address@hidden                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
"There's someone in my head, but it's not me"    Roger Waters
*************************************************************