Re: using jain-sip-applet-phone with nist-sip-1.2
"Venkata Ramana Kunapuli" <[email protected]> Wed, 3 Oct 2007 15:29:06 -0400
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
--===============6702396382135619510== Content-Type: multipart/alternative; boundary="----=_Part_27655_31179593.1191439746390" ------=_Part_27655_31179593.1191439746390 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Well I made few changes to it ( not major) and I was able to compile ( though there are several warnings). The issues I found seems to be , in 1.2there are more exception handling ( some of the compile errors are of that short) and then there seems some methods are made as abstract and hence we need to implement them in application. but when i run "ant messenger "it failed at creating sipStack, may be it is some thing to do with environment setting (because I copied the same piece of code that is used in shootist example ).. I am not too familiar with Java env ( I am C++/SIP guy) , thought may be some body can figure out based on error. Thanks Venkat On 10/3/07, M. (Neo-Ranga) Ranganathan <[email protected]> wrote: > > The applet phone has not been updated to 1.2. If you want to take a > crack at it, sign up as a dev and have a hack at it. Sorry I dont have > the time to do it. I keep getting requests for it. I am sure the > community will receive your efforts favorably. > > Ranga > > On 10/3/07, Venkata Ramana Kunapuli <[email protected] > wrote: > > Hi, > > > > I tried to use jain-sip-applet-phone using nist-sip-1.2, but it gives > me > > the following error in creating sip stack. However when I use the > example > > code in nist-sip-.1.2 I am able do this operation successful. Any idea > why I > > get this error. > > > > Thanks > > Venkat > > [java] javax.sip.PeerUnavailableException: The Peer SIP > > Stack: gov.nist.jav > > ax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has > been > > set > > . > > [java] at javax.sip.SipFactory.createStack > > (SipFactory.java:324) > > [java] at > > javax.sip.SipFactory.createSipStack(SipFactory.java:152) > > [java] at > > gov.nist.applet.phone.ua.MessageListener.start(MessageListene > > r.java:494) > > [java] at > > gov.nist.applet.phone.ua.MessengerManager .<init>(MessengerMan > > ager.java:97) > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger.<init>(NISTMesseng > > er.java:54) > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger.main > > (NISTMessenger > > .java:520) > > [java] Caused by: > > java.lang.reflect.InvocationTargetException > > [java] at > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > [java] at > > sun.reflect.NativeConstructorAccessorImpl.newInstance > > (NativeC > > onstructorAccessorImpl.java:39) > > [java] at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Del > > egatingConstructorAccessorImpl.java:27) > > [java] at > > java.lang.reflect.Constructor.newInstance > > (Constructor.java:51 > > 3) > > [java] at > > javax.sip.SipFactory.createStack (SipFactory.java:314) > > [java] ... 5 more > > [java] Caused by: java.lang.NoClassDefFoundError: > > EDU/oswego/cs/dl/util/con > > current/ConcurrentHashMap > > [java] at > > gov.nist.javax.sip.stack.SIPTransactionStack.<init>(SIPTransa > > ctionStack.java:377) > > [java] at gov.nist.javax.sip.SipStackImpl.<init>( > SipStackImpl.java > > :268) > > > > [java] at > > gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:310) > > > > [java] ... 10 more > > [java] The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could > not be > > ins > > tantiated. Ensure the Path Name has been set. > > [java] java.lang.reflect.InvocationTargetException > > [java] at > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > Method) > > [java] at > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC > > onstructorAccessorImpl.java:39) > > [java] at > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Del > > egatingConstructorAccessorImpl.java:27) > > [java] at > > java.lang.reflect.Constructor.newInstance(Constructor.java:51 > > 3) > > [java] at javax.sip.SipFactory.createStack > > (SipFactory.java:314) > > [java] at > > javax.sip.SipFactory.createSipStack(SipFactory.java:152) > > [java] at > > gov.nist.applet.phone.ua.MessageListener.start(MessageListene > > r.java:494) > > [java] at > > gov.nist.applet.phone.ua.MessengerManager.<init>(MessengerMan > > ager.java:97) > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger.<init>(NISTMesseng > > er.java:54) > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger.main > > (NISTMessenger > > .java:520) > > [java] Caused by: java.lang.NoClassDefFoundError: > > EDU/oswego/cs/dl/util/con > > current/ConcurrentHashMap > > [java] at > > gov.nist.javax.sip.stack.SIPTransactionStack.<init>(SIPTransa > > ctionStack.java:377) > > [java] at > > gov.nist.javax.sip.SipStackImpl .<init>(SipStackImpl.java:268) > > > > [java] at > > gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:310) > > > > [java] ... 10 more > > [java] Exception in thread "main" java.lang.NullPointerException > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger.unRegister(NISTMes > > senger.java:490) > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger.close (NISTMessenge > > r.java:479) > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger.fatalError(NISTMes > > senger.java:513) > > [java] at > > gov.nist.applet.phone.ua.MessageListener.start (MessageListene > > r.java:503) > > [java] at > > gov.nist.applet.phone.ua.MessengerManager.<init>(MessengerMan > > ager.java:97) > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger > > .<init>(NISTMesseng > > er.java:54) > > [java] at > > gov.nist.applet.phone.ua.gui.NISTMessenger.main(NISTMessenger > > .java:520) > > > > _______________________________________________ > > nist-sip mailing list > > [email protected] > > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip > > > > > > > -- > M. Ranganathan > "There are two ways to write error-free programs; only the third one > works." -- Alan Perlis > http://www.animenewsnetwork.com/encyclopedia/anime.php?id=1052 > ------=_Part_27655_31179593.1191439746390 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div>Well I made few changes to it ( not major) and I was able to compile ( though there are several warnings). The issues I found seems to be , in 1.2 there are more exception handling ( some of the compile errors are of that short) and then there seems some methods are made as abstract and hence we need to implement them in application. </div> <div> </div> <div>but when i run "ant messenger "it failed at creating sipStack, may be it is some thing to do with environment setting (because I copied the same piece of code that is used in shootist example ).. I am not too familiar with Java env ( I am C++/SIP guy) , thought may be some body can figure out based on error. <br><br>Thanks</div> <div>Venkat </div> <div><span class="gmail_quote">On 10/3/07, <b class="gmail_sendername">M. (Neo-Ranga) Ranganathan</b> <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:[email protected]" target="_blank">[email protected] </a>> wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">The applet phone has not been updated to 1.2. If you want to take a<br>crack at it, sign up as a dev and have a hack at it. Sorry I dont have <br>the time to do it. I keep getting requests for it. I am sure the<br>community will receive your efforts favorably.<br><br>Ranga<br><br>On 10/3/07, Venkata Ramana Kunapuli <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:[email protected]" target="_blank"> [email protected] </a>> wrote:<br>> Hi,<br>><br>> I tried to use jain-sip-applet-phone using nist-sip-1.2, but it gives me<br>> the following error in creating sip stack. However when I use the example<br> > code in nist-sip-.1.2 I am able do this operation successful. Any idea why I<br>> get this error.<br>><br>> Thanks<br>> Venkat<br>> [java] javax.sip.PeerUnavailableException: The Peer SIP<br>> Stack: gov.nist.jav<br>> ax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been<br>> set<br>> .<br>> [java] at javax.sip.SipFactory.createStack<br>> (SipFactory.java:324)<br>> [java] at <br>> javax.sip.SipFactory.createSipStack(SipFactory.java:152)<br>> [java] at<br>> gov.nist.applet.phone.ua.MessageListener.start(MessageListene<br>> r.java:494)<br>> [java] at<br>> gov.nist.applet.phone.ua.MessengerManager .<init>(MessengerMan<br>> ager.java:97)<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger.<init>(NISTMesseng<br>> er.java:54)<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger.main <br>> (NISTMessenger<br>> .java:520)<br>> [java] Caused by:<br>> java.lang.reflect.InvocationTargetException<br>> [java] at<br>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native <br>> Method)<br>> [java] at<br>> sun.reflect.NativeConstructorAccessorImpl.newInstance<br>> (NativeC<br>> onstructorAccessorImpl.java:39)<br>> [java] at<br>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Del<br>> egatingConstructorAccessorImpl.java:27)<br>> [java] at<br>> java.lang.reflect.Constructor.newInstance<br>> (Constructor.java:51<br>> 3)<br>> [java] at<br>> javax.sip.SipFactory.createStack (SipFactory.java:314)<br>> [java] ... 5 more<br>> [java] Caused by: java.lang.NoClassDefFoundError:<br>> EDU/oswego/cs/dl/util/con<br>> current/ConcurrentHashMap<br>> [java] at<br>> gov.nist.javax.sip.stack.SIPTransactionStack.<init>(SIPTransa<br>> ctionStack.java:377)<br>> [java] at gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java<br>> :268)<br>><br>> [java] at <br>> gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:310)<br>><br>> [java] ... 10 more<br>> [java] The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be<br>> ins<br> > tantiated. Ensure the Path Name has been set.<br>> [java] java.lang.reflect.InvocationTargetException<br>> [java] at<br>> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native<br>> Method) <br>> [java] at<br>> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeC<br>> onstructorAccessorImpl.java:39)<br>> [java] at<br>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Del<br>> egatingConstructorAccessorImpl.java:27)<br>> [java] at<br>> java.lang.reflect.Constructor.newInstance(Constructor.java:51<br>> 3)<br>> [java] at javax.sip.SipFactory.createStack <br>> (SipFactory.java:314)<br>> [java] at<br>> javax.sip.SipFactory.createSipStack(SipFactory.java:152)<br>> [java] at<br>> gov.nist.applet.phone.ua.MessageListener.start(MessageListene<br> > r.java:494)<br>> [java] at<br>> gov.nist.applet.phone.ua.MessengerManager.<init>(MessengerMan<br>> ager.java:97)<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger.<init>(NISTMesseng <br>> er.java:54)<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger.main<br>> (NISTMessenger<br>> .java:520)<br>> [java] Caused by: java.lang.NoClassDefFoundError:<br>> EDU/oswego/cs/dl/util/con <br>> current/ConcurrentHashMap<br>> [java] at<br>> gov.nist.javax.sip.stack.SIPTransactionStack.<init>(SIPTransa<br>> ctionStack.java:377)<br>> [java] at<br>> gov.nist.javax.sip.SipStackImpl .<init>(SipStackImpl.java:268)<br>><br>> [java] at<br>> gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:310)<br>><br>> [java] ... 10 more<br>> [java] Exception in thread "main" java.lang.NullPointerException<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger.unRegister(NISTMes<br>> senger.java:490)<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger.close (NISTMessenge<br>> r.java:479)<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger.fatalError(NISTMes<br>> senger.java:513)<br>> [java] at<br>> gov.nist.applet.phone.ua.MessageListener.start (MessageListene<br>> r.java:503)<br>> [java] at<br>> gov.nist.applet.phone.ua.MessengerManager.<init>(MessengerMan<br>> ager.java:97)<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger <br>> .<init>(NISTMesseng<br>> er.java:54)<br>> [java] at<br>> gov.nist.applet.phone.ua.gui.NISTMessenger.main(NISTMessenger<br>> .java:520)<br>><br>> _______________________________________________ <br>> nist-sip mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:[email protected]" target="_blank">[email protected]</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www-x.antd.nist.gov/mailman/listinfo/nist-sip" target="_blank"> http://www-x.antd.nist.gov/mailman/listinfo/nist-sip </a><br>><br>><br><br><br>--<br>M. Ranganathan<br>"There are two ways to write error-free programs; only the third one<br>works." -- Alan Perlis<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.animenewsnetwork.com/encyclopedia/anime.php?id=1052" target="_blank"> http://www.animenewsnetwork.com/encyclopedia/anime.php?id=1052</a><br></blockquote></div><br> ------=_Part_27655_31179593.1191439746390-- --===============6702396382135619510== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ nist-sip mailing list [email protected] http://www-x.antd.nist.gov/mailman/listinfo/nist-sip --===============6702396382135619510==--