Closed GoogleCodeExporter closed 8 years ago
Do you have access to the source code of MIDlet? The most important is to know
what
exactly method g.a is doing.
Original comment by bar...@gmail.com
on 22 Apr 2010 at 8:09
Yes i have access, i'm the main developper of it. I Actually don't know what is
that
'g' object and that a method (smth obfuscated ?)
My application load and ask for the user language. After selection i put it in
the
Config (a table in my record store) and update it.
Here is the code of saveConf() :
public static void saveConf() {
try {
MTPOS.debug("1");
Config.mappingRS = RecordStore.openRecordStore(ConfigRSName, true);
config.id = 1;
MTPOS.debug("2");
if (curAct != null) {
config.actID = curAct.id;
} else {
config.actID = -1;
}
MTPOS.debug("3");
if (curAvail != null) {
config.availId = curAvail.id;
} else {
config.availId = -1;
}
if (curShop != null) {
config.shopID = curShop.id;
} else {
config.shopID = -1;
}
MTPOS.debug("4");
//#ifdef Presence
if (curAddressPlanning != null) {
config.addressPlanningId = curAddressPlanning.id;
} else {
config.addressPlanningId = -1;
}
//#endif
config.language = Lng.getCurrentLanguage();
config.version = version;
if (config.getRecordID() == -1) {
MTPOS.debug("5");
config.bruteInsert();
MTPOS.debug("6");
} else {
config.update();
}
Config.mappingRS.closeRecordStore();
} catch (RecordStoreException ex) {
handleError("Problem with MTsyncConf record store.", ex);
return;
} catch (IOException ex) {
handleError("Problem with MTsyncConf record store.", ex);
return;
}
}
MTPOS.debug(String str) is a method that just make Sysout str with actual
datetime.
Original comment by Guillaum...@gmail.com
on 22 Apr 2010 at 12:22
And there is nothing printed in the console... Sysout isn't forwarded to java
console ?
Original comment by Guillaum...@gmail.com
on 22 Apr 2010 at 12:29
Still the key question is what is happening in the g.a() method and why
DataOutputStream.writeUTF argument is null.
Exception in thread "event-thread" java.lang.NullPointerException
at java.io.DataOutputStream.writeUTF(Unknown Source)
at java.io.DataOutputStream.writeUTF(Unknown Source)
at g.a(Unknown Source)
Original comment by bar...@gmail.com
on 28 Apr 2010 at 8:56
I Actually don't know what is that 'g' object and that 'a' method (smth
obfuscated ?)
Original comment by Guillaum...@gmail.com
on 28 Apr 2010 at 3:42
please, i really need your help and this is getting quite urgent. What can i do
?
Original comment by Guillaum...@gmail.com
on 29 Apr 2010 at 8:04
Ok i found my problem. A problem with getAppProperty("MIDlet-Version");
Everything works.
I also found the #44 bug reported.
Original comment by Guillaum...@gmail.com
on 29 Apr 2010 at 9:50
Very good
Original comment by bar...@gmail.com
on 29 Apr 2010 at 10:24
Original issue reported on code.google.com by
Guillaum...@gmail.com
on 22 Apr 2010 at 7:59