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.
System: Product Version: NetBeans IDE Dev (Build 200706120000) Java: 1.5.0_07; Java HotSpot(TM) Client VM 1.5.0_07-87 System: Mac OS X version 10.4.9 running on i386; MacRoman; en_US (nb) Userdir: /Users/Tony/.netbeans/dev Steps to reproduce: -Open IDE -Start Appserver -Create new project->Identity Sample->Stock Service -Project opens with missing server message. -Resolve the missing server for the Enterprise Application, selecting the installed App Server -Get exception: java.lang.NullPointerException at org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties.updateContentDependency(EarProjectProperties.java:340) at org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties.resolveProjectDependencies(EarProjectProperties.java:1294) at org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties.storeProperties(EarProjectProperties.java:879) at org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties.access$700(EarProjectProperties.java:104) at org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties$1.run(EarProjectProperties.java:863) at org.openide.util.Mutex.writeAccess(Mutex.java:357) at org.netbeans.modules.j2ee.earproject.ui.customizer.EarProjectProperties.store(EarProjectProperties.java:842) at org.netbeans.modules.j2ee.earproject.ui.J2eeArchiveLogicalViewProvider$ArchiveLogicalViewRootNode$BrokenServerAction.actionPerformed(J2eeArchiveLogicalViewProvider.java:601) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:334) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041) at java.awt.Component.processMouseEvent(Component.java:5554) at javax.swing.JComponent.processMouseEvent(JComponent.java:3126) at java.awt.Component.processEvent(Component.java:5319) at java.awt.Container.processEvent(Container.java:2010) at java.awt.Component.dispatchEventImpl(Component.java:4021) at java.awt.Container.dispatchEventImpl(Container.java:2068) at java.awt.Component.dispatchEvent(Component.java:3869) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866) at java.awt.Container.dispatchEventImpl(Container.java:2054) at java.awt.Window.dispatchEventImpl(Window.java:1774) at java.awt.Component.dispatchEvent(Component.java:3869) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Works for me on windows.
The issue nay be JDK related. With Java 1.5.0_07 on Mac this still happens in Build 200706190000, same for Linux, using the same build and Java 1.5.0_11 the same problem, but with Java 1.6 on Linux the issue does not occur. Changing component to J2EE.
Right...i didnt reproduce this issue on linux - netbeans (Build 070627) with jdk 1.6. But with jdk 1.5 similar problem appears. Sample projects are created and it seems there is missing server. But in project properties, section run - you can see e.g. glassfish v2 in server combobox. on the other hand netbeans doesnt let you create sample projects without GF registered. So its strange that right after creating(where appserver is obviously checked) you are bothered with missing server :) No exception window pop up...but in console you can see NPE(see attached file) - its different from another npe in this issue...
Created attachment 44544 [details] stack trace
The 1st exception should be fixed already (see issue 103898). The 2nd exception is from sunappsrv so reassigning.
pcw, the "second exception" is in the attachment.
What exactly do you want me to do with this? The second exception trace suggests a misconfigured server (consistent with summary), yet the stack trace suggests a piece of code is resolving datasources. How can you resolve datasources if the missing server hasn't been resolved yet? I can investigate further next week, but I wonder if there is simply an ordering problem somewhere in the project code.
What you have started to do sounds right. If the plugin is getting called while the project is inconsistent, it makes sense to complete that evaluation enough that the issue can be re-assigned.
The "fix" applied for issue 108830 may have resolved this... Please reopen this issue if it has been resolved.
Fix Verified Product Version: NetBeans IDE Dev (Build 200807080009) Java: 1.6.0_05; Java HotSpot(TM) 64-Bit Server VM 1.6.0_05-b13-52 System: Mac OS X version 10.5.4 running on x86_64; MacRoman; en_US (nb)