[jdom-interest] Issue with Jdom parsing control character
Abhishek Parwal
pabhishek at novell.com
Tue Nov 6 01:06:25 PST 2007
Hi,
When i try to parse the control chars the following exception occurs:
org.jdom.input.JDOMParseException: Error on line 1: Character reference
"" is an invalid XML character. at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:381) at
org.jdom.input.SAXBuilder.build(SAXBuilder.java:764) at
com.novell.emframe.dev.DataHandlerHelper.setString(DataHandlerHelper.java:233) at com.novell.emframe.dev.DirUtils.writeAttributeXML(DirUtils.java:648) at com.novell.emframe.fw.Target.write(Target.java:715) at com.novell.emframe.fw.TargetCollection.write(TargetCollection.java:434) at com.novell.emframe.dev.DirPropertyBookPage.save(DirPropertyBookPage.java:111) at com.novell.emframe.dev.PropertyBookPage.cache(PropertyBookPage.java:324) at com.novell.emframe.dev.PropertyBook.doApply(PropertyBook.java:920) at com.novell.emframe.dev.PropertyBook.execute(PropertyBook.java:155) at com.novell.emframe.dev.Task.execute(Task.java:505) at com.novell.nps.gadgetManager.BaseGadgetInstance.processRequest(BaseGadgetInstance.java:849) at com.novell.nps.gadgetManager.BaseGadgetInstance.handleAction(BaseGadgetInstance.java:2375) at com.novell.nps.gadgetManager.GadgetManager.processInstanceRequest(GadgetManager.java:1606) at com.novell.nps.gadgetManager.GadgetManager.processServiceRequest(Gadget!
Manager.java:1062) at com.novell.nps.PortalServlet.handleFrameService(PortalServlet.java:496) at com.novell.nps.PortalServlet.processRequest(PortalServlet.java:369) at com.novell.nps.PortalServlet.doPost(PortalServlet.java:275) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at com.novell.emframe.fw.servlet.AuthenticatorServlet.service(AuthenticatorServlet.java:291) 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:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.jav!
a:198) at org.apache.catalina.core.StandardContextValve.invoke(Standar
dContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.c!
atalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:300) at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:374) at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:743) at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675) at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:866) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:534) Caused by: org.xml.sax.SAXParseException: Character reference "" is an invalid XML character. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErr!
orReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLEr
rorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLScanner.scanCharReferenceValue(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCharReference(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.jdom.input.SAXBuilder.build(SAXBuilder.java:370) ... 48 more Caused by: org.xml.sax.SAXParseException: Character reference "" is an invalid XML character. at org.apache.xerces.util.ErrorHandlerWrapper.createSA
Please guide how to reasolve this problem.
Thanks and Regards,
Abhishek Parwal
More information about the jdom-interest
mailing list