Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Exception occured while sending Cancel request...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
atomic ant  
View profile  
 More options Mar 3 2011, 11:01 am
From: atomic ant <alper.ozda...@argela.com.tr>
Date: Thu, 3 Mar 2011 08:01:27 -0800 (PST)
Local: Thurs, Mar 3 2011 11:01 am
Subject: Exception occured while sending Cancel request...
Hello,

I implemented a BACK2BACK sip application.

 In our scnerios, our application finds the telephone numbers
associated with the subscriber.(B Party) Our application multiplexes
the SIP Invite to all telephone numbers of the B Party subscriber.
When one of the numbers accepts the call, our application sends Cancel
to all other numbers. (Like Forking...)

Briefly, when invite comes to our application, we generates 3
different call leg. (Total 4 different call-id) When we got 200 Ok one
of the outgoing leg, we are sending Cancel messages to other outgoing
legs.

This feature was working with Glassfish Sailfin. But in mobicent we
are getting problem. When i tried to create Cancel request from
outgoing Leg, i am getting NullPointerException.

 public void sendCancelToSubLegs(SubCall otherSubCall) throws
IOException {
        try {

            SipServletRequest cancelRequest;

            cancelRequest =
otherSubCall.getOutgoingLeg().createCancel();

            if (cancelRequest != null) {

                cancelRequest.removeHeader("Content-Type");
                cancelRequest.removeHeader("Content-Length");
                cancelRequest.send();
<---------------------------------- Null Pointer Exception
            } else {
                logger.warn("Cancel Request is Null!! We couldn't send
Cancel request !");
            }

        } catch (Exception e) {
            logger.debug("Exception occured while sending cancel to
sub legs...: " + e);
            e.printStackTrace();
        }
    }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Vladimir Ralev  
View profile  
 More options Mar 3 2011, 11:03 am
From: Vladimir Ralev <vladimir.ra...@gmail.com>
Date: Thu, 3 Mar 2011 18:03:18 +0200
Local: Thurs, Mar 3 2011 11:03 am
Subject: Re: [mobicents-public] Exception occured while sending Cancel request...

Can you post the exception? Not that you cant send CANCEL under certain
conditions defined in the SIP RFC.

On Thu, Mar 3, 2011 at 6:01 PM, atomic ant <alper.ozda...@argela.com.tr>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
atomic ant  
View profile  
 More options Mar 4 2011, 3:01 am
From: atomic ant <alper.ozda...@argela.com.tr>
Date: Fri, 4 Mar 2011 00:01:15 -0800 (PST)
Local: Fri, Mar 4 2011 3:01 am
Subject: Re: Exception occured while sending Cancel request...
09:51:43,194 ERROR [STDERR] java.lang.NullPointerException
09:51:43,194 ERROR [STDERR]     at
gov.nist.javax.sip.message.SIPMessage.encode(SIPMessage.java:440)
09:51:43,194 ERROR [STDERR]     at
gov.nist.javax.sip.message.SIPRequest.encode(SIPRequest.java:469)
09:51:43,194 ERROR [STDERR]     at
gov.nist.javax.sip.message.SIPRequest.toString(SIPRequest.java:498)
09:51:43,194 ERROR [STDERR]     at
java.lang.String.valueOf(String.java:2826)
09:51:43,194 ERROR [STDERR]     at
java.lang.StringBuilder.append(StringBuilder.java:115)
09:51:43,194 ERROR [STDERR]     at
org.mobicents.servlet.sip.message.SipServletRequestImpl.send(SipServletRequ estImpl.java:
1404)
09:51:43,194 ERROR [STDERR]     at
tr.com.argela.psr.cc.CcCore.sendCancelToSubLegs(CcCore.java:481)
09:51:43,194 ERROR [STDERR]     at
tr.com.argela.psr.cc.fsm.parallel.ParallelRinging.callAnswered(ParallelRing ing.java:
176)
09:51:43,194 ERROR [STDERR]     at
tr.com.argela.psr.cc.PsrSipServlet.doSuccessResponse(PsrSipServlet.java:
352)
09:51:43,194 ERROR [STDERR]     at
javax.servlet.sip.SipServlet.doResponse(SipServlet.java:268)
09:51:43,194 ERROR [STDERR]     at
javax.servlet.sip.SipServlet.service(SipServlet.java:327)
09:51:43,194 ERROR [STDERR]     at
org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher.callServlet(Me ssageDispatcher.java:
326)
09:51:43,195 ERROR [STDERR]     at
org.mobicents.servlet.sip.core.dispatchers.ResponseDispatcher
$1.dispatch(ResponseDispatcher.java:355)
09:51:43,195 ERROR [STDERR]     at
org.mobicents.servlet.sip.core.dispatchers.DispatchTask.dispatchAndHandleEx ceptions(DispatchTask.java:
55)
09:51:43,195 ERROR [STDERR]     at
org.mobicents.servlet.sip.core.dispatchers.ResponseDispatcher.dispatchMessa ge(ResponseDispatcher.java:
386)
09:51:43,195 ERROR [STDERR]     at
org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.processResponse (SipApplicationDispatcherImpl.java:
840)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:296)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:
196)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.DialogFilter.processResponse(DialogFilter.java:
1480)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.stack.SIPClientTransaction.inviteClientTransaction(SIPCl ientTransaction.java:
885)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.stack.SIPClientTransaction.processResponse(SIPClientTran saction.java:
548)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.stack.SIPClientTransaction.processResponse(SIPClientTran saction.java:
1550)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.stack.UDPMessageChannel.processMessage(UDPMessageChannel .java:
583)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.stack.UDPMessageChannel.processIncomingDataPacket(UDPMes sageChannel.java:
492)
09:51:43,195 ERROR [STDERR]     at
gov.nist.javax.sip.stack.UDPMessageChannel.run(UDPMessageChannel.java:
297)
09:51:43,195 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:
662)
09:51:43,701 INFO  [STDOUT] SIP stack timer task failed due to
exception:
09:51:43,701 ERROR [STDERR] java.lang.NullPointerException
09:51:43,701 ERROR [STDERR]     at
gov.nist.javax.sip.message.SIPMessage.encodeAsBytes(SIPMessage.java:
497)
09:51:43,701 ERROR [STDERR]     at
gov.nist.javax.sip.message.SIPRequest.encodeAsBytes(SIPRequest.java:
596)
09:51:43,701 ERROR [STDERR]     at
gov.nist.javax.sip.stack.SIPClientTransaction.cleanUp(SIPClientTransaction. java:
1738)
09:51:43,701 ERROR [STDERR]     at
gov.nist.javax.sip.stack.SIPClientTransaction.cleanUpOnTerminated(SIPClient Transaction.java:
1813)
09:51:43,701 ERROR [STDERR]     at
gov.nist.javax.sip.stack.SIPClientTransaction
$TransactionTimer.runTask(SIPClientTransaction.java:259)
09:51:43,701 ERROR [STDERR]     at
gov.nist.javax.sip.stack.timers.DefaultSipTimer
$DefaultTimerTask.run(DefaultSipTimer.java:63)
09:51:43,701 ERROR [STDERR]     at
java.util.TimerThread.mainLoop(Timer.java:512)
09:51:43,702 ERROR [STDERR]     at
java.util.TimerThread.run(Timer.java:462)

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
atomic ant  
View profile  
 More options Mar 4 2011, 3:57 am
