Giter Club home page Giter Club logo

akkaguice's People

Contributors

chanan avatar rafalfaron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

akkaguice's Issues

Problem with AkkaGuice and Play 2.4

I'm trying to integrate AkkaGuice and Play 2.4 and I'm getting the following error from Guice -

Could not find a suitable constructor in akkaGuice.AkkaGuicePlugin. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.

I am following the example in the README.
Any idea why this is happening ?

Regards, Deyan

java.lang.NoClassDefFoundError: org/reflections/scanners/TypesScanner

Hi Chanan,

just got pointed to this project on the Play Framework mailinglist and this is exactly what I was looking for!

I started integrating AkkaGuice into my existing project and immediately bumped into the exception mentioned in the subject. I'm not quite sure what's going on but I think there is a clash between "org.reflections" % "reflections" % "0.9.9-RC1" used by AkkaGuice and the version used by Play.

I downgraded from Play 2.3.6 to 2.3.4 but the issue remains. Is this a known issue or is there any workaround available (If it helps I can provide you my full config)? Thanks!

PerRequest Actor getting the same name

Error in custom provider, akka.actor.InvalidActorNameException: actor name [PerRequest-114326323442451120] is not unique!
at akkaGuice.AkkaGuiceModule.RegisterActors(AkkaGuiceModule.java:59)
while locating akka.actor.ActorRef annotated with @com.google.inject.name.Named(value=PerRequest)
for parameter 4 at controllers.Application.(Application.java:24)
while locating controllers.Application

Documentation for

Guess this is a suggestion more than an issue. Would make it clear to have a couple of changes?

  • The example is a bit confusing given the number of different scenarios illustrated. Could be better to have different examples for each use case?
  • What is the correct way of instantiating Actors using an specific configuration? I've grokked the code below, but not sure if it is correct.
public onStart(Application app) {
        injector = Guice.createInjector(new AkkaGuiceModule());
        GuiceExt extension = akkaGuice.GuiceExtension.GuiceProvider.createExtension(
                ActorSystem.create("customactorsystem" ConfigFactory.load().getConfig("customactorsyste-config")).systemImpl()
            );
        extension.initialize(injector);
}

Library isn't compatible with Java 7

Hi,

It seems that the library is compiled with Java 8 because I get the following error:

play.api.UnexpectedException: Unexpected exception[UnsupportedClassVersionError: akkaGuice/AkkaGuiceModule : Unsupported major.minor version 52.0]
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:170) ~[play_2.11-2.3.4.jar:2.3.4]
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1$$anonfun$1.apply(ApplicationProvider.scala:130) ~[play_2.11-2.3.4.jar:2.3.4]
    at scala.Option.map(Option.scala:145) ~[scala-library-2.11.1.jar:na]
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:130) ~[play_2.11-2.3.4.jar:2.3.4]
    at play.core.ReloadableApplication$$anonfun$get$1$$anonfun$apply$1.apply(ApplicationProvider.scala:128) ~[play_2.11-2.3.4.jar:2.3.4]
Caused by: java.lang.UnsupportedClassVersionError: akkaGuice/AkkaGuiceModule : Unsupported major.minor version 52.0
    at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.7.0_51]
    at java.lang.ClassLoader.defineClass(ClassLoader.java:800) ~[na:1.7.0_51]
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.7.0_51]
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) ~[na:1.7.0_51]
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[na:1.7.0_51]

Would it be possible to compile the library with Java 7 backward compatibility.

UnsupportedClassVersionError

Using java version 1.7.0_51, I get this error when starting my Play app. Are there any specific features of this plugin and/or Guice that require higher Java versions? Should be documented somewhere at least.

java.lang.UnsupportedClassVersionError: akkaGuice/AkkaGuicePlugin : Unsupported major.minor version 52.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.