abdera-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Calabrese <m...@jasoncalabrese.com>
Subject XHTML content and &nbsp;
Date Tue, 09 Oct 2007 21:55:32 GMT
When I try to set an Entry's content with xhtml containing &nbsp; I get a 
parse error.

How can I declare the nbsp entity?

Here the stack trace that I get:
rg.apache.abdera.parser.ParseException: [com.ctc.wstx.exc.WstxLazyException] 
com.ctc.wstx.exc.WstxParsingException: Undeclared general entity "nbsp"
 at [row,col {unknown-source}]: [8,162]
        at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:253)
        at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:318)
        at 
org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:614)
        at 
org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:583)
        at 
org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:117)
        at 
org.apache.axiom.om.impl.llom.OMElementImpl.setFirstChild(OMElementImpl.java:571)
        at 
org.apache.abdera.parser.stax.FOMContent.setValueElement(FOMContent.java:151)
        at 
org.apache.abdera.parser.stax.FOMContent.setValue(FOMContent.java:266)
        at 
org.apache.abdera.parser.stax.FOMEntry.setContent(FOMEntry.java:212)
        at 
com.scholaruniverse.api.profiles.output.AtomGroovyOutput.createEntry(AtomGroovyOutput.java:151)
        at 
com.scholaruniverse.api.profiles.output.AtomGroovyOutput.outputFeed(AtomGroovyOutput.java:103)
        at 
com.scholaruniverse.api.profiles.output.AtomGroovyOutput.process(AtomGroovyOutput.java:44)
        at 
com.scholaruniverse.api.profiles.ProfilesService.process(ProfilesService.java:85)
        at 
com.scholaruniverse.api.AbstractService.service(AbstractService.java:51)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
        at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
        at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
        at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
        at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
        at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        at java.lang.Thread.run(Thread.java:595)
Caused by: [com.ctc.wstx.exc.WstxLazyException] 
com.ctc.wstx.exc.WstxParsingException: Undeclared general entity "nbsp"
 at [row,col {unknown-source}]: [8,162]
        at 
com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:45)
        at 
com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:704)
        at 
com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657)
        at 
com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809)
        at 
org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:245)
        at 
org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:218)
        at 
org.apache.abdera.parser.stax.FOMBuilder.applyTextFilter(FOMBuilder.java:155)
        at org.apache.abdera.parser.stax.FOMBuilder.next(FOMBuilder.java:203)
        ... 28 more


Mime
View raw message