Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Debugger Failed to connect to remote VM. Connection refused.

uuups....

 

never used JDE directly

only Eclipse PlugIn

started just in april BB developing (with great results - can show it to you at DevCon:

6 Apps, 8 Libraries  in the domain of waste & recycling companies -

Libs for Logging and UI wil become OpenSource EPL soon after DevCon)

 

...so I need some hints how to test JDE w Debugger

 

BTW: at EclipseSummitEurope there will be a Mobile Symposium where I''ll talk about and demonstrate BB Eclipse Development

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
BlackBerry Development Advisor
Posts: 15,809
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Debugger Failed to connect to remote VM. Connection refused.

[ Edited ]

The BlackBerry JDE is our legacy development tool.  I don't recommend it over the Eclipse plug-in, but just wanted to try it here as a test.  You can download it here:  http://na.blackberry.com/eng/developers/javaappdev/javadevenv.jsp

 

Have you tried to start a simulator outside of Eclipse and connect to it?  If not, start one up, wait for it to fully load and choose Debug As -> Running BlackBerry Simulator.  Do you see any difference here?

 

I won't be at DevCon this year... but it sounds like you've been very busy with BlackBerry Development.  Be sure to show the Eclipse people from RIM what you've got.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Debugger Failed to connect to remote VM. Connection refused.

Mark,

 

I already tried a Simulator outside Eclipse:

 

* downloaded Simulator and stored at a location outside Eclipse

* in debug launch config choosed this Simulator

* then tried to debug

 

same error

 

ekke

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
BlackBerry Development Advisor
Posts: 15,809
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Debugger Failed to connect to remote VM. Connection refused.

Please try to use the full installer and install into a new, clean directory.  You can download it here:  http://na.blackberry.com/eng/developers/javaappdev/devtools.jsp

 

Did you install using the update site or installer?  If you used the installer did you install to a fresh location or over top of an existing Eclipse installation?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Debugger Failed to connect to remote VM. Connection refused.

yes, I did a fresh install (9700 - 680)

into a new directory

so it was really clean

 

then changed my debug launch config in eclipse

to use this new fresh Simulator

 

-----

BTW: found a JDE installation I downloaded in april, but never used

started and run demo project - works

 

then while simulator is open back to JDE - Debug - Attach with running simulator

 

now hangs since some time

"attempting to connect to VM - please cancel to exit"

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
BlackBerry Development Advisor
Posts: 15,809
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Debugger Failed to connect to remote VM. Connection refused.

I meant a fresh install of Eclipse + our plug-ins, not the simulator.  Can you give that a shot?

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Debugger Failed to connect to remote VM. Connection refused.

aaahh

 

will try this next days - not today

in the process of preparing and extending my BlackBerry Apps to be demonstrated next week at a trade fair from a customer...

 

..will come back to this Thread later...

 

thx again for your help

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Debugger Failed to connect to remote VM. Connection refused.

Mark,

 

just installed a fresh new Eclipse, but same happens -

Debugger couldn't be attached

 

tried debug as... and also starting Simulator and debug as on running simulator

(workspace .log same as using the other install)

 

so something from Windows seems to prevent this

 

would be great if you can give some informations which ports etc are used from Debugger while trying to connect to Simulator or Device

 

THX again 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: Debugger Failed to connect to remote VM. Connection refused.

I think they connect through ports, you could use netstat to see who is

listening or packet captuer and see the attempts.

 

On my old laptop,again, you had to find a specific rituial to get reliable connects.

The sim is probably written predicated on scertain timing relationships and otherwise

fails, on newer faster laptop it connects just about all the time. Try connecting to

sim after jvm boots but before you try to run anything after of course making sure

socket settings match.

 

 

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Debugger Failed to connect to remote VM. Connection refused.

thx

 

I already tried all these things

 

and using netstat -aon I can see which ports are in use from which process

 

but I don't know which ports the debugger will use

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner