EDavidzar opened a new issue, #7289:
URL: https://github.com/apache/netbeans/issues/7289

   ### Apache NetBeans version
   
   Apache NetBeans 21
   
   ### What happened
   
   Error when i try to create persistence entity classes from database in the 
java persistence wizard, the dbabase/table list is empty and the eror is
   java.lang.NullPointerException: Cannot invoke 
"org.netbeans.modules.j2ee.persistence.spi.datasource.JPADataSourcePopulator.connect(javax.swing.JComboBox)"
 because "dsPopulator" is null
        at 
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DatabaseTablesPanel.initializeWithDatasources(DatabaseTablesPanel.java:207)
        at 
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DatabaseTablesPanel.initSubComponents(DatabaseTablesPanel.java:170)
        at 
org.netbeans.modules.j2ee.persistence.wizard.fromdb.DatabaseTablesPanel.ancestorAdded(DatabaseTablesPanel.java:1025)
        at 
java.desktop/javax.swing.AncestorNotifier.fireAncestorAdded(AncestorNotifier.java:86)
        at 
java.desktop/javax.swing.AncestorNotifier.componentShown(AncestorNotifier.java:193)
        at 
java.desktop/java.awt.AWTEventMulticaster.componentShown(AWTEventMulticaster.java:188)
        at 
java.desktop/java.awt.AWTEventMulticaster.componentShown(AWTEventMulticaster.java:187)
        at 
java.desktop/java.awt.AWTEventMulticaster.componentShown(AWTEventMulticaster.java:187)
        at 
java.desktop/java.awt.Component.processComponentEvent(Component.java:6458)
        at java.desktop/java.awt.Component.processEvent(Component.java:6406)
        at java.desktop/java.awt.Container.processEvent(Container.java:2266)
        at java.desktop/java.awt.Window.processEvent(Window.java:2056)
        at 
java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833)
        at 
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743)
        at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
   [catch] at 
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:117)
        at 
java.desktop/java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:191)
        at 
java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:236)
        at 
java.desktop/java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:234)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:318)
        at 
java.desktop/java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:234)
        at java.desktop/java.awt.Dialog.show(Dialog.java:1080)
        at 
org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:1069)
        at 
org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:1114)
        at 
org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:1092)
        at 
org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:104)
        at 
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.doEventAccess(NbMutexEventProvider.java:123)
        at 
org.netbeans.modules.openide.util.NbMutexEventProvider$Event.readAccess(NbMutexEventProvider.java:77)
        at 
org.netbeans.modules.openide.util.LazyMutexImplementation.readAccess(LazyMutexImplementation.java:71)
        at org.openide.util.Mutex.readAccess(Mutex.java:199)
        at 
org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:1076)
        at java.desktop/java.awt.Component.show(Component.java:1728)
        at java.desktop/java.awt.Component.setVisible(Component.java:1675)
        at java.desktop/java.awt.Window.setVisible(Window.java:1036)
        at java.desktop/java.awt.Dialog.setVisible(Dialog.java:1016)
        at 
org.netbeans.core.windows.services.DialogDisplayerImpl$AWTQuery.showDialog(DialogDisplayerImpl.java:273)
        at 
org.netbeans.core.windows.services.DialogDisplayerImpl$AWTQuery.run(DialogDisplayerImpl.java:188)
        at 
java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        at 
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
        at 
org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)
        at 
java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
        at 
java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
        at 
java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
   
   Netbeans Module P8DBase, package persistence, right mouse button, select 
New, next select Entity Calsses from Database ..., shows wizard and is 
imposible to select any database or table previous registered in the tab 
services ->databases.
   using MYSQL server and Mysql connector java 8.3.0 and 8.0.22
   previously was working perfect i don`t remember with netbeans 20 or 19 but 
with i'm almost sure was working with netbeans 18
   
   
   ### Language / Project Type / NetBeans Component
   
   _No response_
   
   ### How to reproduce
   
   Netbeans Module P8DBase, package persistence, right mouse button, select 
New, next select Entity Calsses from Database ..., shows wizard and is 
imposible to select any database or table previous registered in the tab 
services ->databases.
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 18
   
   ### Operating System
   
   Linux Ubuntu 22.04.4 LTS (Jammy Jellyfish) 
   
   ### JDK
   
   jdk 17.0.7 linux x64
   
   ### Apache NetBeans packaging
   
   Apache NetBeans platform
   
   ### Anything else
   
   The problem ocurrs every time
   
   ### Are you willing to submit a pull request?
   
   No


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
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

Reply via email to