Re: Validator error

Oops, my bad. I ran into the same issue but forgot to commit the fix for 
it. Pull the last revision and it should be fixed.

On 11/23/2010 01:28 PM, Barry McCall wrote:
> Configured... as you stated... I receive the following stack trace when attempting to validate a url (internal or external)
> ERROR ( : Exception :$HttpInputStream cannot be cast to java.lang.String
> java.lang.ClassCastException:$HttpInputStream cannot be cast to java.lang.String
>          at org.w3c.unicorn.input.URIInputModule.getStringContent(
>          at org.w3c.unicorn.input.FakeUploadInputModule.<init>(
>          at org.w3c.unicorn.UnicornCall.createInputModule(
>          at org.w3c.unicorn.UnicornCall.generateRequestList(
>          at org.w3c.unicorn.UnicornCall.doNode(
>          at org.w3c.unicorn.UnicornCall.doTask(
>          at org.w3c.unicorn.action.ObserveAction.doGet(
>          at javax.servlet.http.HttpServlet.service(
>          at javax.servlet.http.HttpServlet.service(
>          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
>          at org.apache.catalina.core.ApplicationFilterChain.doFilter(
>          at org.apache.catalina.core.StandardWrapperValve.invoke(
>          at org.apache.catalina.core.StandardContextValve.invoke(
>          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
>          at org.apache.catalina.core.StandardHostValve.invoke(
>          at org.apache.catalina.valves.ErrorReportValve.invoke(
>          at org.apache.catalina.core.StandardEngineValve.invoke(
>          at org.apache.catalina.connector.CoyoteAdapter.service(
>          at org.apache.jk.server.JkCoyoteHandler.invoke(
>          at org.apache.jk.common.HandlerRequest.invoke(
>          at org.apache.jk.common.ChannelSocket.invoke(
>          at org.apache.jk.common.ChannelSocket.processConnection(
>          at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
>          at org.apache.tomcat.util.threads.ThreadPool$
>          at
> -----Original Message-----
> From: Thomas Gambet []
> Sent: Tuesday, November 23, 2010 7:58 AM
> To: Barry McCall
> Cc:
> Subject: Re: Validator error
> On 11/16/2010 10:23 AM, Barry McCall wrote:
>> We would like to utilize the validator for our internal sites (break/fix environment, QA, intranet sites).
>> These sites are not accessible from outside our firewalls and require SSL.
>> If you could point me in the right direction/configuration steps that would be awesome.
>> You're help is greatly appreciated.
> Hi,
> I've come up with the configuration you need in order to validate your
> internal websites, attached to this email for simplicity.
> For now there are some limitations that come with this configuration. It
> only registers the markup validator and the css validator. The other
> validators (feed validator and mobileOk) will come at some point too,
> but there's a bit of work on our end to be done before. You don't have
> to install any other validator apart from Unicorn unless you have an
> issue with your data being posted to our servers.
> What you have to do is start by updating your version of Unicorn with
> "hg pull&&  hg update". Then clean your last build and remake the war
> without including the configuration, ie "ant clean war". Uncompress the
> attached archive in /etc/unicorn/ (if you use another directory you'll
> have to edit some of the files accordingly). Add /etc/unicorn/ to
> tomcat's classpath (for instance you can edit and
> add it to the shared.loader property). That's it. If you have an issue
> check the logs.
> For information, what I did is remove the URI method from all the
> contracts: as your internal websites are not accessible from outside
> Unicorn shouldn't provide a uri to the validators. I also edited the
> tasklist to remove references to other validators and the file
> to load the local modified contracts.
> Regards,
> Tom

Received on Tuesday, 23 November 2010 18:49:02 UTC