Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

IllegalStateException CookieEncoder.encodeServerSide when I add a couchbase dependency to my Play2 project.

2 replies [Last post]
  • Login or register to post comments
Mon, 01/14/2013 - 08:09
derekdon
Offline
Joined: 09/10/2012
Groups: None

Hoping to use the Java Couchbase client in a Play 2.0 project and getting the netty error below when I simply add it to the appDependencies and run and access the project in the browser.

val appDependencies = Seq(
      "couchbase" % "couchbase-client" % "1.1.0",
...

play.core.ActionInvoker$$anonfun$receive$1$$anon$1: Execution exception [[IllegalStateException: encode() can encode only one cookie on server mode: 2 cookies added]]
        at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:134) [play_2.9.1-2.0.4.jar:2.0.4]
        at play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:115) [play_2.9.1-2.0.4.jar:2.0.4]
        at akka.actor.Actor$class.apply(Actor.scala:318) [akka-actor-2.0.2.jar:2.0.2]
        at play.core.ActionInvoker.apply(Invoker.scala:113) [play_2.9.1-2.0.4.jar:2.0.4]
        at akka.actor.ActorCell.invoke(ActorCell.scala:626) [akka-actor-2.0.2.jar:2.0.2]
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:197) [akka-actor-2.0.2.jar:2.0.2]
Caused by: java.lang.IllegalStateException: encode() can encode only one cookie on server mode: 2 cookies added
        at org.jboss.netty.handler.codec.http.CookieEncoder.encodeServerSide(CookieEncoder.java:101) ~[netty-3.5.5.Final.jar:na]
        at org.jboss.netty.handler.codec.http.CookieEncoder.encode(CookieEncoder.java:91) ~[netty-3.5.5.Final.jar:na]
        at play.api.mvc.Cookies$.encode(Http.scala:574) ~[play_2.9.1-2.0.4.jar:2.0.4]
        at play.api.mvc.Cookies$.merge(Http.scala:598) ~[play_2.9.1-2.0.4.jar:2.0.4]
        at play.api.mvc.PlainResult$class.withCookies(Results.scala:84) ~[play_2.9.1-2.0.4.jar:2.0.4]
        at play.api.mvc.SimpleResult.withCookies(Results.scala:192) ~[play_2.9.1-2.0.4.jar:2.0.4]

Any ideas?

Top
  • Login or register to post comments
Thu, 01/17/2013 - 02:07
tgrall
Offline
Joined: 09/05/2012
Groups: None

Hello,

Which version of Java are you using?

If using Java7 could you try with Java6, we have seen some exception with Java7.

Regards

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Fri, 01/18/2013 - 17:40
derekdon
Offline
Joined: 09/10/2012
Groups: None

Thanks, but I'm using Java 6. Think it might be a problem with the version of netty in use, but I can't be sure.

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker