Http connection problem on real series 40 device

Hi guys,
I'm having a problem with my midlet whenever it connects to a servlet through HTTP. When i access the servlet through a getResponseCode() command or through an openInputStream() command, a java.io.ioexception exception is called. I'm sure that the problem isn't with the servlet since i can access it just fine both through a browser or through the nokia emulator. The problem only happens when i use a real 7210 device to test the application. When i tested the application on a real series 60 device it worked just fine.
I think the problem is with the security settings of series 40 phones. It seems that the midlet doesn't allow http connections. Do i need to do anything to allow http connections from a series 40 midlet? I have already set the gprs access point to internet as some posts have advised. Any help would be greatly appreciated. Thanks in advance!

Hi guys!
First of all, I'll introduce myself. My name is Angel and I am a spanish guy who likes this techs.
I've been reading your answer to the question related to why http connections doesn't work on series 40 nokia mobiles. I mean about protocol used on connections among mobile-WAP Gateway... and I really have to tell you that you helped me about understanding how they actually work...
Well, anyway, the thing is that I'm working with this sort of connection through the internet in order to request information from a servlet wich is in close realation with a Database. I launch queries SELECT,INSERT,DELETE,... against the server wich reports the results. This is part of my final year project, in order to finish my degree in Computing Science Engineering.
But, I am using the series 40 Nokia, to be exact my mobile is the 6100 which has almost the same features than the 7210, and I do http connections over the WAP Gateway of my networking operator. I havenṫ ever tried do them over GPRS yet, because at glance it "seemed" to work fine and I didnṫ really need to mess with it. Having this hardly controlled, well it turned out that I got some troubles in connections I report you so I hope you can also help me about:
1.- Connections several times are cut, when it's opened not longer than 45 seconds about.
1.1.- I found the trick that not closing the outputStream I have indefinied time to deal with them,
having to close them manually, I mean connections.
1.1.1 - Unfortunetly that doesn't happen always. The fact is that It works really fine but for some
particular ocassions when It seems as if it couldn't find the server because it receives no
data.
WIth all this, I'd really like to know what the hells is actually going on the wap-gateway. Because one of the things I could realize is that http connection headers are completely changed and fullfilled of data, so I had to take really care with them in order to keep the one I needed.
Probably that depends on the networking operator I am dealing with, isn't it?
And going further connections are set up like the mother and father of the networking operator wap-gateway want, I guess, aren't they?
And I'd like to ask you if my tricky thing is actually crazy just to get what I am looking for, because it doesn't work a few few times, but those make the application goes down.
And another, When you talk about TCP/IP stack. You mean the queue which in a conventional connections processes are queued-up in waiting for the chance of being admitted to be processed if they are TCP incoming connections or in the oppsoite way if they are outcoming...?
OK, thanks in advance , and sorry for my peculiar long message, because I'm not so used to write over here, though I am when I try to find answers to the unknown ;-)
Congratulations to this forum and greetings to those who can read me.
Greetings from the south-east of spain where sun is stuck on your face even if you use sun-glasses.
peteparker ([email protected])

