BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 07-20-2007, 11:20 AM   #1 (permalink)
New Member
 
Join Date: Jul 2007
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems with getting the BB debugging to start on NetBeans

Please Login to Remove!

I have integrated BlackBerry JDE 4.1.0 with Netbeans. I want to debug a midlet project to find the reason for an exception. When I run the debugger the emulator for 7100g starts and the project icon is on the screen.

"Starting emulator in debug server mode on port 49374" is printed out.
But then "Attaching to localhost:49374
Connection refused." is printed out over and over again. It is the same thing when the firewall is turned off.

When I click on the project icon to start the project "jvm error 104 uncaught runtime exception" is printed out without giving me any more information to try to trace the error.

When I run the project without debugging all I get is "jvm error 104 uncaught runtime exception" , so I need to debug it to find the cause for this. What is the cause for the "Attaching to localhost:49374 Connection refused" message and how can I get rid of this problem?

Is there some way I can find the reason for the exception with Blackberry device simulator 4.2.2 and MDS services simulator instead of with a Netbeans project?
Offline  
Old 07-23-2007, 02:39 AM   #2 (permalink)
CrackBerry Addict
 
Join Date: Jun 2005
Location: Manchester, UK
Model: BOLD
Carrier: t-mobile
Posts: 714
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

have you edited you build.xml file for the netbeans project? more info here: Blackberry Development using Netbeans - the netbeans issue is that it can't find the simulator to launch it. when this happens go to the runtime pane and select the process' tab and cancel the process.
__________________
new job doesn't allow a public profile - please do not contact this user with questions, you will not get a response. good luck!
Offline  
Old 07-23-2007, 05:34 AM   #3 (permalink)
New Member
 
Join Date: Jul 2007
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, I have edited the build xml file and I have done everything that the link you suggested tells me. Netbeans sometimes give the message "unable to open socket" and "Attaching to localhost:49374 Connection refused" is always printed out.

I tried to get it to work on my other PC, but with the same result. What should I do to solve this?
Offline  
Old 07-23-2007, 01:41 PM   #4 (permalink)
New Member
 
Join Date: Jul 2007
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 12
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe it would work on Netbeans if I change the debug port. But how do I do that? It is possible to change the JDWP port on the RIM remote server. (8000 now)

The error message is Attaching to localhost:49581, so it seems it tries to connect to port 49581. How can I change that to another port? I know this is not a firewall issue, because I have already turned it off.

Another possibility would be to use the Blackberry JDE for debugging instead of netbeans. But then I would have to create the project under Blackberry JDE instead? Or is there a way to import a netbeans project into Blackberry JDE?
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright 2004-2014 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.