harshitgupta1337 / fogsim

A Toolkit for Modeling and Simulation of Resource Management Techniques in Internet of Things, Edge and Fog Computing Environments
http://arxiv.org/abs/1606.02007
41 stars 37 forks source link

Issue with VRgame.java while executing in netbeans #14

Open Shongdor opened 6 years ago

Shongdor commented 6 years ago

run: Starting VRGame... Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.cloudbus.cloudsim.DatacenterCharacteristics.setId(I)V from class org.fog.entities.FogDevice at org.fog.entities.FogDevice.(FogDevice.java:128) at org.fog.test.perfeval.VRGameFog.createFogDevice(VRGameFog.java:224) at org.fog.test.perfeval.VRGameFog.createFogDevices(VRGameFog.java:125) at org.fog.test.perfeval.VRGameFog.main(VRGameFog.java:75) C:\Users\phantom\AppData\Local\NetBeans\Cache\8.2\executor-snippets\run.xml:53: Java returned: 1 BUILD FAILED (total time: 0 seconds)

jua524021 commented 6 years ago

Comment this line in FogDevice class at line 27. getCharacteristics().setId(super.getId());

jua524021 commented 6 years ago

Sorry Line 127

mhpardo commented 3 years ago

Comment this line in FogDevice class at line 27. getCharacteristics().setId(super.getId());

I'm having the exactly same error on my new iFogSim project on NetBeans IDE.

Anybody knows what could be?

Thanks a lot for any support.

Mário Pardo

mohammadpasha commented 1 year ago

getCharacteristics() from DatacenterCharacteristics class needs to be commented. Its in the begining (line 123 or so) as its not what we require in FogDevice class. Instead getCharacteristics() from FogDeviceCharacteristics class (line 210 or so) is for Fog Devices.