My Oracle Support Banner

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

Last updated on JUNE 08, 2023

Applies to:

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

Symptoms

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: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,42]
Message: Character reference "&#]
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:980)
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:588)
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:182)
at com.abb.marshaltest.JAXBExample.main(JAXBExample.java:57)
Caused by: Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.XMLMarshalException

 

Changes

 

Cause

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
Symptoms
Changes
Cause
Solution
References


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