Thanks for the update, that explains it. /Patrik
On Fri, Jan 31, 2014 at 4:42 PM, Kaizah Kaiser <[email protected]>wrote: > Actually, it wouldn't compile either (using maven). For others facing this > issue though, the problem was that I had a dependency somewhere that was a > fat jar also using akka. The akka version this dependency used was 2.1.2 > whereas I wanted to use 2.2.3. I do not know why, but for some reason it > would keep on trying to use akka from that dependency rather than from the > actual dependency mentioned in my Maven pom.xml file. I managed to get it > working by obtaining a slim jar for the dependency instead (Akka not > included into it). > > Op donderdag 30 januari 2014 13:59:40 UTC+1 schreef rkuhn: >> >> Even though the “real” compiler will compile it just fine, it is still >> interesting to find out what can possibly trip up Eclipse here: >> >> ===[excerpt from `javap akka.actor.Props`]=== >> public static akka.actor.Props apply(akka.japi.Creator<? extends >> akka.actor.Actor>); >> public static akka.actor.Props apply(java.lang.Class<?>, >> scala.collection.Seq<java.lang.Object>); >> public static akka.actor.Props apply(scala.Function0<akka.actor.Actor>, >> java.lang.String, akka.routing.RouterConfig, akka.actor.Deploy); >> public static akka.actor.Props create(java.lang.Class<?>, >> java.lang.Object...); >> public static akka.actor.Props create(java.lang.Class<?>, >> scala.collection.Seq<java.lang.Object>); >> ===[now parts with -v]=== >> public static <T extends akka/actor/Actor> akka.actor.Props >> create(akka.japi.Creator<T>); >> flags: ACC_PUBLIC, ACC_STATIC >> Code: >> stack=2, locals=1, args_size=1 >> 0: getstatic #20 // Field >> akka/actor/Props$.MODULE$:Lakka/actor/Props$; >> 3: aload_0 >> 4: invokevirtual #45 // Method >> akka/actor/Props$.create:(Lakka/japi/Creator;)Lakka/actor/Props; >> 7: areturn >> Signature: #422 // >> <T::Lakka/actor/Actor;>(Lakka/japi/Creator<TT;>;)Lakka/actor/Props; >> >> public static akka.actor.Props apply(akka.japi.Creator<? extends >> akka.actor.Actor>); >> flags: ACC_PUBLIC, ACC_STATIC >> Code: >> stack=2, locals=1, args_size=1 >> 0: getstatic #20 // Field >> akka/actor/Props$.MODULE$:Lakka/actor/Props$; >> 3: aload_0 >> 4: invokevirtual #60 // Method >> akka/actor/Props$.apply:(Lakka/japi/Creator;)Lakka/actor/Props; >> 7: areturn >> Signature: #426 // (Lakka/japi/Creator<+Lakka/ >> actor/Actor;>;)Lakka/actor/Props; >> >> ===[end]=== >> >> So, the methods clearly are there … >> >> Regards, >> >> Roland >> >> 30 jan 2014 kl. 13:11 skrev √iktor Ҡlang <[email protected]>: >> >> Hi, >> >> What is the error given by the compiler when you compile it? >> >> Cheers, >> V >> On Jan 30, 2014 12:54 PM, "Kaizah Kaiser" <[email protected]> wrote: >> >>> Hi, >>> >>> I am using Akka 2.2.3 in Java and am trying to make an actor that is an >>> extension of UntypedActor. I need to create the props for this actor and >>> give it to my actor creation but for some reason, it gives me the error >>> that Props does not have a method create (and all docs and examples do say >>> so). I am using Maven and have the following dependencies: >>> >>> <dependency> >>> <groupId>com.typesafe.akka</groupId> >>> <artifactId>akka-remote_2.10</artifactId> >>> <version>2.2.3</version> >>> </dependency> >>> <dependency> >>> <groupId>com.typesafe.akka</groupId> >>> <artifactId>akka-actor_2.10</artifactId> >>> <version>2.2.3</version> >>> </dependency> >>> >>> Attached you can see screenshots of what is happening, any clues? >>> >>> -- >>> >>>>>>>>>> Read the docs: http://akka.io/docs/ >>> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>> >>>>>>>>>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> >>> Visit this group at http://groups.google.com/group/akka-user. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >> >> -- >> >>>>>>>>>> Read the docs: http://akka.io/docs/ >> >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >> >>>>>>>>>> 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 [email protected]. >> To post to this group, send email to [email protected]. >> >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >> >> *Dr. Roland Kuhn* >> *Akka Tech Lead* >> Typesafe <http://typesafe.com/> – Reactive apps on the JVM. >> twitter: @rolandkuhn >> <http://twitter.com/#!/rolandkuhn> >> >> -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
