SciLor's Open Source Forums http://forum.scilor.com/ |
|
document is not in its declared encoding UTF-8: utf-8 http://forum.scilor.com/viewtopic.php?f=227&t=534 |
Page 1 of 1 |
Author: | tempo [ Thu Jan 13, 2011 12:42 pm ] |
Post subject: | document is not in its declared encoding UTF-8: utf-8 |
I'm using the Pre-Alpha3 version on a Ubuntu 10.10 machine, tried the example from the download page: java -jar SciLorsJGroovesharkDownloader.jar /c /l "David Guetta" and this is what I get: SciLor's Java grooveshark(tm).com Downloader Pre-Alpha v3 Arguments: "/c" "/l" "David Guetta" gnu.xml.dom.ls.DomLSException at gnu.xml.dom.ls.DomLSParser.doParse(libgcj.so.10) at gnu.xml.dom.ls.DomLSParser.parse(libgcj.so.10) at gnu.xml.dom.ls.DomLSParser.parseURI(libgcj.so.10) at gnu.xml.dom.DomDocumentBuilder.parse(libgcj.so.10) at Base.GrooveFix.<init>(GrooveFix.java:33) at Base.GroovesharkClient.Connect(GroovesharkClient.java:76) at Base.GroovesharkClient.CheckConnect(GroovesharkClient.java:68) at Base.GroovesharkClient.SearchArtist(GroovesharkClient.java:238) at Base.GroovesharkClient.SearchArtist(GroovesharkClient.java:233) at test.JGroovesharkDownloader.listSearch(JGroovesharkDownloader.java:131) at test.JGroovesharkDownloader.main(JGroovesharkDownloader.java:78) Caused by: org.xml.sax.SAXParseException at gnu.xml.stream.SAXParser.parse(libgcj.so.10) at gnu.xml.dom.ls.DomLSParser.doParse(libgcj.so.10) ...10 more Caused by: javax.xml.stream.XMLStreamException at gnu.xml.stream.XMLParser.next(libgcj.so.10) at gnu.xml.stream.SAXParser.parse(libgcj.so.10) ...11 more Caused by: java.io.UnsupportedEncodingException: document is not in its declared encoding UTF-8: utf-8 at gnu.xml.stream.XMLParser$Input.setInputEncoding(libgcj.so.10) at gnu.xml.stream.XMLParser.readXMLDecl(libgcj.so.10) at gnu.xml.stream.XMLParser.next(libgcj.so.10) ...12 more Error occured: null is this a bug, or something wrong in my Ubuntu installation, or something to set somewhere? thanks bye |
Author: | tempo [ Thu Jan 13, 2011 6:16 pm ] |
Post subject: | Re: document is not in its declared encoding UTF-8: utf-8 |
Found the solution... my Ubuntu was using the wrong Java version.. java -version gave me: java version "1.5.0" gij (GNU libgcj) version 4.4.5 so I installed Java JRE 6 with this command : sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts then I selected it as the Java to use with this command : update-alternatives --config java the result was: Selection Path Priority Status ------------------------------------------------------------ * 0 /usr/bin/gij-4.4 1044 auto mode 1 /usr/bin/gij-4.4 1044 manual mode 2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode so I selected the option 2 and after that the downloader worked fine |
Author: | SciLor [ Thu Jan 13, 2011 9:49 pm ] |
Post subject: | Re: document is not in its declared encoding UTF-8: utf-8 |
fine that it works for you now |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |