com.hp.hpl.jena.shared.CannotEncodeCharacterException

cannot encode (char) in contentXML

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • cannot encode (char) in contentXML
  • Stack trace

    • com.hp.hpl.jena.shared.CannotEncodeCharacterException: cannot encode (char) in contentXML at com.hp.hpl.jena.rdf.model.impl.Util.substituteEntitiesInElementContent(Util.java:153) at com.hp.hpl.jena.xmloutput.impl.Basic.writeLiteral(Basic.java:174) at com.hp.hpl.jena.xmloutput.impl.Basic.writePredicate(Basic.java:104) at com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:77) at com.hp.hpl.jena.xmloutput.impl.Basic.writeRDFStatements(Basic.java:66) at com.hp.hpl.jena.xmloutput.impl.Basic.writeBody(Basic.java:40) at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.writeXMLBody(BaseXMLWriter.java:455) at com.hp.hpl.jena.xmloutput.impl.BaseXMLWriter.write(BaseXMLWriter.java:424) at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.saveModel(Unknown Source) at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.save(Unknown Source) at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.save(Unknown Source) at edu.stanford.smi.protegex.owl.jena.protege2jena.Protege2Jena.saveAll(Unknown Source) at edu.stanford.smi.protegex.owl.jena.JenaOWLModel.save(Unknown Source) at MiningExtract.BuildHealthProvider.IntegrateOntology(BuildHealthProvider.java:1453) at MiningExtract.BuildHealthProvider.main(BuildHealthProvider.java:1692)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.