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 181899 - Internal NullPointerException when deploying enterprise ear to glassfish - jar/war work fine individually and ear deploys perfectly on commandline
Summary: Internal NullPointerException when deploying enterprise ear to glassfish - ja...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-12 01:48 UTC by davidacampbell
Modified: 2010-03-14 19:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davidacampbell 2010-03-12 01:48:53 UTC
I have an enterprise ear that deploys just fine on the commandline, but in nebeans it gives the following:

Initial deploying tabs to /big/dcampbel/clients/deh/tabs/cr_46258_2/tabs/nb/tabs/dist/gfdeploy/tabs
Completed initial distribution of tabs
/big/dcampbel/clients/deh/tabs/cr_46258_2/tabs/nb/tabs/nbproject/build-impl.xml:290: 
Deployment error:
null
See the server log for details.
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:205)
        at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:103)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        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:278)
        at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:521)
        at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.NullPointerException
        at java.io.UnixFileSystem.compare(UnixFileSystem.java:306)
        at java.io.File.compareTo(File.java:1864)
        at java.io.File.compareTo(File.java:137)
        at java.util.TreeMap.put(TreeMap.java:562)
        at java.util.TreeSet.add(TreeSet.java:255)
        at java.util.AbstractCollection.addAll(AbstractCollection.java:322)
        at java.util.TreeSet.addAll(TreeSet.java:312)
        at org.netbeans.modules.glassfish.javaee.ResourceRegistrationHelper.getResourceDirs(ResourceRegistrationHelper.java:104)
        at org.netbeans.modules.glassfish.javaee.ResourceRegistrationHelper.deployResources(ResourceRegistrationHelper.java:85)
        at org.netbeans.modules.glassfish.javaee.ide.FastDeploy.initialDeploy(FastDeploy.java:121)
        at org.netbeans.modules.j2ee.deployment.impl.TargetServer.deploy(TargetServer.java:623)
        at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:170)
        ... 16 more
BUILD FAILED (total time: 26 seconds)
Comment 1 Vince Kraemer 2010-03-12 11:44:04 UTC
thanks.  i will check it out.
Comment 2 Vince Kraemer 2010-03-12 14:36:36 UTC
this is pretty hard to reproduce, but we can prevent it, easy enough.
Comment 3 davidacampbell 2010-03-12 16:42:10 UTC
are there any debugging flags I could set to help you track the cause?
Comment 4 Vince Kraemer 2010-03-13 20:58:18 UTC
http://hg.netbeans.org/main-golden/rev/17383baa5b6d
Comment 5 davidacampbell 2010-03-14 19:57:38 UTC
OK thanks.  Note that I have filed additional bug http://netbeans.org/bugzilla/show_bug.cgi?id=181992 because having fixed this issue, other problems are apparent.