Linux bundles with run script action won't run due to 'Illegal group reference' java exception

  • 7010778
  • 13-Sep-2012
  • 12-Nov-2012

Environment

Novell ZENworks Configuration Management 11.2 Bundles
Novell ZENworks Configuration Management 11.2.1 Bundles

Situation

Linux bundles with run script action won't run throwing the following java exception:

[Debug] [09/04/2012 13:34:06.686] [] [29612] [ZenworksAgent] [749] [BundleManager] [InnerException  Stack Trace: java.lang.IllegalArgumentException: Illegal group reference
        at java.util.regex.Matcher.appendReplacement(Unknown Source)
        at com.novell.zenworks.agent.core.zmd.config.ConfigManager.ParseMacros(ConfigManager.java:331)
        at com.novell.zenworks.agent.zenbundle.schema.LocalAppData.getSmallActionSet(LocalAppData.java:459)
        at com.novell.zenworks.agent.zenbundle.schema.LocalAppData.getActionSet(LocalAppData.java:443)
        at com.novell.zenworks.agent.zenbundle.core.appitems.AppActionItem.installApp(AppActionItem.java:1492)
        at com.novell.zenworks.agent.zenbundle.core.appitems.AppActionItem.installApp(AppActionItem.java:1319)
        at com.novell.zenworks.agent.zenbundle.core.appitems.AppActionItem.runApp(AppActionItem.java:1187)
        at com.novell.zenworks.agent.zenbundle.core.appitems.AppActionItem.processAction(AppActionItem.java:813)
        at com.novell.zenworks.agent.zenbundle.core.appitems.AppActionItem.processSelfHealingLaunch(AppActionItem.java:2641)
        at com.novell.zenworks.agent.zenbundle.cli.CommandLineUtils.DoAppAction(CommandLineUtils.java:187)
        at com.novell.zenworks.agent.zenbundle.cli.CommandLineUtils.DoAppAction(CommandLineUtils.java:60)
        at com.novell.zenworks.agent.zenbundle.cli.LaunchBundleHandler.processCommandLine(LaunchBundleHandler.java:120)
        at com.novell.zenworks.agent.core.zmd.zacserver.CommandLineManager.processCommand(CommandLineManager.java:239)
        at com.novell.zenworks.agent.core.zmd.zacserver.CommandLineManager.parseArgs(CommandLineManager.java:168)
        at com.novell.zenworks.agent.core.zmd.zacserver.CommandLineManager.processCommandLine(CommandLineManager.java:96)
        ...

Resolution

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