Shop OBEX P1 Docs P2 Docs Learn Events
[Error JVM-0031] Cannot find linked method (java/lang/StringBuffer.append) — Parallax Forums

[Error JVM-0031] Cannot find linked method (java/lang/StringBuffer.append)

Don FrenchDon French Posts: 126
edited 2007-07-23 01:43 in General Discussion
The subject line is the contents of an error message I get when loading a program to the Javelin. When I click the message I get a dialog box saying:

Error: Cannot find linked method (%s.%s).
Description: The named method could not be found.
Solution: Report the error to technical support.

My code has three StringBuffer.append calls, one to append an int, one to append a char, and one to append a string but I commented every one of them out to try to find which one it doesn't like and it still gives me the error!

I am puzzled. Ideas?

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-07-23 01:00
    Please post the program (as an attachement) that generates this error.

    regards peter
  • Don FrenchDon French Posts: 126
    edited 2007-07-23 01:26
    I kept trying to make mods to see if I could eliminate the error. So I no longer have the program in the state in which the error occurred. However, I did get rid of the error by simply shortening the main program. And when I did that, I got the true error message: too many methods in a class (it had 48, I think). It was not the same class that I shortened, by the way. I never knew that there was a limit to the number of methods in a class, but apparently there is. Anyway, I rejiggered the class that had too many methods and all the problems went away. I don't particularly like what I had to do to the class with too many methods, but what are you going to do?
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2007-07-23 01:43
    I figured it would not be the string append, even though that error
    was thrown. Too bad you don't have the original that threw the error.
    I will look into the linker code, to see·when that particular error
    is thrown. And I will check out if I can increase the allowable number
    of methods in·a class, or at least throw a more correct error.

    regards peter
Sign In or Register to comment.