Bugs item #1117801, was opened at 2005-02-07 11:06 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379133&aid=1117801&group_id=23629
Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Peter Murray-Rust (petermr) Assigned to: Nobody/Anonymous (nobody) Summary: CML namespace failure with Java1.5 Initial Comment: The following "CML" file from our Xindice database <entry src:col="/db/wwmm/nci/entry" src:key="nci_006229.xml"> <identifier tautomeric="0" version="0.932Beta"> <basic>C10H8,1H-2H-6H-10-8H-4H-3H-7H-9(10)5H- 1</basic> <charge/> </identifier> <molecule formalCharge="0" id="NSC6229"> <formula>C 10 H 8</formula> <metadata> <module role="init"> <module role="header"> <list> <scalar dictRef="ccml:program">MOPAC2002 (c) Fujitsu</scalar> <scalar dictRef="ccml:method">PM5</scalar> <scalar dictRef="ccml:program">MOPAC2002</scalar> ... </entry> has namespaced prefixes added by Xindice but without the namespace URI (xmlns:src). This is an invalid file if validation is enforced but I think is otherwise OK. Under java1.4 there is no problem but under 1.5 the applet stops at a black background with the Java console error: SmarterJmolAdapter:The Resolver thinks:Cml SmarterJmolAdapter:The Resolver thinks:Cml SmarterJmolAdapter:The Resolver thinks:Cml SmarterJmolAdapter:The Resolver thinks:Cml Using JAXP/SAX XML parser. Using JAXP/SAX XML parser. Using JAXP/SAX XML parser. SAX FATAL:The prefix "src" for attribute "src:col" associated with an element type "molecule" is not bound. org.xml.sax.SAXParseException: The prefix "src" for attribute "src:col" associated with an element type "molecule" is not bound. at com.sun.org.apache.xerces.internal.parsers.AbstractSAX Parser.parse(Unknown Source) at org.jmol.adapter.smarter.CmlReader.readAtomSetCollect ion(CmlReader.java:71) at org.jmol.adapter.smarter.Resolver.resolve (Resolver.java:57) at org.jmol.adapter.smarter.SmarterJmolAdapter.openBuffe redReader(SmarterJmolAdapter.java:62) SAX FATAL:The prefix "src" for attribute "src:col" associated with an element type "entry" is not bound. at org.jmol.viewer.FileManager$FileOpenThread.openReade r(FileManager.java:435) at org.jmol.viewer.FileManager$FileOpenThread.run (FileManager.java:397) at org.jmol.viewer.FileManager.openStringInline (FileManager.java:105) at org.jmol.viewer.Viewer.openStringInline (Viewer.java:966) at org.jmol.applet.JmolApplet.loadInline (JmolApplet.java:454) at org.jmol.applet.JmolApplet.initApplication (JmolApplet.java:248) at org.jmol.applet.JmolApplet.init (JmolApplet.java:125) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) error opening string org.xml.sax.SAXParseException: The prefix "src" for attribute "src:col" associated with an element type "molecule" is not bound. org.xml.sax.SAXParseException: The prefix "src" for attribute "src:col" associated with an element type "entry" is not bound. at com.sun.org.apache.xerces.internal.parsers.AbstractSAX Parser.parse(Unknown Source) at org.jmol.adapter.smarter.CmlReader.readAtomSetCollect ion(CmlReader.java:71) at org.jmol.adapter.smarter.Resolver.resolve (Resolver.java:57) at org.jmol.adapter.smarter.SmarterJmolAdapter.openBuffe redReader(SmarterJmolAdapter.java:62) at org.jmol.viewer.FileManager$FileOpenThread.openReade r(FileManager.java:435) at org.jmol.viewer.FileManager$FileOpenThread.run (FileManager.java:397) at org.jmol.viewer.FileManager.openStringInline (FileManager.java:105) at org.jmol.viewer.Viewer.openStringInline (Viewer.java:966) at org.jmol.applet.JmolApplet.loadInline (JmolApplet.java:454) at org.jmol.applet.JmolApplet.initApplication (JmolApplet.java:248) at org.jmol.applet.JmolApplet.init (JmolApplet.java:125) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) error opening string org.xml.sax.SAXParseException: The prefix "src" for attribute "src:col" associated with an element type "entry" is not bound. Using JAXP/SAX XML parser. SAX FATAL:The prefix "src" for attribute "src:col" associated with an element type "molecule" is not bound. org.xml.sax.SAXParseException: The prefix "src" for attribute "src:col" associated with an element type "molecule" is not bound. at com.sun.org.apache.xerces.internal.parsers.AbstractSAX Parser.parse(Unknown Source) at org.jmol.adapter.smarter.CmlReader.readAtomSetCollect ion(CmlReader.java:71) at org.jmol.adapter.smarter.Resolver.resolve (Resolver.java:57) at org.jmol.adapter.smarter.SmarterJmolAdapter.openBuffe redReader(SmarterJmolAdapter.java:62) at org.jmol.viewer.FileManager$FileOpenThread.openReade r(FileManager.java:435) at org.jmol.viewer.FileManager$FileOpenThread.run (FileManager.java:397) at org.jmol.viewer.FileManager.openStringInline (FileManager.java:105) at org.jmol.viewer.Viewer.openStringInline (Viewer.java:966) at org.jmol.applet.JmolApplet.loadInline (JmolApplet.java:454) at org.jmol.applet.JmolApplet.initApplication (JmolApplet.java:248) at org.jmol.applet.JmolApplet.init (JmolApplet.java:125) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source) error opening string ...... and more I think this should be trapped and reported as it fooled us for at least a day! In the future it is almost certain that people will submit invalid files on a regular basis and so validation should be switched off by default. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379133&aid=1117801&group_id=23629 ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ Jmol-developers mailing list Jmol-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-developers