Similar Messages

  • To Akash :  Http Connection problem

    Dear Akash,
    Thanks for the reply u gave for my question
    I tried with Thread also.
    I still have few doubts & problem.
    1. Do we need to get special permission from
    operators for uploading the images or text to server.
    I have tried to upload captured images to my server.
    But i cann't do with mobile.
    2. I am also trying to audio, video streaming. All
    these are working with emulator. But not with mobile.
    3. Is there are any proceedure to deploy them. I am
    using EclipseME plugin. After creating jar files of my
    application using obsfucation package, i am just
    copying to my server and downloading it from mobile.
    Is it correct way?
    Can you please answer me asap? BCoz, I am stuck with
    this project for last 1 week. Nothing seems to be
    working on mobile.
    FYI ( i am using nokia 6600). I have harcoded the
    ipaddress of my server for http connection instead of
    using domain name. Is it cerating problem.
    Thanks a lot in advance.
    Prasanna

    hi
    i mailed u today from my personal emailid , i think u got it .
    reply me if u still have some problem.
    thanks for writing me email also my name in subject line , it really save my time
    regards
    akash
    Indiagames ltd
    India
    [email protected]

  • Http Connection Problem on 7650 Emulator

    HI!
    I'm trying to establish a http connection with my tomcat server. My code is as following:
    private void callServlet() throws IOException
    HttpConnection http = null;
    InputStream iStrm = null;
    // Data is passed at the end of url for GET
    /* String url = "http://localhost:8080/webserv" + "?" +
    "account=" + tfAcct.getString() + "&" +
    "password=" + tfPwd.getString();*/
    try
    http = (HttpConnection) Connector.open("http://heavenfighter.homeftp.org:8080/webserv?account=marco&password=test");
         catch(IOException e)
              fmMain.append("Verbindung fehlgeschlagen");
         System.out.println(e.toString());
         try
    // Client Request
    // 1) Send request method
    http.setRequestMethod(HttpConnection.GET);
    // 2) Send header information - none
    // 3) Send body/data - data is at the end of URL
    // Server Response
    fmMain.append("Antwort" + http.getResponseCode());
    if (http.getResponseCode() == HttpConnection.HTTP_OK)
    iStrm = http.openInputStream();
    // 2) Get header information - none
    // 3) Get body (data)
    int length = (int) http.getLength();
    if (length > 0)
    byte servletData[] = new byte[length];
    iStrm.read(servletData);
    // Update the string item on the display
    fmMain.append("You passed to the servlet: \n" + new String(servletData));
    else
    fmMain.append("Unable to read data");
    catch (Exception e)
    fmMain.append("Network error2");
    System.out.println(e.toString());
    finally
    // Clean up
    if (iStrm != null)
    iStrm.close();
    if (http != null)
    http.close();
    After a few seconds, i get the network2 error and a message
    java.io.IOException: Status = -20015
    What does it means?
    How can i connect to a http server???
    Thanks

    Sorry, I didn't realize you where talking about an emulator. My advice is relevant only on a real phone.
    Anyway, here's some reading material that could help you:
    Related posts on Nokia's forum (you might have to register before you can enter):
    http://nkn.forum.nokia.com/forum/search.php?s=&action=showresults&searchid=452072&sortby=&sortorder=
    Symbian error codes (and unfortunately -20015 doesn't appear):
    http://www.symbian.com/developer/techlib/papers/errores/Erresapi.html
    shmoove

  • OSB call to remote Web Service via https proxy and https CONNECT problem

    Hi
    I have a service that calls a web service on another server as a web service. This call is via https and the certificate validation raises no errors.
    I now want this call to go via a squid httpd proxy on port 3128 on some machine. So I would like to use HTTP CONNECT (RFC 2817) proxying,. But when I set up this as a proxy, I am getting "Certificate chain" error messages. The certifcate chains is no different now from when I called without the http proxy, so what am I doing wrong? Does OSB support HTTP CONNECT?
    -Johan

    The exeption we are getting is BEA-380000
    General runtime error: [Security:090477]Certificate chain received from XXX - 123.123.123.123 --> test.salesforce.com was not trusted causing SSL handshake failure.
    This is of course not relevant if the callout were using CONNECT. In the CONNECT scenario, OSB would not care about XXX's certificate.

  • HTTP connection problem

    Hello,
    I have a client application which connects to HTTP server and reads data from this server (by invoking JavaScript and RPC scripts on HTTP server). Source code for this operations:
    URL url = new URL("http://" +ip + ":" + port + "/" + scriptName);
    URLConnection urlConn = url.openConnection();
    String encoding = Base64.encode(user + ":" + password);
    urlConn.setDoInput(true);
    urlConn.setDoOutput(true);
    urlConn.setUseCaches(false);
    urlConn.setRequestProperty("Authorization", "Basic " + encoding);
    DataInputStream dis = new DataInputStream(urlConn.getInputStream());
    byte[] encoded = new byte[5000];
    dis.read(encoded);Everything works perfect until data length from server is below about 1460B. If data is longer I get only part of data (only the first 1460B of whole data). Maybe somebody knows the reason of this behaviour? How to get whole data for messages longer than 1460B?
    My application works on Windows XP but it should also works on Unix systems. Is this problem connected to operation system?
    And second question - how to get to know how many data is available to read? I want to create buffer (encoded) in dynamic way (not in static way - as 5000 bytes buffer). I've tried available() method but it always returns 0.
    Cheers,
    Peter

    You are ignoring the return value of read(). When you fix that you will discover that you need a loop to get all the data.
    int count;
    while ((count = in.read(buffer)) > 0)
      out.write(buffer, 0, count);
      // or do something else with buffer[0..count-1]
    }

  • Facetime connection problems using Verizon mifi 4510L device

    Anyone having problems with iPhone facetime connection being dropped when using this wifi device? Phone/facetime work perfectly when on other wifi connections. Thanks, Matt

    The Verizon 4G network has terrible latency, so, while downloads (and uploads) can be fast, it can take them a while to get started, so any exchange that needs a fast response is likely to be unstable. The network also sometimes stops working for several seconds at a time. I have a Verizon LC-11 wireless hotspot and I'm not happy with it.

  • Client Http Connection Problems With CSS

    Hi,
    We have a pair of CSS 11050s configured in a redundant pair. We have a content service defined on both CSS's. They are configured for Layer 5 balancing, with Sticky timout configured at Layer 4 for the respective service (I don't know if this is correct).
    When doing a show service summary on both CSS boxes - the content servers are seen as alive. There do not appear to be any problems. However when clients try to connect to the content, there is often a very noticeable delay in connection.
    First attempt, the http request does not reach the web server and is not displayed in the log during this delay. On first access to the login URL, no page was returned for 50 secs, no entry in the web server logs, and the browser displayed “page cannot be displayed” after 50 seconds. On a 2nd attempt, the same happened (again 50 secs before timeout). On the 3rd attempt, after 25 seconds the request appeared in the Apache log, and the page was displayed on the browser. I can now access all areas of the HTML based application without further delays, and subsequent logins are not subject to the same delay.
    It is almost as if the CSS's need to cache information - but so far I have not managed to find any explanation for this.
    Any help would be most gratefully received.

    Hello Rus!
    I have recently experince the same issue serveral times. My fix was to reload the CSS. Not sure why this happens but it seems that all is well! Also check your "sticky-inact-timeout XX" setting in your content rule. Cisco recommed 60 min for connections to timeout.

  • HTTP connection problems

    Hi
    I am using eclipseME plugin to develop a midlet .It uses the J2ME WTK2.1 from Sun. When I trty to connect I get a strange error like this
    java.lang.ClassNotFoundException: com/sun/midp/io/j2me/www/mydomain./com/Protocol/
    here the url i used for connection was www.mydomain.com .. Infact any url i try to use it tries to interptret that as a classpath and attempts to load it..
    Any help is appreciated.
    Thanks
    Vik

    I give the url in this format
    Connector.open("www.mydomainurl.com:8080")

  • Safari 6.0.1 won't load web pages randomly, and says website unavailable/no connection. But, all my other devices do have a great connection. Is there a fix for this problem?

    I recently bought OS X mountain Lion, and safari 6.0.1 was running great for a short period of time when it stopped loading the web pages. It will randomly do this now and then. I try resetting safari to no avial, and when I do a system reset it provides a temporary fix. It's very annoying problem. I know it is not a connection problem because all my other devices get internet connection. Safari will say no connection/web site is unavailable. The OS I have is OS X ML 10.8.2. Any suggestions?

    I do a system reset
    System reset ???
    Try a different DNS ...
    Quit Safari.
    Open System Preferences / Preferences then select the Network tab. Click the Advanced tab then click the DNS tab.
    Click +
    Enter these addresses exactly as you see them here.
    208.67.222.222
    Click +
    208.67.220.220
    Then click OK.
    Try Safari.

  • An HNAP call to the device failed because the HTTP connection was broken - EA3500

     OK - thanks in advance for your help -
    I have a linksys Linksys WMP300 and am able to connect to the EA3500 (shows connected at 270 Mbps) Excellent Connecttion but I can't access the internet or any of the other computers on my network.  The stupid thing is that I can connect to my neighbor's unsecured network which is also a linksys router.
    All of the other computers on the network connected just fine - my son has a laptop running windows Vista, we have a family computer using Vista, my wife's laptop is Windows 7 (we just had a guest that connected just fine).
    Here's the error code I get - any help would be appreciated!
    Error code: 82BD0304
    Error description: An HNAP call to the device failed because the HTTP connection was broken.
    Model name: unknown
    Model number: EA3500
    Serial number: 12C10603215584
    Firmware version: unknown
    Operating system: Windows XP SP 3
    Software version: 1.4.12005.2
    Connection type (WAN): unknown
    IP address (LAN): unknown
    IP address (WAN): unknown
    Computer IP address: 192.168.1.36

    Thank you for the reply - 
    Router is assigning IP address automatically. Although I have been using a static IP address in the past, this is no longer the case.
    The WMP300 is on an Windows XP, SP3 PC.
    Since running into this issue, I have not only disabled all security (to make sure that firewalls and/or virus software was causing problems) I completely uninstalled my McAfee. I have disabled Windows Firewall also. "Flying Naked" as it were.
    I am surprised that Cisco has no solution - others are also having this problem.
    It MUST be the router - I am able to connect to my neighbor's router, able to connect to my old Linksys WRT150N. Anyone else have thoughts?
    This is frustrating.

  • Router connection problems - DISH satellite receivers or too many devices?

    (Sorry about that - I thought I had broken the message up.)
    I'm having significant issues with my Linksys router timing out, and need help. I'll try to be as detailed as I can.
    I have the following:
    - Linksys WRT54G v3 wireless router I purchased off eBay 3-4 years ago. Using 128-bit WEP secirity. Even though the model says WRT54G, my Linksys setup page says I have a WRT54GL. Don't know if that's pertinent but thought I'd include the info)
    - HP desktop running Vista Home Premium
    - Gateway Solo laptop (circa 3Q 2002) running WinXP SP3, and also have WPC54G - Wireless-G Notebook Adapter
    - Gateway M275 Notebook running Windows XP Tablet Edition w/SP3, internal wireless card
    - Linksys WRE54G Wireless Range Expander, v3
    My broadband internet connects to my cable modem, which then runs via ethernet to my router. I have my desktop connected to my router via (wired) ethernet cable (port 1), and the two laptops connect wirelessly. All three computers on my network run just fine and have had no connection issues until I had two (2) DISH satellite receivers installed this past Friday.
    Prior to installation, I knew I would need the two receivers hooked up to my network via ethernet cable. Since one receiver was in the same room as my router, it was easy to run an ethernet cable from my router to the receiver (port 2). I had a challenge with the upstairs receiver, because I didn't have a direct connection, and wasn't sure how to wire it. So, I used my range expander by plugging in the expander into a nearby outlet, then connecting the receiver to the expander via ethernet cable.
    I had some issues getting a good signal, and did some troubleshooting but made it work. Now I had five devices connected to my router: two with a wired ethernet cable and three wirelessly.
    I started having connection timeouts within about 3-4 hours of satellite [receiver] installation. All of the sudden I couldn't connect to the internet on ANY device; both laptops couldn't connect wirelessly, my desktop couldn't connect, and the receivers were telling me my connection was bad. I checked modem but there were no issues. Still, I unplugged the power cable from the modem for a minute, then reconnected - still no internet. I called my cable company to have them troubleshoot the modem, but they pinged it several times & got positive results - still no internet, so I ruled the modem out.
    I tried using the Windows connection troubleshooter to repair the problem, and got a DNS error message (which I don't know how to fix). I decided to unplug my router for 10-15 seconds, then plug back in - that got my internet connection going again. That lasted a couple hours & then failed. I unplugged the router again (is that a soft reset or a power cycle?), then reconnected & was able to connect to the internet. This happened a few more times over the weekend, and finally I decided the expander might be the issue (both DISH and Linksys tech support was not very helpful).
    I found a way to wire my second receiver via ethernet cable (port 3), so now I had three wired devices, and two wireless devices. I thought this would fix the problem; it didn't, but at least I learned how to wire CAT5 cable. So I got that going for me... which is nice.
    I plugged the ethernet cable directly from my modem to my desktop to test the timeout, but had no issues - the modem just wasn't the problem.
    I was getting some IP address conflicts on my Norton Inernet Security, so I uninstalled that from my desktop, disconnected the power from the modem, disconnected the power from the router, shut down all devices, reset the IP addresses on the receivers, deleted the wireless connection from the laptops, shut down the desktop, and just left the whole mess alone for half a day. Then I reinstalled the Norton Internet Security, connected my wired devices, plugged the modem in, plugged the router in, reset my security, connected wirelessly with my laptops.
    Within an hour my connection timed out.
    Trying to chat with tech support wasn't feasible, as my connection kept going out. A guy at work said I shoudl ping my IP address, and let it repeat until my connection goes out. So I unplugged the router and plugged it back in to get an internet connection, the opened a cmd prompt and typed
    ping 192.168.1.1 -t
    I left it alone for a few hours, and when I came back, my internet connection was down, but I was still getting active pings - no problems there.
    At this point I thought I had done everything except replacing my router (which I'm still tempted to do), but I called my broadband provider to see if there was anything they could do. One of the techs said I had too many devices connected to the internet, but I thought these routers were supposed to handle dozens of devices?
    I finally called Linksys Tech Support and had a conversation for 90 minutes. We went through all the steps of unplugging the the modem, router & all connected devices, resetting the router, etc, etc. The only thing different he did was had me change my security from WPA to 64-bit WEP, and added passwords for DNA1 and DNS 2 (same password for each).
    That was at 1:30am last night, and when I woke up to check my connection this morning, it was still connected. I have to check it again when I get home, but I'm wondering if I should just be prepared to get another router (and if so, any recommendations), or if there's something I'm still not doing that could resolve my issue - if I still have connection losses.
    Also, I'm concerned about the security thing. If changing from WEP 128 or WPA to WEP 64 fixed my problem, I'm not sure I feel completely protected from intrusion - isn't that pretty much the least amount of security I can have (without forgoing it altogether)??
    Finally, I've read a few threads suggesting possibly changing to static IP from DHCP; however, my satellite receiver installation documentation specifically advises against this for the receivers.
    Anyway, I would very much appreciate some help.
    Message Edited by CKdoubleU on 10-01-2008 08:43 AM

    First please break that long text into separate paragraphs. No one wants to read one long runon sentences
    With Knowledge… Impossible means nothing.
    Credentials
    Computer experience: 11 years
    Cisco networks experience: 8 years
    Network administrator: 6 years
    N.E.T. networks experience: 6 years
    Linksys networks experience: 6 years
    Recent additions: A+ | Networks+ | Linux+ | Security+

  • I am experiencing wireless connection problem on 4s after ios 8.1 upgrade. The wireless icon appears showing that it's connected but webpages do not load. I have checked my internet connection with other devices and seems to be alright. what to do?

    Hi
    I am experiencing wireless connection problem on 4s after ios 8.1 upgrade. The wireless icon appears showing that it's connected but webpages do not load. I have checked my internet connection with other devices and seems to be alright. what to do?
    I have tried reseting the network settings and forgetting my wireless connection and re-connecting to it. I even backed up my phone on itunes and restored it, factory reseted it. Nothing seems to work.
    Also after my upgrade to ios 8.1 my personal hotspot option under cellular data has disappeared.
    Would you please help me out? I would really appreciate it.

    Hi..
    Restart your router then restart the iPhone to test.
    If that doesn't help, try this support article >   iOS: Troubleshooting Wi-Fi networks and connections

  • Problem with ABAP proxies - HTTP connection to R/3 is not working

    Hi guys!
    I'm setting up a connection from XI to R/3 , because I'm using proxy objects. Our DEV is working fine. Now I have moved the objects to QA and since the HTTP connection is not there, I need to set it up.
    I have created a service user on R/3, activated ICF service on R/3 and created a HTTP to abap type connection in XI. When I test the connection I get a new logon screen. Why? I have provided information about logon user, client, ....
    Thank you! Olian

    Hi,
    this logon screen populated when the RFC User ID is locaked. ask your basis team to release it.
    also refer below links if in case of any other problem
    Actiave ABAP Proxies -- /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    Setting Up Point-to-Point Connections with proxy
    http://help.sap.com/saphelp_nw04s/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm
    Thanks
    Swarup

  • I have an Iphone 4s and i can't make a connection to my mac and other devices via bluetooth! Why is this a problem and how can i repair it?

    I have an Iphone 4s and i can't make a connection to my mac and other devices via bluetooth! Why is this a problem and how can i repair it?

    "I have an Iphone 4s and i can't make a connection to my mac and other devices via bluetooth! ":
    That is correct.
    "Why is this a problem and how can i repair it?"
    Becasue this has never been a feature of iphone/ipod/ipad.  There is nothing to repair.

  • Timeout problem using HTTP connection in MIDP

    Hi,
    I have one thread that does a HTTP connection (StreamConnection)with the server. In some cases, the connection is established to the server and request is sent to server, then connection hangs. I cannot check the response code since the response doesn't return back. In this case, my app also hangs on the progress bar screen. Is there any way to handle timeouts in these circumstances? How do I know if the response object doesn't return back?
    Has anyone faced this problem before? Any help is appreciated.
    Thanks in advance.

    Hi,
    i am getting the same problem. my application hangs when i close the connection when the request has been sent to the server and before the data starts downloading on the client. i mean if i cancel the connection with in that time span it hangs otherwise if i close the connection while the data is being downloaded from the sever then it works fine.
    if you have sloved this problem before please explain how to slove it.
    thanks,
    Omar Rehman

Maybe you are looking for

  • Verizon US Cellular Incompatibility

    Hello, I have the Samsung Galaxy S4 with Verizon.  My husband has the Samsung Rugby with US Cellular.  He does not get my text messages.  I have called Verizon and we were told to remove each other as contacts, delete all text messages from both phon

  • I have a table with info and would like to select an item from that table

    Hi I have a table with info (course info that I searched for) and would like to select an item from that table to use for further use in my application. It must work more or less like the tree structure where I can use an On Action select. In other w

  • S-video port question

    This is just a general knowledge question, but the S-video port on my pismo has more than the 4 holes and the rectangle connerctors there are seven holes and its weird. The S-video does work so there is no problems just wondered.

  • Dns server and client in java

    Hello! Im trying to code a dns server and client in java. It`s supposed to be a very simple one. The server should just resolve the query, started from the client. Where can I find any code samples? It would really help me to get started. Thank you v

  • Trying to set up my new iphone 5s from the cloud

    Im trying to set up my new iphone 5s by restoring from the cloud. When I get to the "choose backup" screen, i try to choose my latest back up, but nothing happens. the wring is in gray and nothing happens when I touch it. the bottum of the screen say