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.
There are enough cases where Deploy might see a ServerDebugInfo == null. And it currently can not handle that case. The following diff shows the problem: --- j2eeserver-netbeans_release41-BLD200504050818/ant/antsrc/org/netbeans/modules/j2ee/ant/Deploy.java 2005-02-16 08:14:00.000000000 -0800 +++ j2eeserver/ant/antsrc/org/netbeans/modules/j2ee/ant/Deploy.java 2005-04-13 14:11:50.610159880 -0700 @@ -65,6 +80,8 @@ } ServerDebugInfo sdi = jmp.getServerDebugInfo (); + + if (sdi != null) { String h = sdi.getHost(); String transport = sdi.getTransport(); String address = ""; //NOI18N @@ -78,7 +95,7 @@ getProject().setProperty("jpda.transport", transport); getProject().setProperty("jpda.host", h); getProject().setProperty("jpda.address", address); - + } // end of if (sdi != null) } catch (Exception ex) { throw new BuildException(ex); }
Is not it creator only centric? I'v seen this behaviour from time to time, but after changes in other area, I cannot see this anymore in 4.1 bits at all... Can you attach a scenario where you can reproduce this in NetBeans 4.1 itself? I guess Creator plugin is not uptodate with AS 8.1 plugin which is in 4.1
J2eeModuleProvider can return null. And that's reason enough to handle it down the line;-) From j2eeserver-netbeans_release41-BLD200504050818/src/org/netbeans/modules/j2ee/deployment/devmodules/spi/J2eeModuleProvider.java -------------------------------------------- public final ServerDebugInfo getServerDebugInfo () { ServerInstance si = ServerRegistry.getInstance ().getServerInstance (getServerInstanceID ()); StartServer ss = si.getStartServer(); if (ss == null) { return null; } .... Thanks, -- Marco
I fixed it in the trunk. It is a safe fix anyway. Will start the process for 4.1 integration.
41_HR_FIX
When approved, can someone from Prague integrate this in the 4.1 branch?
Fix looks OK, I will integrate it.
No regressions found in build 200504141800. QE agrees with release41 branch integration.
Fix integrated to release41 branch.
v