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 7765 - NullPointerException in HttpServerSettings.setPort()
Summary: NullPointerException in HttpServerSettings.setPort()
Status: CLOSED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Internal Server (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P2 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-27 14:35 UTC by Martin Ryzl
Modified: 2003-07-01 09:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (9.17 KB, text/plain)
2001-07-20 20:39 UTC, dmladek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Ryzl 2000-09-27 14:35:37 UTC
The property is set but the exception is thrown immediately after setting and it
means that sometimes an event is not fired apart from fact that it may affect
loading of project.
The main problem is that it may cause troubles to another modules that depend on
http server.

java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
        at org.netbeans.modules.httpserver.HttpServerSettings.setPort(HttpServer
Settings.java:301)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.openide.options.SystemOption.readExternal(SystemOption.java:239)
        at org.netbeans.modules.httpserver.HttpServerSettings.readExternal(HttpS
erverSettings.java:182)
        at org.openide.util.SharedClassObject$WriteReplace.readObject(SharedClas
sObject.java:380)
        at java.lang.reflect.Method.invoke(Native Method)
        at java.io.ObjectInputStream.invokeObjectReader(ObjectInputStream.java:2
213)
        at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1410)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
        at org.netbeans.modules.projects.content.XMLSupport.decodeValue(XMLSuppo
rt.java:88)
        at org.netbeans.modules.projects.content.XMLSettingsSet.read(XMLSettings
Set.java:198)
        at org.openidex.projects.ProjectSupport.projectOpen(ProjectSupport.java:
270)
        at org.netbeans.modules.projects.PSupport.projectOpen(PSupport.java:161)

        at org.netbeans.core.NbProjectOperation.setProject(NbProjectOperation.ja
va:146)
        at org.netbeans.core.NbProjectOperation.openOrCreateProject(NbProjectOpe
ration.java:198)
        at org.netbeans.core.NonGui.run(NonGui.java:399)
        at org.netbeans.core.Main.run(Main.java:191)
        at org.openide.TopManager.initializeTopManager(TopManager.java:115)
        at org.openide.TopManager.getDefault(TopManager.java:81)
        at org.netbeans.core.Main.main(Main.java:275)
        at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
        at java.lang.Thread.run(Thread.java:484)
Comment 1 dmladek 2000-10-02 15:29:59 UTC
Yes, this occures on linux platform too.
Comment 2 dmladek 2000-10-03 10:39:59 UTC
also on linux
[1114CE]
jdk1.3.0-
==============
After the first attemt to change http port the mentioned Exception is thrown.
The thrown exception is same but details are different.
see IDE log,pls.
Comment 3 dmladek 2000-10-03 10:40:59 UTC
Created attachment 181 [details]
IDE log
Comment 4 Petr Jiricka 2000-10-03 15:48:59 UTC
Fixed [1115]
Comment 5 Quality Engineering 2003-07-01 09:34:49 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.