I tried to load the file via the standard scala XML stuff and got:
scala> XML.loadFile("update.html")
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException:
Invalid byte 1 of 1-byte UTF-8 sequence.
    at
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(UTF8Reader.java:674)
    at
com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:547)
    at
com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1742)
    a...
scala>

The file is not encoded in UTF-8.  I resaved the file with UTF-8 encoding
and things worked just fine.

On Tue, Nov 11, 2008 at 6:43 AM, Sebastien Bocq <[EMAIL PROTECTED]>wrote:

>
> Both alternatives work, it is actually the non-english characters that
> cause the problem. What is strange is that even though I comment out
> the line in the update.html file using <!-- --> the accent still
> causes problem. I sent you the files.
>
> Sebastien
>
> 2008/11/11 David Pollak <[EMAIL PROTECTED]>:
> > Please replace the div line with:
> > <span>Hello</span>
> >
> > and
> >
> > <div>howdy</div>
> >
> > And see if that makes any difference.
> >
> > Also, please email the file that fails to me directly.  I'll test it on
> my
> > system.
> >
> > Thanks!
> >
> > On Tue, Nov 11, 2008 at 3:09 AM, Sebastien Bocq <
> [EMAIL PROTECTED]>
> > wrote:
> >>
> >> I'm on windows xp with 2Gb RAM. Even commenting out the 'div' line is
> >> not enough, it works only when I remove it.
> >>
> >> 2008/11/11 David Pollak <[EMAIL PROTECTED]>:
> >> >
> >> >
> >> > On Mon, Nov 10, 2008 at 2:52 PM, Sebastien Bocq
> >> > <[EMAIL PROTECTED]>
> >> > wrote:
> >> >>
> >> >> I restarted jetty with clean but it still doesn't work. I use the
> >> >> following version of maven with the default options.
> >> >>
> >> >> Maven version: 2.0.9
> >> >> Java version: 1.6.0_07
> >> >
> >> > What OS are you using and how much RAM is in your machine?
> >> >
> >> >>
> >> >> I never used maven before, how do you increase the memory size?
> >> >>
> >> >> Thanks,
> >> >> Sebastien
> >> >>
> >> >> 2008/11/10 Tim Perrett <[EMAIL PROTECTED]>:
> >> >> >
> >> >> > If your getting out of memory errors, just restart Jetty. That
> should
> >> >> > fix it no problem. Try:
> >> >> >
> >> >> > mvn clean jetty:run
> >> >> >
> >> >> > You will occasionally need to restart Jetty - what size memory have
> >> >> > to
> >> >> > set maven to use?
> >> >> >
> >> >> > Cheers, Tim
> >> >> >
> >> >> > On 10 Nov 2008, at 15:34, sbocq wrote:
> >> >> >
> >> >> >>
> >> >> >> Hello,
> >> >> >>
> >> >> >> I'm following the lift tutorial from IBM here:
> >> >> >> http://www.ibm.com/developerworks/opensource/library/os-ag-lift/
> >> >> >>
> >> >> >> When I create the update.html page with the following content:
> >> >> >> <lift:surround with="default" at="content">
> >> >> >>    <div class="heading" id="title">Qué pasa</div>
> >> >> >>    <form method="POST">
> >> >> >>        <label for="update">What's going on? </label>
> >> >> >>        <input type="text" name="update"/>
> >> >> >>        <input type="submit" value="update"/>
> >> >> >>    </form>
> >> >> >> </lift:surround>
> >> >> >>
> >> >> >> I get this error because of the div tag:
> >> >> >>
> >> >> >> Exception occured while processing /update
> >> >> >>
> >> >> >> Message: java.lang.OutOfMemoryError: Java heap space
> >> >> >>
> >> >> >>
> >> >> >>
> scala.StringBuilder$.scala$StringBuilder$$copyOf(StringBuilder.scala:
> >> >> >> 868)
> >> >> >>       scala.StringBuilder.expandCapacity(StringBuilder.scala:113)
> >> >> >>       scala.StringBuilder.append(StringBuilder.scala:365)
> >> >> >>
> >> >> >>
> scala.xml.parsing.MarkupParser$class.putChar(MarkupParser.scala:236)
> >> >> >>
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.putChar(PCDataMarkupParser.scala:77)
> >> >> >>
> >> >> >> scala.xml.parsing.MarkupParser$class.xText(MarkupParser.scala:761)
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.xText(PCDataMarkupParser.scala:77)
> >> >> >>
> >> >> >>
> scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala:541)
> >> >> >>
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala:77)
> >> >> >>
> >> >> >>
> >> >> >>
> scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala:682)
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala:
> >> >> >> 77)
> >> >> >>
> >> >> >>
> >> >> >>
> scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala:481)
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala:
> >> >> >> 77)
> >> >> >>
> >> >> >>
> scala.xml.parsing.MarkupParser$class.content(MarkupParser.scala:505)
> >> >> >>
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.content(PCDataMarkupParser.scala:77)
> >> >> >>
> >> >> >>
> >> >> >>
> scala.xml.parsing.MarkupParser$class.element1(MarkupParser.scala:682)
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.element1(PCDataMarkupParser.scala:
> >> >> >> 77)
> >> >> >>
> >> >> >>
> >> >> >>
> scala.xml.parsing.MarkupParser$class.content1(MarkupParser.scala:481)
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.content1(PCDataMarkupParser.scala:
> >> >> >> 77)
> >> >> >>
> >> >> >>
> >> >> >>
> scala.xml.parsing.MarkupParser$class.document(MarkupParser.scala:206)
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser.document(PCDataMarkupParser.scala:
> >> >> >> 77)
> >> >> >>
> >> >> >>
> net.liftweb.util.PCDataXmlParser$.apply(PCDataMarkupParser.scala:88)
> >> >> >>
> >> >> >>
> net.liftweb.http.TemplateFinder$$anonfun$findAnyTemplate$1$$anonfun
> >> >> >> $apply$44.apply(LiftSession.scala:766)
> >> >> >>
> >> >> >>
> net.liftweb.http.TemplateFinder$$anonfun$findAnyTemplate$1$$anonfun
> >> >> >> $apply$44.apply(LiftSession.scala:766)
> >> >> >>       net.liftweb.util.Full.flatMap(Can.scala:266)
> >> >> >>       net.liftweb.http.TemplateFinder$$anonfun$findAnyTemplate
> >> >> >> $1.apply(LiftSession.scala:766)
> >> >> >>       net.liftweb.http.TemplateFinder$$anonfun$findAnyTemplate
> >> >> >> $1.apply(LiftSession.scala:766)
> >> >> >>       net.liftweb.util.Helpers$.first(Helpers.scala:167)
> >> >> >>
> >> >> >>
> net.liftweb.http.TemplateFinder$.findAnyTemplate(LiftSession.scala:
> >> >> >> 766)
> >> >> >>
> >> >> >>
> net.liftweb.http.LiftSession$$anonfun$net$liftweb$http$LiftSession$
> >> >> >> $findVisibleTemplate$1.apply(LiftSession.scala:400)
> >> >> >>
> >> >> >>
> net.liftweb.http.LiftSession$$anonfun$net$liftweb$http$LiftSession$
> >> >> >> $findVisibleTemplate$1.apply(LiftSession.scala:394)
> >> >> >>       net.liftweb.util.EmptyCan.or(Can.scala:310)
> >> >> >>
> >> >> >> Thanks,
> >> >> >> Sebastien
> >> >> >>
> >> >> >> >
> >> >> >>
> >> >> >
> >> >> > Tim Perrett
> >> >> > print application architect
> >> >> >
> >> >> > t: +44 (0) 78144 34 791
> >> >> > e: [EMAIL PROTECTED]
> >> >> > w: timperrett.com
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> > Lift, the simply functional web framework http://liftweb.net
> >> > Collaborative Task Management http://much4.us
> >> > Follow me: http://twitter.com/dpp
> >> > Git some: http://github.com/dpp
> >> >
> >> > >
> >> >
> >>
> >>
> >
> >
> >
> > --
> > Lift, the simply functional web framework http://liftweb.net
> > Collaborative Task Management http://much4.us
> > Follow me: http://twitter.com/dpp
> > Git some: http://github.com/dpp
> >
> > >
> >
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Collaborative Task Management http://much4.us
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

¿Qué pasa?

Reply via email to