[html5] First time trying to run, OS X 10.6, ClassCastException

ssteinerX@gmail.com ssteinerx at gmail.com
Wed Feb 24 20:11:29 PST 2010


First time setting up validator.nu, ran the whole checkout etc., then died with the error shown below so I tried just running and got the same error.

I searched the mailing list for various pieces of the exception traceback, but came up empty.  

I am able to download the referenced file "http://s.validator.nu/html5/html5full.rnc", so it doesn't seem that a connection problem is the issue.

Anyone have an idea how to proceed?

Thanks,

S
aka/ssteinerX
aka/Steve Steiner

(2.6.4.64-1)(~/W3C_Validator_Mods_For_SMS_Use/checker)# python build/build.py run
"svn" co "https://whattf.svn.cvsdude.com/build/trunk/" "build"
Checked out revision 94.
java -Xms131072k -Xmx131072k -XX:ThreadStackSize=2048 -classpath ./dependencies/commons-codec-1.3/commons-codec-1.3.jar:./dependencies/commons-httpclient-3.1/commons-httpclient-3.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar:./dependencies/commons-logging-1.1.1/commons-logging-api-1.1.1.jar:./dependencies/icu4j-charsets-4_0.jar:./dependencies/icu4j-4_0.jar:./dependencies/iri-0.5/lib/iri.jar:./dependencies/jetty-6.1.11/lib/servlet-api-2.5-6.1.11.jar:./dependencies/jetty-6.1.11/lib/jetty-6.1.11.jar:./dependencies/jetty-6.1.11/lib/jetty-util-6.1.11.jar:./dependencies/jetty-6.1.11/lib/ext/jetty-ajp-6.1.11.jar:./dependencies/apache-log4j-1.2.15/log4j-1.2.15.jar:./dependencies/rhino1_7R1/js.jar:./dependencies/xerces-2_9_1/xercesImpl.jar:./dependencies/xerces-2_9_1/xml-apis.jar:./dependencies/slf4j-1.5.2/slf4j-log4j12-1.5.2.jar:./dependencies/commons-fileupload-1.2.1/lib/commons-fileupload-1.2.1.jar:./dependencies/isorelax.jar:./dependencies/mozilla/intl/chardet/java/dist/lib/chardet.jar:./dependencies/saxon9.jar:./jars/non-schema.jar:./jars/io-xml-util.jar:./jars/htmlparser.jar:./jars/hs-aelfred2.jar:./jars/html5-datatypes.jar:./jars/validator.jar:jing-trang/build/jing.jar -Dnu.validator.servlet.log4j-properties=validator/log4j.properties -Dnu.validator.servlet.version=3 -Dnu.validator.servlet.service-name=Validator.nu -Dorg.whattf.datatype.lang-registry=http://www.iana.org/assignments/language-subtag-registry -Dorg.whattf.datatype.charset-registry=http://www.iana.org/assignments/character-sets -Dorg.whattf.datatype.warn=true -Dnu.validator.servlet.about-page=http://about.validator.nu/ -Dnu.validator.servlet.style-sheet=http://about.validator.nu/style.css -Dnu.validator.servlet.icon=http://about.validator.nu/icon.png -Dnu.validator.servlet.script=http://about.validator.nu/script.js -Dnu.validator.spec.microsyntax-descriptions=http://wiki.whatwg.org/wiki/MicrosyntaxDescriptions -Dnu.validator.spec.alt-advice=http://wiki.whatwg.org/wiki/Validator.nu_alt_advice -Dnu.validator.spec.html5-load=file:validator/spec/html5.html -Dnu.validator.spec.html5-link=http://www.whatwg.org/specs/web-apps/current-work/ -Dnu.validator.servlet.max-file-size=5242880 -Dnu.validator.servlet.connection-timeout=5000 -Dnu.validator.servlet.socket-timeout=5000 -Dorg.mortbay.http.HttpRequest.maxFormContentSize=5242880 -Dnu.validator.servlet.host.generic= -Dnu.validator.servlet.host.html5= -Dnu.validator.servlet.host.parsetree= -Dnu.validator.servlet.path.generic=/ -Dnu.validator.servlet.path.html5=/html5/ -Dnu.validator.servlet.path.parsetree=/parsetree/ nu.validator.servlet.Main 8888
2010-02-24 23:02:55.942::INFO:  Logging to STDERR via org.mortbay.log.StdErrLog
nu.validator.servlet.VerifierServletTransaction - Starting static initializer.
nu.validator.servlet.VerifierServletTransaction - Starting to loop over config file lines.
nu.validator.servlet.VerifierServletTransaction - Finished reading config.
nu.validator.servlet.VerifierServletTransaction - Converted config to arrays.
nu.validator.servlet.VerifierServletTransaction - Prepared namespace array.
nu.validator.servlet.VerifierServletTransaction - Parsed doctype numbers into ints.
nu.validator.servlet.VerifierServletTransaction - The cache path prefix is: null
nu.validator.servlet.VerifierServletTransaction - Parsing set up. Starting to read schemas.
nu.validator.servlet.VerifierServletTransaction - Will load schema: http://s.validator.nu/html5/html5full.rnc
nu.validator.servlet.VerifierServletTransaction - http://s.validator.nu/html5/html5full.rnc
java.lang.ClassCastException: org.xml.sax.InputSource cannot be cast to nu.validator.xml.TypedInputSource
        at nu.validator.servlet.VerifierServletTransaction.schemaByUrl(VerifierServletTransaction.java:1229)
        at nu.validator.servlet.VerifierServletTransaction.<clinit>(VerifierServletTransaction.java:446)
        at nu.validator.servlet.VerifierServlet.<clinit>(VerifierServlet.java:87)
        at nu.validator.servlet.Main.main(Main.java:89)
Exception in thread "main" java.lang.ExceptionInInitializerError
        at nu.validator.servlet.VerifierServlet.<clinit>(VerifierServlet.java:87)
        at nu.validator.servlet.Main.main(Main.java:89)
Caused by: java.lang.RuntimeException: java.lang.ClassCastException: org.xml.sax.InputSource cannot be cast to nu.validator.xml.TypedInputSource
        at nu.validator.servlet.VerifierServletTransaction.<clinit>(VerifierServletTransaction.java:480)
        ... 2 more
Caused by: java.lang.ClassCastException: org.xml.sax.InputSource cannot be cast to nu.validator.xml.TypedInputSource
        at nu.validator.servlet.VerifierServletTransaction.schemaByUrl(VerifierServletTransaction.java:1229)
        at nu.validator.servlet.VerifierServletTransaction.<clinit>(VerifierServletTransaction.java:446)
        ... 2 more


More information about the Help mailing list