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 179409 - NullPointerException at org.netbeans.modules.glassfish.javaee.db.DriverMaps.getUrlPrefix
Summary: NullPointerException at org.netbeans.modules.glassfish.javaee.db.DriverMaps.g...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-12 04:17 UTC by wvreeven
Modified: 2010-03-04 22:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 158145


Attachments
stacktrace (1.59 KB, text/plain)
2010-01-12 04:17 UTC, wvreeven
Details

Note You need to log in before you can comment on or make changes to this bug.
Description wvreeven 2010-01-12 04:17:25 UTC
Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) Client VM, 14.2-b01, Java(TM) SE Runtime Environment, 1.6.0_16-b01
OS: Linux, 2.6.30-2-686-bigmem, i386

User Comments:
wvreeven: I am creating a Maven Web Application. When I try to add a Persistence Unit, the NPE occurs.

GUEST: trying to create entity classes from a db shema

GUEST: trying to generate Entity classes from a Database



Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.modules.glassfish.javaee.db.DriverMaps.getUrlPrefix(DriverMaps.java:108)
   at org.netbeans.modules.glassfish.javaee.db.DbUtil.normalizePoolMap(DbUtil.java:119)
   at org.netbeans.modules.glassfish.javaee.db.Hk2DatasourceManager$ConnectionPool.normalize(Hk2DatasourceManager.java:290)
   at org.netbeans.modules.glassfish.javaee.db.Hk2DatasourceManager.readDatasources(Hk2DatasourceManager.java:199)
   at org.netbeans.modules.glassfish.javaee.db.Hk2DatasourceManager.getDatasources(Hk2DatasourceManager.java:105)
   at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getDatasources(ServerInstance.java:693)
Comment 1 wvreeven 2010-01-12 04:17:31 UTC
Created attachment 93213 [details]
stacktrace
Comment 2 Quality Engineering 2010-03-04 22:13:18 UTC
Integrated into 'main-golden', will be available in build *201003050200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/d0f90bc833b2
User: Vince Kraemer <vkraemer@netbeans.org>
Log: #179409: prevent an NPE
Comment 3 Vince Kraemer 2010-03-04 22:25:06 UTC
in the trunk