Tuesday, July 17, 2007

j2me 904 errors?

Are you getting j2me errors? This usually means that your cell phone decided to cache the jar file, while updating your jad file. Two possible solutions:

1. clear the history on your phone browser or power cycle the bastard.
2. update the jad/jar name. Stuff a random number param at the end of the jad/jar so that the phone doesnt update it
3. add this to your apache config file

LoadModule expires_module modules/mod_expires.so
AddModule mod_expires.c

ExpiresActive On
ExpiresByType text/vnd.sun.j2me.app-descriptor "access plus 1 second"
ExpiresByType application/java-archive "access plus 1 second"

No comments: