Re: NPE: When CANCEL a call
"M. Rangnathan" <[email protected]>
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Egads! Terrible form. Extreme programming 101 - test before commit. Sorry
OK it is fixed. Please update your source and try it.
Victor Hugo Ros Villegas wrote:
> When I call an user but I cancel the call before the called user
> accepts I receive a NullPointerException:
>
> 19:26:53,687 INFO [STDOUT] Exception in thread "UDPMessageChannelThread"
> 19:26:53,703 INFO [STDOUT] java.lang.NullPointerException
> 19:26:53,703 INFO [STDOUT] at
> gov.nist.javax.sip.stack.SIPServerTransaction
> .setDialog(SIPServerTransaction.java:1220)
> 19:26:53,718 INFO [STDOUT] at
> gov.nist.javax.sip.NistSipMessageHandlerImpl.
> processRequest(NistSipMessageHandlerImpl.java:264)
> 19:26:53,734 INFO [STDOUT] at
> gov.nist.javax.sip.stack.SIPServerTransaction
> .processRequest(SIPServerTransaction.java:687)
> 19:26:53,734 INFO [STDOUT] at
> gov.nist.javax.sip.stack.UDPMessageChannel.ru
> <http://gov.nist.javax.sip.stack.UDPMessageChannel.ru>
> n(UDPMessageChannel.java:382)
> 19:26:53,750 INFO [STDOUT] at java.lang.Thread.run(Thread.java:595)
> 19:26:58,968 INFO [SbbEntity] invoking event handler onTimerEvent on
> org.mobice
> nts.slee.services.sip.proxy.JainSipProxySbbImpl ID
> SbbID[ProxySbb#NIST#1.0] sbbE
> ntity org.mobicents.slee.runtime.SbbEntity@bd630e currentEvent
> SleeEventImpl.toS
> tring() = {
>
> *****************************
>
> I think that the problem is in the
> gov.nist.javax.sip.NistSipMessageHandlerImpl (Line 264)
>
> transaction.setDialog((SIPDialog) st.getDialog(), sipRequest);
>
> If the st.getDialog() returns null the setDialog is called with arg0=
> null -> SIPServerTransaction (Line 1218):
>
> public void setDialog(SIPDialog sipDialog, SIPMessage sipMessage) {
> this.dialog = sipDialog;
> this.dialog.setAssigned(); ----->>>
> NullPointerException!!!!!!!!
>
>
> Regards,
>
> Victor
>
>------------------------------------------------------------------------
>
>_______________________________________________
>nist-sip mailing list
>[email protected]
>http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
>
>
--
M. Ranganathan
Advanced Networking Technologies Division,
National Institute of Standards and Technology (NIST),
100 Bureau Drive, Stop 8920, Gaithersburg, MD 20899.
tel:301 975 3664 , fax:301 590 0932 http://w3.antd.nist.gov/
Advanced Networking Technologies For the People!