2 Replies Latest reply: Sep 23, 2010 5:05 AM by 843849 RSS

    Problems with opening sip connection

    843849
      Hi,

      When I execute following:
               scn = (SipConnectionNotifier) Connector.open("sip:5099");
      I receie the following erro, needless to say I cannot open up a new connection:
      java.lang.NullPointerException
              at java.util.Hashtable.put(Hashtable.java:394)
              at gov.nist.siplite.ConfigurationProperties.setProperty(), bci=3
              at gov.nist.microedition.sip.StackConnector.<init>(), bci=155
              at gov.nist.microedition.sip.StackConnector.getInstance(), bci=11
              at com.sun.cdc.io.j2me.sip.ProtocolBase.openConn(), bci=134
              at com.sun.cdc.io.j2me.sip.Protocol.openPrim(), bci=18
              at javax.microedition.io.Connector.openPrim(), bci=327
              at javax.microedition.io.Connector.open(), bci=3
              at javax.microedition.io.Connector.open(), bci=3
              at javax.microedition.io.Connector.open(), bci=2
              at hello.HelloMIDlet.<init>(HelloMIDlet.java:28)
              at java.lang.Class.newInstance(), bci=0
              at com.sun.midp.main.CldcMIDletLoader.newInstance(), bci=46
              at com.sun.midp.midlet.MIDletStateHandler.createMIDlet(), bci=66
              at com.sun.midp.midlet.MIDletStateHandler.createAndRegisterMIDlet(), bci=17
              at com.sun.midp.midlet.MIDletStateHandler.startSuite(), bci=27
              at com.sun.midp.main.AbstractMIDletSuiteLoader.startSuite(), bci=52
              at com.sun.midp.main.CldcMIDletSuiteLoader.startSuite(), bci=8
              at com.sun.midp.main.AbstractMIDletSuiteLoader.runMIDletSuite(), bci=161
              at com.sun.midp.main.AppIsolateMIDletSuiteLoader.main(), bci=26
      Anyone help?
        • 1. Re: Problems with opening sip connection
          805890
          Piotr,

          few questions:
          - Did you try using the full URI (for example sip:user@192.168.0.1:5099)
          - are you running it on a physical platform or emulator?
          - are you able to run any other SIP demos/examples? Maybe your platform does not support SIP.

          Daniel
          • 2. Re: Problems with opening sip connection
            843849
            Hi,

            Thanks for your response, I am currently developing ME application on WTK 3.0 for OS X.
            I tried SIP funcioning on my system using external clients as well as ANdroid emulator and never got similar errors, everything seems to works fine.
            And what you mention in the first point, yes i tried it, but still it doen't work, the thing is that in sip on Java Me you have two sip connections sip server and sip client connection; sip server connection you open pointing out on which port the device should listen for the incoming connections (f.i Connector.open("sip:5060")) and sip client connection you open using the syntax you mentioned