My Oracle Support Banner

javax.enterprise.resource.webcontainer.jsf.config "Unknow type constant pool" Errors When Using Lambdas Expressions in WebLogic 12.1.3. with JDK 8 (Doc ID 2121316.1)

Last updated on AUGUST 27, 2018

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

"Unknow type constant pool" errors occur when using Lamdbas expressions in WebLogic 12.1.3.0.4 and JDK 8.

(Unknown is misspelled in the error)
 

The messages are generated when the managed servers are started or the application is redeployed.

For example, application is using using managed bean containing lambda expression:

final List<Object> list = new ArrayList<>(0);
list.stream().sorted((a, b) ->
(a.getClass().getName().compareTo(b.getClass().getName())))
.filter((o) -> (!o.getClass().getName().isEmpty()));


This also happens when using other lambda expressions such as:

final List<Integer> list = new ArrayList<>();
list.stream().collect(Collectors.toList());
TreeMap<Double, List<Integer>> map =
list.stream().collect(Collectors.groupingBy(Integer::doubleValue,
() -> new TreeMap<>(),
Collectors.mapping(Function.identity(), Collectors.toList())));
list.stream().forEach(d -> d.byteValue());
list.sort((a, b) -> a.compareTo(b));
list.stream().min((a, b) -> a.compareTo(b));
list.stream().anyMatch(b -> b.equals(1));
list.removeIf(b -> b.equals(3));
list.stream().map(b -> b.byteValue());

  


STACK TRACE
-----------------------

####<Feb 19, 2016 12:13:49 AM EST> <Error>
<javax.enterprise.resource.webcontainer.jsf.config>
<xxxx.us.oracle.com> <AdminServer> <[ACTIVE] ExecuteThread:
'7' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <>
<> <1455858829745> <BEA-000000> <Unknow type constant pool 105 at position 198>
####<Feb 19, 2016 12:13:49 AM EST> <Error>
<javax.enterprise.resource.webcontainer.jsf.config>
<xxxx.us.oracle.com> <AdminServer> <[ACTIVE] ExecuteThread:
'7' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <>
<> <1455858829746> <BEA-000000> <Unknow type constant pool 108 at position 199>
####<Feb 19, 2016 12:13:49 AM EST> <Error>
<javax.enterprise.resource.webcontainer.jsf.config>
<xxxx.us.oracle.com> <AdminServer> <[ACTIVE] ExecuteThread:
'7' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <>
<> <1455858829746> <BEA-000000> <Unknow type constant pool 100 at position 200>
####<Feb 19, 2016 12:13:49 AM EST> <Error>
<javax.enterprise.resource.webcontainer.jsf.config>
<xxxx.us.oracle.com> <AdminServer> <[ACTIVE] ExecuteThread:
'7' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <>
<> <1455858829747> <BEA-000000> <Unknow type constant pool 101 at position 201>

....


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.