Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register

Ticket #416 (new defect)

Opened 1 year ago

Last modified 1 year ago

Apostrophe in FormEntry xsd causes fatal 'Invalid byte 2 of 2-byte UTF-8 sequence' error

Reported by: yanokwa Assigned to: bmamlin
Priority: minor Milestone:
Component: FormEntry Module Keywords:
Cc:

Description

A fatal error occurs when rebuilding a form. This error is caused when the DOMParser encounters an apostrophe in the FormEntry.xsd (concept_name.name, concept_name.description). The current workaround is to remove apostrophes from these fields. However, we need to be able to support apostrophes.

 [Fatal Error] FormEntry.xsd:2975:100: Invalid byte 2 of 2-byte UTF-8 sequence.
 ERROR - PublishInfoPath.determineForm(386) |2007-06-20 13:30:47,967| Error parsing form data
 org.xml.sax.SAXParseException: Invalid byte 2 of 2-byte UTF-8 sequence.
   at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
   at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
   at org.openmrs.module.formentry.PublishInfoPath.determineForm(PublishInfoPath.java:364)
   at org.openmrs.module.formentry.PublishInfoPath.publishXSN(PublishInfoPath.java:161)
   at org.openmrs.module.formentry.PublishInfoPath.publishXSN(PublishInfoPath.java:132)
   at org.openmrs.module.formentry.PublishInfoPath.publishXSN(PublishInfoPath.java:104)
   at org.openmrs.module.formentry.web.FormDownloadServlet.doGet(FormDownloadServlet.java:199) 

Change History

07/07/07 22:25:42 changed by bwolfe

Related to #218 and #225