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 151944 - Unable to deploy a web application when JDBC Driver Deployment is enabled
Summary: Unable to deploy a web application when JDBC Driver Deployment is enabled
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P1 blocker (vote)
Assignee: Nitya Doraisamy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-31 07:46 UTC by dpkumar
Modified: 2008-11-06 05:19 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Server.log (3.26 KB, text/plain)
2008-10-31 07:46 UTC, dpkumar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dpkumar 2008-10-31 07:46:16 UTC
NB Build:200810291401
GlassFish V3-B28c
JDK:1.5.0_13

Steps to reproduce:
-Install NB and GlassFish V3
-Open IDE and register V3 with default domain
-Enable JDBC Driver Deployment
-Create a simple web application(Hello world)-File>New Project>Java web>Web Application.Set JAVA EE-EE5 and target setver-V3
-create a JDBC resource into the project-Right click on the application select New>Others>GlassFish>JDBC
resources>Create New JDBC ConnectionPool provide default values.
-Right click on the application select Clean and Build/Deploy.

Issue:
When trying to deploy the application getting deployment error

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
Deployment error:
null
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:198)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:273)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.NullPointerException
        at java.util.Arrays$ArrayList.<init>(Arrays.java:2355)
        at java.util.Arrays.asList(Arrays.java:2341)
        at
org.netbeans.modules.glassfish.eecommon.api.JDBCDriverDeployHelper.getMissingDrivers(JDBCDriverDeployHelper.java:96)
        at org.netbeans.modules.glassfish.javaee.JDBCDriverDeployerImpl.deployJDBCDrivers(JDBCDriverDeployerImpl.java:87)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:144)
        ... 16 more
BUILD FAILED (total time: 0 seconds)
Comment 1 dpkumar 2008-10-31 07:46:58 UTC
Created attachment 72967 [details]
Server.log
Comment 2 _ pcw 2008-10-31 19:22:10 UTC
JDBCDriverDeployerHelper#96 is:

    Collection driversLocation = Arrays.asList(driverLoc.listFiles(new Utils.JarFileFilter()));   

listFiles() is allowed to return null when the folder does not exist or if there is an IOException.  OTOH, passing null
to asList() is illegal so this clearly needs to be cleaned up.

Would be helpful to know if this as an expected condition though.
Comment 3 Nitya Doraisamy 2008-10-31 19:35:29 UTC
This is a P1, invalid parameter is being passed to 'getMissingDrivers' in case of v3. Any deploy with JDBC Driver
Deployment is enabled will fail for v3
Comment 4 Nitya Doraisamy 2008-11-01 07:39:50 UTC
Fixed in trunk
http://hg.netbeans.org/main/rev/b09c3560b3fc
Comment 5 Quality Engineering 2008-11-01 16:31:01 UTC
Integrated into 'main-golden', will be available in build *200811011401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b09c3560b3fc
User: nityad@netbeans.org
Log: #151944 : Fix for invalid parameter being passed for on v3 if JDBC Driver deployment is enabled
Comment 6 dpkumar 2008-11-03 11:04:02 UTC
Issue is verified in the trunk 200811011401, hence changing status to verified.
Comment 7 Quality Engineering 2008-11-06 05:19:23 UTC
Integrated into 'main-golden', will be available in build *200811060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5333928fd75f
User: nityad@netbeans.org
Log: #151944 : Corrected null check per review comments regarding Parameters.notNull()