×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    3

    J2ME MIDP Network programming on 7650

    I have installed the Sun MIDP demo application HttpTest. It works fine in a standard emulator but not on the real phone.

    I have changed all DEBUG lines in the code which normally go to System.out to be created as TextBoxes so I can see them. When I try to do a get or a post I get:

    c=com.symbian.midp.io.protocol.http.Connection@1cb37664

    It then requests an access point. I select one and then it sits there.

    I have studied this Discussion Board and have heard a range of view from http does not work at all to it works with multiple sockets to it works sometimes.

    1. Does http networking work on the 7650? I would like to see a working example if it does.
    2. If not will a firmware upgrade be available?
    3. If so when
    4. I only bought the phone to do network programming using MIDP. Is there any other Nokia phones which have working network programming using MIDP?
    5. If not are any planned?

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    101

    RE: J2ME MIDP Network programming on 7650

    Reqwireless WebViewer is an HTML Web browser with many Nokia 7650 users, so it's a good demonstration that HTTP networking on the 7650 is possible:

    http://reqwireless.com/webviewer.html

    I would suggest trying WebViewer on your phone to help narrow down whether the issue is with your phone's settings, the MIDlet you're testing, or the server you're contacting.

    We have had many Nokia 7650 users who received a rather strange error message ("Application closed jes-2f8-ConnectionsEventServer@1...KERN-EXEC 3&quot when trying to make an HTTP connection using WebViewer. The solution for these users was to use a normal Web connection instead of a WAP connection, and to set their gateway IP to 0.0.0.0.

    Another issue with the Nokia 7650 is that it will, depending on the locale of the phone, send "HTTP/1,1" instead of "HTTP/1.1" in its requests. The Apache Web server rejects such HTTP requests. However, Tomcat seems to handle these requests fine. (With WebViewer, we send all requests through our Java servlet running under Tomcat.)

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Canada
    Posts
    101

    RE: J2ME MIDP Network programming on 7650

    Another possible issue, in light of adiwin's comment to my initial reply, is that DNS isn't working. Reqwireless WebViewer sends all HTTP requests to an IP address, so it wouldn't be affected by a DNS problem. You should try connecting to both an IP address and a host name to see if DNS is the problem.

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    23

    RE: J2ME MIDP Network programming on 7650

    I had problems with http too, worked fine at emulator and I got 'bad request' from 7650. I got problems fixed by changing the language to english. I use J2ME wireless toolkit for compiling and jar building. Works fine with both mycompany.com and raw ip address. I do NOT put port number in url ":80". Here is my now working code:

    HttpConnection httpSC = (HttpConnection) Connector.open(url);

    httpSC.setRequestMethod(HttpConnection.GET);

    listL.append(httpSC.getResponseMessage(), null);

    // I am expecting 'object-moved' html page
    url = httpSC.getHeaderField("location"

    httpSC.close();

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    20

    RE: J2ME MIDP Network programming on 7650

    I don't know anything about the 7650 but the problem sounds a lot like the problem I've been having with the 9290. And the solution was in fact, as Liam pointed out, to set the IP address to 0.

    Liam, any idea why this would be the case? Also, more importantly, why did EmailViewer work for me on the 9290 when my own app wouldn't (without setting the phone's ip address to 0). Even when I tried to use Sun's httpTest app using a direct ip address, it couldn't open an input stream. And looking at the guts of the code you posted, I don't see anything different......
    thanks, Sandie

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    8

    RE: J2ME MIDP Network programming on 7650

    The 6310i works with MIDP. I also have the same problem with 7650.

  7. #7
    Registered User
    Join Date
    Mar 2003
    Posts
    30

    RE: J2ME MIDP Network programming on 7650

    HttpConnection works fine(is fully functional) on the Nokia 7650. Try downloading "Coolaz Comics Nokia 7650 v.1.0.4" from http://www.midletcentral.com under the applications category. Futhermore all applications by this vendor targeted for the 7650 work with HttpConnections both with the old and new firmware.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×