LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   TraNSv1.2 is unable to execute NS2 (https://www.linuxquestions.org/questions/linux-newbie-8/transv1-2-is-unable-to-execute-ns2-4175416578/)

nadia_kh 07-13-2012 02:48 PM

TraNSv1.2 is unable to execute NS2
 
Hello
i use TraNSv1.2 in fedora 15. the sumo partition works but the program is unable to execute NS2 command. i test ns2 after configuration it works good.

the error is
Quote:

Processing command: /home/nadia/work/sumo-0.9.8/src/sumo -n /home/nadia/work/transv1.2/TraNSv1.2/examples/roadmaps/manhattan_crop.net.xml -r /home/nadia/work/transv1.2/TraNSv1.2/examples/vehicleroutes/manhattan_crop_30.rou.xml -b 0 -e 20 --remote-port 8888 --penetration 1.0

Process error while executing command:
Error: On processing option '--remote-port':
No option with the name 'remote-port' exists.
Error: The parameter '8888' is not allowed in this context.
Switch or parameter name expected.
Error: On processing option '--penetration':
No option with the name 'penetration' exists.
Error: The parameter '1.0' is not allowed in this context.
Switch or parameter name expected.
Error: Could not parse commandline options.
Quitting (on error).

Execute: /home/nadia/work/ns-allinone-2.35/ns-2.35 /home/nadia/work/transv1.2/TraNSv1.2/traci/tracicommands-examples/changeRoute/changeRoute_manhattan_30.tcl
Processing command: /home/nadia/work/ns-allinone-2.35/ns-2.35 /home/nadia/work/transv1.2/TraNSv1.2/traci/tracicommands-examples/changeRoute/changeRoute_manhattan_30.tcl

java.io.IOException: Cannot run program "/home/nadia/work/ns-allinone-2.35/ns-2.35": java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at java.lang.Runtime.exec(Runtime.java:610)
at java.lang.Runtime.exec(Runtime.java:448)
at java.lang.Runtime.exec(Runtime.java:345)
at ch.epfl.trans.util.CommandProcessor.executeCommand(CommandProcessor.java:59)
at ch.epfl.trans.util.CommandProcessor.executeCommand(CommandProcessor.java:44)
at ch.epfl.trans.TraNS.simulate(TraNS.java:532)
at ch.epfl.trans.TraNS.actionPerformed(TraNS.java:454)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6268)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6033)
at java.awt.Container.processEvent(Container.java:2045)
at java.awt.Component.dispatchEventImpl(Component.java:4629)
at java.awt.Container.dispatchEventImpl(Container.java:2103)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4633)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4297)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4227)
at java.awt.Container.dispatchEventImpl(Container.java:2089)
at java.awt.Window.dispatchEventImpl(Window.java:2517)
at java.awt.Component.dispatchEvent(Component.java:4455)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)
at java.awt.EventQueue$2.run(EventQueue.java:622)
at java.awt.EventQueue$2.run(EventQueue.java:620)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 44 more
Error executing /home/nadia/work/ns-allinone-2.35/ns-2.35 /home/nadia/work/transv1.2/TraNSv1.2/traci/tracicommands-examples/changeRoute/changeRoute_manhattan_30.tcl
is there anyone to help me, please?

thanks

TB0ne 07-16-2012 09:32 AM

Don't post the same question three times. Thread reported

knudfl 07-16-2012 04:42 PM

Quote:

java.io.IOException: Cannot run program "/home/nadia/work/ns-allinone-2.35/ns-2.35":
java.io.IOException: error=13, Permission denied
'ns-2.35/' is a directory : Cannot be executed.

Could it be a line in a script that is missing something ?
? Should it have been: /home/nadia/work/ns-allinone-2.35/ns-2.35/file?

.


All times are GMT -5. The time now is 12:01 PM.