LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 06-03-2010, 07:40 PM   #1
vidhoon
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Rep: Reputation: 0
Exclamation MOVE vanet simulator problem while saving


I am trying to learn using MOVE simulator and getting this problem:

In the Traffic Model Generator under Static Mobility I import the MOVE trace file and map file.

But when I try to save the tcl script(File->Save or SaveAs) I get the following exceptions:

Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "1.00"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.parseInt(Integer.java:499)
at buildNS.write(buildNS.java:1327)
at TCLEditor.saveFile(TCLEditor.java:1346)
at TCLEditor.SaveMenuActionPerformed(TCLEditor.java:1366)
at TCLEditor.access$15(TCLEditor.java:1349)
at TCLEditor$16.actionPerformed(TCLEditor.java:1132)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
at java.awt.Component.processMouseEvent(Component.java:6263)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6028)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4630)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4460)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


As a result the trace file that gets generated is empty.
Can anyone help me ?
 
Old 06-04-2010, 03:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,125

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
Before making any further investigations :
Which java is installed / configured ?

The command : 'java -version' will show.

This will set up a genuine sun java ..
1) sudo apt-get install sun-java6-jdk
2) sudo update-alternatives --config java
..... and choose the "sun" java.
.
 
Old 06-04-2010, 05:03 PM   #3
vidhoon
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Thank you very much for coming forward to help.

vidhoon@PC4:~$ java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)


The above is the output I get for java -version command.
 
Old 06-05-2010, 02:28 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,125

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
java version "1.6.0_20" works OK with the few things
I have tried with "vanetsim".
http://www.csie.ncku.edu.tw/~klan/move/index.htm

May be tell exactly, what you are doing.
I don't understand this :
Quote:
In the Traffic Model Generator under Static Mobility
I import the MOVE trace file and map file.

But when I try to save the tcl script(File->Save or SaveAs)
Please tell which file used, and which steps you do.
Rephrase please.
( I may have difficulties with the bigger windows,
my resolution is not the required 1280x... , but 1024x768.)

Last edited by knudfl; 06-05-2010 at 04:49 AM.
 
Old 06-05-2010, 03:07 AM   #5
vidhoon
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
In MOVE simulator we have 2 options:
1.traffic model
2.mobility model

in mobility model after creating a mobility trace file we have to import it in traffic model generator.
while doing so and saving the configuration I get the above errors.

please let me know if you need some more info.
 
Old 06-06-2010, 12:11 AM   #6
vidhoon
LQ Newbie
 
Registered: Jun 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I think this link will give more info about MOVE.. just check out:
http://www.csie.ncku.edu.tw/~klan/move/index.htm

Thanks for yur effort and interest man!
 
Old 09-05-2010, 06:52 AM   #7
deatheater
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
saving problem in move

while creating map i am not able to create output file net.xml.... i am getting the following error please help




java.io.IOException: Cannot run program "sumo-netconvert": java.io.IOException: error=2, No such file or directory
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 netConvert.OKButtonActionPerformed(netConvert.java:175)
at netConvert.access$3(netConvert.java:160)
at netConvert$1.actionPerformed(netConvert.java:67)
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.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
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=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 31 more
java.io.IOException: Cannot run program "sumo-netconvert": java.io.IOException: error=2, No such file or directory
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 netConvert.OKButtonActionPerformed(netConvert.java:175)
at netConvert.access$3(netConvert.java:160)
at netConvert$1.actionPerformed(netConvert.java:67)
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.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
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=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 31 more
java.io.IOException: Cannot run program "sumo-netconvert": java.io.IOException: error=2, No such file or directory
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 netConvert.OKButtonActionPerformed(netConvert.java:175)
at netConvert.access$3(netConvert.java:160)
at netConvert$1.actionPerformed(netConvert.java:67)
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.Component.processMouseEvent(Component.java:6108)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:5873)
at java.awt.Container.processEvent(Container.java:2105)
at java.awt.Component.dispatchEventImpl(Component.java:4469)
at java.awt.Container.dispatchEventImpl(Container.java:2163)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)
at java.awt.Container.dispatchEventImpl(Container.java:2149)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4295)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:604)
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=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 31 more
 
Old 09-06-2010, 05:02 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,125

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
@ deatheater : Welcome to LQ. .. .. ..

[knudfl@localhost vanet_MOVE]$ grep sumo-netconvert ./*
Binary file ./netConvert.class matches
./netConvert.java: cmd = "sumo-netconvert -v -c " + configurationPath.getText();

( Looks like a real command , not just calling another java class ? ).


May be the program wants to execute "sumo/bin/netconvert" ?
Suggest : cd sumo/ ; su ; make install ; cd /usr/local/bin/ ;
ln -s netconvert sumo-netconvert
.......... And try, if that's the required command.

http://sourceforge.net/apps/mediawik...itle=Main_Page
Source code : sumo-src-0.12.0.tar.gz, ~ 4.4 MB.
Getting the latest source code with svn, warning: it's 3.8 GB !
svn co https://sumo.svn.sourceforge.net/svnroot/sumo sumo
.....

More about the command 'sumo-netconvert' here
http://sourceforge.net/apps/mediawik...=TraceExporter
→ → HOWTO "TraceExporter"


(( Sumo + TraNS + ns2 : http://trans.epfl.ch/ → ' LINKS ' ))
.

Last edited by knudfl; 09-06-2010 at 07:38 AM.
 
1 members found this post helpful.
Old 09-07-2010, 01:37 AM   #9
deatheater
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
@knudfl

thanku.....where r we suppose to make path change?
 
Old 09-07-2010, 05:57 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,125

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
# 9 : QUOTE : "Where are we supposed to make path change ?"
(( I translated the sentence to the default language :
Short hand writing (SMS write) is not allowed at LQ.))

I don't see anything concerning path in your text.
Just be sure to have sumo installed : See post # 8.

Be aware, that certain functions may not be supported by the latest sumo.
All sumo versions are here :
http://prdownloads.sourceforge.net/sumo/
You will simply have to try, which one works best with 'MOVE_vanet'
( Or use Google to find a suggestion.)
Probably start with a version, same age as MOVE_vanet : 2006,
e.g. version 0.8.3 >>> sumo-src-0.8.3.tar.gz
..

http://www.linuxquestions.org/linux/rules.html
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html

..

Last edited by knudfl; 09-07-2010 at 06:08 AM.
 
Old 09-07-2010, 07:28 AM   #11
deatheater
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
@knudfl

im using Ubuntu 10.04..... according to sourceforge website for ubuntu 10.04 im suppose to use sumo 0.12.0 version....my sumo is working fine but im not able to access netconverter from MOVE files(ie in map editor when i click on configuration and load files and set output file as <filename>.net.xml and save file as <filename>.netc.cfg and after dat i clicked on create map and load <filename>.netc.cfg and press ok, after that its automatically not creating <filename>.net.xml instead its giving error as posted above )....i hav installed sumo in side MOVE folder.....
 
Old 09-07-2010, 08:47 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,125

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
Well then, time to install sumo to /usr/local/ :
cd sumo-0.12.0/ && sudo make install
.. providing /usr/local/bin/netconvert

And please remember creating the link : cd /usr/local/bin/ ;
sudo ln -s netconvert sumo-netconvert

..
 
Old 09-09-2010, 04:53 AM   #13
deatheater
LQ Newbie
 
Registered: Sep 2010
Posts: 4

Rep: Reputation: 0
@knudfl

thank u

il try that....
 
Old 10-30-2012, 01:09 AM   #14
rajindersanwal
LQ Newbie
 
Registered: Sep 2012
Posts: 14

Rep: Reputation: Disabled
MOVE and SUMO

Where should the MOVE package and SUMO package be installed in ubuntu 11.10.
I have copied the MOVE and SUMO package in the home directory. then run configure , make and make install for SUMO...
How do we install MOVE package?
It is just a jar file..Does it needs installation also?
Should this MOVE.jar file be kept in a folder in the home directory?
 
Old 10-30-2012, 03:58 AM   #15
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,125

Rep: Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639Reputation: 2639
# 14
Quote:
Should this MOVE.jar file be kept in a folder in the home directory ?
Yes.
 
  


Reply

Tags
move, ns2, vanet-move


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
new simulator problem Nanda27 Linux - Newbie 38 05-24-2012 05:24 PM
ns2- network simulator problem vivekr Linux - Networking 5 02-16-2011 01:25 PM
Problem in installing CNET simulator installation khushid Linux - Newbie 1 01-19-2010 08:56 AM
problem with the installation of NS-2 Simulator pavan_p Linux - Newbie 2 11-16-2009 11:30 AM
Move CD - saving config to HDD LinuxVille Mandriva 8 04-04-2005 11:03 AM


All times are GMT -5. The time now is 11:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration