Skip to main content

loading integers resources error

2 replies [Last post]
george_ustc
Offline
Joined: 2008-08-26
Points: 0

I got a error when I run the compiled runmiddlet on wince arm. The error message is like this.

CertVerify: \Storage Card\phoneme\midp\bin\arm\runMidlet.exe trust = 2
Exception caught while loading integers sequence resource: 317: java.lang.ArrayIndexOutOfBoundsException:
The MIDlet suite could not be run.

after probe into the source code, the only place in midp.chameleon.skin.resource.SkinResources.jpp report the error. See the following code. but where is the root cause? how to fix it?

public static int[] getNumbersSequence(int identifier) {
try {
int seqIdx = skinData.properties[identifier];
int totalNumbers = skinData.intSeqValues[seqIdx];
seqIdx += 1;
int[] nums = new int[totalNumbers];
for (int i = 0; i < totalNumbers; ++i) {
nums[i] = skinData.intSeqValues[seqIdx + i];
}

return nums;
} catch (Exception e) {
Logging.report(Logging.CRITICAL, LogChannels.LC_HIGHUI,
"Exception caught while loading integers sequence " +
"resource: " + identifier + ": " + e);
}
return null;
}

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
george_ustc
Offline
Joined: 2008-08-26
Points: 0

nums[i] = skinData.intSeqValues[seqIdx + i];
}

return nums;
} catch (Exception e) {
Logging.report(Logging.CRITICAL, LogChannels.LC_HIGHUI,
"Exception caught while loading integers sequence " +
"resource: " + identifier + ": " + e);
}
return null;
}

davyp
Offline
Joined: 2007-01-03
Points: 0

It could be something else in your case, but I get similar exceptions when
I forget to update the resources files on my storage card.

pMEF looks for various places to find the appdb folder, and uses that
folder to locate the resource files in the lib folder. I have the appdb folder in
\memory card\appdb because I do not want to overwrite it for each build
update, but then I must also make sure that the \memory card\lib folder with
all the image and other resource files is up to date.

Normally the lib folder does not change that often, but when a new resource
file is added or another one is updated, you should copy the lib folder from
the zip/cab in the same folder where you have your appdb folder.

Davy