Error Initializing http tunnel connection.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, January 28, 2003 01:11 AM

hi, i had written a simple program using j2me wireless toolkit2.0 for http connection. and i got a runtime error as listed below. java.io.IOException: Error initializing HTTP tunnel connection: HTTP/1.1 400 Bad Request Server: Microsoft-IIS/5.0 Date: Mon, 27 Jan 2003 10:56:14 GMT Connection: close Content-Length: 4009 Content-Type: text/html at com.sun.midp.io.j2me.http.Protocol.doTunnelHandshake(+282) at com.sun.midp.io.j2me.http.Protocol.connect(+119) at com.sun.midp.io.j2me.http.Protocol.streamConnect(+44) at com.sun.midp.io.j2me.http.Protocol.startRequest(+12) at com.sun.midp.io.j2me.http.Protocol.sendRequest(+38) at com.sun.midp.io.j2me.htt   More>>

hi,
i had written a simple program using j2me wireless toolkit2.0 for http connection. and i got a runtime error as listed below.

java.io.IOException: Error initializing HTTP tunnel connection:
HTTP/1.1 400 Bad Request
Server: Microsoft-IIS/5.0
Date: Mon, 27 Jan 2003 10:56:14 GMT
Connection: close
Content-Length: 4009
Content-Type: text/html

at com.sun.midp.io.j2me.http.Protocol.doTunnelHandshake(+282)
at com.sun.midp.io.j2me.http.Protocol.connect(+119)
at com.sun.midp.io.j2me.http.Protocol.streamConnect(+44)
at com.sun.midp.io.j2me.http.Protocol.startRequest(+12)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(+38)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(+6)
at com.sun.midp.io.j2me.http.Protocol.openInputStream(+9)
at HTTPMIDlet.sendGetRequest(+42)
at HTTPMIDlet.commandAction(+29)
at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+284)
at javax.microedition.lcdui.Display$DisplayManagerImpl.commandAction(+10)
at com.sun.midp.lcdui.DefaultEventHandler.commandEvent(+68)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEvent(+47)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEventHandler.run(+250)

i am not sure of the cause of such an error and whether some settings have to be changed for http connectivity...
i would be glad if someone could help me out with this...

- Ajay

   <<Less
About | Sitemap | Contact