My Oracle Support Banner

Moxy Eclipselink (of WLS) Fail To Handle Emoji Characters (Doc ID 2232289.1)

Last updated on JUNE 11, 2024

Applies to:

Oracle WebLogic Server - Version to [Release 12c]
Information in this document applies to any platform.


The WLS bundled library moxy eclipselink fail to handle multi-bytes characters on version 12.1.3. The bundled version is moxy 2.5.2 which incorrectly handles the conversion. It converts emoji character using UTF-16 instead of UTF-8 even though the encoding character set is specified as UTF-8. The failure is in string writer when generating xml doc. But it correctly uses UTF-8 character set when generating JSON object. 

Exception Description: An error occurred unmarshalling the document

Internal Exception: ParseError at [row,col]:[3,42]
Message: Character reference "&#]
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(
Caused by: Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.XMLMarshalException





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.