我有一个小问题,我有我的SIP客户端工作,并且我改变了代码的结构。我保留了以前的SIP对象的创建过程,但现在它不起作用。发起SIP会话/ getClientTransaction(请求)问题抛出NullPointerException
我不断收到:在gov.nist.javax.sip.SipProviderImpl.getNewClientTransaction(SipProviderImpl.java:285)
显示java.lang.NullPointerException
并没有这样的错误没有参考在文档中......这是什么意思?
这里是SIP协议的实例代码:
sipFactory.setPathName(host);
sipFactory.resetFactory();
sipStack = sipFactory.createSipStack(getProperties());
String address = Inet4Address.getLocalHost().getHostAddress();
sipFactory.createHeaderFactory();
sipFactory.createAddressFactory();
sipFactory.createMessageFactory();
udpPoint = sipStack.createListeningPoint(address, SIPPort, SIPConstants.UDP);
udpSipProvider = sipStack.createSipProvider(udpPoint);
udpSipProvider.addSipListener(this);
tcpPoint = sipStack.createListeningPoint(address, SIPPort, SIPConstants.TCP);
tcpSipProvider = sipStack.createSipProvider(tcpPoint);
tcpSipProvider.addSipListener(this);
sipStack.start();
setSessionState(SipSessionState.Connected);
任何帮助,请?
亚当。
我还是不敢相信这是错误......非常深入的调试! – TacB0sS 2010-06-28 21:05:27