javax.sip.PeerUnavailableException: The Peer SIP Stack: gov.nist.javax.sip.SipStackImpl could not be instantiated. Ensure the Path Name has been set.
"Robert Andersson" <[email protected]> Fri, 20 Apr 2007 18:04:08 +0200
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Hello all.
This is the first time I post on this mailinglist. I have been using the
sip stack for several years with great success. Now I want to upgrade it
and run it under java 1.5. When I do this I get this error when trying
to create the sipstack:
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:324)
at javax.sip.SipFactory.createSipStack(SipFactory.java:165)
at
se.netwise.mmx.sipgateway.GatewayStart.start(GatewayStart.java:204)
at
se.netwise.mmx.sipgateway.GatewayStart.<init>(GatewayStart.java:48)
at
se.netwise.mmx.sipgateway.GatewayApp.<init>(GatewayApp.java:51)
at
se.netwise.mmx.sipgateway.GatewayApp.main(GatewayApp.java:68)
Caused by: java.lang.reflect.InvocationTargetException
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at javax.sip.SipFactory.createStack(SipFactory.java:314)
... 5 more
Caused by: java.util.NoSuchElementException
at java.util.StringTokenizer.nextToken(Unknown Source)
at java.util.StringTokenizer.nextToken(Unknown Source)
at gov.nist.javax.sip.stack.HopImpl.<init>(HopImpl.java:97)
at
gov.nist.javax.sip.stack.DefaultRouter.<init>(DefaultRouter.java:115)
at
gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:343)
... 10 more
I have set the pathname to "gov.nist" as I usually do.
I have searched the mailing list but could not find anything regarding
this.
My code:
SipFactory sipFactory = SipFactory.getInstance();
sipFactory.setPathName("gov.nist");
HeaderFactory headerFactory = sipFactory.createHeaderFactory();
AddressFactory addressFactory = sipFactory.createAddressFactory();
messageFactory = sipFactory.createMessageFactory();
// Create SipStack object
Properties properties = System.getProperties() ;
sipStack = sipFactory.createSipStack(System.getProperties());
/ Robert Andersson
_______________________________________________
nist-sip mailing list
[email protected]
http://www-x.antd.nist.gov/mailman/listinfo/nist-sip