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.
Steps to reproduce: - Create a JavaFX Script file --------------------------- var a = 10; var b = 20; var c = 30; var d = 45; --------------------------- - Add some breakpoints - Start Debugger Debugger does not start init: deps-jar: using profile: DESKTOP Java compilation nothing to compile JavaFX compilation executing commandline: [C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\..\bin\javafxc.exe, -Xbootclasspath/p:C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/shared/javafxc.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/shared/javafxrt.jar, -classpath, C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Decora-D3D-Native.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Decora-D3D.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Decora-HW.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Decora-OGL.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/Scenario.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/gluegen-rt.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/javafx-swing.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/javafxgui.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/jmc.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/jogl.jar;C:\Program Files\netbeans\javafx2\javafx-sdk1.0dev\bin\../lib/desktop/websvc.jar;, -d, C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\compiled, @C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\javafxc41991sources] copying: src into: C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\compiled using filter: RESOURCES copying: src\javafxapplication20 into: C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\compiled\javafxapplication20 using filter: RESOURCES copying runtime libraris repackaging libraries signing libraries Pack200 & gzip compression of libraries application Jar packaging ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified) ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified) application Pack200 compression ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified) application Pack200 decompression ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified) generating temporary keystore for self-signing executing commandline: [C:\Program Files\Java\jdk1.6.0_03\bin\keytool.exe, -genkey, -keystore, C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\.keystore, -storepass, password, -alias, key1, -keypass, password, -dname, CN=${application.vendor}] keytool error: java.lang.Exception: Key pair not generated, alias <key1> already exists signing Jar: C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\dist\JavaFXApplication20.jar executing commandline: [C:\Program Files\Java\jdk1.6.0_03\bin\jarsigner.exe, -keystore, C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\build\.keystore, -storepass, password, -keypass, password, C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\dist\JavaFXApplication20.jar, key1] Warning: The signer certificate will expire within six months. Pack200 & gzip compression of jar: C:\Documents and Settings\andromeda\My Documents\NetBeansProjects\temp\03\41\JavaFXApplication20\dist\JavaFXApplication20.jar ZoneInfo: C:\Program Files\Java\jdk1.6.0_03\lib\zi\ZoneInfoMappings (The system cannot find the path specified) generating JNLP launcher generating JNLP launcher generating HTML applet page can't open C:\Program Files\Java\jdk1.6.0_03\lib\tzmappings. compile: A Java Result: 1 debug: BUILD SUCCESSFUL (total time: 7 seconds)
JavaFX_NB_Plugin_NB65_daily: #291 Product Version = NetBeans IDE Dev (Build 200809151401) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc.
Could you, please, attach build log with Ant set to verbose mode? It is not visible why the debugger does not start, for me the debugger is working. From the log I see only that the project has been created before the change and project properties have not been updated yet (CN=${application.vendor}). Try to open project properties, check them and close with OK button.
Created attachment 71360 [details] Debugger output. Verbose mode.
Created attachment 71361 [details] Debugger output. Debug mode.
The debugger starts and finishes without stopping on breakpoints. Listening on 3267 User program running FieldBreakpoint javafxapplication1.Main.b successfully submitted. FieldBreakpoint javafxapplication1.Main.c successfully submitted. User program finished
- Create a JavaFX Script file --------------------------- var a = 10; var b = 20; var c = 30; var d = 45; --------------------------- - Add some breakpoints - Start Debugger Debugger finishes without stopping on the breakpoints
Ok found the problem, first problem is that Breakpoint request was not passed to JDI, because sourceRoot was null, this will be fixed by adding to -debug-start-debugger target sourcepath parameter for nbjavafxstart, and the second problem is following: In LineBreakpoint we have 2 locations in code refer to compiled class file, first location is initialization and second in $run method, which is not visible in JavaFX. And Breakpoint request was created only for initialization but second request was omitted as duplicate, because it was compared by line number which was the same.
*** Issue 150261 has been marked as a duplicate of this issue. ***
Now it will stop on breakpoints. But second problem still present and on some breakpoints it will stop in 2 different threads. I'm closing this issue, since it is not stopper any more. Please open another issue for second problem, if it is not opened yet.
verified in 2008-10-17_03-01-38.zip
See also: issue 150112 , issue 149605