ElasticMQ(0.8.8) cannot be started

127 views
Skip to first unread message

kadir.y...@linovi.com

unread,
Aug 5, 2015, 3:48:58 AM8/5/15
to ElasticMQ
Hi there,

I cannot run elasticmq-server-0.8.8.jar and elasticmq with sqs interface. My java version is "1.8.0_45". Stack trace is 

15:51:07.236 [main] INFO  org.elasticmq.server.Main$ - Starting ElasticMQ server (0.8.8) ...
15:51:07.867 [main] INFO  o.e.rest.sqs.TheSQSRestServerBuilder - Started SQS rest server, bind address 0.0.0.0:9324, visible server address http://localhost:9324
[ERROR] [08/04/2015 15:51:08.235] [elasticmq-akka.actor.default-dispatcher-3] [akka://elasticmq/user/IO-HTTP/listener-0] 762
akka.actor.ActorInitializationException: exception during creation
at akka.actor.ActorInitializationException$.apply(Actor.scala:164)
at akka.actor.ActorCell.create(ActorCell.scala:596)
at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:456)
at akka.actor.ActorCell.systemInvoke(ActorCell.scala:478)
at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:279)
at akka.dispatch.Mailbox.run(Mailbox.scala:220)
at akka.dispatch.Mailbox.exec(Mailbox.scala:231)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 762
at spray.can.parsing.HttpHeaderParser.insert(HttpHeaderParser.scala:231)
at spray.can.parsing.HttpHeaderParser$.insertInGoodOrder$1(HttpHeaderParser.scala:422)
at spray.can.parsing.HttpHeaderParser$.apply(HttpHeaderParser.scala:429)
at spray.can.parsing.HttpRequestPartParser$.$lessinit$greater$default$3(HttpRequestPartParser.scala:28)
at spray.can.server.RequestParsing$.apply(RequestParsing.scala:36)
at spray.can.server.HttpServerConnection$.pipelineStage(HttpServerConnection.scala:217)
at spray.can.server.HttpListener.<init>(HttpListener.scala:36)
at spray.can.HttpManager.newHttpListener(HttpManager.scala:84)
at spray.can.HttpManager$$anonfun$receive$1$$anonfun$applyOrElse$1.apply(HttpManager.scala:76)
at spray.can.HttpManager$$anonfun$receive$1$$anonfun$applyOrElse$1.apply(HttpManager.scala:76)
at akka.actor.TypedCreatorFunctionConsumer.produce(Props.scala:343)
at akka.actor.Props.newActor(Props.scala:252)
at akka.actor.ActorCell.newActor(ActorCell.scala:552)
at akka.actor.ActorCell.create(ActorCell.scala:578)
... 9 more

15:51:17.888 [main] ERROR org.elasticmq.server.Main$ - Uncaught exception in thread: main
akka.pattern.AskTimeoutException: Ask timed out on [Actor[akka://elasticmq/user/IO-HTTP#-1702710453]] after [10000 ms]
at akka.pattern.PromiseActorRef$$anonfun$1.apply$mcV$sp(AskSupport.scala:335) ~[elasticmq-server-0.8.8.jar:0.8.8]
at akka.actor.Scheduler$$anon$7.run(Scheduler.scala:117) ~[elasticmq-server-0.8.8.jar:0.8.8]
at scala.concurrent.Future$InternalCallbackExecutor$.unbatchedExecute(Future.scala:599) ~[elasticmq-server-0.8.8.jar:0.8.8]
at scala.concurrent.BatchingExecutor$class.execute(BatchingExecutor.scala:109) ~[elasticmq-server-0.8.8.jar:0.8.8]
at scala.concurrent.Future$InternalCallbackExecutor$.execute(Future.scala:597) ~[elasticmq-server-0.8.8.jar:0.8.8]
at akka.actor.LightArrayRevolverScheduler$TaskHolder.executeTask(Scheduler.scala:467) ~[elasticmq-server-0.8.8.jar:0.8.8]
at akka.actor.LightArrayRevolverScheduler$$anon$8.executeBucket$1(Scheduler.scala:419) ~[elasticmq-server-0.8.8.jar:0.8.8]
at akka.actor.LightArrayRevolverScheduler$$anon$8.nextTick(Scheduler.scala:423) ~[elasticmq-server-0.8.8.jar:0.8.8]
at akka.actor.LightArrayRevolverScheduler$$anon$8.run(Scheduler.scala:375) ~[elasticmq-server-0.8.8.jar:0.8.8]
at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_45]

Why does this error occur ? 

Thanks !

Kadir

Adam Warski

unread,
Aug 6, 2015, 8:03:13 AM8/6/15
to elas...@googlegroups.com
Hello,

do you get it each time you start up the server?
What’s your OS? How are you starting the server?

Thanks,
Adam

--

---
You received this message because you are subscribed to the Google Groups "ElasticMQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticmq+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


kadir.y...@linovi.com

unread,
Aug 7, 2015, 7:33:07 AM8/7/15
to ElasticMQ
Hello ,

Yes, I get it each time. I tried to start the server with two ways in github but both gave the same error. My OS is OS X Yosemite.

Thanks,
Kadir 

kadir.y...@linovi.com

unread,
Aug 7, 2015, 8:08:56 AM8/7/15
to ElasticMQ
Hello,

http://stackoverflow.com/questions/29876405/spray-routing-template-not-working, The same error was encountered. ıt may be spray template bug. 

Adam Warski

unread,
Aug 9, 2015, 4:11:47 PM8/9/15
to elas...@googlegroups.com
Right, it looks like a bug in the underlying library that’s used for exposing the http server (Spray).
I’m wondering what’s special with your setup, I’m using OS X Yosemite as well.

At some point I’d like to migrate from Spray to Akka Http as the base server library, maybe that will fix the problem as a side effect.

Adam

On 07 Aug 2015, at 14:08, kadir.y...@linovi.com wrote:

Hello,

http://stackoverflow.com/questions/29876405/spray-routing-template-not-working, The same error was encountered. ıt may be spray template bug. 

--

---
You received this message because you are subscribed to the Google Groups "ElasticMQ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticmq+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages