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 52175 - Debugger problem : >No current context<
Summary: Debugger problem : >No current context<
Status: CLOSED WORKSFORME
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: Other Linux
: P1 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-08 01:43 UTC by johnzoet
Modified: 2005-07-08 13:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ClientDatabaseBroker.java (4.94 KB, text/plain)
2004-12-08 01:44 UTC, johnzoet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description johnzoet 2004-12-08 01:43:45 UTC
See attached source file. 
This ispart of a Swing application. 
I put a breakpoint on line: 
System.out.println("Schema name = " + 
_schema.getName()); 
 
Debugger stops on that line. 
Now I move the cursor over instance variable 
_schema on line: 
    private Schema _schema; 
 
First time I see: 
_schema = (butler.sql.metadata.Schema)#548 
Next I move the cursor back and on _schema 
again. 
Second time I see: 
_schema = >No current context< 
 
When I click on PF8 nothing happens. 
When I click on Ctrl-PF5 debugging seems to 
stop, but process still running. 
When I click on Shift-PF5 debugging stops. 
 
I can consistently repeat this bug even after 
restarting the IDE. 
Similar bug also happens in other source files.
Comment 1 johnzoet 2004-12-08 01:44:23 UTC
Created attachment 19192 [details]
ClientDatabaseBroker.java
Comment 2 Milan Kubec 2004-12-08 08:19:40 UTC
Reassigning for eval.
Comment 3 Jan Jancura 2004-12-08 12:30:00 UTC
I can not use your ClientDatabaseBroker.java, beacuse it depends on
other your sources. When I try it on my own example, it works.
Can you extract some simple use case? Can you attach some info. about
your OS, JDK, NB version? 

Comment 4 johnzoet 2004-12-08 22:39:55 UTC
What I can do is zip up the project and database. 
Once extracted you can run it immediately on your PC. 
Just start the database and you can start debugging. 
It is a 100% full Java system, so there are no other dependencies. 
I can make the files available from TS FileX, a web based file 
transfer system. 
Just let me know if this is ok to you. 
 
Comment 5 Jan Jancura 2004-12-09 12:09:50 UTC
Cau you add info. about your platform first?
Do you think that its reproducible in such big applocations only? Can
you try it in some small HelloWorld app.?
Comment 6 johnzoet 2004-12-09 20:56:13 UTC
I can reproduce this bug consistently in my project. 
Because I do not know what causes the bug to happen, creating a new 
project to reproduce this bug is like searching for a needle in a 
haystack. 
It is not sure I can re-create the bug in a new project. 
 
This project is 100% Java. 
The only things required to debug the project are: 
- extract files 
- start database 
- start debugger 
 
This takes you and me less than 10 minutes. 
 
 
 
Comment 7 Jan Jancura 2004-12-10 08:51:50 UTC
OK. No problem, I can try to download your project.
What is your JDK version and netBeans version?
Comment 8 johnzoet 2004-12-10 09:56:05 UTC
You should have received a message from TS FileX by now explaining 
login details. 
For security reasons details are left out here. 
 
Netbeans version 4.0 RC2 
OS : Mandrake Linux 10.0 
 
I tested the application again in the state of the ZIP files. 
To replicate the bug. 
- extract ZIP files in the same parent folder 
- load project TSclient_Butler and project Butler 
- start database from shell in folder bin with : ./start_dbs.sh 
- put breakpoint in ClientDatabaseBroker.getSchema 
- start in debug mode test.butler.ClientDatabaseBrokerTest 
- move cursor over _schema 
- move cursor over schema again :now you get : >No context< 
- Try to continue debugging with PF8: will not work 
- Finish debugging 
Comment 9 Jan Jancura 2005-02-09 14:39:44 UTC
Not reproducible in normal cases => works for me. Are you able to
reproduce it in the latest builds?
Comment 10 johnzoet 2005-02-10 08:37:41 UTC
Cannot reproduce this problem anymore. 
 
>System Info:  
  Product Version       = NetBeans IDE 4.0 (Build 200412081800) 
  Operating System      = Linux version 2.6.8.1-12mdk running on 
i386 
  Java; VM; Vendor      = 1.5.0_01; Java HotSpot(TM) Client VM 
1.5.0_01-b08; Sun Microsystems Inc. 
  Java Home             = /opt/jdk1.5.0_01/jre 
  System Locale; Encod. = en_US (nb); ISO-8859-1 
  Home Dir; Current Dir = /home/johnz; /home/johnz 
  IDE Install; User Dir 
= /opt/netbeans-4.0/platform4; /home/johnz/.netbeans/4.0 
  CLASSPATH             
= /opt/netbeans-4.0/platform4/lib/boot.jar:/opt/jdk1.5.0_01/lib/dt.jar:/opt/jdk1.5.0_01/lib/htmlconverter.jar:/opt/jdk1.5.0_01/lib/jconsole.jar:/opt/jdk1.5.0_01/lib/sa-jdi.jar:/opt/jdk1.5.0_01/lib/tools.jar 
  Boot & ext classpath  
= /opt/jdk1.5.0_01/jre/lib/rt.jar:/opt/jdk1.5.0_01/jre/lib/i18n.jar:/opt/jdk1.5.0_01/jre/lib/sunrsasign.jar:/opt/jdk1.5.0_01/jre/lib/jsse.jar:/opt/jdk1.5.0_01/jre/lib/jce.jar:/opt/jdk1.5.0_01/jre/lib/charsets.jar:/opt/jdk1.5.0_01/jre/classes:/opt/jdk1.5.0_01/jre/lib/ext/dnsns.jar:/opt/jdk1.5.0_01/jre/lib/ext/sunpkcs11.jar:/opt/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar:/opt/jdk1.5.0_01/jre/lib/ext/localedata.jar 
  Dynamic classpath     
= /opt/netbeans-4.0/platform4/core/core.jar:/opt/netbeans-4.0/platform4/core/openide-loaders.jar:/opt/netbeans-4.0/platform4/core/openide.jar:/opt/netbeans-4.0/platform4/core/org-netbeans-swing-plaf.jar:/opt/netbeans-4.0/platform4/core/updater.jar:/opt/netbeans-4.0/nb4.0/core/org-netbeans-upgrade.jar:/opt/netbeans-4.0/nb4.0/core/locale/core_nb.jar:/opt/netbeans-4.0/ide4/core/org-netbeans-modules-utilities-cli.jar 
 
Comment 11 Max Sauer 2005-07-08 13:55:53 UTC
No such problem in current build 200507061800, therefore I'm closing it.