NullPointerException adding to Restricted IP Address

  • 7014977
  • 29-Apr-2014
  • 29-Apr-2014

Environment

Novell ZENworks Configuration Management 11.2

Situation

When trying to add an IP Address to Restricted IP addresses on Primary Server:

ERROR:

Exception occured
java.lang.NullPointerException
 at
com.Novell.zenworks.admin.pages.settings.RestrictedIPs.addRestrictedIPDNSNames(RestrictedIPs.java:299)
 at
com.Novell.zenworks.admin.pages.settings.RestrictedIPs.onSaveSettings(RestrictedIPs.java:259)
 at
com.Novell.zenworks.fw.web.internal.layout.SettingsPluginTemplate.fireOnSaveEvent(SettingsPluginTemplate.java:331)
 at
com.Novell.zenworks.fw.web.internal.layout.SettingsPluginTemplate.applySettings(SettingsPluginTemplate.java:227)
 at
com.Novell.zenworks.fw.web.internal.layout.Settings.applyImpl(Settings.java:1206)
 at
com.Novell.zenworks.fw.web.internal.layout.Settings.onclick_ApplyAll(Settings.java:1115)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:597)

Resolution

This is fixed in version 11.2.4 - see KB 7012027 "ZENworks Configuration Management 11.2.4 - update information and list of fixes" which can be found at http:////support.microfocus.com/kb/doc.php?id=7012027 

Workaround:  Add all IP addresses to DNS.

Cause

The code is checking whether the IP addresses share a common DNS name or not.  If DNS returns empty for any of the addresses, the exception was uncaught.