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.
Build: NetBeans IDE 6.5 (Build 200811100001) VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33 OS: Linux, 2.6.24-22-generic, i386 User Comments: GUEST: adding a persistence unit. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.j2ee.sun.api.restricted.ResourceConfigurator.isSameDatabaseConnection(ResourceConfigurator.java:565) at org.netbeans.modules.j2ee.sun.api.restricted.ResourceConfigurator.createCheckForConnectionPool(ResourceConfigurator.java:1112) at org.netbeans.modules.j2ee.sun.api.restricted.ResourceConfigurator.createDataSource(ResourceConfigurator.java:921) at org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeploymentConfiguration.createDatasource(SunONEDeploymentConfiguration.java:338) at org.netbeans.modules.j2ee.sun.ide.j2ee.ModuleConfigurationImpl.createDatasource(ModuleConfigurationImpl.java:226) at org.netbeans.modules.j2ee.deployment.config.ConfigSupportImpl.createDatasource(ConfigSupportImpl.java:363)
Created attachment 74985 [details] stacktrace
This issue has already 500 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=99014
Downgrade the priority to P3 since the issue has only two duplicates. It seems that report Exception opens incorrect bug.
The exception is caused by the database url parser returning a null value for the url prefix. Which database were you trying to connect to & can you provide the url for it ?
Fixed. Added check for possible null value returned for url prefix
Integrated into 'main-golden', will be available in build *200904151401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/9a9d72462f4b User: nityad@netbeans.org Log: #155499 : Check for possible null value when parsing url