Hi,
I am trying to use the simulator, but after downloading and compiling most of the code / packages, etc., it fails to find the rapidoid package.
I tried to manually include it in the build.gradle and I can it is downloading and compiling, but the error persists.
Any ideas?
MacBook-Pro:caffeine-master xxx$ ./gradlew simulator:run
Task :simulator:run
[ERROR] [06/10/2018 09:36:45.816] [Main-akka.actor.default-dispatcher-4] [akka://Main/user/app] product.rapidoid not found
akka.actor.ActorInitializationException: akka://Main/user/app: exception during creation
at akka.actor.ActorInitializationException$.apply(Actor.scala:193)
at akka.actor.ActorCell.create(ActorCell.scala:669)
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:523)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:545)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:283)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:235)
at akka.dispatch.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at akka.dispatch.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at akka.dispatch.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at akka.dispatch.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.lang.NullPointerException: product.rapidoid not found
at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:980)
at com.github.benmanes.caffeine.cache.simulator.policy.Registry.policy(Registry.java:103)
at com.github.benmanes.caffeine.cache.simulator.policy.Registry.lambda$policies$1(Registry.java:96)
at java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:267)
at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1548)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
at com.github.benmanes.caffeine.cache.simulator.policy.Registry.policies(Registry.java:97)
at com.github.benmanes.caffeine.cache.simulator.Simulator.makeRoutes(Simulator.java:132)
at com.github.benmanes.caffeine.cache.simulator.Simulator.(Simulator.java:78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at akka.util.Reflect$.instantiate(Reflect.scala:45)
at akka.actor.NoArgsReflectConstructor.produce(IndirectActorProducer.scala:105)
at akka.actor.Props.newActor(Props.scala:212)
at akka.actor.ActorCell.newActor(ActorCell.scala:624)
at akka.actor.ActorCell.create(ActorCell.scala:650)
... 9 more
BUILD SUCCESSFUL in 21s
10 actionable tasks: 10 executed
It seems that Rapidoid removed from the source code on one of the last commits.
To solve the issue just remove Rapidoid from the reference file (i.e. delete or annotate line 105) so it won't run.
Wow, Thank you Ohad!
That worked and it was so simpler than what I tried.
Thank you again!
On Sun, Jun 10, 2018 at 11:01 AM, Ohad Eytan notifications@github.com
wrote:
It seems that Rapidoid removed from the source on one of the last commits
https://github.com/ben-manes/caffeine/commit/5851960f38b4431891a185b5105affbf1ec4228f
.
To solve the issue just remove Rapidoid from the reference file
https://github.com/ben-manes/caffeine/blob/master/simulator/src/main/resources/reference.conf
(i.e. delete or annotate line #105
https://github.com/ben-manes/caffeine/issues/105).—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/ben-manes/caffeine/issues/250#issuecomment-396029390,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AGhZ9wFV08u_inBiEVp3qMb-RXTNRWIoks5t7NJZgaJpZM4Uhmpu
.
--
Nicolas Kourtellis
Thanks Ohad! Rapidoid switched to using Caffeine; sorry for the incomplete removal.
Most helpful comment
Wow, Thank you Ohad!
That worked and it was so simpler than what I tried.
Thank you again!
On Sun, Jun 10, 2018 at 11:01 AM, Ohad Eytan notifications@github.com
wrote:
--
Nicolas Kourtellis