我有一個小問題,我有我的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