×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    8

    Problem with running SnapMobileSample

    Hi everybody! I'm Quan.
    I'm trying to run the first sample of the Snap. I have read the user guide already and follow it. But I get stuck at step "Go-online" and "Login". I dont know why I cannot login successful. I also received a message "java.lang.Exception token time out without retry-A connection error may have occurred. Please check your signal strength."
    I guess, there was something wrong with the server which I configured. But I don't know how to fix it.
    Can you please give me a very detail instruction to run the first game on Snap (step by step).
    Thanks a lot.

  2. #2
    Nokia Developer Expert
    Join Date
    Apr 2008
    Posts
    14

    Re: Problem with running SnapMobileSample

    Based on the information you provided here, my suggestion is that:

    1. check that if you started the emulator server; usu., it needs to start the emulator server before you can use the emulator

    2. check the configurations of the emulator, such as:
    a. whether the server Http/Tcp port # is 8080/8976 respectively
    b. wether the GCID matches the one in your code
    c. wether the username/password pre-set in the User configuration list

    Overall, if this is your first SNAP Mobile game, I strongly recommend you to use the HelloWorld example within the SDK to get the basic look and feel of how the SNAP Mobile works.

    You may also download the HelloWorld document at http://www.forum.nokia.com/info/sw.n..._2_en.pdf.html, and emulator user guide at http://www.forum.nokia.com/info/sw.n..._1_en.pdf.html.

    The general SNAP Mobile documentation download site is at: http://www.forum.nokia.com/main/mark...documents.html

    Hope this can help. Thanks.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    8

    Re: Problem with running SnapMobileSample

    Thanks qinlesliexue.
    I have tried to run the Hello World base on the "Hello World Tutorial for Java™ ME Clients", but there was a problem in step 6 which is about running "Hello World Sample" in the client. Here is what I received from step 6:

    Username = test1
    Password = ***
    gcid = 49152
    Hello world client started
    Loging in...
    Snap mobile host:
    localhost
    add self as listener
    ***
    *** Error 988:java.io.IOException error 10054 during TCP
    *** Extended login done:1005ms
    Snap SessionID: null
    Sending hello world message
    ***
    *** Error 988:java.io.IOException token time out without...
    ***
    Waiting for reply...
    Sending hello word message

    (repeat so many times)

    How do I fix this problem? Please let me know soon.
    Thank you

  4. #4
    Nokia Developer Expert
    Join Date
    Apr 2008
    Posts
    14

    Re: Problem with running SnapMobileSample

    Have you checked that the SNAP Mobile Emulator Server is started? More likely, you need to manually start the server by selecting Server > Start Emulator in the SNAP Mobile Emulation Environment. Also, you need to configure the settings of the Emulator in accordance with the Emulation Environment User's Guide. Thanks.

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    8

    Re: Problem with running SnapMobileSample

    Here is what I did and it doesn't work:
    1. Launch the SNAP Mobile Emulation Environment(sm-emu.jar in the/ tools/ ServerEmulator directory.

    2. Start the emulation environment(Server -> Start).
    Here is what I received from the "View Log":

    Nokia Emulation Environment Version [sm-emu v2.1.2]
    INFO [04/23 10:10:15.843] Error generation off.
    INFO [04/23 10:10:15.844] Will not generate SNAP errors.
    INFO [04/23 10:10:15.844] Will not generate IMPS errors.
    INFO [04/23 10:10:15.844] Will not generate SERVER errors.
    INFO [04/23 10:10:15.844] Will not generate NETWORK errors.
    INFO [04/23 10:10:15.846] [SERVER started]

    INFO [04/23 10:10:15.852] [new user] id = 536870914, name = test1
    INFO [04/23 10:10:15.852] [new user] id = 536870915, name = test2
    INFO [04/23 10:10:15.853] [new user] id = 536870916, name = test3
    INFO [04/23 10:10:15.853] [new user] id = 536870917, name = test4
    INFO [04/23 10:10:15.853] [new user] id = 536870918, name = test5
    INFO [04/23 10:10:15.853] [new user] id = 536870919, name = test6
    INFO [04/23 10:10:15.853] [new user] id = 536870920, name = test7
    INFO [04/23 10:10:15.853] [new user] id = 536870921, name = test8
    INFO [04/23 10:10:15.854] [new user] id = 536870922, name = test9
    INFO [04/23 10:10:15.854] [new user] id = 536870923, name = test10
    INFO [04/23 10:10:15.860] [new game class]: name = Test Game, id = 49152
    INFO [04/23 10:10:15.946] [new lobby] name = Random
    INFO [04/23 10:10:15.946] [new lobby] name = Sort
    INFO [04/23 10:10:15.947] [new lobby] name = Join
    INFO [04/23 10:10:15.947] [new lobby] name = Challenge
    INFO [04/23 10:10:15.947] [new game class]: name = MazeRacer, id = 49721
    INFO [04/23 10:10:15.947] [new lobby] name = Random
    INFO [04/23 10:10:15.947] [new lobby] name = Sort
    INFO [04/23 10:10:15.948] [new lobby] name = Challenge
    INFO [04/23 10:10:15.948] [new lobby] name = Lobby
    INFO [04/23 10:10:15.948] [new game class]: name = GamePacket, id = 32270
    INFO [04/23 10:10:15.948] [new lobby] name = Lobby1
    INFO [04/23 10:10:15.948] [new game class]: name = BuddyChat, id = 16111
    INFO [04/23 10:10:15.948] [new lobby] name = Lobby1
    INFO [04/23 10:10:15.949] [new game class]: name = Presence, id = 17513
    INFO [04/23 10:10:15.949] [new lobby] name = Lobby1
    INFO [04/23 10:10:15.956] [sessionreaper] started
    SEVERE [04/23 10:10:16.022] Emulator died: Address already in use: JVM_Bind
    INFO [04/23 10:17:25.690] Error generation off.
    INFO [04/23 10:17:25.690] Will not generate SNAP errors.
    INFO [04/23 10:17:25.691] Will not generate IMPS errors.
    INFO [04/23 10:17:25.691] Will not generate SERVER errors.
    INFO [04/23 10:17:25.691] Will not generate NETWORK errors.
    INFO [04/23 10:17:25.692] [SERVER started]
    INFO [04/23 10:17:25.692] [new user] id = 536870924, name = test1
    INFO [04/23 10:17:25.692] [new user] id = 536870925, name = test2
    INFO [04/23 10:17:25.692] [new user] id = 536870926, name = test3
    INFO [04/23 10:17:25.693] [new user] id = 536870927, name = test4
    INFO [04/23 10:17:25.693] [new user] id = 536870928, name = test5
    INFO [04/23 10:17:25.693] [new user] id = 536870929, name = test6
    INFO [04/23 10:17:25.693] [new user] id = 536870930, name = test7
    INFO [04/23 10:17:25.693] [new user] id = 536870931, name = test8
    INFO [04/23 10:17:25.693] [new user] id = 536870932, name = test9
    INFO [04/23 10:17:25.693] [new user] id = 536870933, name = test10
    INFO [04/23 10:17:25.694] [new game class]: name = Test Game, id = 49152
    INFO [04/23 10:17:25.694] [new lobby] name = Random
    INFO [04/23 10:17:25.694] [new lobby] name = Sort
    INFO [04/23 10:17:25.694] [new lobby] name = Join
    INFO [04/23 10:17:25.694] [new lobby] name = Challenge
    INFO [04/23 10:17:25.695] [new game class]: name = MazeRacer, id = 49721
    INFO [04/23 10:17:25.697] [new lobby] name = Random
    INFO [04/23 10:17:25.697] [new lobby] name = Sort
    INFO [04/23 10:17:25.697] [new lobby] name = Challenge
    INFO [04/23 10:17:25.697] [new lobby] name = Lobby
    INFO [04/23 10:17:25.697] [new game class]: name = GamePacket, id = 32270
    INFO [04/23 10:17:25.697] [new lobby] name = Lobby1
    INFO [04/23 10:17:25.698] [new game class]: name = BuddyChat, id = 16111
    INFO [04/23 10:17:25.698] [new lobby] name = Lobby1
    INFO [04/23 10:17:25.698] [new game class]: name = Presence, id = 17513
    INFO [04/23 10:17:25.698] [new lobby] name = Lobby1
    INFO [04/23 10:17:25.699] [sessionreaper] started
    SEVERE [04/23 10:17:25.710] Emulator died: Address already in use: JVM_Bind


    3.I used "Edit plus text editor" to open helloworld.jad file. Here is what is in the screen shot:

    MIDlet-Name: helloworld
    MIDlet-Version: 1.4.4
    MIDlet-Vendor: NGS
    MIDlet-Jar-URL: helloworld.jar
    MIDlet-Jar-Size: 46652
    MIDlet-Permissions: javax.microedition.io.Connector.socket,javax.microedition.io.Connector.http
    MIDlet-1: helloworld, , samples.testapps.HelloWorld
    MicroEdition-Configuration: CLDC-1.0
    MicroEdition-Profile: MIDP-2.0
    SNAP-Mobile-Host: localhost
    SNAP-Mobile-OperatorID: 012345
    SNAP-Mobile-SKU: 1
    username: test1
    password: test

    4. I opened the file helloworld.jad by using the Sun Java Wireless Toolkit 2.5.2 for CLDC. Then I launched the helloworld application. Here is what I saw on the screen:

    Username = test1
    Password = ***
    gcid = 49152
    Hello world client started
    Loging in...
    Snap mobile host:
    localhost
    add self as listener
    ***
    *** Error 988:java.io.IOException error 10054 during TCP
    *** Extended login done:1005ms
    Snap SessionID: null
    Sending hello world message
    ***
    *** Error 988:java.io.IOException token time out without...
    ***
    Waiting for reply...
    Sending hello word message.



    So, how can I overcome this problem? Before I am going to run the SnapMobileSample as qinlesliexue recommended.

    I really need to configure and run the Demo once. If there is someone has experiences in this please contact to me through:
    1. Yahoo Messenger: quanxpro
    2. Email: quanxpro@yahoo.com

    By the way, my operation is Windows Vista. Does it work on it?
    Thanks.

    P/S: Thanks qinlesliexue for your help. If you can, please help me for the first step of running the Demo through Yahoo Messenger. Thanks
    Last edited by quanxpro; 2008-04-23 at 04:49.

  6. #6
    Nokia Developer Expert
    Join Date
    Apr 2008
    Posts
    14

    Re: Problem with running SnapMobileSample

    SEVERE [04/23 10:17:25.710] Emulator died: Address already in use: JVM_Bind

    This message means another program is using one of the ports that the emulator is trying to bind in order to accept incoming network connections. That this is being shown twice in the log means that both ports are failing in this manner.

    There are a few possible solutions:

    1) Find the other program using the same port, and shut it down.

    2) Change the ports in the emulator to ports which aren't in use.

    3) Some operating systems place restrictions on which ports unprivileged users can bind. For instance, many unix operating systems only allow the root user to bind ports under 1024 (including port 80). So, use ports which are above this range.

    4) It is also possible that virus control software may disallow ports to be bound for incoming connections, or that a system administrator may have locked something down. Try temporarily disabling your virus software to see if this is the problem, and then reconfigure it to allow the emulator to bind ports, or contact your network administrator, if any.

    Thanks!

  7. #7
    Registered User
    Join Date
    Apr 2008
    Posts
    8

    Re: Problem with running SnapMobileSample

    Thanks qinlesliexue.
    I am so happy because the solutions you gave me could help me run the Helloworld and SnapMobileSample as the instruction.
    And now, I'm going to go to the implement my first game.
    Once again, thank you so much qinlesliexue. And have a nice day

  8. #8
    Nokia Developer Expert
    Join Date
    Apr 2008
    Posts
    14

    Re: Problem with running SnapMobileSample

    Good luck!

Similar Threads

  1. Urgent :problem while running HTTPS in J2me for Nokia 3250
    By ratan_java_me in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-05-02, 17:45
  2. Replies: 0
    Last Post: 2007-02-26, 01:05
  3. Replies: 2
    Last Post: 2006-02-24, 14:23
  4. Problem running sip RegisterTest example, HELP!
    By wbb826 in forum Mobile Java General
    Replies: 1
    Last Post: 2005-10-19, 07:25
  5. Problem running the TextMTM sample
    By dingdongvan in forum General Messaging
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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