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 252437

Summary: NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Product: javaee Reporter: rweaver <rweaver>
Component: JSFAssignee: Petr Hejl <phejl>
Status: RESOLVED WONTFIX    
Severity: normal CC: marfous
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217345
Attachments: stacktrace

Description rweaver 2015-05-16 22:45:15 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Mac OS X

User Comments:
rweaver: Generating JSF from entity beans




Stacktrace: 
java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
   at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:95)
   at org.netbeans.modules.web.jsf.api.JsfComponentUtils.isMavenBased(JsfComponentUtils.java:227)
   at org.netbeans.modules.web.jsf.JSFFrameworkProvider.createWebModuleExtender(JSFFrameworkProvider.java:327)
   at org.netbeans.modules.web.jsf.wizards.PersistenceClientIterator.updateWebModuleExtender(PersistenceClientIterator.java:852)
   at org.netbeans.modules.web.jsf.wizards.PersistenceClientIterator.initialize(PersistenceClientIterator.java:815)
   at org.openide.loaders.TemplateWizardIterImpl.setIterator(TemplateWizardIterImpl.java:104)
Comment 1 rweaver 2015-05-16 22:45:19 UTC
Created attachment 153707 [details]
stacktrace
Comment 2 Petr Hejl 2015-06-05 13:57:21 UTC
This is workaround - web-main a685c19b0207. I guess we may need and API change to do this properly.
Comment 3 Quality Engineering 2015-06-06 07:16:52 UTC
Integrated into 'main-silver', will be available in build *201506060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a685c19b0207
User: Petr Hejl <phejl@netbeans.org>
Log: #252437 - NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Comment 4 Martin Balin 2016-07-07 08:54:15 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss