dzsessona / scamandrill

Apache License 2.0
16 stars 24 forks source link

Add documentation #1

Open frossi85 opened 10 years ago

frossi85 commented 10 years ago

Hi,

I am trying to use this library with a Play 2.2 application and It gives me an error. It will very helpfull to have some documentation and more if It comes with Play integration.

Regards

Facundo

dzsessona commented 10 years ago

Sure, will add the documentation and a part specifically for play, could you provide me with the error from play meanwhile?

Regards, Diego

frossi85 commented 10 years ago

Seems to be a problem of incompatibility between akka version that comes with play 2.2.2 (akka 2.0.0) and the version of akka in scamandrill and spray.

I'm using Play on Heroku, then it is not an option rebuild play. Here is the stack trace. Any help will be very appraciate because I want to use this library this week to solve a problem.

play.api.Application$$anon$1: Execution exception[[RuntimeException: java.lang.N oSuchMethodError: akka.actor.ActorSystem.dispatcher()Lscala/concurrent/Execution ContextExecutor;]] at play.api.Application$class.handleError(Application.scala:293) ~[play 2.10.jar:2.2.2] at play.api.DefaultApplication.handleError(Application.scala:399) [play 2.10.jar:2.2.2] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$12$$anonfu n$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:165) [play_2.10.jar:2.2.2 ] at play.core.server.netty.PlayDefaultUpstreamHandler$$anonfun$12$$anonfu n$apply$1.applyOrElse(PlayDefaultUpstreamHandler.scala:162) [play_2.10.jar:2.2.2 ] at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.s cala:33) [scala-library-2.10.4.jar:na] Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodError: akka.actor.A ctorSystem.dispatcher()Lscala/concurrent/ExecutionContextExecutor; at play.api.mvc.ActionBuilder$$anon$1.apply(Action.scala:314) ~[play_2.1 0.jar:2.2.2] at play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$ 5.apply(Action.scala:109) ~[play_2.10.jar:2.2.2] at play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4$$anonfun$apply$ 5.apply(Action.scala:109) ~[play_2.10.jar:2.2.2] at play.utils.Threads$.withContextClassLoader(Threads.scala:18) ~[play_2 .10.jar:2.2.2] at play.api.mvc.Action$$anonfun$apply$1$$anonfun$apply$4.apply(Action.sc ala:108) ~[play_2.10.jar:2.2.2] Caused by: java.lang.NoSuchMethodError: akka.actor.ActorSystem.dispatcher()Lscal a/concurrent/ExecutionContextExecutor; at com.joypeg.scamandrill.client.ScamandrillSendReceive$class.executeQue ry(ScamandrillSendReceive.scala:41) ~[scamandrill_2.10-1.0.0.jar:1.0.0] at com.joypeg.scamandrill.client.MandrillAsyncClient$.executeQuery(Mandr illAsyncClient.scala:8) ~[scamandrill_2.10-1.0.0.jar:1.0.0] at com.joypeg.scamandrill.client.MandrillAsyncClient$.usersPing(Mandrill AsyncClient.scala:28) ~[scamandrill_2.10-1.0.0.jar:1.0.0] at controllers.Application$$anonfun$mailTest$1.apply(Application.scala:1 33) ~[classes/:na] at controllers.Application$$anonfun$mailTest$1.apply(Application.scala:1 30) ~[classes/:na]

Versions that I use: play 2.2.2 built with Scala 2.10.3

dzsessona commented 10 years ago

Thank you @frossi85 , will look at it and let you know asap....

frossi85 commented 10 years ago

There is some news about this issue?? Any guide to help you to solve it??

Regards

Facundo

angeloh commented 9 years ago

Co-ask. Can anyone provide a workaround for Play 2.2?