<div dir="ltr"><div>Thanks Alex. It worked!<br><br> 68     nlsrApp->SetStartTime(Seconds (1.0));<br><br></div><div>Proceeding with next set of debugging. :)<br><br></div>/anil.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 28, 2015 at 12:06 PM, Alex Afanasyev <span dir="ltr"><<a href="mailto:aa@cs.ucla.edu" target="_blank">aa@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Most likely you're starting your NLSR application at time moment 0.  You need to schedule the start at a later time moment (say, 1second).  Otherwise, ndn::Face::registerPrefix() will always fail.<br>
<br>
---<br>
Alex<br>
<div class="HOEnZb"><div class="h5"><br>
> On Dec 28, 2015, at 11:23 AM, Anil Jangam <<a href="mailto:anilj.mailing@gmail.com">anilj.mailing@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I am testing a scenario of NLSR simulation and hitting an exception in ndnSIM. I searched for the error in the past learned that I need to start the NFD and NRD processes, but that suggestion was in case of real applications. What is the cause of this in the simulation setup?<br>
><br>
> Am I missing any environment setup, which is leading to this error?<br>
><br>
> 4.227s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00<br>
> 4.227s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00<br>
> 4.227s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00<br>
> 8.487s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00<br>
> 8.487s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00<br>
> 8.487s ndn-cxx.Face:expressInterest(): >> Interest: /ndn/NLSR/sync/00<br>
> 10s HelloProtocol:scheduleInterest(): Scheduling HELLO Interests in 5 seconds<br>
> 10s HelloProtocol:scheduleInterest(): Scheduling HELLO Interests in 5 seconds<br>
> 10s HelloProtocol:scheduleInterest(): Scheduling HELLO Interests in 5 seconds<br>
> ERROR: Failed to register prefix in local hub's daemon<br>
> terminate called after throwing an instance of 'nlsr::Nlsr::Error'<br>
>   what():  Error: Prefix registration failed<br>
><br>
> Program received signal SIGABRT, Aborted.<br>
> 0x00007fffe99cccc9 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56<br>
> 56    ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.<br>
><br>
> /anil.<br>
<br>
</div></div></blockquote></div><br></div>