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 252831

Summary: NullPointerException at org.netbeans.modules.j2ee.jpa.refactoring.whereused.PersistenceXmlWhereUsed$1.run
Product: javaee Reporter: Maksim Khramov <mkhramov>
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: NEW ---    
Severity: normal CC: akobberup, dbotterill, DefaultLocale, ebakke, ehsavoie, ggghhhjjj, giorgoch, hmichel, IvoLimmen, joesaby, kaenganxt, ksrini, luk42, m1k0, mkleint, ntls, petermount, ralphbenjamin, tboudreau, terje7601, tmysik, vkvashin, yardus, ymajoros
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217756
Attachments: stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace
stacktrace

Description Maksim Khramov 2015-06-05 10:32:44 UTC
Build: NetBeans IDE Dev (Build 201506040001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b12, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b12
OS: Windows 7

User Comments:
mkhramov: Find usages in EJB




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.jpa.refactoring.whereused.PersistenceXmlWhereUsed$1.run(PersistenceXmlWhereUsed.java:109)
   at org.netbeans.modules.j2ee.jpa.refactoring.whereused.PersistenceXmlWhereUsed$1.run(PersistenceXmlWhereUsed.java:99)
   at org.netbeans.api.java.source.JavaSource$MultiTask.run(JavaSource.java:479)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:153)
   at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:137)
Comment 1 Maksim Khramov 2015-06-05 10:32:47 UTC
Created attachment 154067 [details]
stacktrace
Comment 2 ehsavoie 2015-07-27 09:44:41 UTC
Created attachment 154938 [details]
stacktrace

Searching for not JEE class usage
Comment 3 Tomas Mysik 2015-07-28 07:56:41 UTC
Created attachment 154964 [details]
stacktrace

started nb 8.1 beta with settings imported from nb 8.0, some nb modules opened
Comment 4 Exceptions Reporter 2015-09-11 10:55:15 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217756
Comment 5 terje7601 2015-09-17 07:44:31 UTC
Created attachment 156227 [details]
stacktrace

Searching for usages of an annotation in a Java EE project
Comment 6 Exceptions Reporter 2015-10-06 08:33:58 UTC
Created attachment 156544 [details]
stacktrace

Execute Find-Usages on Java-Class in Projects-view
Comment 7 Exceptions Reporter 2015-11-06 10:01:12 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=217756
Comment 8 Michel Graciano 2016-03-16 11:44:28 UTC
Created attachment 158888 [details]
stacktrace

Just using the IDE and opening some maven projects (non java ee)
Comment 9 Michel Graciano 2016-03-16 11:47:27 UTC
Created attachment 158889 [details]
stacktrace

Calling Find Usages at a simple Maven project (non Java EE, it is a library), but this library is used at some Java EE projects, which some of them are opened.
Comment 10 J Bachorik 2016-04-06 10:14:39 UTC
Created attachment 159130 [details]
stacktrace

searching for usages
Comment 11 Milos Kleint 2016-05-31 10:15:55 UTC
Created attachment 159925 [details]
stacktrace

where used on java file
Comment 12 Ralph Ruijs 2016-06-15 10:35:21 UTC
Created attachment 160057 [details]
stacktrace

FindUsages while scanning
Comment 13 _ tboudreau 2016-08-20 18:33:32 UTC
Created attachment 161731 [details]
stacktrace

Running find usages on a nested class generated from an annotation processor, where there are duplicate second-level nested class names, e.g.

class FooBuilder {
   static class WithBarAsString {
       static class WithBazAsInt { // <-----
       }
   }
   static class WithBarAsNumber {
       static class WithBazAsInt { // <-----
       }
   }
}

Guessing this confuses JPA refactoring?
Comment 14 akobberup 2017-01-26 08:32:42 UTC
Created attachment 163470 [details]
stacktrace

Tried to find useages