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 228675 - java.lang.NullPointerException at org.netbeans.modules.j2ee.persistence.unit.Util.getAvailPropNames
Summary: java.lang.NullPointerException at org.netbeans.modules.j2ee.persistence.unit....
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-17 20:20 UTC by MackSix
Modified: 2016-07-07 08:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Logfile (65.58 KB, application/octet-stream)
2013-04-17 20:20 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2013-04-17 20:20:51 UTC
Created attachment 133546 [details]
Logfile

Running the PetCatalog example on Weblogic 12c (12.1.1)

1. Open persistence.xml in design view.
2. Click Properties node to expand.
3. Click Add button.

This NPE is thrown.

Happens in v7.3 and still in:

Product Version: NetBeans IDE Dev (Build 201304161616)
Updates: Updates available
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 1 MackSix 2013-04-17 20:43:00 UTC
The cause of this is adding comment markers "<!-- -->" around the <properties> tags. I guess it is not really a bug, although it should handle the case where there is no <properites> tag more gracefully. Lowering to P4.
Comment 2 Martin Balin 2016-07-07 08:52:36 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