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: | NullPointerException thrown when (node piechart).setLabelsVisable(false) is called | ||
---|---|---|---|
Product: | javafx | Reporter: | JBKMG |
Component: | Project | Assignee: | Petr Somol <psomol> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | Keywords: | USABILITY |
Priority: | P3 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
JBKMG
2013-06-21 20:42:47 UTC
Created attachment 136167 [details]
IDE log
I downloaded the current JavaFX samples distribution from oracle.com (javafx_samples-2_2_25-windows) and unpacked it. The I opened NetBeans 7.3 (running on JDK 7u25, also downloaded/installed today from oracle.com). In NetBeans I opened the Ensemble project, built it and run it. The problem was not reproducible, I could see no crash when unchecking Labels Visible, instead it just hide the labels as expected. I am almost sure the problem on your side is your JDK version. If you run the Ensemble.jar from the distribution, your Java runtime version 7u13 apparently runs it correctly. But the JDK 7u13 compiler that comes into play when you build Ensemble in NetBeans is apparently failing to produce the correct jar. This is not unexpected, because from the point of view of quick JavaFX development 7u13 is already outdated. It is generally not guaranteed that a newer JavaFX code will compile and run correctly with outdated JDKs, but that is your case. The current JavaFX Samples distribution version 2.2.25 has been tested, as far as I know, to work correctly with the current JDK 7u25. Note that Ensemble evolves internally inbetween JDK updates, co the older version available at the time when JDK 7u13 was current probably did work with it and may even have looked the same, but the code has definitely been changed, mostly by fixing bugs but also by updating some coding patterns etc. To summarize, I am closing the bug because I could not reproduce it with the recommended JDK/samples version setup. Also, I am downgrading to P3 as the bug is not present in NetBeans codebase and has not even been in code distributed with NetBeans. I would like to thank you for your effort. I had not realized the mistake. Although I had current 7.0_25 on my system, I had not properly directed Netbeans away from the previous JDK on one of our workstations. I edited netbeans.conf to change my default JDK to ~7.0_25 and reloaded the Default JavaFX Platform. After these actions, I was unable to reproduce the error. I apologize for erroneously submitting and stating that all vendor updates were current. Again thank you for your timely response, and continued open support of NetBeans IDE. |