[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: NumberFormatException in Parser()
I ran into the same problem you can recompile Parser.java with a hack like this: public Parser() { /* DEBUG: version strings 1.1.x are not valid floating point numbers String version = System.getProperty("java.version"); Float fver = new Float(version); */ Float fver = new Float("1.1"); jdk11 = (fver.doubleValue() >= 1.1) ? true : false; caseInsensitive = false; } I'm using Sun's JDK not J++ so I can't comment on the .dsp problem. Sean Kang wrote: > > I encountered a NumberFormatException in the msxml package recently. > > public Parser() > { > String version = System.getProperty("java.version"); > Float fver = new Float(version); > jdk11 = (fver.doubleValue() >= 1.1) ? true : false; > caseInsensitive = false; > } > > The version value is "1.1.4" and the exception is thrown when > executing the method fver.doubleValue(). > > I tried to fix this myself in my own local installation by opening up > the XMLJavaParse.dsp but I eventually ran into another problem where a > certain package was not available: com.ms.osp.* Where would I find > this com.ms.osp package?? > > Or, does anyone know the cause of this problem? I was able to use the > parser package before without this problem ( a couple of weeks ago). > > _________________________________________________________ > DO YOU YAHOO!? > Get your free @yahoo.com address at http://mail.yahoo.com > > xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... > Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ > To (un)subscribe, mailto:majordomo@i... the following message; > (un)subscribe xml-dev > To subscribe to the digests, mailto:majordomo@i... the following message; > subscribe xml-dev-digest > List coordinator, Henry Rzepa (mailto:rzepa@i...) -- ------------------------------------------------------------------------------- John Kyte 514-341-3874 ext 370 Software Designer, Advanced Engineering kyte@v... Virtual Prototypes Inc 4700 de la Savanne Suite 300 Montreal Quebec Canada H4P1T7 ------------------------------------------------------------------------------- xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i... Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ To (un)subscribe, mailto:majordomo@i... the following message; (un)subscribe xml-dev To subscribe to the digests, mailto:majordomo@i... the following message; subscribe xml-dev-digest List coordinator, Henry Rzepa (mailto:rzepa@i...)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|