When running the CleanFromJson example with any topology other than the routerTopology I get a NullPointer exception and I cannot figure out what is going on, since my topology has very similar characteristics to the router one. Such error also occurs if any other topology already included in the iFogSim package is used. Do you have any idea on why such thing could be happening?
Here is the output:
Starting VRGame...
Sensor type : speed
Sensor type : speed
Sensor type : temperature
Sensor type : temperature
0.0 Submitted application dcns_game
java.lang.NullPointerException
at org.fog.entities.Sensor.transmit(Sensor.java:88)
at org.fog.entities.Sensor.processEvent(Sensor.java:136)
at org.cloudbus.cloudsim.core.SimEntity.run(SimEntity.java:406)
at org.cloudbus.cloudsim.core.CloudSim.runClockTick(CloudSim.java:518)
at org.cloudbus.cloudsim.core.CloudSim.run(CloudSim.java:882)
at org.cloudbus.cloudsim.core.CloudSim.startSimulation(CloudSim.java:188)
at org.fog.examples.CleanFromJson.main(CleanFromJson.java:60)
When running the CleanFromJson example with any topology other than the routerTopology I get a NullPointer exception and I cannot figure out what is going on, since my topology has very similar characteristics to the router one. Such error also occurs if any other topology already included in the iFogSim package is used. Do you have any idea on why such thing could be happening?
Here is the output:
The topology is as follows: