Groups > Symbian > Symbian EPOC Java > Re: Error with Connector.open




Error with Connector.open

Error with Connector.open
Mon, 05 Jun 2006 09:23:55 +010
Hi,

I get an IllegalArgumentException for hostnames such as 9.190.199.152 with 
Connector.open() when using the JSR180 SIP API in the S60 SDK.

I cannot find this documented anywhere as a known issue. Also I cannot 
find anything wrong with this hostname, its a perfectly legal SIP URI

I get the error when i try to open register with a proxy at this address 
(9.190.199.152) or when I open a SIP Connection Notifier on this address.

The error is essentially on the Connector.open part.

Error trace:

illegal hostname, tld cannot begin with a numeral: "9.190.199.152"

java.lang.IllegalArgumentException: illegal hostname, tld cannot begin 
with a numeral: \"9.190.199.152\"\n
- com.symbian.midp.io.protocol.sip.SipClientConnectionImpl.checkUri(), 
bci=23
- 
com.symbian.midp.io.protocol.sip.OpenConnectionHandler.handleOpeningConnection()
, 
bci=120
- com.symbian.midp.io.protocol.sip.Protocol.openConnection(), bci=16
- com.symbian.gcf.ProtocolBase.openConnection(), bci=159
- com.symbian.gcf.GCFConnector.open(), bci=223
- javax.microedition.io.Connector.open(), bci=4
- javax.microedition.io.Connector.open(), bci=3
- javax.microedition.io.Connector.open(), bci=2
- InviteClientSide.executeInvite(), bci=21
- InviteClientSide.startApp(), bci=12
- javax.microedition.midlet.MIDletInvoker.invokeStartApp(), bci=1
- com.symbian.midp.runtime.MIDletScheduler.startMIDlet(), bci=26
- com.symbian.midp.runtime.MIDletScheduler.run(), bci=14

any replies on this would be most appreciated. 
Post Reply
Re: Error with Connector.open
Mon, 05 Jun 2006 13:06:10 +030
Do you specify protocol in front of ip address / host?

For example
Connector.open("sip:9.190.199.152");
or

Connector.open("sips:9.190.199.152");


ajaybrar@au1.ibm.com wrote:
> 
> Hi,
> 
> I get an IllegalArgumentException for hostnames such as 9.190.199.152
> with Connector.open() when using the JSR180 SIP API in the S60 SDK.
> 
> I cannot find this documented anywhere as a known issue. Also I cannot
> find anything wrong with this hostname, its a perfectly legal SIP URI
> 
> I get the error when i try to open register with a proxy at this address
> (9.190.199.152) or when I open a SIP Connection Notifier on this address.
> 
> The error is essentially on the Connector.open part.
> 
> Error trace:
> 
> illegal hostname, tld cannot begin with a numeral:
"9.190.199.152"
> 
> java.lang.IllegalArgumentException: illegal hostname, tld cannot begin
> with a numeral: \"9.190.199.152\"\n
> - com.symbian.midp.io.protocol.sip.SipClientConnectionImpl.checkUri(),
> bci=23
> -
>
com.symbian.midp.io.protocol.sip.OpenConnectionHandler.handleOpeningConnection()
,
> bci=120
> - com.symbian.midp.io.protocol.sip.Protocol.openConnection(), bci=16
> - com.symbian.gcf.ProtocolBase.openConnection(), bci=159
> - com.symbian.gcf.GCFConnector.open(), bci=223
> - javax.microedition.io.Connector.open(), bci=4
> - javax.microedition.io.Connector.open(), bci=3
> - javax.microedition.io.Connector.open(), bci=2
> - InviteClientSide.executeInvite(), bci=21
> - InviteClientSide.startApp(), bci=12
> - javax.microedition.midlet.MIDletInvoker.invokeStartApp(), bci=1
> - com.symbian.midp.runtime.MIDletScheduler.startMIDlet(), bci=26
> - com.symbian.midp.runtime.MIDletScheduler.run(), bci=14
> 
Post Reply
Re: Error with Connector.open
Wed, 07 Jun 2006 14:20:49 +010
Yes you do specify the protocol.

The thing is that there are no problems with an IP address such as 
10.161,0.70 its only a problem with IP addresses of the formar 
9.xxx.yyy.zzz
Post Reply
about | contact