A fix is available
APAR status
Closed as program error.
Error description
While running a JAX-RS application using JSON representation, an org.codehaus.jackson.JsonParseException might occur. Here is an example error: [8/3/12 15:34:40:864 CDT] 00000017 SystemErr R org.apache.wink.client.ClientRuntimeException: org.codehaus.jackson.JsonParseException: Invalid UTF-8 middle byte 0x3f at [Source: java.io.ByteArrayInputStream@22074ed; line: 1, column: 24] [8/3/12 15:34:40:864 CDT] 00000017 SystemErr R at org.apache.wink.client.internal.handlers.ClientResponseImpl.read Entity(ClientResponseImpl.java:151) [8/3/12 15:34:40:864 CDT] 00000017 SystemErr R at org.apache.wink.client.internal.handlers.ClientResponseImpl.getE ntity(ClientResponseImpl.java:76) [8/3/12 15:34:40:865 CDT] 00000017 SystemErr R at org.apache.wink.client.internal.handlers.ClientResponseImpl.getE ntity(ClientResponseImpl.java:63) ... [8/3/12 15:34:40:877 CDT] 00000017 SystemErr R Caused by: org.codehaus.jackson.JsonParseException: Invalid UTF-8 middle byte 0x3f at [Source: java.io.ByteArrayInputStream@22074ed; line: 1, column: 24] [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.JsonParser._constructError(JsonParser.java: 1150) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(Jso nParserMinimalBase.java:324) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.Utf8StreamParser._reportInvalidOther(U tf8StreamParser.java:1675) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.Utf8StreamParser._reportInvalidOther(U tf8StreamParser.java:1682) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.Utf8StreamParser._decodeUtf8_2(Utf8Str eamParser.java:1471) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.Utf8StreamParser._finishString(Utf8Str eamParser.java:962) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.JsonParserBase.getText(JsonParserBase. java:294) ...
Local fix
NA
Problem summary
**************************************************************** * USERS AFFECTED: IBM WebSphere Application Server users of * * JAX-RS applications using JavaScript * * Object Notation (JSON) representation. * **************************************************************** * PROBLEM DESCRIPTION: While runnning a JAX-RS application * * using JSON representation, an invalid * * UTF-8 middle byte error might occur * * during parsing some UTF-8 characters. * **************************************************************** * RECOMMENDATION: Install a fix pack that includes this APAR * * * **************************************************************** While a JAX-RS client reading response using JSON representation, an invalid UTF-8 middle byte error might occur during parsing some UTF-8 characters. The error is like the following: [8/3/12 15:34:40:864 CDT] 00000017 SystemErr R org.apache.wink.client.ClientRuntimeException: org.codehaus.jackson.JsonParseException: Invalid UTF-8 middle byte 0x3f at [Source: java.io.ByteArrayInputStream@22074ed; line: 1, column: 24] [8/3/12 15:34:40:864 CDT] 00000017 SystemErr R at org.apache.wink.client.internal.handlers.ClientResponseImpl.read Entity(ClientResponseImpl.java:151) [8/3/12 15:34:40:864 CDT] 00000017 SystemErr R at org.apache.wink.client.internal.handlers.ClientResponseImpl.getE ntity(ClientResponseImpl.java:76) [8/3/12 15:34:40:865 CDT] 00000017 SystemErr R at org.apache.wink.client.internal.handlers.ClientResponseImpl.getE ntity(ClientResponseImpl.java:63 ... [8/3/12 15:34:40:877 CDT] 00000017 SystemErr R Caused by: org.codehaus.jackson.JsonParseException: Invalid UTF-8 middle byte 0x3f at [Source: java.io.ByteArrayInputStream@22074ed; line: 1, column: 24] [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.JsonParser._constructError(JsonParser.java: 1150) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(Jso nParserMinimalBase.java:324) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.Utf8StreamParser._reportInvalidOther(U tf8StreamParser.java:1675) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.Utf8StreamParser._reportInvalidOther(U tf8StreamParser.java:1682) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.Utf8StreamParser._decodeUtf8_2(Utf8Str eamParser.java:1471) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.Utf8StreamParser._finishString(Utf8Str eamParser.java:962) [8/3/12 15:34:40:878 CDT] 00000017 SystemErr R at org.codehaus.jackson.impl.JsonParserBase.getText(JsonParserBase. java:294) ... This error indicates that the JAX-RS engine could not recognize the UTF-8 character which might already be corrupted.
Problem conclusion
While JAX-RS runtime is parsing content encoded in UTF-8, it will read the content into a String and then convert the String into a byte array after parsing. During this, some UTF-8 characters might be corrupted due to incorrect conversion. The JAX-RS runtime has been updated to correctly parse UTF-8 characters. The fix for this APAR is currently targeted for inclusion in fix pack 8.5.0.2. Please refer to the Recommended Updates page for delivery information: http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
Temporary fix
Comments
APAR Information
APAR number
PM76009
Reported component name
LIBERTY PROFILE
Reported component ID
5724J0814
Reported release
850
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-10-26
Closed date
2013-02-12
Last modified date
2013-02-12
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
LIBERTY PROFILE
Fixed component ID
5724J0814
Applicable component levels
R850 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"850","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
29 October 2021