From: atomic ant <alper.ozda...@argela.com.tr>
Date: Fri, 4 Mar 2011 00:57:49 -0800 (PST)
Local: Fri, Mar 4 2011 3:57 am
Subject: Re: Exception occured while sending Cancel request...
//cancelRequest.removeHeader("Content-Type");
//cancelRequest.removeHeader("Content-Length");

When i commented these two lines, problem resolved. But when we don't
remove these headers, Leadtek phones don't accept Cancel messages.
In RFC-3261 says that it is not compulsory to be exists these fields
in Cancel message.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean Deruelle  
View profile  
 More options Mar 7 2011, 11:40 am
From: Jean Deruelle <jean.derue...@gmail.com>
Date: Mon, 7 Mar 2011 17:40:48 +0100
Local: Mon, Mar 7 2011 11:40 am
Subject: Re: [mobicents-public] Re: Exception occured while sending Cancel request...

Can you create an issue here
http://code.google.com/p/mobicents/issues/entry?template=Mobicents%20...
 ?

Thanks in advance
BR
Jean

On Fri, Mar 4, 2011 at 9:57 AM, atomic ant <alper.ozda...@argela.com.tr>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Ross  
View profile  
 More options Sep 25 2012, 9:28 am
From: Tim Ross <timross...@gmail.com>
Date: Tue, 25 Sep 2012 06:28:20 -0700 (PDT)
Local: Tues, Sep 25 2012 9:28 am
Subject: Re: [mobicents-public] Re: Exception occured while sending Cancel request...

How can I track this bug?  I am facing the same issue in Mobicents 1.7.
 Also Jain Sip's SIPMessage.setContent throws a similar exception when
trying to computeContentLength().  since contentLenghtHeader == null,
contentLengthHeader.setContentLength(length) throws NullPointerException.
 BTW, where can I get the jain sip source so I can build it into mobicents
1.7?

Thanks,
Tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean Deruelle  
View profile  
 More options Sep 25 2012, 9:46 am
From: Jean Deruelle <jean.derue...@gmail.com>
Date: Tue, 25 Sep 2012 15:46:16 +0200
Local: Tues, Sep 25 2012 9:46 am
Subject: Re: [mobicents-public] Re: Exception occured while sending Cancel request...

http://code.google.com/p/mobicents/issues/detail?id=2403

Jean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim Ross  
View profile  
 More options Sep 28 2012, 1:49 pm
From: Tim Ross <timross...@gmail.com>
Date: Fri, 28 Sep 2012 13:49:00 -0400
Subject: Re: [mobicents-public] Re: Exception occured while sending Cancel request...

Thanks for the quick response, and have fixed my end

I agree with the bug report, and that sending a request with no content
length is generally illegal, so does not need to be supported.  But I would
expect to be able to invoke SipServletMessage.toString() or
SipServletMessage.setContent(..)  after removing the Content-Length header.
 In mss 1.7 I get the following behavior:

SipServletMessage sipServletMessage = sipFactory.createRequest(..)
sipServletMessage.removeHeader("Content-Length");
sipServletMessage.toString();  // throws NullPointerException
sipServletMessage.setContent(...) // also throws NullPointerException when
it calculates the content length and tries to set it internally.

Thanks,
Tim

On Tue, Sep 25, 2012 at 9:46 AM, Jean Deruelle <jean.derue...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jean Deruelle  
View profile  
 More options Nov 8 2012, 9:24 am
From: Jean Deruelle <jean.derue...@gmail.com>
Date: Thu, 8 Nov 2012 15:23:53 +0100
Local: Thurs, Nov 8 2012 9:23 am
Subject: Re: [mobicents-public] Re: Exception occured while sending Cancel request...

Did you try that on MSS 2.0 ?
If it still throws an NPE , can you file a bug at
http://code.google.com/p/sipservlets/issues/entry ?

Thanks
Jean


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »