WLS 10.3: When using deployed JAX-WS stub client to invoke Axis WebService you will notice error: java.nio.charset.IllegalCharsetNameException: "utf-8" (Doc ID 1278944.1)

Last updated on FEBRUARY 10, 2017

Applies to:

Oracle Weblogic Server - Version: 10.3 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

When using Jax-WS stub client in a web application deployed on WebLogic 10.3.0, to invoke Axis Web Service deployed on Oracle AS 10.1.2.02, you will notice the below error:
<TITLE>500 Internal Server Error</TITLE>
</HEAD>
<BODY>
<H1>500 Internal Server Error</H1>
<PRE>
java.nio.charset.IllegalCharsetNameException: "utf-8"
at java.nio.charset.Charset.checkName(Charset.java:300)
at java.nio.charset.Charset.lookup(Charset.java:418)
at java.nio.charset.Charset.forName(Charset.java:456)
at java.lang.StringCoding$DecoderCache.makeDecoder(StringCoding.java:109)
at java.lang.StringCoding$1.run(StringCoding.java:155)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java(Compiled Code))
at java.lang.StringCoding$DecoderCache.getDecoder(StringCoding.java(Compiled Code))
at java.lang.StringCoding.getDecoder(StringCoding.java(Inlined Compiled Code))

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms