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 130513 - NPE has occurred
Summary: NPE has occurred
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Tomcat (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-19 12:56 UTC by bosl999
Modified: 2008-12-24 06:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
A java.lang.NullPointerException exception has occurred. (54.88 KB, text/plain)
2008-03-19 12:58 UTC, bosl999
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bosl999 2008-03-19 12:56:45 UTC
Unexpected Exception
A java.lang.NullPointerException exception has occurred.

This happened while I was installing Netbeans IDE 6.0.1.  This version has the bundle Apache Tomcat + GlassFish 
servers.

I am upgrading from Netbeans 5.5.
Comment 1 bosl999 2008-03-19 12:58:04 UTC
Created attachment 58650 [details]
A java.lang.NullPointerException exception has occurred.
Comment 2 dlipin 2008-03-19 13:12:12 UTC
There are several NPEs in the log:
java.lang.NullPointerException
	at org.netbeans.modules.tomcat5.util.TomcatProperties.<init>(TomcatProperties.java:196)
	at org.netbeans.modules.tomcat5.TomcatManager.<init>(TomcatManager.java:143)
	at org.netbeans.modules.tomcat5.TomcatFactory.getDeploymentManager(TomcatFactory.java:205)
	at org.netbeans.modules.tomcat5.TomcatFactory.getDisconnectedDeploymentManager(TomcatFactory.java:218)
....
java.lang.NullPointerException: Null Server InstanceProperties
	at 
org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeploymentConfiguration.getDeploymentManager(SunONEDeploymentConfiguration.java:784)
	at 
org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeploymentConfiguration.getResourceConfigurator(SunONEDeploymentConfiguration.java:766)
	at 
org.netbeans.modules.j2ee.sun.share.configbean.SunONEDeploymentConfiguration.getDatasources(SunONEDeploymentConfiguration.java:1669)

...

java.lang.NullPointerException
	at 
org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler.checkUpdateElements(AutoupdateCheckScheduler.java:189)
	at 
org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler.access$300(AutoupdateCheckScheduler.java:77)
	at org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler$4.run(AutoupdateCheckScheduler.java:148)
...


If I am not mistaken, the last one is already known and seems to be fixed in 6.1 Beta.
The first two correspond to tomcat/glassfish properties, likely setting import was done incorrectly.
Reassigning.
Comment 3 Lukas Hasik 2008-03-19 14:20:25 UTC
java.lang.NullPointerException at
org.netbeans.modules.autoupdate.ui.actions.AutoupdateCheckScheduler.checkUpdateElements(AutoupdateCheckScheduler.java:189)
is being tracked as issue 121289. Fixed already.

Reassigning to tomcat module. Upgrade s responsible for copying the settings. Every module is responsible for processing
the settings...
Comment 4 Petr Hejl 2008-03-27 15:46:11 UTC
There is no exception presented to the user, just a message in the ide log. Everything works fine. I don't think user
really want to use/control the tomcat bundled in the previous ide from the new environment (it don't have to exist anymore).
Comment 5 Jayashri Visvanathan 2008-12-24 06:27:02 UTC
From previous comments, looks like the issue is longer needs a fix.