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.
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)
Created attachment 72967 [details] Server.log
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.
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
Fixed in trunk http://hg.netbeans.org/main/rev/b09c3560b3fc
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
Issue is verified in the trunk 200811011401, hence changing status to verified.
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()