IllegalStateException CookieEncoder.encodeServerSide when I add a couchbase dependency to my Play2 project.
Mon, 01/14/2013 - 08:09
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?
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