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

Summary: java.lang.NullPointerException at org.netbeans.modules.j2ee.persistence.unit.Util.getAvailPropNames
Product: javaee Reporter: MackSix
Component: PersistenceAssignee: Sergey Petrov <sj-nb>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: 7.3   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: Logfile

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