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 - NullPointerException at org.netbeans.modules.j2ee.jpa.refactoring.whereused.PersistenceXmlWhereUsed$1.run
Summary: NullPointerException at org.netbeans.modules.j2ee.jpa.refactoring.whereused.P...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-05 10:32 UTC by Maksim Khramov
Modified: 2018-03-07 13:14 UTC (History)
24 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 217756


Attachments
stacktrace (2.36 KB, text/plain)
2015-06-05 10:32 UTC, Maksim Khramov
Details
stacktrace (2.36 KB, text/plain)
2015-07-27 09:44 UTC, ehsavoie
Details
stacktrace (2.36 KB, text/plain)
2015-07-28 07:56 UTC, Tomas Mysik
Details
stacktrace (2.36 KB, text/plain)
2015-09-17 07:44 UTC, terje7601
Details
stacktrace (2.36 KB, text/plain)
2015-10-06 08:33 UTC, Exceptions Reporter
Details
stacktrace (2.36 KB, text/plain)
2016-03-16 11:44 UTC, Michel Graciano
Details
stacktrace (2.36 KB, text/plain)
2016-03-16 11:47 UTC, Michel Graciano
Details
stacktrace (2.36 KB, text/plain)
2016-04-06 10:14 UTC, J Bachorik
Details
stacktrace (2.36 KB, text/plain)
2016-05-31 10:15 UTC, Milos Kleint
Details
stacktrace (2.36 KB, text/plain)
2016-06-15 10:35 UTC, Ralph Ruijs
Details
stacktrace (2.36 KB, text/plain)
2016-08-20 18:33 UTC, _ tboudreau
Details
stacktrace (2.36 KB, text/plain)
2017-01-26 08:32 UTC, akobberup
Details

Note You need to log in before you can comment on or make changes to this bug.
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