RE: java.io.IOException: Can't obtain IP address
"Steve Porter" <[email protected]> Fri, 2 Apr 2004 10:29:45 -0500
| Newsgroups | gmane.comp.java.enhydra.ksoap |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. ------_=_NextPart_001_01C418C7.53A36227 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Keidy, =20 Is it possible that something similar to what happens on RIM devices is = occuring? That is: =20 On the RIM any time an internet connection is attempted the user must = authorize it. On the RIM units, everything will run fine in the = simulator but will lock up on the device, unless the HTTPConnection is = made on a separate thread. =20 Is it possible the device is trying to ask permission to connect to the = internet, but that the authorization mechanism is being block by your = application. =20 I may be way off in left field, but hey, it's *free* (as in beer) advice = ;) =20 Regards, =20 Steve -----Original Message----- From: Keidy Marcelo Sakamoto [mailto:[email protected]] Sent: Friday, April 02, 2004 9:23 AM To: [email protected] Subject: Ksoap: java.io.IOException: Can't obtain IP address Hello, =20 I found this error when connect in my WebService whith HttpTransport. =20 java.io.IOException: Can't obtain IP address =20 =20 I try to run my application in the motorola's emulator (handset A388) = and everything is OK. Why this error can appear in a connection with = HttpTransport class? =20 device: Motorola A388 GPRS : Enabled =20 Keidy Marcelo Sakamoto S=E3o Paulo, Brazil =20 ------_=_NextPart_001_01C418C7.53A36227 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2800.1276" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2>Keidy,</FONT></SPAN></DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2>Is it=20 possible that something similar to what happens on RIM devices is = occuring? That=20 is:</FONT></SPAN></DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2>On the=20 RIM any time an internet connection is attempted the user must authorize = it. On the RIM units, everything will run fine in the simulator = but will=20 lock up on the device, unless the HTTPConnection is made on a separate=20 thread.</FONT></SPAN></DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2>Is it=20 possible the device is trying to ask permission to connect to the = internet, but=20 that the authorization mechanism is being block by your=20 application.</FONT></SPAN></DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2>I may=20 be way off in left field, but hey, it's *free* (as in beer) advice=20 ;)</FONT></SPAN></DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2>Regards,</FONT></SPAN></DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D167432615-02042004><FONT face=3DArial color=3D#0000ff = size=3D2>Steve</FONT></SPAN></DIV> <BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px"> <DIV class=3DOutlookMessageHeader dir=3Dltr align=3Dleft><FONT = face=3DTahoma=20 size=3D2>-----Original Message-----<BR><B>From:</B> Keidy Marcelo = Sakamoto=20 [mailto:[email protected]]<BR><B>Sent:</B> Friday, April = 02, 2004=20 9:23 AM<BR><B>To:</B> [email protected]<BR><B>Subject:</B> Ksoap:=20 java.io.IOException: Can't obtain IP address<BR><BR></FONT></DIV> <DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2> I found this error when = connect in my=20 WebService whith HttpTransport.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV> <DIV><FONT size=3D2>java.io.IOException: Can't obtain IP=20 address</FONT></DIV></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2> I try to run my application in = the=20 motorola's emulator (handset A388) and everything is OK. Why this = error can=20 appear in a connection with HttpTransport class?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV> <DIV><FONT face=3DArial size=3D2>device: Motorola A388</FONT></DIV> <DIV><FONT face=3DArial size=3D2>GPRS : Enabled</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Keidy Marcelo Sakamoto</FONT></DIV> <DIV><FONT face=3DArial size=3D2>S=E3o Paulo, Brazil</FONT></DIV> <DIV><FONT face=3DArial=20 size=3D2></FONT> </DIV></DIV></BLOCKQUOTE></BODY></HTML> ------_=_NextPart_001_01C418C7.53A36227--