Hi there,

I'm running against a wall here: I've recently installed EclipseME 1.7.9 (I'm 
quite familiar with Eclipse and Java in general) and the SUN J2ME WTK 2.5.2. 
Since then I'm stuck trying to get a HelloWorld running (this one here 
http://developers.sun.com/mobility/midp/articles/wtoolkit/src/HelloMIDlet.java).

Problem: The programme cannot be loaded and generates a null pointer exception 
(see the error output below) followed by an even more interessting security 
exception...

At first I thought this had something to do with the Emulator and I installed 
the programme directly onto the phone (Nokia) but that just showed an 
'unhandled exception' as well.

Something I could see as the problem is the line 'Running with locale: 
German_Switzerland.1252' then followed by 'Incorrect domain name, ...'
Can I change this somewhere, and what does the line actually mean?

Am I missing any configurations? I just don't see, why a simple HelloWorld by 
default would throw a SecurityException (not only in emulation, but on the 
mobile as well).

Mighty thanks,
BeyelerStudios

Platform: Windows XP, Eclipse 3.3.1, EclipseME 1.7.9, SUN WTK 2.5.2
EclipseME: installed and configured as described here 
http://eclipseme.org/docs/installEclipseME.html (w/o Antenna though)
WTK Emulator: DefaultColorPhone

And here's the output; note that this is generated before the HelloWorld code 
is executed (which it isn't):
------------------------------------------------------------------------------------------------
 (-- comments)
java.lang.NullPointerException
        at 
com.sun.kvem.comcon.jsr082.JSR082Bridge.initializeJSR082Support(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.kvem.sublime.MethodExecution.process(Unknown Source)
        at com.sun.kvem.sublime.SublimeExecutor.processRequest(Unknown Source)
        at com.sun.kvem.sublime.SublimeExecutor.run(Unknown Source)
Running with locale: German_Switzerland.1252 -- where can i change that (source 
of security exception i guess)?
Incorrect domain name, switching to 'unidentified_third_party'
java.lang.SecurityException: unidentified_third_party domain is not configured 
-- bad luck, ey?
        at com.sun.midp.security.Permissions.forDomain(+118)
        at com.sun.midp.dev.DevMIDletSuiteImpl.create(+51)
        at com.sun.midp.dev.DevMIDletSuiteImpl.create(+74)
        at com.sun.midp.main.Main.runLocalClass(+20)
        at com.sun.midp.main.Main.main(+80)
Execution completed. -- not it has not, it hasn't even started yet!!!
89703 bytecodes executed
4 thread switches
1665 classes in the system (including system classes)
876 dynamic objects allocated (46812 bytes)
1 garbage collections (0 bytes collected)

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to