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 155499 - NullPointerException at org.netbeans.modules.j2ee.sun.api.restricted.ResourceConfigurator.isSameDatabaseConnection
Summary: NullPointerException at org.netbeans.modules.j2ee.sun.api.restricted.Resource...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (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-12-15 19:52 UTC by antonioni
Modified: 2009-04-15 19:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 144266


Attachments
stacktrace (1.57 KB, text/plain)
2008-12-15 19:53 UTC, antonioni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description antonioni 2008-12-15 19:52:58 UTC
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)
Comment 1 antonioni 2008-12-15 19:53:02 UTC
Created attachment 74985 [details]
stacktrace
Comment 2 Exceptions Reporter 2008-12-16 08:24:06 UTC
This issue has already 500 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=99014
Comment 3 Petr Blaha 2008-12-16 08:29:43 UTC
Downgrade the priority to P3 since the issue has only two duplicates. It seems that report Exception opens incorrect bug.
Comment 4 Nitya Doraisamy 2008-12-16 22:23:58 UTC
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 ?
Comment 5 Nitya Doraisamy 2009-04-15 04:59:07 UTC
Fixed. Added check for possible null value returned for url prefix
Comment 6 Quality Engineering 2009-04-15 19:32:12 UTC
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