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

problem black hole #28

Closed
sonxay opened this issue Jun 20, 2017 · 7 comments
Closed

problem black hole #28

sonxay opened this issue Jun 20, 2017 · 7 comments

Comments

@sonxay
Copy link

sonxay commented Jun 20, 2017

hi.....I am Sonxay

this is my problem ....it is not have series.log in the example

Did you get the image

screen shot 2017-06-20 at 1 41 59 pm

@SwitchIsMine
Copy link

Hi Sonxay,

I had this problem as well. You just need to close the script error dialog box and run the simulation again. Once you do this, the simulation will run as it is supposed to!

R

@dhondta
Copy link
Owner

dhondta commented Jun 20, 2017

Hi all,

@sonxay : I see in your screenshot that your version of the framework uses the Rhino Javascript engine. This could mean that you use a former Contiki instance that still uses OpenJDK 7.

Issue #20 was already handled about this problem, that's why I added update and versions commands to update Contiki and RPL-Attacks together fixing the problem of the Javascript engine with the following line in templates/experiment/script.js:

// since OpenJDK 8, Rhino JS Engine is replaced by Nashorn
// this line provides compatibility so that 'importPackage' can be used
try { load("nashorn:mozilla_compat.js"); } catch(e) {}
importPackage(java.io);

If you upgrade your OS, it would normally upgrade OpenJDK from 7 to 8, then change the Javascript engine from Rhino to Nashorn, and I think you should then not experience your problem again.

@sonxay
Copy link
Author

sonxay commented Jun 20, 2017

Hi...Sorry
could you help me.

I can not active this file cause I wanna to improve your file to do more simulation like : Throughput , end to end delay ....if i can not active this file , it is mean i can not fix anything

so could you help me pl

thanks
Sonya

screen shot 2017-06-20 at 10 35 22 pm

@dhondta
Copy link
Owner

dhondta commented Jun 20, 2017

Please try the following :

  1. As a first try, just remove the aforementioned lines from the Javascript (that is, lines 1 to 4) and try restarting the simulation.
  2. If it does not work, please apt-get update and upgrade your OS, then in RPL-Attacks, launch the update command.

Then please tell me if you still have any problem.

@sonxay
Copy link
Author

sonxay commented Jun 22, 2017

Hi...i just wanna say ..Thank you so much for your helping

I wish you to be happy and successful for your life

take care

sonxay

@dhondta
Copy link
Owner

dhondta commented Jun 24, 2017

You're welcome, sonxay, that's a pleasure.
I wish you the same !

@jemmyjell55
Copy link

@sonxay could u help me in to understand the script

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

No branches or pull requests

4 participants