Edmondo,

when you create your ActorSystem you'll have to provide it with a stable
ClassLoader.
Ask on the sbt-ML which ClassLoader is preferrable.

On Sun, May 29, 2016 at 12:53 PM, Edmondo Porcu <
edmondo.po...@gottexbrokers.com> wrote:

> Hello,
>
> when I try to run my tests from SBT the first time they correctly compile
> and execute.
>
> On the second run, I get the following error:
>
> java.lang.ClassCastException: interface akka.event.LoggingFilter is not
> assignable from class akka.event.DefaultLoggingFilter
> (ReflectiveDynamicAccess.scala:23)
> [error]
> akka.actor.ReflectiveDynamicAccess$$anonfun$getClassFor$1.apply(ReflectiveDynamicAccess.scala:23)
> [error]
> akka.actor.ReflectiveDynamicAccess$$anonfun$getClassFor$1.apply(ReflectiveDynamicAccess.scala:20)
> [error]
> akka.actor.ReflectiveDynamicAccess.getClassFor(ReflectiveDynamicAccess.scala:20)
> [error]
> akka.actor.ReflectiveDynamicAccess.createInstanceFor(ReflectiveDynamicAccess.scala:38)
>
>
> In my Specs2 tests I am creating and tearing down an ActorSystem (I will
> eventually move to a single shared actor systems across multiple tests, but
> it should not make any difference). How can I address this issue?
> Restarting SBT solves it, but obviously it is not a sustainable solution
>
> Thanks
>
> Edmondo
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Cheers,
√

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to