Re: HTTP Web Response Exception - I cant able to trap. hi guys
Hope this is a mobile application development forum. I have some problem in my j2me application code. Actuallu the error in Initializing http tunnel connection.
i had written a simple program using wtk2 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.doTunnelHandsha ke(+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(+1 2)
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.c ommandAction(+284)
at javax.microedition.lcdui.Display$DisplayManagerImp l.commandAction(+10)
at com.sun.midp.lcdui.DefaultEventHandler.commandEven t(+68)
at com.sun.midp.lcdui.AutomatedEventHandler.commandEv ent(+47)
at com.sun.midp.lcdui.DefaultEventHandler$QueuedEvent Handler.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...
thanks |