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 154857 - NullPointerException at org.netbeans.modules.javafx.platform.platformdefinition.JavaFXPlatformImpl.loadProfileProperties
Summary: NullPointerException at org.netbeans.modules.javafx.platform.platformdefiniti...
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All Linux
: P4 blocker (vote)
Assignee: Adam Sotona
URL: http://statistics.netbeans.org/except...
Keywords:
: 155301 156050 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-12-07 04:10 UTC by wyespin
Modified: 2009-02-09 09:55 UTC (History)
18 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 143922


Attachments
stacktrace (3.38 KB, text/plain)
2008-12-07 04:13 UTC, wyespin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wyespin 2008-12-07 04:10:16 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-22-generic, i386

User Comments:
jutter: attempting to build a maven project



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.javafx.platform.platformdefinition.JavaFXPlatformImpl.loadProfileProperties(JavaFXPlatformImpl.java:356)
        at org.netbeans.modules.javafx.platform.platformdefinition.DefaultPlatformImpl.create(DefaultPlatformImpl.java:101)
        at org.netbeans.modules.javafx.platform.platformdefinition.PlatformConvertor.createPlatform(PlatformConvertor.java:223)
        at org.netbeans.modules.javafx.platform.platformdefinition.PlatformConvertor.instanceCreate(PlatformConvertor.java:213)
        at org.netbeans.modules.java.platform.DefaultJavaPlatformProvider.getInstalledPlatforms(DefaultJavaPlatformProvider.java:89)
        at org.netbeans.api.java.platform.JavaPlatformManager.getInstalledPlatforms(JavaPlatformManager.java:118)
Comment 1 wyespin 2008-12-07 04:13:12 UTC
Created attachment 74656 [details]
stacktrace
Comment 2 Peter Pis 2008-12-07 19:58:33 UTC
Reassigning to javafx for evaluation.
Comment 3 Adam Sotona 2008-12-08 10:12:12 UTC
JavaFX is unsupported on Linux and whole set of JavaFX modules are disabled.
There is module dependency on JavaFX SDK provider and this dependency could not be satisfied.
How did you manage to enable the modules?

I am keeping this bug open as the NPE is not very nice and we can handle even this corner case.
Comment 4 Exceptions Reporter 2008-12-09 03:35:46 UTC
This issue has already 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=145224
Comment 5 Adam Sotona 2008-12-12 11:40:08 UTC
*** Issue 155301 has been marked as a duplicate of this issue. ***
Comment 6 Alexandr Scherbatiy 2008-12-16 14:45:53 UTC
Workaround: install the JavaFX SDK nbm in the first place.
Comment 7 rhusar 2008-12-20 01:23:57 UTC
as far as i think, the only problem is that the other packages are (/were) allowed to install without the SDK itself
installed. of course it will fail with NPE (or CNF). in my case - i installed the javafx debug thingy.
Comment 8 Adam Sotona 2009-01-02 07:59:41 UTC
Please, could someone add a reproducible case without hacking the JavaFX modules?
Is there a bug in module system dependencies checking?
Comment 9 Adam Sotona 2009-01-02 08:39:31 UTC
*** Issue 156050 has been marked as a duplicate of this issue. ***
Comment 10 Adam Sotona 2009-01-08 12:49:44 UTC
NPE fixed in trunk
Comment 11 Alexandr Scherbatiy 2009-01-16 10:18:19 UTC
I see the NPE NewJavaFXProjectWizardIterator.createRuntimeProfiles 
when trying to install JavaFX nbms on Linux without JavaFX SDK and JavaFX Kit modules. 

java.lang.NullPointerException
	at
org.netbeans.modules.javafx.project.ui.wizards.NewJavaFXProjectWizardIterator.createRuntimeProfiles(NewJavaFXProjectWizardIterator.java:230)
	at
org.netbeans.modules.javafx.project.ui.wizards.NewJavaFXProjectWizardIterator.instantiate(NewJavaFXProjectWizardIterator.java:169)
	at org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:1016)
	at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:588)
	at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:409)
	at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:253)
	at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:165)
	at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1475)
	at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1432)
	at org.openide.WizardDescriptor.access$1700(WizardDescriptor.java:120)
	at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1999)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 12 Alexandr Scherbatiy 2009-01-16 10:22:03 UTC
Steps to reproduce:
- Install the nbms without JavaFX SDK and JavaFX Kit modules
- Create a JavaFX Script project
The NPE pops up: org.netbeans.modules.javafx.platform.platformdefinition.JavaFXPlatformImpl.loadProfileProperties
Comment 13 Adam Sotona 2009-01-16 15:47:34 UTC
I am still wondering HOW you could install the nbms without JavaFX SDK and JavaFX Kit modules?
There is a dependency on the SDK provider module, so nothing should start.
Comment 14 Alexandr Scherbatiy 2009-01-16 15:52:06 UTC
> I am still wondering HOW you could install the nbms without JavaFX SDK and JavaFX Kit modules?
> There is a dependency on the SDK provider module, so nothing should start.

But it works. Just uncheck the JavaFX Kit module and it is possible to install others modules without it. 
Comment 15 Adam Sotona 2009-01-20 09:10:32 UTC
OK, I've fixed the module dependencies to do not allow to start JavaFX Plugin without SDK module.
Comment 16 Alexandr Scherbatiy 2009-01-27 10:03:12 UTC
verified in NB JavaFX Plugin SDK 1.1 Promoted Build b03