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 30920 - Problems with Tomcat plug-in upgrading from 3.4.1 to 3.5
Summary: Problems with Tomcat plug-in upgrading from 3.4.1 to 3.5
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks: 29199
  Show dependency tree
 
Reported: 2003-02-10 20:38 UTC by Jason Rush
Modified: 2006-06-05 00:51 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 Jason Rush 2003-02-10 20:38:15 UTC
Using 200302100100 dev build, there are some problems with 
the Tomcat plug-in when the user imports settings from 
NetBeans 3.4.1.  The only thing special about my user 
directory is that I had used 3.4.1 to download the HTTP 
Monitor module from the NB Update Center.  After importing 
the settings into 3.5, I get the NPE listed below when 
expanding the Server Registry.  Additionally, there will 
be no Tomcat 4.0 node under Installed Servers.

java.lang.NullPointerException
	at 
org.netbeans.modules.tomcat.tomcat40.Tomcat40Installation.i
nternalTomcatConfigurationFilesPreparing
(Tomcat40Installation.java:512)
	at 
org.netbeans.modules.tomcat.tomcat40.Tomcat40ServerInstall.
makeInstallation(Tomcat40ServerInstall.java:43)
	at 
org.netbeans.modules.tomcat.tomcat40.Tomcat40ServerInstall.
restored(Tomcat40ServerInstall.java:31)
	at 
org.netbeans.modules.j2ee.impl.ServerRegistryImpl.initPlugi
n(ServerRegistryImpl.java:160)
	at 
org.netbeans.modules.j2ee.impl.ServerRegistryImpl.initLayer
File(ServerRegistryImpl.java:144)
	at 
org.netbeans.modules.j2ee.impl.ServerRegistryImpl.setListen
er(ServerRegistryImpl.java:168)
	at 
org.netbeans.modules.j2ee.impl.ServerRegistryImpl.getDefaul
tWebInstance(ServerRegistryImpl.java:332)
	at 
org.netbeans.modules.j2ee.ui.ServerRegistryNode.createKeyNo
des(ServerRegistryNode.java:123)
	at 
org.netbeans.modules.j2ee.ui.ServerRegistryNode$RegistryChi
ldren.createNodes(ServerRegistryNode.java:291)
	at org.openide.nodes.Children$Keys$KE.nodes
(Children.java:1911)
	at org.openide.nodes.ChildrenArray.nodesFor
(ChildrenArray.java:131)
	at org.openide.nodes.Children$Info.nodes
(Children.java:1005)
	at org.openide.nodes.Children.justComputeNodes
(Children.java:511)
	at org.openide.nodes.ChildrenArray.nodes
(ChildrenArray.java:73)
	at org.openide.nodes.Children.computeNodes
(Children.java:426)
	at org.openide.nodes.Children.getNodes
(Children.java:319)
	at org.openide.nodes.Children.findChild
(Children.java:265)
	at org.openide.nodes.Children.getNodes
(Children.java:370)
	at org.openide.nodes.FilterNode$Children.getNodes
(FilterNode.java:1139)
	at org.openide.nodes.FilterNode$Children.getNodes
(FilterNode.java:1139)
	at org.openide.nodes.FilterNode$Children.getNodes
(FilterNode.java:1139)
	at org.openide.nodes.FilterNode$Children.getNodes
(FilterNode.java:1139)
	at org.openide.explorer.view.TreeView$3.run
(TreeView.java:702)
	at org.openide.util.Task.run(Task.java:136)
	at org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:328)
[catch] at org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:667)
Comment 1 Jason Rush 2003-02-11 05:56:00 UTC

*** This issue has been marked as a duplicate of 29199 ***
Comment 2 Jason Rush 2003-02-21 07:52:24 UTC
Upon further investigation, I don't think this is a 
exactly a duplicate of 29199.  I'm reopening this one as 
it needs to be fixed independently.  29199 specifies a 
TargetInvocationException, but this one is an NPE and the 
inavailability of the Tomcat 4.0 server.

I just tried the following:

1. Install NetBeans 3.4.1.
2. Download monitor.nbm from Update Center.
3. Install NetBeans 3.5 dev build (200302220100, in my 
case)
4. Start IDE and import settings from 3.4.1 user directory.
5. Expand Server Registry node.
6. NPE is given as indicated in this bug.
7. Expand Installed Server node.
8. No Tomcat 4.0 node is available.
Comment 3 Petr Jiricka 2003-02-21 08:40:04 UTC
Assigning to Milan, as he is dealing with the other 
related bug.
Comment 4 Milan Kuchtiak 2003-02-21 11:11:08 UTC
The bug should be fixed from Netbeans_dev 200302210100.

By the way is that number of build you wrote (200302220100)
correct ?
The date when you wrote the comment was 02/20/2003.

Comment 5 Jason Rush 2003-02-21 14:07:37 UTC
My comment was incorrect.  The build number I was using 
for verification was 200302200100 (and unfortunately, I 
put the wrong number in all bugs I verified).

I will try with 200302210100 in the morning
Comment 6 Jason Rush 2003-02-27 08:50:51 UTC
Verified in NetBeans dev build 200302260100.