Re: Some more traces for the PeerUnavailableException:
SiM <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
> SiM wrote: > > > Testing the Sip stack ! > > Entering setupSipstack > > Entering setupStackProperties > > Success getting the Host IP address : [ 192.168.2.4 ] > > Success setting the Stack IP address : [ 192.168.2.4 ] > > Finished setting Stack properties > > javax.sip.PeerUnavailableException: The Peer SIP Stack: > > gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the > > Path Name has been set. > > at javax.sip.SipFactory.createStack(SipFactory.java:312) > > at javax.sip.SipFactory.createSipStack(SipFactory.java:153) > > at > > appletphone.ua.sip.SipManager.setupSipStack(SipManager.java:118) > > at appletphone.ua.sip.SipManager.init(SipManager.java:88) > > at TestSipStack.initStack(TestSipStack.java:13) > > at TestSipStack.main(TestSipStack.java:22) > > Caused by: java.lang.reflect.InvocationTargetException > > at > > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > > at > > > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > > > > at > > > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > > > > at java.lang.reflect.Constructor.newInstance(Constructor.java:274) > > at javax.sip.SipFactory.createStack(SipFactory.java:304) > > ... 5 more > > Caused by: java.lang.NoClassDefFoundError: > > EDU/oswego/cs/dl/util/concurrent/ConcurrentHashMap > > at > > > gov.nist.javax.sip.stack.SIPTransactionStack.<init>(SIPTransactionStack.java:314) > > > > at gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:202) > > at gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:243) > > ... 10 more > > The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be > > instantiated. Ensure the Path Name has been set. > > > > =================================================================== > > > > The output from My test Program, which used to work fine on Windows. > > > > Thank you. > > Cheers. > > simith > > > > On 6/22/06, M. Rangnathan <[email protected]> wrote: > You have your answer right there in the trace. You are missing the > Oswego library in your classpath. > > If you are trying to build an Applet, consider using java 5 and > replacing all the Oswego concurrenct library calls with equivalent and > very similar functionality that is part of java5. You should also > consider removing the dependency on log4j by editing the file > (LogWriter.java). Make the logger.debug logger.info etc use System.out > (or whatever the eqivalent thing is for applets -- I forget ). > > Ranga > Hi Ranga, Thank you very much for your response. Now it works for me. What i did , following ur instruction, 1.) i jar'ed the concurrent.jar --> class files , with the Jar of my applet. Now i had a problem : that log4j is missing. 2.) Then the log4j-1.2.8.jar --> class files , with the jar of my applet. Everything is up and running, thanx a million, i can watch Brazil Vs. Japan at peace tonight. One more Question to the java gurus, is it not possible to have concurrent.jar and log4j.jar , included directly into my Applet.jar ? , what i have done is i inflated them and then added the classfiles directly to my Applet.jar . Bye ! Cheers. Simith