<div dir="ltr">Alex,<div><br></div><div>I found the bug in my code! The GetTypeId() method was not setting the correct parent and group name for the application class I wrote. After modifying the method (as below), it worked!<div><br></div><div>The example script now able to recognize the new application class being installed on the node and is able to invoke StartApplication() method. I could verify this from some of the Node specific configuration I am printing from the StartApplication. </div><div><br></div><div>The updated GetTypeId() method looks like below.</div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>TypeId </div></div><div><div>NlsrApp::GetTypeId (void)</div></div><div><div>{</div></div><div><div>  static TypeId tid = TypeId ("ns3::ndn::NlsrApp")</div></div><div><div><span class="" style="white-space:pre">       </span>.SetGroupName ("Ndn")</div></div><div><div><span class="" style="white-space:pre">     </span>.SetParent<App> ()</div></div><div><div><span class="" style="white-space:pre">    </span>.AddConstructor<NlsrApp> ()</div></div><div><div>    ;</div></div><div><div>  return tid;</div></div><div><div>}</div></div></blockquote><div><br></div><div>/anil.</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 24, 2014 at 1:15 PM, Anil Jangam <span dir="ltr"><<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alex,<div><br></div><div>I am testing a new application class and trying to create a application helper instance for the same. </div><div><br></div><div>When I run the example test case, it is throwing an exception from the below function where the name look up is  failing. </div><div><br></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>TypeId</div></div><div><div>TypeId::LookupByName (std::string name)</div></div><div><div>{</div></div><div><div>  NS_LOG_FUNCTION (name);</div></div><div><div>  uint16_t uid = Singleton<IidManager>::Get ()->GetUid (name);</div></div><div><div>  NS_ASSERT_MSG (uid != 0, "Assert in TypeId::LookupByName: " << name << " not found");</div></div><div><div>  return TypeId (uid);</div></div><div><div>}</div></div></blockquote><br><div>I am not sure what is missing here which is causing this exception. </div><span class="HOEnZb"><font color="#888888"><div><br></div><div>/anil.</div><div><br></div></font></span></div>
</blockquote></div><br></div>