Cannot import .reg file with "delete value"

  • 7002515
  • 01-Feb-2009
  • 27-Apr-2012

Environment

Novell ZENworks 10 Configuration Management with Support Pack 1 - 10.1 ZENworks Control Center - ZCC
Novell ZENworks 10 Configuration Management with Support Pack 1 - 10.1 Bundles

Situation

Importing registry file that contains a "delete value"
e.g., "delvalue"=-
instruction fails

ERROR: "There were errors parsing the registry file.
Please refer to the log file for more details."


Resolution

This is fixed in version 10.2 - see KB 7003225 "ZENworks 10 Configuration Management with SP2 (10.2)" which can be found at https://www.novell.com/support

Additional Information

Extract from zcc.log
01 Feb 2009 15:44:53 ============== Exception (begin) ===========================
01 Feb 2009 15:44:53 Registry File Parser : There was an error parsing the file.
 The error = Pattern Mismatch!! Unknown Pattern!!: thrown= java.lang.NullPointerException
01 Feb 2009 15:44:53 Exception occured
java.lang.NullPointerException
    at com.novell.zenworks.admin.extensions.actions.regedit.RegistryTreeUtil.createRegValue(RegistryTreeUtil.java:441)
    at com.novell.zenworks.admin.extensions.actions.regedit.RegFileParser.parseValueToDelete(RegFileParser.java:1128)
    at com.novell.zenworks.admin.extensions.actions.regedit.RegFileParser.parseLineData(RegFileParser.java:309)
    at com.novell.zenworks.admin.extensions.actions.regedit.RegFileParser.parseFile(RegFileParser.java:548)
    at com.novell.zenworks.admin.extensions.actions.regedit.RegistryEditAction.importFilePopUpClosed(RegistryEditAction.java:428)
    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:585)
    at com.novell.web.controls.WebControl.fireEvent(WebControl.java:1977)
    at com.novell.web.controls.WebControl.fireEvent(WebControl.java:1952)
    at com.novell.web.controls.BaseDialog.close(BaseDialog.java:442)
    at com.novell.web.controls.BaseDialog.close(BaseDialog.java:426)
    at com.novell.zenworks.admin.extensions.actions.regedit.ImportFileDialog.importFileOk_Click(ImportFileDialog.java:87)
    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:585)
    at com.novell.web.controls.WebControl.fireEvent(WebControl.java:1977)
    at com.novell.web.controls.BasePostbackControl.fireCommand(BasePostbackControl.java:462)
    at com.novell.web.controls.Button.raisePostBackEvent(Button.java:474)
    at com.novell.web.controls.Page.raisePostBackEvent(Page.java:884)
    at com.novell.web.controls.Page.raisePostBackEvents(Page.java:871)
    at com.novell.web.controls.Page.internalProcessRequest(Page.java:583)
    at com.novell.web.controls.Page.processRequest(Page.java:527)
    at com.novell.zenworks.fw.web.internal.layout.Index.processRequest(Index.java:479)
    at com.novell.web.internal.controls.PageTag.doEndTag(PageTag.java:86)
    at org.apache.jsp.jsp.index_jsp._jspService(index_jsp.java:176)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at com.novell.web.NJWCServlet.serviceImpl(NJWCServlet.java:97)
    at com.novell.zenworks.fw.web.internal.ZENworksServlet.service(ZENworksServlet.java:84)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at com.patchlink.sapphire.web.pages.vulnerability.session.HibernateSessionFilter.doFilter(HibernateSessionFilter.java:75)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at com.novell.zenworks.tomcat.ZENRequestValve.invoke(ZENRequestValve.java:1122)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
    at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
    at java.lang.Thread.run(Thread.java:595)
01 Feb 2009 15:44:53

Exception Info:
01 Feb 2009 15:44:53     Class....... java.lang.NullPointerException
01 Feb 2009 15:44:53     Message..... null
01 Feb 2009 15:44:53     Logged at... RegFileParser.......581
01 Feb 2009 15:44:53 ============== Exception (end) =============================