This is what happends when you work on multiple things at once.
Shame on me :(

The thing is that I am not using the shindig-server and my application for
some reasons was using an old XercesImpl (2.4).

Never mind then :)

On Wed, May 5, 2010 at 6:54 PM, franck tankoua <ftank...@gmail.com> wrote:

> Arggg still stuck on this.
> I ran some unit testing and there are working fine.
> Now I took the same contain which I have put in an xml to be render by the
> gadget and it still showing me this error. something is getting unset
> somewhere may be when the server is starting but I just can't figure out
> where.
> here is the xml I am using.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
>   <ModulePrefs title="test">
>     <Require feature="opensocial-0.8" />
>   </ModulePrefs>
>   <Content type="html">
>     <![CDATA[
>       <script>document.write("dont add to head or else")</script>
>       <style type="text/css"> A { font : bold; }</style>
>     ]]>
>   </Content>
> </Module>
>
> Could someone guide me on where I need to have deeper look?
>
> thanks
>
>
> On Tue, May 4, 2010 at 9:10 PM, franck tankoua <ftank...@gmail.com> wrote:
>
>> Actually the encoding is set to "UTF-8" at line 161.
>>
>>
>> On Tue, May 4, 2010 at 3:44 PM, Mat Mannion <mat.mann...@gmail.com>wrote:
>>
>>> I wonder if the character encoding is being changed from UTF-8 somewhere,
>>> or
>>> if Neko is using the default character encoding from the OS/Java and
>>> getting
>>> muddled.
>>>
>>> On 4 May 2010 14:08, franck tankoua <ftank...@gmail.com> wrote:
>>>
>>> > Hi Paul,
>>> >
>>> > The error is actually comming from  the xml I guess. When debugging, I
>>> have
>>> > got the contains of the xml into the source (
>>> > inputSource.setCharacterStream(new StringReader(source));  line 162 of
>>> > NekoSimplifiedHtmlParser.java)
>>> >
>>> > But This xml  (http://www.google.com/ig/modules/horoscope.xml) should
>>> not
>>> > be
>>> > a problem.
>>> >
>>> > Any suggestion?
>>> >
>>> >
>>> >
>>> >
>>> > On Mon, May 3, 2010 at 7:49 PM, Paul Lindner <lind...@inuus.com>
>>> wrote:
>>> >
>>> > > Try putting CDATA guards around your scripts.
>>> > >
>>> > > On Mon, May 3, 2010 at 4:41 AM, franck tankoua <ftank...@gmail.com>
>>> > wrote:
>>> > >
>>> > > > Hi All,
>>> > > > I am having a issue with my gadget I don't know what is going on.
>>> > > > Basically I have a simple Js like this :
>>> > > >
>>> > > > var specUrl0 = 'http://www.google.com/ig/modules/horoscope.xml';
>>> > > >
>>> > > > // This container lays out and renders gadgets itself.
>>> > > >
>>> > > > function renderGadgets() {
>>> > > >  var gadget0 = shindig.container.createGadget({specUrl: specUrl0});
>>> > > >  shindig.container.addGadget(gadget0);
>>> > > >
>>> >
>>>  shindig.container.layoutManager.setGadgetChromeIds(['gadget-chrome-x']);
>>> > > >  shindig.container.renderGadget(gadget0);
>>> > > > };
>>> > > >
>>> > > > I have tired to debug and the error is comming from
>>> > > > NekoSimplifiedHtmlParser.java at line 164 [
>>> > > htmlScanner.scanDocument(true);
>>> > > > ]
>>> > > >
>>> > > > have anyone stumbled upon this before?
>>> > > >
>>> > > > 2010-05-03 13:36:58 ERROR
>>> > > >
>>> > > >
>>> > >
>>> >
>>> [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[xml-to-html]]
>>> > > > Servlet.service() for servlet xml-to-html threw exception
>>> > > > org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or
>>> illegal
>>> > > XML
>>> > > > character is specified.
>>> > > >    at
>>> org.apache.xerces.dom.CoreDocumentImpl.createElementNS(Unknown
>>> > > > Source)
>>> > > >    at
>>> > org.apache.xerces.dom.DOMImplementationImpl.createDocument(Unknown
>>> > > > Source)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.gadgets.parse.GadgetHtmlParser.errorDom(GadgetHtmlParser.java:279)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.gadgets.parse.GadgetHtmlParser.parseDom(GadgetHtmlParser.java:110)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.gadgets.rewrite.MutableContent.getDocument(MutableContent.java:138)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.gadgets.rewrite.old.HTMLContentRewriter.rewriteImpl(HTMLContentRewriter.java:115)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.gadgets.rewrite.old.HTMLContentRewriter.rewrite(HTMLContentRewriter.java:107)
>>> > > >    at
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.gadgets.render.HtmlRenderer.render(HtmlRenderer.java:88)
>>> > > >    at
>>> > org.apache.shindig.gadgets.render.Renderer.render(Renderer.java:93)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.gadgets.servlet.GadgetRenderingServlet.render(GadgetRenderingServlet.java:75)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.gadgets.servlet.GadgetRenderingServlet.doGet(GadgetRenderingServlet.java:123)
>>> > > >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> > > >    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.auth.AuthenticationServletFilter.callChain(AuthenticationServletFilter.java:123)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.shindig.auth.AuthenticationServletFilter.doFilter(AuthenticationServletFilter.java:86)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
>>> > > >    at
>>> > > >
>>> > >
>>> >
>>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
>>> > > >    at
>>> > > >
>>> > >
>>> >
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>>> > > >    at
>>> > > >
>>> > > >
>>> > >
>>> >
>>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>>> > > >    at java.lang.Thread.run(Thread.java:595)
>>> > > >
>>> > > > thanks
>>> > > >
>>> > > > --
>>> > > > Franck
>>> > > >
>>> > >
>>> >
>>> >
>>> >
>>> > --
>>> > Franck
>>> >
>>>
>>>
>>>
>>> --
>>> Mat Mannion
>>> Web Developer
>>> e-lab, IT Services
>>> University of Warwick
>>> Coventry
>>> CV4 7AL
>>>
>>> Tel: 024 765 74433
>>> Email: m.mann...@warwick.ac.uk
>>>
>>
>>
>>
>> --
>> Franck
>>
>
>
>
> --
> Franck
>



-- 
Franck

Reply via email to