Error Initializing Http Tunnel Connection J2me
This Site Careers Other all forums Forum: Java Micro Edition Error Initializing http tunnel connection. Ajay Chakravarthi Greenhorn Posts: 2 posted 13 years ago hi, i had written a simple program using j2me wireless toolkit 2.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 Vivek Viswanathan Ranch Hand Posts: 350 posted 13 years ago Hi Could you please post the part of the code that is doing the connection to the server. regards vivek Vivek Viswanathan SCJP 1.2, SCJP 1.6,SCJD,SCEA,SCWCD,IBM-484,IBM-486,IBM-141,Ms.NET C# 70-316,SCMAD, LPIC-I Ajay Chakravarthi Greenhorn Posts: 2 posted 13 years ago hi, herez the entire code for the problem desc above.... i also have a proxy server running here for which i have made the appropriate changes in wtk proxy server settings.... would be nice if somebody could help me with it..
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack https://coderanch.com/t/227029/JME/Error-Initializing-http-tunnel-connection Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getting a HTTP connection in J2ME up vote 0 down vote favorite I am trying to get a response from J2ME application for link http://stackoverflow.com/questions/9972400/getting-a-http-connection-in-j2me www.google.com But can't so because i get an error output as such Running with storage root C:\Users\YK0089731\j2mewtk\2.5.2\appdb\QwertyDevice Running with locale: English_United States.1252 Running in the identified_third_party security domain No audio device found. java.io.IOException: Error initializing HTTP tunnel connection: HTTP/1.1 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this port. Most Web browsers use port 443 for SSL requests. ) Via: 1.1 CVMNODWS002 Connection: close Proxy-Connection: close Pragma: no-cache Cache-Control: no-cache Content-Type: text/html Content-Length: 777 at com.sun.midp.io.j2me.http.Protocol.doTunnelHandshake(+333) at com.sun.midp.io.j2me.http.Protocol.connect(+145) at com.sun.midp.io.j2me.http.Protocol.streamConnect(+57) 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.getResponseCode(+8) at HttpClientConnection.request(+128) at AppLoader.startApp(+14) at javax.microedition.midlet.MIDletProxy.startApp(+7) at com.sun.midp.midlet.Scheduler.schedule(+270) at com.sun.midp.main.Main.runLocalClass(+28) at com.sun.midp.main.Main.main(+80) Responsejava.io.IOException: Error initializing HTTP tunnel connection: HTTP/1.1 502 Proxy Error ( The specified Secure Sockets Layer (SSL) port is not allowed. ISA Server is not configured to allow SSL requests from this
CommunityOracle User Group CommunityTopliners CommunityOTN Speaker BureauJava CommunityError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this https://community.oracle.com/thread/1857933?db=5 page. Please enter a title. You can not post a blank http://www.voidcn.com/blog/greenlearner/article/p-4255807.html message. Please type your message and try again. More discussions in Java Programming [Archive] All PlacesOracle CommunityArchived ForumsJava Programming [Archive] This discussion is archived 1 Reply Latest reply on Sep 18, 2002 4:41 PM by 807551 No HTTP connect. HELP! (as posted in kvm thread) 807551 error initializing Apr 9, 2002 12:04 AM Hi there, I am trying to write a midlet in j2me for my masters thesis, but I haven't been able to make a simple http connection. I tried in forte and jbuilder with no luck, and also with no clue as to what was going wrong. all I got was that the program error initializing http hangs some time, and then restarts. Recently however, I think I have found the problem. While I was doing some tests with the http sample application in the ktoolbar, that comes with the j2me sdk 1.0.3, I discovered that I had not yet specified that the emulator should use a proxy. So I specify the proxy and the port (proxy.pandora.be 8080), and now I do get some results. I think the program now tries to make the connection, but I still get the following error message (something about http/1.1 403 forbidden). Apparently the proxy server does not allow me to make the tunneling connection. Can someone tell me what to do next. I don't have that much time left. Thanks This is the output in the ktoolbar screen: Read Page: http://www.yahoo.com/ c= com.sun.midp.io.j2me.http.Protocol@fb8548b0 java.io.IOException: Error initializing HTTP tunnel connection: HTTP/1.1 403 Forbidden Date: Mon, 08 Apr 2002 18:52:16 GMT Content-Length: 257 Content-Type: text/html Server: NetCache (NetApp/5.2.1R1D4) Connection: close at com.sun.midp.io.j2me.http.Protocol.doTunnelHandshake(+281) at com.sun.midp.io.j2me.http.Protocol.connect(+149) at com.sun.midp.io.j2me.http.Protocol.sendRequest(+90) at com.sun.midp.io.j2me.http.Protocol.openInputStream(+48) at example.http.HttpTest.readContents(+154) at example.http.HttpTest.commandAction(+34) at javax.microedition.lcdui.Display$DisplayAccessor.commandAction(+152
原文链接 错误如下: java.io.IOException: Error initializing HTTP tunnel connection: HTTP/1.0 403 Forbidden Server: squid/2.6.STABLE18 Date: Tue, 11 Nov 2008 06:04:09 GMT Content-Type: text/html Content-Length: 1125 Expires: Tue, 11 Nov 2008 06:04:09 GMT X-Squid-Error: ERR_ACCESS_DENIED 0 X-Cache: MISS from www.eland-g.com Via: 1.0 www.eland-g.com:3128 (squid/2.6.STABLE18) Proxy-Connection: close at com.sun.midp.io.j2me.http.Protocol.doTunnelHandshake(+279) at com.sun.midp.io.j2me.http.Protocol.connect(+145) at com.sun.midp.io.j2me.http.Protocol.streamConnect(+57) 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.getHeaderField(+8) at src.MyUI.