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 40862 - NPE when starting tomcat
Summary: NPE when starting tomcat
Status: RESOLVED DUPLICATE of bug 40659
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Sherold Dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-09 14:56 UTC by raulfonseca
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 raulfonseca 2004-03-09 14:56:01 UTC
This exceptions occurs always and keeps tomcat 
from starting

Annotation: Exception occurred in Request 
Processor
java.lang.NullPointerException
	at 
org.netbeans.modules.tomcat5.ide.StartTomcat$Star
tRunnable.run(StartTomcat.java:353)
	at org.openide.util.Task.run
(Task.java:136)
	at 
org.openide.util.RequestProcessor$Task.run
(RequestProcessor.java:330)
[catch] at 
org.openide.util.RequestProcessor$Processor.run
(RequestProcessor.java:686)
Comment 1 Marek Fukala 2004-03-09 15:21:51 UTC
Could you please provide some more information like:
o what build do you use?
o do you use the default (bundled) tomcat server or an external one?
o have you tried to start the IDE with clear userdir?
o ...

Thanks a lot!
Marek
Comment 2 raulfonseca 2004-03-09 16:05:07 UTC
This exception always appears after Q-Build 200403040727 
instalation, when starting bundled tomcat server.

Don't know if there is any relation, but tomcat server properties 
(in runtime tab) shows an empty Home Directory, and when I try to 
set it this exceptions occurs:
java.lang.NullPointerException
	at 
org.netbeans.modules.tomcat5.nodes.TomcatInstanceNode.getHome
(TomcatInstanceNode.java:199)
	at 
org.netbeans.modules.tomcat5.nodes.TomcatInstanceNode.access$900
(TomcatInstanceNode.java:43)
	at 
org.netbeans.modules.tomcat5.nodes.TomcatInstanceNode$5.getValue
(TomcatInstanceNode.java:355)
	at 
org.openide.explorer.propertysheet.PropUtils.updateEdFromProp
(PropUtils.java:915)
	at 
org.openide.explorer.propertysheet.PropUtils.getPropertyEditor
(PropUtils.java:882)
	at 
org.openide.explorer.propertysheet.SheetTable.onCustomEditorButton
(SheetTable.java:638)
	at 
org.openide.explorer.propertysheet.SheetTable.processMouseEvent
(SheetTable.java:555)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3195)
	at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run
(EventDispatchThread.java:100)

My user dir is the one created by previous Q-build 200402251620.

Cleaning my user dir seems to solve the problem, but this way I 
loose some netbeans settings.

thanks

Comment 3 Martin Grebac 2004-03-09 16:47:34 UTC
Seems to be connected to 5.0.18 -> 5.0.19 upgrade. Please have a look
whether you don't have directory jakarta-tomcat-5.0.18_base in your
userdir.
Comment 4 Petr Jiricka 2004-03-09 17:09:48 UTC
Still, could we make some fix which would handle this scenario more
gracefully, at least in the trunk?
Comment 5 Marek Fukala 2004-03-09 17:17:38 UTC
Why should we support importing or userdir reusing from older build
which is not officially supported? Maybe I do not fully understand you
comment Petre.
Comment 6 Petr Jiricka 2004-03-09 17:20:47 UTC
Because many users have hit this problem, especially the users in the
CAT program. We've had many bug reports caused by this. 
Comment 7 Marek Fukala 2004-03-09 17:27:40 UTC
Right, even if this applies only for users who doesn't user official
releases and do imports from various trunk builds or Qbuilds. We can
also send and additional info to the NetCAT users when they are asked
to evaluate a new build.
Comment 8 Pavel Buzek 2004-03-09 22:12:27 UTC
Maybe worth fixing in trunk but in my opinion not in release36.
Although annoying this is not a P2 since this upgrade is not
officially supported.

But I agree with Petr J that some help/advice for users should be
provided. A simple workaround for users of daily builds / Q-builds
should be to remove the tomcat instance and add it again by browsing
the correct home dir (in netbeans installation folder) and base dir
(in user dir). 

Note that in general it is strongly recomended to use different
userdir for testing of builds that are not final releases. Using a
clean userdir would help in this case.
Comment 9 Sherold Dev 2004-08-25 17:01:34 UTC

*** This issue has been marked as a duplicate of 40659 ***