Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Senior Member
    Join Date
    Nov 2006
    Location
    Riyadh
    Posts
    33

    java/lang/NoSuchMethodError: No such method getRetryTimeout

    Hi,

    I got this error with the latest J2ME client (MIDP2):

    ALERT: java/lang/NoSuchMethodError: No such method getRetryTimeout.()I.

    It looks like a missing method.
    This error happened when the connection encountered some problems (and it seems tried to reconnet).
    This caused the J2ME application to completely crash and exit.

    Regards,
    A

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    That's pretty strange.

    I have no compiler errors.
    The method is in the right .java file and also in the .class file it is visible.
    Obviously the sources are correct.

    Do you have a bigger stack trace?
    Can you observe the same error on the emulator?
    Could it be a sort of caching problem?

  3. #3
    Senior Member
    Join Date
    Nov 2006
    Location
    Riyadh
    Posts
    33
    Yes, the problem appears in both Nokia and Emulator.
    I cannot get any stacktrace because I cannot catch the exception, it is internal within the MIDP library.
    The problem doesn't show up on an older MIDP library.

    A

  4. #4
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hello,

    I'm really surprised as I have no explanations.

    Would you try with a logging library?

  5. #5
    Senior Member
    Join Date
    Nov 2006
    Location
    Riyadh
    Posts
    33
    I don't have the logging version of the latest J2ME library.

    Regards
    A

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    I'm sending to you via PM a download link for the logging version.

    Thank you.

  7. #7
    Member
    Join Date
    Jul 2009
    Location
    napoli
    Posts
    3
    hi all, i have the same problem, when i run my midlet on the emulator, i encuntred this message error:
    ALERT: java/lang/NoSuchMethodError: No such method getRetryTimeout.()I.
    Execution stack contains 96 items:
    .
    .
    .
    .

    Execution completed...
    976 thread switches
    ALERT: java/lang/NoSuchMethodError: No such method nextTag.()I.

    what happens???
    thanks in advanced...
    missm

  8. #8
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    Hi,

    I still have no clue on how this could happen. As previously said the method is in its place so that I see no reason why it could not be found. Moreover both the caller and the method are in the same jar.
    Did it happen with both MIDP1 and MIDP2 libraries?
    would you like to try the debug library?

    Note that nextTag method is not from our library, is it used in your code? Did you expect such error?
    Maybe the cause is the same.

    Since you got the error on the emulator, if possible, can you send me your project and/or the resulting jar that gave the error?

  9. #9
    Member
    Join Date
    Jul 2009
    Location
    napoli
    Posts
    3

    java/lang/NoSuchMethodError

    Hi Mone, thanks for your replay...
    Where i can send you my project?
    Regards, missmè

  10. #10
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    if possible just attach it here on the forum, otherwise you can send it by email at support@lightstreamer.com (I'll take care of it admitted that it is accepted by our mail server) or you could use some sharing service like drop.io and then send me just the link through support@lightstreamer.com

 

 

Similar Threads

  1. shutdown method of DataProvider?
    By pluczak in forum Adapter APIs
    Replies: 5
    Last Post: April 16th, 2018, 04:26 PM
  2. form POST method vs GET method
    By chuan_ckc in forum Client APIs
    Replies: 1
    Last Post: August 20th, 2009, 10:29 AM
  3. Replies: 1
    Last Post: May 21st, 2009, 09:41 AM
  4. Data Provider Protocol Method Tags
    By juls in forum Adapter Protocol
    Replies: 1
    Last Post: March 4th, 2009, 09:00 AM
  5. com.lightstreamer.i.jc cannot be cast to java.lang
    By ddhanis in forum Adapter APIs
    Replies: 4
    Last Post: March 4th, 2009, 08:19 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 08:33 AM.