Installation

Why am I getting the following error when we run the simdata jar with the example files given by Splunk?

shan_hcl
Explorer

Someone please help on what is this issue? The first time trying to run the simdata jar file with the examples given by Splunk to understand how the simdata works. When we run the jar file from the same folder where .JSON and simulator are placed, it ends up with the below errors.

Exception in thread "main" java.lang.IllegalStateException: cannot create children while terminating or terminated
    at akka.actor.dungeon.Children$class.makeChild(Children.scala:270)
    at akka.actor.dungeon.Children$class.attachChild(Children.scala:48)
    at akka.actor.ActorCell.attachChild(ActorCell.scala:370)
    at akka.actor.ActorSystemImpl.actorOf(ActorSystem.scala:718)
    at akka.stream.ActorMaterializer$.apply(ActorMaterializer.scala:65)
    at akka.stream.ActorMaterializer$.apply(ActorMaterializer.scala:43)
    at akka.stream.ActorMaterializer$.create(ActorMaterializer.scala:111)
    at akka.stream.ActorMaterializer.create(ActorMaterializer.scala)
    at com.splunk.simdata.rest.SimServer.start(SimServer.java:64)
    at com.splunk.simdata.cli.SimulationCLI.main(SimulationCLI.java:100)
[ERROR] [12/06/2018 11:14:41.336] [SimData-akka.actor.default-dispatcher-8] [akka.actor.LocalActorRefProvider(akka://SimData)] guardian failed, shutting down system
akka.actor.ActorInitializationException: akka://SimData/user/event: exception during creation
    at akka.actor.ActorInitializationException$.apply(Actor.scala:193)
    at akka.actor.ActorCell.create(ActorCell.scala:608)
    at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:462)
    at akka.actor.ActorCell.systemInvoke(ActorCell.scala:484)
    at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:282)
    at akka.dispatch.Mailbox.run(Mailbox.scala:223)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
    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 akka.util.Reflect$.instantiate(Reflect.scala:65)
    at akka.actor.ArgsReflectConstructor.produce(IndirectActorProducer.scala:96)
    at akka.actor.Props.newActor(Props.scala:213)
    at akka.actor.ActorCell.newActor(ActorCell.scala:563)
    at akka.actor.ActorCell.create(ActorCell.scala:589)
    ... 7 more
Caused by: java.lang.NullPointerException
    at com.splunk.simdata.execution.EventHandlerActor.lambda$new$1(EventHandlerActor.java:37)
    at java.util.HashMap.forEach(HashMap.java:1289)
    at com.splunk.simdata.execution.EventHandlerActor.<init>(EventHandlerActor.java:35)
    ... 16 more

[ERROR] [12/06/2018 11:14:41.339] [SimData-akka.actor.default-dispatcher-8] [akka://SimData/user] null
akka.actor.ActorInitializationException: akka://SimData/user/event: exception during creation
    at akka.actor.ActorInitializationException$.apply(Actor.scala:193)
    at akka.actor.ActorCell.create(ActorCell.scala:608)
    at akka.actor.ActorCell.invokeAll$1(ActorCell.scala:462)
    at akka.actor.ActorCell.systemInvoke(ActorCell.scala:484)
    at akka.dispatch.Mailbox.processAllSystemMessages(Mailbox.scala:282)
    at akka.dispatch.Mailbox.run(Mailbox.scala:223)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.reflect.InvocationTargetException
    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 akka.util.Reflect$.instantiate(Reflect.scala:65)
    at akka.actor.ArgsReflectConstructor.produce(IndirectActorProducer.scala:96)
    at akka.actor.Props.newActor(Props.scala:213)
    at akka.actor.ActorCell.newActor(ActorCell.scala:563)
    at akka.actor.ActorCell.create(ActorCell.scala:589)
    ... 7 more
Caused by: java.lang.NullPointerException
    at com.splunk.simdata.execution.EventHandlerActor.lambda$new$1(EventHandlerActor.java:37)
    at java.util.HashMap.forEach(HashMap.java:1289)
    at com.splunk.simdata.execution.EventHandlerActor.<init>(EventHandlerActor.java:35)
    ... 16 more
0 Karma
1 Solution

shan_hcl
Explorer

This issue has been resolved and it was due to the port failure. thanks

View solution in original post

0 Karma

shan_hcl
Explorer

This issue has been resolved and it was due to the port failure. thanks

0 Karma

dponcelow_splun
Splunk Employee
Splunk Employee

What does the transports section of your configuration (the json file) look like? It looks like that may be where the Simdata engine is getting confused. You can also remove the transports section entirely (including the "default_transport" key), and Simdata will output to standard out. That might help in making sure that everything other than the transport is working correctly.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...