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

Compilation Errors #1

Closed
singlaabhinandan opened this issue Feb 25, 2020 · 11 comments
Closed

Compilation Errors #1

singlaabhinandan opened this issue Feb 25, 2020 · 11 comments

Comments

@singlaabhinandan
Copy link

Getting compilation errors, a few of the modules are not getting imported so I manually downloaded them and added the path to the project on Eclipse. Still encountering errors such as
Exception in thread "main" java.lang.NullPointerException
at java.base/java.io.Reader.(Reader.java:167)
at java.base/java.io.InputStreamReader.(InputStreamReader.java:72)
at org.edge.examples.Example3.init(Example3.java:261)
at org.edge.examples.Example3.main(Example3.java:695)

@DNJha
Copy link
Owner

DNJha commented Feb 25, 2020

Hi Abhinandan,

There are two main reasons of error, first, mapping of CloudSim external jar file and second, lombok jar file. Just now I added the description about how to resolve these in the Readme file. Please try that and let me know if it does not work.

@singlaabhinandan
Copy link
Author

singlaabhinandan commented Feb 26, 2020 via email

@DNJha
Copy link
Owner

DNJha commented Feb 26, 2020

I couldn't find any attachment. Please send me the screenshot.

Also try to run an example and see if it is running, if not, please also send me that screenshot as well.

@singlaabhinandan
Copy link
Author

singlaabhinandan commented Feb 26, 2020 via email

@singlaabhinandan
Copy link
Author

singlaabhinandan commented Feb 26, 2020 via email

@DNJha
Copy link
Owner

DNJha commented Feb 26, 2020

I couldn't find any attachment. However based on your first message, I figured out that the main file cannot find the location of the configuration file leading to the NullPointerException. Please try to set up the path for configuration file.

@singlaabhinandan
Copy link
Author

singlaabhinandan commented Feb 26, 2020 via email

@singlaabhinandan
Copy link
Author

singlaabhinandan commented Feb 26, 2020 via email

@DNJha
Copy link
Owner

DNJha commented Feb 26, 2020

I can access them now. Can you also send me the screenshot of library and the package explorer with all the packages as I am sure now that the problem is because of configuration file mapping.

Configuration file (configuration.json) is located in src/main/resources which can be mapped directly to the example class but for your case, it is not mapped i.e. the main file cannot find the configuration.json.

@singlaabhinandan
Copy link
Author

singlaabhinandan commented Feb 26, 2020 via email

@DNJha
Copy link
Owner

DNJha commented Feb 27, 2020

Since IoTSim-Edge is compiling successfully for you so I am closing this issue.

@DNJha DNJha closed this as completed Feb 27, 2020
@krb09 krb09 mentioned this issue Mar 3, 2020
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

2 participants