Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java null pointer exception #2

Closed
mehbub160 opened this issue Nov 20, 2021 · 4 comments
Closed

java null pointer exception #2

mehbub160 opened this issue Nov 20, 2021 · 4 comments

Comments

@mehbub160
Copy link

I am getting the below error while running the java files using the mobility dataset

at org.fog.mobilitydata.DataParser.parseResourceData(DataParser.java:99)
at org.fog.placement.LocationHandler.parseResourceInfo(LocationHandler.java:150)
at org.fog.test.perfeval.CardiovascularHealthMonitoringApplication.createFogDevices(CardiovascularHealthMonitoringApplication.java:162)
at org.fog.test.perfeval.CardiovascularHealthMonitoringApplication.main(CardiovascularHealthMonitoringApplication.java:109)

@vyk1
Copy link

vyk1 commented Dec 2, 2021

Same here.

@vyk1
Copy link

vyk1 commented Dec 2, 2021

@mehbub160
Figured out that in my case the problem had to do with the missing File.separator.
It appears that by default the path separator is "//", so I changed it to (for example in DataParser.parseResourseData()):

BufferedReader csvReader = new BufferedReader(new FileReader(String.format(".%sdataset%sedgeResources-melbCBD.csv", File.separator, File.separator)));

Had to change in References.java and the other files too.

Dunno if necessary but I was thinking on creating a PR to solve it.

@vyk1
Copy link

vyk1 commented Dec 13, 2021

Done: #4

@mgoudarzi90
Copy link
Collaborator

As the issue is solved, I am closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants