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 249467 - NullPointerException at org.netbeans.modules.j2ee.persistence.unit.PropertiesTableModel.addRow
Summary: NullPointerException at org.netbeans.modules.j2ee.persistence.unit.Properties...
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Persistence (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Sergey Petrov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-20 08:26 UTC by uwe_pachler
Modified: 2016-07-07 08:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 214352


Attachments
stacktrace (2.96 KB, text/plain)
2014-12-20 08:26 UTC, uwe_pachler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description uwe_pachler 2014-12-20 08:26:43 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.25-b02, Java(TM) SE Runtime Environment, 1.8.0_25-b17
OS: Mac OS X

User Comments:
uwe_pachler: looks like the editor can't read my persistence.xml. There is also no option to edit it in source. I tried adding a property, but nothing happens (it looks like this exception was the cause).

This is my pesistence.xml:

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
  <persistence-unit name="com.threeloonies.munch.server.bizlogic.impl" transaction-type="JTA">
    <!--
	  <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
-->
    <jta-data-source>jdbc/munch</jta-data-source>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
  </persistence-unit>
</persistence>




Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.j2ee.persistence.unit.PropertiesTableModel.addRow(PropertiesTableModel.java:109)
   at org.netbeans.modules.j2ee.persistence.unit.PropertiesTablePanel$TableActionListener.actionPerformed(PropertiesTablePanel.java:159)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346)
   at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
   at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
Comment 1 uwe_pachler 2014-12-20 08:26:45 UTC
Created attachment 151218 [details]
stacktrace
Comment 2 Martin Balin 2016-07-07 08:54:19 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