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.
I am trying to use the Blackberry emulator to find out why code that is displaying strings to a canvas in other emulators and devices don't do so in the Blackberry emulator. I'm running into 2 issues detailed below. I love using the wonderful Netbeans IDE--it's great. However, the System.out.println messages that I output to debug the problem, don't display in the output window. Per the Blackberry website, to display the System.out.println messages, I can't just run the emulator (with Netbeans or stand-alone), I have to run it with Blackberry's JDE (which is inferior to Netbeans'). The second problem is I cannot run the code through the debugger because it doesn't attach to the port. To duplicate this, create a new same project (I chose the VariousGames sample code that came with Netbeans). I modified the build.xml file as specified in the document "Blackberry Development Using Netbeans Mobility". I also created the .alx file. I changed the project properties to compile with debug option. Here's the output from the attempt: 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: init: post-init: init.rim.blackberry: debug: debug-regular: 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: init: post-init: conditional-clean: clean: pre-clean: do-clean: Deleting directory F:\Netbeans 5.0 projects\VariousGames\build\preprocessed Deleting directory F:\Netbeans 5.0 projects\VariousGames\build\compiled Deleting: F:\Netbeans 5.0 projects\VariousGames\build\before-obfuscation.jar Deleting: F:\Netbeans 5.0 projects\VariousGames\build\obfuscated.jar Deleting directory F:\Netbeans 5.0 projects\VariousGames\build\obfuscated Deleting directory F:\Netbeans 5.0 projects\VariousGames\build\preverified Deleting: F:\Netbeans 5.0 projects\VariousGames\build\manifest.mf Deleting: F:\Netbeans 5.0 projects\VariousGames\dist\VariousGames.jar Deleting: F:\Netbeans 5.0 projects\VariousGames\dist\VariousGames.jad 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: init: post-init: init.rim.blackberry: post-clean: pre-preprocess: deps-jar: preprocess: Created dir: F:\Netbeans 5.0 projects\VariousGames\build\preprocessed Pre-processing 12 file(s) into F:\Netbeans 5.0 projects\VariousGames\build\preprocessed directory. Copying 28 files to F:\Netbeans 5.0 projects\VariousGames\build\preprocessed post-preprocess: extract-libs: Created dir: F:\Netbeans 5.0 projects\VariousGames\build\compiled pre-compile: compile: Compiling 12 source files to F:\Netbeans 5.0 projects\VariousGames\build\compiled Copying 29 files to F:\Netbeans 5.0 projects\VariousGames\build\compiled post-compile: obfuscate-check: pre-obfuscate: obfuscate: Building jar: F:\Netbeans 5.0 projects\VariousGames\build\before- obfuscation.jar Copying jar file (F:\Netbeans 5.0 projects\VariousGames\build\before- obfuscation.jar) to F:\Netbeans 5.0 projects\VariousGames\build\obfuscated.jar. Created dir: F:\Netbeans 5.0 projects\VariousGames\build\obfuscated Expanding: F:\Netbeans 5.0 projects\VariousGames\build\obfuscated.jar into F:\Netbeans 5.0 projects\VariousGames\build\obfuscated post-obfuscate: pre-preverify: preverify: Created dir: F:\Netbeans 5.0 projects\VariousGames\build\preverified Preverifying 42 file(s) into F:\Netbeans 5.0 projects\VariousGames\build\preverified directory. post-preverify: create-jad: add-configuration: add-profile: set-keystore-password: set-alias-password: pre-jar: jar: Building jar: F:\Netbeans 5.0 projects\VariousGames\dist\VariousGames.jar Updating application descriptor: F:\Netbeans 5.0 projects\VariousGames\dist\VariousGames.jad Generated "F:\Netbeans 5.0 projects\VariousGames\dist\VariousGames.jar" is 44704 bytes. 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: init: post-init: init.rim.blackberry: post-jar: F:\Netbeans 5.0 projects\VariousGames\src\.timestamp Starting emulator in debug server mode on port 1610 nbdebug: KdpDebugTask connecting to debugger 1 .. KdpDebugTask connecting to debugger 2 .. KdpDebugTask connecting to debugger 3 .. KdpDebugTask connecting to debugger 4 .. KdpDebugTask connecting to debugger 5 .. Connecting JPDA Debugger to emulator timed out after 5 attempts and 33 seconds. F:\Netbeans 5.0 projects\VariousGames\build.xml:97: The following error occurred while executing this line: F:\Netbeans 5.0 projects\VariousGames\build.xml:106: The following error occurred while executing this line: F:\Netbeans 5.0 projects\VariousGames\nbproject\build-impl.xml:303: java.io.IOException: CreateProcess: "F:\Program Files\Research In Motion\BlackBerry JDE 4.1.0\bin\emulator" "-Xdevice:Blackberry Device" "- Xdescriptor:F:\Netbeans 5.0 projects\VariousGames\dist\nbrun#2773 \VariousGames.jad" -Xdebug - Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=1610 error=2 The following error occurred while executing this line: F:\Netbeans 5.0 projects\VariousGames\nbproject\build-impl.xml:311: Connecting JPDA Debugger to emulator timed out after 5 attempts and 33 seconds. BUILD FAILED (total time: 47 seconds)
moving to mobility component
The first part of the problem is on the BB emulator side. We catch and forward both (output and error) streams so if there is no output - we can hardly help. The second part is working for me. You have to manually verify the correct JPDA port and also check if your firewall is not blocking the debugger.