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 166047 - NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Summary: NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
Status: RESOLVED DUPLICATE of bug 170624
Alias: None
Product: javaee
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 3 votes (vote)
Assignee: Milos Kleint
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-26 16:03 UTC by bleathem
Modified: 2009-09-25 09:18 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 151805


Attachments
stacktrace (4.63 KB, text/plain)
2009-05-26 16:03 UTC, bleathem
Details
stacktrace (2.82 KB, text/plain)
2009-06-16 09:48 UTC, big_al
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bleathem 2009-05-26 16:03:33 UTC
Build: NetBeans IDE Dev (Build 200905251401)
VM: Java HotSpot(TM) 64-Bit Server VM, 1.6.0_07-b06-57, Java(TM) SE Runtime Environment, 1.6.0_07-b06-153
OS: Mac OS X, 10.5.7, x86_64

User Comments:
GUEST: I hit ^R to rename a file, then right-clicked on the file before the rename dialog had been displayed

bleathem: Ok, this time I just right-clicked on the file to rename it



Stacktrace: 
java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
        at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:94)
        at org.netbeans.modules.j2ee.ejbrefactoring.EjbRefactoringFactory.getRelevantEjbModules(EjbRefactoringFactory.java:181)
        at org.netbeans.modules.j2ee.ejbrefactoring.EjbRefactoringFactory.getEjbJars(EjbRefactoringFactory.java:141)
        at org.netbeans.modules.j2ee.ejbrefactoring.EjbRefactoringFactory.createInstance(EjbRefactoringFactory.java:77)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.getPlugins(AbstractRefactoring.java:137)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.addProgressListener(AbstractRefactoring.java:278)
Comment 1 bleathem 2009-05-26 16:03:48 UTC
Created attachment 82813 [details]
stacktrace
Comment 2 Milos Kleint 2009-06-03 07:52:55 UTC
reassigning to j2ee/ejb
Comment 3 Exceptions Reporter 2009-06-16 08:01:27 UTC
This issue already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151805
Comment 4 big_al 2009-06-16 09:48:24 UTC
Build: NetBeans IDE Dev (Build 200906150201)
VM: Java HotSpot(TM) 64-Bit Server VM, 11.3-b02-83, Java(TM) SE Runtime Environment, 1.6.0_13-b03-211
OS: Mac OS X, 10.5.7, x86_64

User Comments: 
Moving Java source files from one Maven module to another

Stacktrace: 
java.lang.NullPointerException: Passed null to FileOwnerQuery.getOwner(FileObject)
        at org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:94)
        at org.netbeans.modules.j2ee.ejbrefactoring.EjbRefactoringFactory.getRelevantEjbModules(EjbRefactoringFactory.java:181)
        at org.netbeans.modules.j2ee.ejbrefactoring.EjbRefactoringFactory.getEjbJars(EjbRefactoringFactory.java:141)
        at org.netbeans.modules.j2ee.ejbrefactoring.EjbRefactoringFactory.createInstance(EjbRefactoringFactory.java:77)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.getPlugins(AbstractRefactoring.java:137)
        at org.netbeans.modules.refactoring.api.AbstractRefactoring.addProgressListener(AbstractRefactoring.java:278)
Comment 5 big_al 2009-06-16 09:48:28 UTC
Created attachment 83618 [details]
stacktrace
Comment 6 Exceptions Reporter 2009-06-16 09:48:34 UTC
This issue already has 6 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151805
Comment 7 Exceptions Reporter 2009-06-18 13:49:06 UTC
This issue already has 12 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151805
Comment 8 Exceptions Reporter 2009-06-20 10:22:25 UTC
This issue already has 13 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151805
Comment 9 lblankers 2009-08-04 08:03:57 UTC
This issue now has 59 duplicates! It would be nice if a developer could respond.
Comment 10 faty 2009-08-31 14:07:23 UTC
Hi,

This problem is very annoying... It is impossible to rename or delete under the netbeans interface... If anyone could
respond...
Comment 11 Exceptions Reporter 2009-09-23 10:38:47 UTC
This issue already has 104 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=151805
Comment 12 Petr Jiricka 2009-09-24 14:17:05 UTC
One user comments that this is happening in Maven project: 
"Moving Java source files from one Maven module to another"

Milos, could this be related to/duplicate of issue 170624? In this case, j2eemoduleprovider.getSourceRoots() also
contains some null values.
Comment 13 Petr Jiricka 2009-09-25 09:18:00 UTC
Duplicate of 170624.

*** This issue has been marked as a duplicate of 170624 ***