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

   ### Apache NetBeans version
   
   Apache NetBeans 25
   
   ### What happened
   
   When we try to open persistence.xml it doesnt show anything in design tab 
and throws following exception
   java.lang.NullPointerException: Cannot read field "_1_0" because 
"instanceJpaSupport" is null
        at 
org.netbeans.modules.payara.jakartaee.Hk2JpaSupportImpl.getDefaultProvider(Hk2JpaSupportImpl.java:185)
        at 
org.netbeans.modules.javaee.specs.support.api.JpaSupport.getDefaultProvider(JpaSupport.java:55)
        at 
org.netbeans.modules.j2ee.common.J2eeProjectCapabilities.hasDefaultPersistenceProvider(J2eeProjectCapabilities.java:296)
        at 
org.netbeans.modules.javaee.project.api.PersistenceProviderSupplierImpl.supportsDefaultProvider(PersistenceProviderSupplierImpl.java:160)
        at 
org.netbeans.modules.j2ee.persistence.wizard.Util.getDefaultProvider(Util.java:205)
        at 
org.netbeans.modules.j2ee.persistence.unit.PersistenceToolBarMVElement$PersistenceView.initialize(PersistenceToolBarMVElement.java:289)
        at 
org.netbeans.modules.j2ee.persistence.unit.PersistenceToolBarMVElement.componentShowing(PersistenceToolBarMVElement.java:137)
        at 
org.netbeans.core.multiview.MultiViewPeer.peerComponentShowing(MultiViewPeer.java:311)
        at 
org.netbeans.core.multiview.MultiViewCloneableTopComponent.componentShowing(MultiViewCloneableTopComponent.java:109)
   [catch] at 
org.openide.windows.WindowManager.componentShowing(WindowManager.java:314)
        at 
org.netbeans.core.windows.WindowManagerImpl.componentShowing(WindowManagerImpl.java:1236)
        at 
org.netbeans.core.windows.view.DefaultView.changeGUI(DefaultView.java:143)
        at 
org.netbeans.core.windows.ViewRequestor.dispatchRequest(ViewRequestor.java:250)
        at 
org.netbeans.core.windows.ViewRequestor.processRequest(ViewRequestor.java:226)
        at 
org.netbeans.core.windows.ViewRequestor.postRequest(ViewRequestor.java:164)
        at 
org.netbeans.core.windows.ViewRequestor.scheduleRequest(ViewRequestor.java:102)
        at 
org.netbeans.core.windows.Central.activateModeTopComponent(Central.java:1772)
        at 
org.netbeans.core.windows.WindowManagerImpl.topComponentRequestActive(WindowManagerImpl.java:1378)
        at org.openide.windows.TopComponent.requestActive(TopComponent.java:837)
        at 
org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport$5.run(XmlMultiViewEditorSupport.java:426)
        at 
org.netbeans.modules.xml.multiview.Utils.runInAwtDispatchThread(Utils.java:168)
        at 
org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport.openView(XmlMultiViewEditorSupport.java:421)
        at 
org.netbeans.modules.xml.multiview.XmlMultiViewEditorSupport.open(XmlMultiViewEditorSupport.java:439)
        at 
org.openide.awt.ActionDefaultPerfomer.actionPerformed(ActionDefaultPerfomer.java:47)
        at 
org.openide.awt.ContextAction$Performer.actionPerformed(ContextAction.java:413)
        at 
org.openide.awt.ContextManager.actionPerformed(ContextManager.java:261)
        at org.openide.awt.ContextAction.actionPerformed(ContextAction.java:108)
        at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:68)
        at 
org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:91)
        at 
org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:74)
        at 
org.openide.awt.GeneralAction$BaseDelAction.actionPerformed(GeneralAction.java:354)
        at 
org.openide.explorer.view.TreeView$PopupSupport.mouseClicked(TreeView.java:1608)
        at 
java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:278)
        at 
java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
        at 
java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
        at 
java.desktop/java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:277)
        at 
java.desktop/java.awt.Component.processMouseEvent(Component.java:6624)
        at 
java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3398)
        at java.desktop/java.awt.Component.processEvent(Component.java:6386)
        at java.desktop/java.awt.Container.processEvent(Container.java:2266)
        at 
java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4996)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
        at 
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948)
        at 
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4584)
        at 
java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516)
        at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310)
        at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780)
        at java.desktop/java.awt.Component.dispatchEvent(Component.java:4828)
        at 
java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:775)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
        at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:98)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:747)
        at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
        at 
java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
        at 
java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:744)
        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)
   INFO [org.netbeans.modules.mercurial]: version: null
   INFO [org.netbeans.modules.subversion]: Finished indexing svn cache with 0 
entries. Elapsed time: 3 ms.
   SEVERE [global]
   
   ### Language / Project Type / NetBeans Component
   
   Java Maven Web Project
   
   ### How to reproduce
   
   After creating the project , try to open persistence.xml and you get a blank 
in design tab
   
   ### Did this work correctly in an earlier version?
   
   Apache NetBeans 21 or earlier
   
   ### Operating System
   
   Ubuntu 22.04
   
   ### JDK
   
   jdk 21
   
   ### Apache NetBeans packaging
   
   Apache NetBeans binary zip
   
   ### Anything else
   
   No
   
   ### 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