Doug Thompson created NETBEANS-2579:
---------------------------------------
Summary: Creating Entity Classes from Database Null Pointer
Exception
Key: NETBEANS-2579
URL: https://issues.apache.org/jira/browse/NETBEANS-2579
Project: NetBeans
Issue Type: Bug
Affects Versions: 11.0
Environment: JDK 1.8u172 64-bit; NB 11 (Build
incubator-netbeans-release-404-on-20190319); Windows 10
Reporter: Doug Thompson
When using the 'Create Entity Classes from Database' option, after selecting
data sources, a null pointer exception occurred. JDK 1.8u172 64-bit; NB 11
(Build incubator-netbeans-release-404-on-20190319); Windows 10
Here is the relevant output from the IDE log:
{noformat}
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user
has been obsoleted in favor of InstalledFileLocator/Places at
org.netbeans.modules.autoupdate.pluginimporter.Installer.getUserDir(Installer.java:167)
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut:
org.openide.loaders.XMLDataObject@611414d4[MultiFileObject@38244a05[Actions/Help/master-help.xml]]
WARNING [org.netbeans.modules.options.keymap.LayersBridge]: Invalid shortcut:
org.openide.loaders.BrokenDataShadow@592696cb[MultiFileObject@7c033c44[Keymaps/NetBeans/D-BACK_QUOTE.shadow]]
WARNING [null]: Last record repeated again.
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Resolving
dependencies took: 69 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete
indexing of 0 binary roots took: 1 ms
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing
of: C:\Program Files\NetBeans 11.0\webcommon\jsstubs\reststubs.zip took: 160 ms
(New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing
of: C:\Program Files\NetBeans 11.0\webcommon\jsstubs\corestubs.zip took: 90 ms
(New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Indexing
of: C:\Program Files\NetBeans 11.0\webcommon\jsstubs\domstubs.zip took: 78 ms
(New or modified files: 0, Deleted files: 0) [Adding listeners took: 0 ms]
INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete
indexing of 3 source roots took: 328 ms (New or modified files: 0, Deleted
files: 0) [Adding listeners took: 0 ms]
INFO [payara]: Requested Entity: public id = -//GlassFish.org//DTD GlassFish
Application Server 3.1 Resource Definitions//EN, system id =
http://glassfish.org/dtds/glassfish-resources_1_5.dtd
WARNING [org.netbeans.TopSecurityManager]: use of system property netbeans.user
has been obsoleted in favor of InstalledFileLocator/Places at
org.netbeans.modules.dbschema.util.IDEUtil.isIDERunning(IDEUtil.java:28)
SEVERE [global]
java.lang.NullPointerException
at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.EntityClassesPanel.initialize(EntityClassesPanel.java:205)
at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.EntityClassesPanel$WizardPanel.readSettings(EntityClassesPanel.java:673)
at org.openide.WizardDescriptor.updateStateOpen(WizardDescriptor.java:843)
at org.openide.WizardDescriptor.updateState(WizardDescriptor.java:797)
at org.openide.loaders.TemplateWizard.updateState(TemplateWizard.java:736)
at
org.netbeans.modules.project.ui.NewFileWizard.updateState(NewFileWizard.java:110)
at org.openide.WizardDescriptor._updateState(WizardDescriptor.java:775)
at org.openide.WizardDescriptor.goToNextStep(WizardDescriptor.java:1048)
at org.openide.WizardDescriptor.access$1900(WizardDescriptor.java:67)
at org.openide.WizardDescriptor$Listener$1.run(WizardDescriptor.java:2184)
at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1492)
at org.openide.WizardDescriptor.access$2000(WizardDescriptor.java:67)
at
org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:2203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:462)
at com.sun.proxy.$Proxy51.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
at java.awt.Component.processMouseEvent(Component.java:6539)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
at java.awt.Component.processEvent(Component.java:6304)
at java.awt.Container.processEvent(Container.java:2239)
at java.awt.Component.dispatchEventImpl(Component.java:4889)
at java.awt.Container.dispatchEventImpl(Container.java:2297)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476)
at java.awt.Container.dispatchEventImpl(Container.java:2283)
at java.awt.Window.dispatchEventImpl(Window.java:2746)
at java.awt.Component.dispatchEvent(Component.java:4711)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84)
at java.awt.EventQueue$4.run(EventQueue.java:733)
at java.awt.EventQueue$4.run(EventQueue.java:731)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
at
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
[catch] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233)
at java.awt.Dialog.show(Dialog.java:1084)
at
org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1060)
at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1110)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1082)
at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:105)
at
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:115)
at
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:75)
at
org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:71)
at org.openide.util.Mutex.readAccess(Mutex.java:193)
at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1067)
at java.awt.Component.show(Component.java:1671)
at java.awt.Component.setVisible(Component.java:1623)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at
org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.showDialog(DialogDisplayerImpl.java:241)
at
org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run(DialogDisplayerImpl.java:167)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
at
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
SEVERE [org.openide.util.RequestProcessor]: Error in RequestProcessor
org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard$1
java.lang.NullPointerException
at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPHelper.buildBeans(RelatedCMPHelper.java:307)
at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.createBeans(RelatedCMPWizard.java:388)
at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard.access$000(RelatedCMPWizard.java:63)
at
org.netbeans.modules.j2ee.persistence.wizard.fromdb.RelatedCMPWizard$1.run(RelatedCMPWizard.java:248)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033){noformat}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists