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 106412 - Identity Sample opens with missing server, when resolved exception thrown
Summary: Identity Sample opens with missing server, when resolved exception thrown
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All Mac OS X
: P2 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-12 18:11 UTC by tonybeckham
Modified: 2008-07-08 19:31 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
stack trace (3.03 KB, text/plain)
2007-06-28 19:42 UTC, Radim Roska
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tonybeckham 2007-06-12 18:11:25 UTC
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)
Comment 1 Peter Liu 2007-06-21 18:46:46 UTC
Works for me on windows.

Comment 2 tonybeckham 2007-06-21 22:31:41 UTC
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.
Comment 3 Radim Roska 2007-06-28 19:41:45 UTC
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...
Comment 4 Radim Roska 2007-06-28 19:42:55 UTC
Created attachment 44544 [details]
stack trace
Comment 5 Tomas Mysik 2007-06-29 13:01:27 UTC
The 1st exception should be fixed already (see issue 103898).
The 2nd exception is from sunappsrv so reassigning.
Comment 6 Vince Kraemer 2007-06-29 18:10:35 UTC
pcw, the "second exception" is in the attachment.
Comment 7 _ pcw 2007-06-29 22:23:50 UTC
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.
Comment 8 Vince Kraemer 2007-07-04 05:52:15 UTC
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.
Comment 9 Vince Kraemer 2007-07-17 05:43:14 UTC
The "fix" applied for issue 108830 may have resolved this... Please reopen this issue if it has been resolved.
Comment 10 tonybeckham 2008-07-08 19:31:20 UTC
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)