My Oracle Support Banner

IllegalArgumentException Is Thrown When Creating a Cookie (Doc ID 1663719.1)

Last updated on APRIL 06, 2018

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


A Web application is deployed into WebLogic Server 12.1.2.
When creating a javax.servlet.http.Cookie with name "prt:Prof", the IllegalArgumentException exception as the following :

java.lang.IllegalArgumentException: Cookie name "prt:Prof" is a reserved token
at javax.servlet.http.Cookie.<init>(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at weblogic.servlet.internal.StubSecurityHelper$

This exception does not occur against WebLogic Server 10.3.6 version.


To view full details, 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 a vibrant support community of peers and Oracle experts.