WLS 7.x - Auto-typing for ArrayList of simple custom data types broken. - CR089622 (Doc ID 771798.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server / WebLogic Server / 7.x
Information in this document applies to any platform

Goal

DESCRIPTION:
Servicegen will generate a webservice from a class that returns an ArrayList of a simple custom data type without
errors, the webservice is deployed in WLS 7.0 without errors as well.  Once you try to access the webservice using the
browser testing interface it gives the error:

javax.xml.rpc.soap.SOAPFaultException: type mapping lookup failure on class=class my.webservice.is.ClientSearchResult
TypeMapping=TYPEMAPPING SIZE=1 ENTRY 1: class: java.util.ArrayList xsd_type:
['java:language_builtins.util']:p1:ArrayList ser:
weblogic.xml.schema.binding.internal.builtin.JavaUtilArrayListCodec@3e8dd3 deser:
weblogic.xml.schema.binding.internal.builtin.JavaUtilArrayListCodec@514acd javax.xml.rpc.soap.SOAPFaultException: type
mapping lookup failure on class=class my.webservice.is.ClientSearchResult TypeMapping=TYPEMAPPING SIZE=1 ENTRY 1:
class: java.util.ArrayList xsd_type: ['java:language_builtins.util']:p1:ArrayList ser:
weblogic.xml.schema.binding.internal.builtin.JavaUtilArrayListCodec@3e8dd3 deser:
weblogic.xml.schema.binding.internal.builtin.JavaUtilArrayListCodec@514acd at
weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459) at
weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:339) at
weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:271) at
weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:244) at
weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:306) at
weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:198) at
weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:124) at
weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:224) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306) at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412) at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744) at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086) at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544) at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153) at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134) 

CONFIGURATION:
WLS 7.x in general.

Solution

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