|
From: Holger S. <h.s...@ew...> - 2008-08-07 19:09:44
|
Hey peoples
Using: Eclipse Ganymede, JDK 1.6, Maven 2.0.9, Mac OS X 10.5,
MicroEmulator 2.0.2
I have set up a small maven project within Eclipse for developing a
MIDlet. Everything was fine so far until I wanted to store/read some
data into/from RecordStores.
I am launching the Microemultor from within eclipse, with the
following launch configuration:
Main class: org.microemu.app.Main
Program Arguments: --appclasspath ${project_loc}/target/classes
com.xyz.MobileTicketControlMidlet
When trying to read/store a RecordStore I got the following exception:
[...]
Caused by: java.lang.NullPointerException
at
org
....microemu
....app
....util
....FileRecordStoreManager.getSuiteFolder(FileRecordStoreManager.java:81)
at
org
....microemu
....app
....util
....FileRecordStoreManager.openRecordStore(FileRecordStoreManager.java:
114)
at
javax.microedition.rms.RecordStore.openRecordStore(RecordStore.java:53)
[...]
This NullPointer is hard to track down, relevant source part from
RecordStoreManager:
private File getSuiteFolder()
{
return new File(Config.getConfigPath(), "suite-" +
emulator.getLauncher().getSuiteName());
}
Hope someone can help! Thanks in advance.
Mit lieben Grüßen aus dem eWerk
| Holger Stolzenberg
| Softwareentwickler
|
| eWerk IT GmbH
| Markt 16
| Leipzig 04109
| http://www.ewerk.com
|
| fon +49.341.4 26 49-0
| fax +49.341.4 26 49-88
| mailto:h.s...@ew...
|
| Support:
| fon 0700 CALLME24 (0700 22556324)
| fax 0700 CALLME24 (0700 22556324)
|
| Auskünfte und Angebote per Mail
| sind freibleibend und unverbindlich.
|