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 200519 - [70cat] NullPointerException at java.util.Hashtable.put
Summary: [70cat] NullPointerException at java.util.Hashtable.put
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-29 13:20 UTC by muellermi
Modified: 2011-08-10 21:34 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 179735


Attachments
stacktrace (4.29 KB, text/plain)
2011-07-29 13:20 UTC, muellermi
Details
stacktrace (4.29 KB, text/plain)
2011-07-29 13:29 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2011-07-29 13:20:48 UTC
Build: NetBeans IDE Dev (Build 201107280600)
VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147
OS: Windows XP

User Comments:
muellermi: trying to refresh a web service reference

GUEST: tried to refresh WebService Reference

muellermi: right click on web service reference




Stacktrace: 
java.lang.NullPointerException
   at java.util.Hashtable.put(Hashtable.java:432)
   at java.beans.FeatureDescriptor.setValue(FeatureDescriptor.java:194)
   at org.netbeans.modules.websvc.core.jaxws.nodes.JaxWsClientNode.refreshService(JaxWsClientNode.java:359)
   at org.netbeans.modules.websvc.core.jaxws.actions.JaxWsRefreshAction.performAction(JaxWsRefreshAction.java:77)
   at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:586)
   at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
Comment 1 muellermi 2011-07-29 13:20:52 UTC
Created attachment 109696 [details]
stacktrace
Comment 2 muellermi 2011-07-29 13:29:28 UTC
Created attachment 109697 [details]
stacktrace

again and again... still annoying
Comment 3 Denis Anisimov 2011-08-08 07:43:56 UTC
This is the new functionality available in dev version only.
So this is not 7.0 version.

It is the consequence of usage Hashtable for pair storage with get/setValue accessor methods. As result setValue() doesn't allow to set null as value for pair. And there is no "remove" method. So code should be somehow rewritten to clear value without null value set.
Comment 4 Denis Anisimov 2011-08-08 07:48:31 UTC
web-main#fe4ea5d60c8c
Comment 5 Quality Engineering 2011-08-10 21:34:13 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/fe4ea5d60c8c
User: Denis Anisimov <ads@netbeans.org>
Log: Fix for BZ#200519 - [70cat] NullPointerException at java.util.Hashtable.put