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 200269 - Debug applet project does not work
Summary: Debug applet project does not work
Status: RESOLVED WORKSFORME
Alias: None
Product: javacard
Classification: Unclassified
Component: Java Card (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Anton Chechel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 18:44 UTC by ravi8work
Modified: 2011-07-28 20:04 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 ravi8work 2011-07-20 18:44:10 UTC
Applet (application) debug does not work. The debug proxy hangs waiting to connect to the debug port 7020 of cjcre. But the cjcre process was started with the default debug port #7019. No what what debug port number is assigned to the platform "Default Device" it is started with the default debug port number

Here is the log on the platform "Default Device (debug) tab :

Java Card(tm) Reference Implementation v3.0.4 Debug Proxy.
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

Connecting to localhost on port 7020
Waiting for debugger on port 7022
cjcre.exe (in -debugger mode) not running.
cjcre.exe (in -debugger mode) not running.
Connection received.
cjcre.exe (in -debugger mode) not running.
cjcre.exe (in -debugger mode) not running.
cjcre.exe (in -debugger mode) not running.
cjcre.exe (in -debugger mode) not running.
cjcre.exe (in -debugger mode) not running.
cjcre.exe (in -debugger mode) not running.
cjcre.exe (in -debugger mode) not running.
cjcre.exe (in -debugger mode) not running.
Comment 1 Anton Chechel 2011-07-28 16:00:06 UTC
Just checked. Debugging works for me.
====
Java Card(tm) Reference Implementation v3.0.2 Debug Proxy.
Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.

Connecting to localhost on port 7019
Waiting for debugger on port 7020
cjcre.exe is Ready.
Connection received.
====

Probably depends on #200482 which has been fixed:
http://netbeans.org/bugzilla/show_bug.cgi?id=200482

Also could be a firewall issue.
Comment 2 ravi8work 2011-07-28 20:04:20 UTC
(In reply to comment #1)
> Just checked. Debugging works for me.
> ====
> Java Card(tm) Reference Implementation v3.0.2 Debug Proxy.
> Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.
> 
> Connecting to localhost on port 7019
> Waiting for debugger on port 7020
> cjcre.exe is Ready.
> Connection received.
> ====
> 
> Probably depends on #200482 which has been fixed:
> http://netbeans.org/bugzilla/show_bug.cgi?id=200482
> 
> Also could be a firewall issue.

I missed stating one more requirement for bug. The configured debug port should not be the default 7019 for the bug to show. To do this, please add an extra Java Card platform. The second one will get a non-default port.