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 144145 - NullPointerException at org.netbeans.modules.j2ee.sun.ide.j2ee.DomainEditor.createSampleDatasource
Summary: NullPointerException at org.netbeans.modules.j2ee.sun.ide.j2ee.DomainEditor.c...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 9 (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nitya Doraisamy
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-16 01:48 UTC by aneeshnz
Modified: 2008-08-21 06:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 92396


Attachments
stacktrace (2.07 KB, text/plain)
2008-08-16 01:48 UTC, aneeshnz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aneeshnz 2008-08-16 01:48:18 UTC
Build: NetBeans IDE 6.5 Beta (Build 200808111757)
VM: Java HotSpot(TM) Client VM, 10.0-b22, Java(TM) SE Runtime Environment, 1.6.0_06-b02
OS: Windows XP, 5.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.j2ee.sun.ide.j2ee.DomainEditor.createSampleDatasource(DomainEditor.java:621)
        at org.netbeans.modules.j2ee.sun.ide.j2ee.DomainEditor.updateWithSampleDataSource(DomainEditor.java:592)
        at org.netbeans.modules.j2ee.sun.ide.j2ee.DomainEditor.createSampleDatasource(DomainEditor.java:564)
        at org.netbeans.modules.j2ee.sun.ide.dm.SunDeploymentManager.createSampleDataSourceinDomain(SunDeploymentManager.java:1516)
        at org.netbeans.modules.j2ee.sun.ide.sunresources.beans.ResourceUtils.createSampleDataSource(ResourceUtils.java:1040)
        at org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl.<init>(ModuleConfigurationImpl.java:120)
Comment 1 aneeshnz 2008-08-16 01:48:23 UTC
Created attachment 67599 [details]
stacktrace
Comment 2 Nitya Doraisamy 2008-08-16 02:09:23 UTC
This appears to be same as or related to IZ 139773. Investigating.
Comment 3 Nitya Doraisamy 2008-08-20 23:00:05 UTC
Plugin attempts to create a sample pool using pre-existing server datasource 'DerbyPool'. This issue happens when 
'DerbyPool' is not present. 

Simple fix, check for presence of pools and use one of them as the template
Comment 4 Nitya Doraisamy 2008-08-20 23:44:24 UTC
Fixed. http://hg.netbeans.org/main?cmd=changeset;node=42f4334b4e6b
Comment 5 Quality Engineering 2008-08-21 06:06:35 UTC
Integrated into 'main-golden', available in build *200808210201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/42f4334b4e6b
User: nityad@netbeans.org
Log: #144145  Handle case when resource DerbyPool is not present. Causes NPE