Exception when sending SIP REGISTER message

25 views
Skip to first unread message

Asbjorn Grandt

unread,
Feb 10, 2012, 10:09:47 AM2/10/12
to mobicent...@googlegroups.com
If possible, I'd be happy to just get the correct version of the source
code that went into the 1.6.0 release of MMS for Tomcat.

I get the following exception when sending a simple test SIP:
at
org.mobicents.servlet.sip.message.SipServletRequestImpl.send(SipServletRequestImpl.java:1301)
at
org.mobicents.servlet.sip.message.SipServletRequestImpl.send(SipServletRequestImpl.java:1011)
at
org.example.servlet.sip.MySipServlet.sendRegister1(MySipServlet.java:147)
at org.example.servlet.sip.MySipServlet.doInvite(MySipServlet.java:91)
at javax.servlet.sip.SipServlet.doRequest(SipServlet.java:231)
at org.example.servlet.sip.MySipServlet.doRequest(MySipServlet.java:66)
at javax.servlet.sip.SipServlet.service(SipServlet.java:332)
at
org.mobicents.servlet.sip.core.dispatchers.MessageDispatcher.callServlet(MessageDispatcher.java:248)
at
org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher$InitialDispatchTask.dispatch(InitialRequestDispatcher.java:734)
at
org.mobicents.servlet.sip.core.dispatchers.DispatchTask.dispatchAndHandleExceptions(DispatchTask.java:60)
at
org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher.dispatchInsideContainer(InitialRequestDispatcher.java:441)
at
org.mobicents.servlet.sip.core.dispatchers.InitialRequestDispatcher.dispatchMessage(InitialRequestDispatcher.java:304)
at
org.mobicents.servlet.sip.core.SipApplicationDispatcherImpl.processRequest(SipApplicationDispatcherImpl.java:709)
at gov.nist.javax.sip.EventScanner.deliverEvent(EventScanner.java:230)
at
gov.nist.javax.sip.SipProviderImpl.handleEvent(SipProviderImpl.java:196)
at
gov.nist.javax.sip.DialogFilter.processRequest(DialogFilter.java:1298)
at
gov.nist.javax.sip.stack.SIPServerTransaction.processRequest(SIPServerTransaction.java:863)
at
gov.nist.javax.sip.stack.TCPMessageChannel.processMessage(TCPMessageChannel.java:844)
at
gov.nist.javax.sip.parser.PipelinedMsgParser$Dispatch.run(PipelinedMsgParser.java:285)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
at
gov.nist.javax.sip.SipProviderImpl.getNewClientTransaction(SipProviderImpl.java:401)
at
org.mobicents.servlet.sip.message.SipServletRequestImpl.send(SipServletRequestImpl.java:1142)

I'd dearly like to know what field is causing that NPE in
SipProviderImpl.java line 401, for that I'd need to be able to link
Eclipse to the right version of the source code. :)

Cheers
Asbj�rn Grandt

Vilius Panevėžys

unread,
Feb 10, 2012, 10:34:51 AM2/10/12
to mobicent...@googlegroups.com
Source code of a given release can be found in the SVN repository under
the correspoding tag in tags directory
(http://code.google.com/p/mobicents/source/browse/#svn%2Ftags%2Fservers%2Fsip-servlets%2Frelease-1.6.0.FINAL).


--
Vilius Panevėžys
Elitnet

> Asbjørn Grandt
>
>
>

Jean Deruelle

unread,
Feb 10, 2012, 10:42:18 AM2/10/12
to mobicent...@googlegroups.com
the JAIN SIP Code though is located somewhere else https://svn.java.net/svn/jsip~svn/tags/JAIN-SIP-1-2-164
The issue might be due to a missing connector, which transport are you trying to send the request with ? and which SIP Connectors are enabled in the server.xml ?


2012/2/10 Vilius Panevėžys <vil...@elitnet.lt>

Asbjorn Grandt

unread,
Feb 10, 2012, 11:01:25 AM2/10/12
to mobicent...@googlegroups.com
Thanks. I searched a bit more and found an existing issue report on the same problem, which is fixed in later releases.

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

I'll be changing to the Alpha of the MMS 2.0 release on Tomcat, aiming for the JBoss later. Right now I'm just prototyping and learning sip :)


Thanks again. Enjoy the weekend.

Cheers
Asbjørn

Jean Deruelle

unread,
Feb 10, 2012, 11:17:49 AM2/10/12
to mobicent...@googlegroups.com
You can take the latest snapshot from here

It includes the fix

Asbjorn Grandt

unread,
Feb 10, 2012, 11:21:38 AM2/10/12
to mobicent...@googlegroups.com
Thanks again.
Reply all
Reply to author
Forward
0 new messages