This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108778 - Fail to start emulator due to SecurityException
Summary: Fail to start emulator due to SecurityException
Status: RESOLVED WONTFIX
Alias: None
Product: javame
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: Other Windows XP
: P3 blocker (vote)
Assignee: Adam Sotona
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 16:37 UTC by pawepawe
Modified: 2007-07-19 10:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pawepawe 2007-07-03 16:37:43 UTC
1) Start Netbeans 6.0M10
2) Create a sample project Mobility -> Mobile Application
3) Run the project
4) The Emulator "crashes"

Should not a sample project be runnable "out of the box" ?

Following is shown in the Output window

pre-init:
pre-load-properties:
exists.config.active:
exists.netbeans.user:
exists.user.properties.file:
load-properties:
exists.platform.active:
exists.platform.configuration:
exists.platform.profile:
basic-init:
cldc-pre-init:
cldc-init:
cdc-init:
ricoh-pre-init:
ricoh-init:
semc-pre-init:
semc-init:
savaje-pre-init:
savaje-init:
nokiaS80-pre-init:
nokiaS80-init:
nsicom-pre-init:
nsicom-init:
post-init:
init:
conditional-clean-init:
conditional-clean:
pre-clean:
clean-timestamp:
clean-preprocessed:
clean-classes:
clean-obfuscated:
clean-preverified:
clean-manifest:
clean-jar:
clean-jad:
clean-javadoc:
clean-j9:
clean-ricoh:
clean-semc:
clean-savaje:
post-clean:
do-clean:
deps-jar:
pre-preprocess:
do-preprocess:
Created dir: C:\projects\Netbeans\MobileApplication1\build\preprocessed
Pre-processing 1 file(s) into C:\projects\Netbeans\MobileApplication1\build\preprocessed directory.
post-preprocess:
preprocess:
pre-compile:
extract-libs:
Created dir: C:\projects\Netbeans\MobileApplication1\build\compiled
do-compile:
Compiling 1 source file to C:\projects\Netbeans\MobileApplication1\build\compiled
post-compile:
compile:
pre-obfuscate:
proguard-init:
proguard:
post-obfuscate:
obfuscate:
pre-preverify:
do-preverify:
Created dir: C:\projects\Netbeans\MobileApplication1\build\preverified
Preverifying 1 file(s) into C:\projects\Netbeans\MobileApplication1\build\preverified directory.
post-preverify:
preverify:
pre-jar:
set-password-init:
set-keystore-password:
set-alias-password:
set-password:
create-jad:
Created dir: C:\projects\Netbeans\MobileApplication1\dist
add-configuration:
add-profile:
do-extra-libs:
Created dir: C:\projects\Netbeans\MobileApplication1\dist\lib
nokiaS80-prepare-j9:
nokiaS80-prepare-manifest:
nokiaS80-prepare-manifest-no-icon:
nokiaS80-create-manifest:
semc-build-j9:
do-jar:
Building jar: C:\projects\Netbeans\MobileApplication1\dist\MobileApplication1.jar
nsicom-create-manifest:
do-jar-no-manifest:
update-jad:
Updating application descriptor: C:\projects\Netbeans\MobileApplication1\dist\MobileApplication1.jad
Generated "C:\projects\Netbeans\MobileApplication1\dist\MobileApplication1.jar" is 1766 bytes.
ricoh-init-dalp:
ricoh-add-app-icon:
ricoh-build-dalp-with-icon:
ricoh-build-dalp-without-icon:
ricoh-build-dalp:
savaje-prepare-icon:
savaje-build-jnlp:
post-jar:
jar:
pre-run:
cldc-run:
Copying 1 file to C:\projects\Netbeans\MobileApplication1\dist\nbrun29079
Copying 1 file to C:\projects\Netbeans\MobileApplication1\dist\nbrun29079
Jad URL for OTA execution:
http://localhost:8082/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/C%3A/projects/Netbeans/MobileApplication1/dist//MobileApplication1.jad
Starting emulator in execution mode
Running with storage root DefaultColorPhone
Incorrect domain name, switching to 'untrusted'
java.lang.SecurityException: untrusted domain is not configured
        at com.sun.midp.security.Permissions.forDomain(Permissions.java:530)
        at com.sun.midp.dev.DevMIDletSuiteImpl.create(DevMIDletSuiteImpl.java:148)
        at com.sun.midp.dev.DevMIDletSuiteImpl.create(DevMIDletSuiteImpl.java:91)
        at com.sun.midp.main.Main.runLocalClass(Main.java:453)
        at com.sun.midp.main.Main.main(Main.java:126)
Execution completed.
16169 bytecodes executed
0 thread switches
738 classes in the system (including system classes)
229 dynamic objects allocated (15392 bytes)
1 garbage collections (0 bytes collected)
ricoh-run:
semc-icon-assembly:
semc-ppro-emulator:
semc-do-run:
semc-run:
savaje-run:
nokiaS80-run:
nsicom-run:
run:
BUILD SUCCESSFUL (total time: 4 seconds)
Comment 1 Adam Sotona 2007-07-10 12:39:51 UTC
This seems like some misconfigured or broken emulator.
Sun Java Wireless Toolkit bundled with M10 works for me and the untrusted domain is configured correctly.
Please take a look into the project properties category "Running". No security domain is enforced when the checkbox is
unselected so any emulator works with its defaults.
Comment 2 pawepawe 2007-07-18 21:36:57 UTC
Try to install Netbeans on Windows XP and use a username that has "non-english" letters in it and try to start the 
emulator again.
Comment 3 Lukas Hasik 2007-07-19 10:43:28 UTC
pawepawe, the WONTFIX resolution was correct one. This is known issue of the emulator. The only thing that Mobility Pack
can do is to mention it in release notes - http://www.netbeans.org/community/releases/55/1/relnotes-mobility.html
The bug 5074756 has been reported to the responsible team a while ago. It should be fixed in newer version of the emulator. 

Could you please try it with WTK 2.5.1? Install it into the directory with multibyte character and then add new platform
to netbeans. You will have to change the used platform of your project too. (More details at
http://www.netbeans.org/kb/55/quickstart-mobility.html)

Please reopen this issue again if you are able to reproduce it with WTK 2.5.1.
FYI, the newer emulator should be bundled with MobPack 6.0 till FCS.