SV: 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]> Mon, 23 Apr 2007 08:31:31 +0200
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
Hi Jeroen. Thanks for helping me.

 

I have just tested it and get another error:

 

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:203)

      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(NativeConstructorAccessorImpl.java:39)

      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

      at javax.sip.SipFactory.createStack(SipFactory.java:314)

      ... 5 more

Caused by: java.lang.IllegalArgumentException: no host!

      at gov.nist.javax.sip.stack.HopImpl.<init>(HopImpl.java:131)

      at gov.nist.javax.sip.stack.DefaultRouter.<init>(DefaultRouter.java:115)

      at gov.nist.javax.sip.SipStackImpl.<init>(SipStackImpl.java:343)

      ... 10 more

 

Regards

 

/ Robert

 

 

 

 

 

 

 

 

 

 

________________________________

Från: Jeroen van Bemmel [mailto:[email protected]] 
Skickat: den 20 april 2007 21:11
Till: Robert Andersson; [email protected]
Ämne: Re: [nist-sip] javax.sip.PeerUnavailableException: The Peer SIP Stack:gov.nist.javax.sip.SipStackImpl could not be instantiated.Ensure the Path Name has been set.

 

Robert,

 

I've changed the HopImpl code, but I cannot test if it works. Can you test this (attached)?

 

Regards,

Jeroen

	----- Original Message ----- 

	From: Robert Andersson <mailto:[email protected]>  

	To: [email protected] 

	Sent: Friday, April 20, 2007 6:04 PM

	Subject: [nist-sip] javax.sip.PeerUnavailableException: The Peer SIP Stack:gov.nist.javax.sip.SipStackImpl could not be instantiated.Ensure the Path Name has been set.

	 

	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

_______________________________________________
nist-sip mailing list
[email protected]
http://www-x.antd.nist.gov/mailman/listinfo/nist-sip