08-11-2008 05:52 AM
Hello!
I have a BlackBerry 8800 with firmware 4.2.1.68 (Platform 2.3.0.54) Prosumer from Vodafone.
I'm developing midlet-apllications with JDE 4.3.0. Most working fine, but one application throws the following error on start (creating without errors):
Error starting xxx: Class 'xxx.xxx' ref member out of range
The error occure on the device and on the simulator.
The same midlet created with the WTK from Sun working fine on Siemens- and Nokia-cellphones.
Any suggestions?
cstarling
ps: Maybe the main-file (code and/or data) is too big, but it would be a lot of work to put it in a few files only on spec.
08-11-2008 05:56 AM
08-11-2008 09:48 AM
08-13-2008 03:40 AM
I tried JDE 4.2. and still got the error.
@all
Can somebody tell me something about the limitations of variables in a class?
Can I see the amount of the variables of a class at the build process?
Where is the limit?
Does variables of function also counts?
08-13-2008 11:16 AM
Please refer to this thread:
http://supportforums.blackberry.com/rim/board/mess
11-26-2008 10:03 PM
Sorry to resurrect this question, but does anyone know a way around this error, besides cutting back on variables in a class?
What's odd, is that a program that runs on a 8703, fails with this error on a later model 8803.
Did the JVM lose the ability to handle as many variables?
11-28-2008 07:55 AM
According to Simon_hain : you have too many variables in a single class.
----
Simon_hain is right.
Though you can tryout this: For exampl(this is only a example)-
If you have this--->
private String str1 = null;
private String str2 = null;
private String str3 = null;
.....
.....
int var1;
int var2;
you can try this-->
private String str1 = null, str2 = null, str3 = null;
private String ......;
int var1,var2;
In short! avoid multiline declarations.
03-25-2010 02:15 AM
I'm facing the same issue for a certain class but only on simulator 9530-Verizon (4.7.0.75).
On following simulators things are working fine:
I'm compiling my code in JDE 4.3.
Why am I getting this Runtime Exception only on 4.7.0? On all other devices things are working fine. Does the JVM behavior change with OS? Is their any workaround for it?
Actually I have already reduced around 20 variables but still 9530 is giving me runtime exception.
05-03-2010 03:57 AM
Hi,
I am also facing the same problem after installing the application on 8530, but not on the 8530 emulator.
I thought instead of starting new thread, I should ask the question in the same thread just to avoid the redundancy of the same topic.
After reading some threads, I think I have to reduce the number of my variables. But, how can I do that? I mean all variable are introduced as they are required. Is there any way to reduce the number of variables.
For example: I have used 13 to 15 Spacers of the same height and width, on different forms in my application. Here, I can use only one object of spacer instead of 15. Does reducing variable means like this?
But in this case it will throw illegalStateException as the object is owned by different form.
So please guide me. Regards.
05-04-2010 05:07 PM
I'm also having this problem.
Well, not me, but some of my users.
I get no errors from the simulator or when running on my phone, but two of my users are getting this error on their Storm 1's. Funny thing is, I own a Storm 1 and use it for testing and don't get any errors.
The error is the same, but has Class 'xxx.<private>' ref member out of range