java.lang.IllegalArgumentException: Cookie name contains a comma

Jenkins JIRA | Jens Großmann | 4 years ago
  1. 0

    Hi, we have the problem, that we runs on our build/development machine many instances of java software. Our main application, sets a cookie with this cookie name: "SessionPersistence-dev-publish,publishdev" We can't changed this cookie name. If I get the webfrontend of this application, e.g.: http://<developmentmachine>.<localdomain>:4503/ Then I get a cookie with this name. If I change now to jenkins on the same machine: http://<developmentmachine>.<localdomain>:8080/jenkins/ then I get a blank white page. In jenkins.log I get the following exception: {code}Sep 25, 2012 9:27:23 AM winstone.Logger logInternal SEVERE: Error within request handler thread java.lang.IllegalArgumentException: Cookie name contains a comma at javax.servlet.http.Cookie.setName(Cookie.java:79) at javax.servlet.http.Cookie.<init>(Cookie.java:25) at winstone.WinstoneRequest.parseCookieLine(WinstoneRequest.java:698) at winstone.WinstoneRequest.parseHeaders(WinstoneRequest.java:653) at winstone.HttpListener.parseHeaders(HttpListener.java:394) at winstone.HttpListener.parseURI(HttpListener.java:256) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:75) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code} Workarounds: 1.) Access jenkins directly via IP. 2.) Delete this cookie. Is this the desired behavior? many regards, Jens

    Jenkins JIRA | 4 years ago | Jens Großmann
    java.lang.IllegalArgumentException: Cookie name contains a comma
  2. 0

    Hi, we have the problem, that we runs on our build/development machine many instances of java software. Our main application, sets a cookie with this cookie name: "SessionPersistence-dev-publish,publishdev" We can't changed this cookie name. If I get the webfrontend of this application, e.g.: http://<developmentmachine>.<localdomain>:4503/ Then I get a cookie with this name. If I change now to jenkins on the same machine: http://<developmentmachine>.<localdomain>:8080/jenkins/ then I get a blank white page. In jenkins.log I get the following exception: {code}Sep 25, 2012 9:27:23 AM winstone.Logger logInternal SEVERE: Error within request handler thread java.lang.IllegalArgumentException: Cookie name contains a comma at javax.servlet.http.Cookie.setName(Cookie.java:79) at javax.servlet.http.Cookie.<init>(Cookie.java:25) at winstone.WinstoneRequest.parseCookieLine(WinstoneRequest.java:698) at winstone.WinstoneRequest.parseHeaders(WinstoneRequest.java:653) at winstone.HttpListener.parseHeaders(HttpListener.java:394) at winstone.HttpListener.parseURI(HttpListener.java:256) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:75) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) {code} Workarounds: 1.) Access jenkins directly via IP. 2.) Delete this cookie. Is this the desired behavior? many regards, Jens

    Jenkins JIRA | 4 years ago | Jens Großmann
    java.lang.IllegalArgumentException: Cookie name contains a comma
  3. 0

    Cookie name "OpenGrok/project" is a reserved token (Bugzilla #17631)

    GitHub | 4 years ago | vladak
    java.lang.IllegalArgumentException: Cookie name "OpenGrok/project" is a reserved token
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Worklight 6.2 - Issue with cookies that have command and ampersand

    Stack Overflow | 2 years ago | asselin
    java.lang.IllegalArgumentException: Cookie name "e &amp; o" is a reserved token
  6. 0

    cookie problem

    Google Groups | 1 decade ago | Haitham Mahmoud
    java.lang.IllegalArgumentException: Cookie name Path is a reserved token

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cookie name contains a comma

      at javax.servlet.http.Cookie.setName()
    2. JavaServlet
      Cookie.<init>
      1. javax.servlet.http.Cookie.setName(Cookie.java:79)
      2. javax.servlet.http.Cookie.<init>(Cookie.java:25)
      2 frames
    3. winstone
      RequestHandlerThread.run
      1. winstone.WinstoneRequest.parseCookieLine(WinstoneRequest.java:698)
      2. winstone.WinstoneRequest.parseHeaders(WinstoneRequest.java:653)
      3. winstone.HttpListener.parseHeaders(HttpListener.java:394)
      4. winstone.HttpListener.parseURI(HttpListener.java:256)
      5. winstone.RequestHandlerThread.run(RequestHandlerThread.java:75)
      5 frames
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      2. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      3. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3 frames
    5. winstone
      BoundedExecutorService$1.run
      1. winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
      1 frame
    6. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames