|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
|
|
|
Re: Error in creating new agentHi At the moment I am having the following error. [root@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20 num_nodes is set 100 INITIALIZE THE LIST xListHead ns: _o1615 set-suicide: (_o1615 cmd line 1) invoked from within "_o1615 cmd set-suicide" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o1615" line 2) (SplitObject unknown line 2) invoked from within "_o1615 set-suicide" [root@localhost VanetCR]# Can anybody tell me why this "invoked from within" error comes?? ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- On Thu, May 7, 2009 at 1:30 PM, Usman Amin <usmanamin.ch@...> wrote: > Hi > > I added the following definitions in * > > ns-agent.tcl* > > Class Agent/VanetCR -superclass Agent > > Agent/VanetCR instproc init args { > > $self next $args > } > > Agent/VanetCR set sport_ 0 > Agent/VanetCR set dport_ 0 > > Now the following error is coming. > > > *Error* > > [root@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20 > num_nodes is set 150 > INITIALIZE THE LIST xListHead > > (_o2415 cmd line 1) > invoked from within > "_o2415 cmd log-target _o10" > invoked from within > "catch "$self cmd $args" ret" > invoked from within > "if [catch "$self cmd $args" ret] { > set cls [$self info class] > global errorInfo > set savedInfo $errorInfo > error "error when calling class $cls: $args" $..." > (procedure "_o2415" line 2) > (SplitObject unknown line 2) > invoked from within > "$p($i) log-target $RevTrace" > ("for" body line 5) > invoked from within > "for {set i 0} {$i < $opt(nn)} {incr i} { > set p($i) [new Agent/VanetCR $i] > $ns_ attach-agent $node($i) $p($i) > # set the logtarget for every agent > $..." > (file "b_univ_twm_active_suicide_usman.tcl" line 343) > [root@localhost VanetCR]# > > Can anybody help. > > Usman > 313-424-0122 > > > --------------------------------------------------------------------------------------- > > > Hi > > I have NS2.33 running on FC9 in VMWARE. I have to create a new agent. > > I have made the following changes in the below listed files > > *Makefile* > > VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \ > VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \ > > *ns-default.tcl* > > Agent/VanetCR set packetSize_ 1000 ;# for VANETCR added May 5th, 2009 > Agent/VanetCR set jitterFactorRBC_ 0.0001 > Agent/VanetCR set jitterFactorRev_ 0.0002 > Agent/VanetCR set sig_delay_ 0.003255 > Agent/VanetCR set verif_delay_ 0.00762 > Agent/VanetCR set lastheard_interval_ 1 > Agent/VanetCR set statinterval_ 0.01 > > *ns-packet.tcl* > > # Wireless: > ARP # Address Resolution Protocol, network wireless stack > GAF # Geographic Adaptive Delity, for ad-hoc networks > LL # network wireless stack > LRWPAN # zheng, wpan/p802_15_4mac.cc > Mac # network wireless stack > *VanetCR # Added for Vanet on May 5th, 2009* > > *packet.h* > > name_[PT_VANETCR]= "VanetCR"; //Added for VANETCR on May 5th, 2009 > static const packet_t PT_VANETCR = 61; //for VANETCR May 5th, 2009 > > *After Modifications > * > I execute the following commands to recompile > > touch common/packet.cc > make > make clean > configure > > > *ERROR* > > [root@localhost ns-2.33]# ns > ns: > [code omitted because of length] > : invalid command name "Agent/VanetCR" > while executing > "Agent/VanetCR set packetSize_ 1000 " > > the strange thing is as soon as I make this change in ns-default.tcl. All > other tcl files also stop working and the error I listed before is > returned. > > Any help inthis regard will be highly appreciated. > > Thanks & Regards, > > Usman > 313-424-0122 > |
|
|
Re: Error in creating new agent
|
|
|
Re: Error in creating new agenthii; me two i have the same problem i need t create a new agent called rsa and when i folllow the steps and do all the changes in ns2 files and try to compile with make it give me this error [code omitted because of length] : invalid command name "Agent/rsa" while executing "Agent/rsa set phi 1" and then i cant even run any other file.tcl soo i reaaally don understand where is the problem coz the rsa agent is not even recognized :s:s:s: i reelllly neeed the help . thanks. |
|
|
Re: Error in creating new agentI got same this error message when i run the tcl script as follow:
[user@localhost ~]$ ns ibrahim.tcl ns: [code omitted because of length] : invalid command name "Agent/Ibrahim" while executing "Agent/Ibrahim set packetSize_ 64" [user@localhost ~]$ this happened because of the name of the class in the linkage part not correct, i mean in the .cc file you should check the spelling in this line for example: IbrahimClass() : TclClass("Agent/ibrahim") {} , the error happened because of the "Agent/ibrahim" ibrahim is not correct name it must be "Agent/Ibrahim". In your case must be "Agent/MyClusAgent" so check the spelling name. I hope this help you. Ibrahim
|
|
|
Re: Error in creating new agentHi I am getting the following error [root@localhost usman-practice]# ns abc.tcl 14 10 25 num_nodes is set 150 INITIALIZE THE LIST xListHead SORTING LISTS ...DONE! ns: _o2415 start-statdump: (_o2415 cmd line 1) invoked from within "_o2415 cmd start-statdump" invoked from within "catch "$self cmd $args" ret" invoked from within "if [catch "$self cmd $args" ret] { set cls [$self info class] global errorInfo set savedInfo $errorInfo error "error when calling class $cls: $args" $..." (procedure "_o2415" line 2) (SplitObject unknown line 2) invoked from within "_o2415 start-statdump" As in the error above it is not accepting statdump. It gives similar errors on regbc etc. This shows all the procedures it has to take from the C++ file its not recognizing them. Now Can this be again a definition issue. Because I have defined the C++ files in Makefile.in Can anybody please help. Thanks Usman --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- On Tue, May 12, 2009 at 8:13 PM, Usman Amin <usmanamin.ch@...> wrote: > Hi > At the moment I am having the following error. > > [root@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20 > num_nodes is set 100 > INITIALIZE THE LIST xListHead > ns: _o1615 set-suicide: > (_o1615 cmd line 1) > invoked from within > "_o1615 cmd set-suicide" > invoked from within > "catch "$self cmd $args" ret" > invoked from within > "if [catch "$self cmd $args" ret] { > set cls [$self info class] > global errorInfo > set savedInfo $errorInfo > error "error when calling class $cls: $args" $..." > (procedure "_o1615" line 2) > (SplitObject unknown line 2) > invoked from within > "_o1615 set-suicide" > [root@localhost VanetCR]# > > Can anybody tell me why this "invoked from within" error comes?? > > > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > On Thu, May 7, 2009 at 1:30 PM, Usman Amin <usmanamin.ch@...> wrote: > >> Hi >> >> I added the following definitions in * >> >> ns-agent.tcl* >> >> Class Agent/VanetCR -superclass Agent >> >> Agent/VanetCR instproc init args { >> >> $self next $args >> } >> >> Agent/VanetCR set sport_ 0 >> Agent/VanetCR set dport_ 0 >> >> Now the following error is coming. >> >> >> *Error* >> >> [root@localhost VanetCR]# ns b_univ_twm_active_suicide_usman.tcl 10 2 20 >> num_nodes is set 150 >> INITIALIZE THE LIST xListHead >> >> (_o2415 cmd line 1) >> invoked from within >> "_o2415 cmd log-target _o10" >> invoked from within >> "catch "$self cmd $args" ret" >> invoked from within >> "if [catch "$self cmd $args" ret] { >> set cls [$self info class] >> global errorInfo >> set savedInfo $errorInfo >> error "error when calling class $cls: $args" $..." >> (procedure "_o2415" line 2) >> (SplitObject unknown line 2) >> invoked from within >> "$p($i) log-target $RevTrace" >> ("for" body line 5) >> invoked from within >> "for {set i 0} {$i < $opt(nn)} {incr i} { >> set p($i) [new Agent/VanetCR $i] >> $ns_ attach-agent $node($i) $p($i) >> # set the logtarget for every agent >> $..." >> (file "b_univ_twm_active_suicide_usman.tcl" line 343) >> [root@localhost VanetCR]# >> >> Can anybody help. >> >> Usman >> 313-424-0122 >> >> >> --------------------------------------------------------------------------------------- >> >> >> Hi >> >> I have NS2.33 running on FC9 in VMWARE. I have to create a new agent. >> >> I have made the following changes in the below listed files >> >> *Makefile* >> >> VanetCR/vanetcr.o VanetCR/vanetcr_accdb.o VanetCR/vanetcr_myheard.o \ >> VanetCR/vanetcr_nghbdb.o VanetCR/vanetcr_sspdb.o \ >> >> *ns-default.tcl* >> >> Agent/VanetCR set packetSize_ 1000 ;# for VANETCR added May 5th, 2009 >> Agent/VanetCR set jitterFactorRBC_ 0.0001 >> Agent/VanetCR set jitterFactorRev_ 0.0002 >> Agent/VanetCR set sig_delay_ 0.003255 >> Agent/VanetCR set verif_delay_ 0.00762 >> Agent/VanetCR set lastheard_interval_ 1 >> Agent/VanetCR set statinterval_ 0.01 >> >> *ns-packet.tcl* >> >> # Wireless: >> ARP # Address Resolution Protocol, network wireless stack >> GAF # Geographic Adaptive Delity, for ad-hoc networks >> LL # network wireless stack >> LRWPAN # zheng, wpan/p802_15_4mac.cc >> Mac # network wireless stack >> *VanetCR # Added for Vanet on May 5th, 2009* >> >> *packet.h* >> >> name_[PT_VANETCR]= "VanetCR"; //Added for VANETCR on May 5th, 2009 >> static const packet_t PT_VANETCR = 61; //for VANETCR May 5th, 2009 >> >> *After Modifications >> * >> I execute the following commands to recompile >> >> touch common/packet.cc >> make >> make clean >> configure >> >> >> *ERROR* >> >> [root@localhost ns-2.33]# ns >> ns: >> [code omitted because of length] >> : invalid command name "Agent/VanetCR" >> while executing >> "Agent/VanetCR set packetSize_ 1000 " >> >> the strange thing is as soon as I make this change in ns-default.tcl. All >> other tcl files also stop working and the error I listed before is >> returned. >> >> Any help inthis regard will be highly appreciated. >> >> Thanks & Regards, >> >> Usman >> 313-424-0122 >> > > |
| Free embeddable forum powered by Nabble | Forum Help |