The security domain mentioned in the bugs below has nothing to do with user permission. It is used to limit availability of certain J2ME features (like sockets, certain JSRs, etc) so they can only be used with signed applications (that's where x509 certificates come in). The default domain is typically "untrusted" which is what unsigned apps use, but judging from the reports below for some reason your emulator is set to something "odd", and even when it tries to switch to the standard "untrusted" domain there's a problem.
It's possible that the JAD you're trying to use has been signed improperly and therefore it can't find the proper keystore (the OTA bug) or it could be that your installation for the emulator is broken. Either that or it might be as simple as finding the preference for the default security domain and making sure that it's set to "untrusted" or something. I don't know where that is on Linux, only on Windows. I hope that helps ... Tom > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Pietro "m0nt0" Montorfano > Sent: Saturday, April 07, 2007 1:40 AM > To: [email protected] > Subject: [Eclipseme-users] Can't debug > > Hi everybody, i don't think that mine it's a bug so this is > why i'm asking support here. > I'm developing a midlet on gentoo GNU/Linux with eclipse > 3.2.0 on gnome (so GTK environment i think), eclipseme 1.6.6, > sun jdk 1.5.0.10 and sun j2me 2.2-r3. > A week before everything was going well, i was able to write > code, package midlets, run them in the emulator and debug > them. Due to a bad windows installation (damned vista) i've > reinstalled linux from scratch and now i can't debug or run > the midlet, it seem to be a simple misconfiguration error but > i can't manage to find it (i don't think it's a permission > problem because i've chmodded 777 evrythin in j2me dir). > > When i try to debug or run the midlet (specifying th midlet), > the console says: > > Waiting for KVM... > Connecting to 127.0.0.1 on port 2800 > Waiting for debugger on port 41965 > Running with storage root DefaultColorPhone Connected to KVM > Connection received. > Incorrect domain name, switching to 'untrusted' > java.lang.SecurityException: untrusted domain is not configured > at com.sun.midp.security.Permissions.forDomain(+98) > at com.sun.midp.dev.DevMIDletSuiteImpl.create(+39) > at com.sun.midp.dev.DevMIDletSuiteImpl.create(+62) > at com.sun.midp.main.Main.runLocalClass(+20) > at com.sun.midp.main.Main.main(+116) > Execution completed. > 11878 bytecodes executed > 1 thread switches > 740 classes in the system (including system classes) > 5116 dynamic objects allocated (383040 bytes) > 2 garbage collections (45940 bytes collected) > > and when i try to run it in OTA mode: > > Warning: Running JAM, Ignoring all other options (but > "-Xheapsize", and OTA flags if provided) Running with storage > root DefaultColorPhone Could not open the trusted key store, > cannot authenticate HTTPS servers Could not open the trusted > key store, cannot authenticate HTTPS servers Exception caught in main: > java.lang.NullPointerException > at com.sun.midp.ssl.X509Certificate.verifyChain(+32) > at com.sun.midp.midletsuite.SecureInstaller.checkCertChain(+113) > at > com.sun.midp.midletsuite.SecureInstaller.findProviderCert(+10) > at com.sun.midp.midletsuite.SecureInstaller.verifyJar(+21) > at com.sun.midp.midletsuite.Installer.installStep4(+127) > at com.sun.midp.midletsuite.Installer.performInstall(+133) > at com.sun.midp.midletsuite.Installer.installJad(+57) > at com.sun.midp.main.CommandProcessor.install(+42) > at com.sun.midp.main.CommandProcessor.dispatch(+24) > at com.sun.midp.main.CommandProcessor.perform(+27) > at com.sun.midp.main.Main.main(+171) > Execution completed. > 396020 bytecodes executed > 4 thread switches > 741 classes in the system (including system classes) > 1987 dynamic objects allocated (82944 bytes) > 1 garbage collections (0 bytes collected) > > After a bit googling i've found some similar error but > regarding netbeans: > http://forum.java.sun.com/thread.jspa?threadID=671119&messageI > D=3923138 > http://www.arainyday.se/notebook/untrusted.php > > but i develop i in /home/monto/src/phase so no specia character. > An additional info is that my midlet is part of a package > named (MyPack), i think to rename it after the first release. > > > Can anyone please help me? > > Thank you very much!! > > Pietro Montorfano > > -------------------------------------------------------------- > ----------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the > chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge > &CID=DEVDEV > _______________________________________________ > Eclipseme-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/eclipseme-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Eclipseme-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/eclipseme-users
