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.
Summary: | [68cat] Variable evaluation does not finish | ||
---|---|---|---|
Product: | debugger | Reporter: | ulfzibis <ulfzibis> |
Component: | Code | Assignee: | Martin Entlicher <mentlicher> |
Status: | CLOSED WORKSFORME | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Evaluating never finishs
Run test result Tried to set Breakpoint |
Description
ulfzibis
2009-09-30 15:24:46 UTC
Created attachment 88608 [details]
Evaluating never finishs
For reproduce please note comments on https://java-nio-charset-enhanced.dev.java.net, but use jdk1.7.0 as project's JDK. Use this revision: https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-charset-enhanced/branches/all-in-charsets/?rev=792 Set breakpoint to java.nio.charset.Charset1.lookup() and then advance by Step Over. Unfortunately, I have bug problems to get your program to execute. :-( After checkout and open of the nio_charset project in NetBeans, I've set JDK 1.7.0 b71 as the project's JDK. 1) I could not build the project, since there is a "resources" folder registered in Sources, which is missing in the checkout. Therefore I've deleted it from Sources. 2) Which main file should I choose? 3) It looks like whatever main file I choose the program crashes with following exception: Error occurred during initialization of VM java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:417) at java.lang.System.initProperties(Native Method) at java.lang.System.initializeSystemClass(System.java:1106) Java Result: 1 I can execute other projects with JDK 1.7.0 b71 without such error. Do you know what can cause such NPE and how to get rid of it? It's not possible to debug this early stage of VM start. :-( Which version of JDK 7 do you use? Oops, first I wanted to say, RTFM, but when I opened https://java-nio-charset-enhanced.dev.java.net, I saw, that the content of my homepage was completely replaced by default content. Seems that happened when Sun has moved my project to general tree. OK, to create the resources you have to set configuration to GenerateCharsetData, run once (CoS=on), (eventually also Main_sbcs, Main_ext_sbcs) and after return to default configuration. Hope that helps, (last post for today) I used JDK 1.7.0_b72. I used JDK 1.7.0_b72. After running CharsetsDataGenerator, Clean&Build the project. This will copy the resources into jar and build folder. I'm sorry, but I still get: Error occurred during initialization of VM java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:417) at java.lang.System.initProperties(Native Method) at java.lang.System.initializeSystemClass(System.java:1106) Java Result: 1 debug: BUILD SUCCESSFUL (total time: 3 seconds) :-( I use JDK 1.7.0 b71, so I will try with JDK 1.7.0 b72 if it helps... Maybe important: use Windows XP where Cp1252 is default charset, e.g. German version. I checked out: https://java-nio-charset-enhanced.dev.java.net/source/browse/java-nio-charset-enhanced/branches/all-in-charsets/?rev=792 Install ...\Java\jdk1.7.0\fastdebug\ build 72 Open project in NetBeans Enable CoS + Track Java Dependencies Set configuration to CharsetsDataGenerator and Run once Set configuration to default and Clean&Build Run java.nio.charset.CharsetTest Created attachment 88910 [details]
Run test result
Created attachment 88916 [details]
Tried to set Breakpoint
Now on Build nbms-and-javadoc-4016-on-090930 Variable evaluation comes to finish, but after long time: ~1 minute. I set Breakpoint at line 438 in class java.nio.charset.Charset1. Debug java.nio.charset.CharsetTest. I'm currently trying this on Ubuntu Linux with UTF-8 being the default charset. I'll try with Cp1252 and possibly will try on Windows... Thanks. It looks like this project is not executable on Linux. Anyway, on Windows it runs fine, I've run the CharsetTest several times under debugger, with "Static" and "cache" expanded in Variables as it is in the attached screenshot. But unfortunately, it has never happened to me that the debugger would block and Variables would keep showing the Evaluating... Is this reproducible for you? It could also be already fixed by some other change, do you have such problems in some recent 6.8 build? It's important to be reproducible, otherwise even thread dump will not help us to identify the cause. Seems to work in Build nbms-and-javadoc-4252-on-091109 closing |