3 Replies Latest reply on Jun 3, 2014 4:21 PM by Isaac Matta

    NSH script Job Error - Found illegal value for property TARGET

      I have written a NSH script that takes 2 custom defined parameters. For ex:

       

      ??TARGET.ENV-TEST??

      ??TARGET.DATACENTER??

       

      I was able to run the job on most of the systems and able to get the right parameters.

      But once in a while I get to see the following error

       

      " Found illegal value for property TARGET: Found illegal value for property ENVIRONMENT: element is not correct"

       

      I have verified that these properties are set correctly on the server.

      I was also able to "verify" the host and push the ACL, and "Update server properties".

       

      Does anyone know why does this happen ?

       

      When I observed this error in the past, I had to decommission the server from BL, and add it again.

       

      Any help will be appreciated.

        • 1. Re: NSH script Job Error - Found illegal value for property TARGET
          Bill Robinson

          What is the value of ENVIRONMENT on this target that failed ?

          • 2. Re: NSH script Job Error - Found illegal value for property TARGET
            Rajeev Gupta

            Make sure the property values which are present are from the values defined in property dictionary. Select the values from Drop down only if its defined in dectionary and not entered manually.

             

            Also, check for ACL being properly updated for this server.

             

            property.JPG.jpg

            • 3. Re: NSH script Job Error - Found illegal value for property TARGET
              Isaac Matta

              From appserver.log:

               

              [03 Jun 2014 20:34:09,712] [Client-Connections-Thread-5] [INFO] [someone@something.com:BLAdmins:10.111.55.66] [Client] Executing <Execute Against> Action against group targets:  for job: /VONAppRPMs/App Management/Apps - List

              [03 Jun 2014 20:34:12,776] [Job-Execution-1] [INFO] [someone@something.com:BLAdmins:] [NSHScript] Started running the job 'Apps - List' with priority 'NORMAL' on application server 'blogic-app-04.kewr0.s.vonagenetworks.net'(2,000,000)

              [03 Jun 2014 20:34:14,608] [WorkItem-Thread-34] [INFO] [someone@something.com:BLAdmins:] [NSHScript] Executing work item NSH Script Job:Apps - List; Server:nagios-poller-vm-01.klas0.s.vonagenetworks.net;  on application server: blogic-app-04.kewr0.s.vonagenetworks.net

              [03 Jun 2014 20:34:15,121] [WorkItem-Thread-34] [ERROR] [someone@something.com:BLAdmins:] [NSHScript] Found illegal value for property TARGET: Found illegal value for property ENVIRONMENT: element is not correct

              java.lang.IllegalStateException: Found illegal value for property TARGET: Found illegal value for property ENVIRONMENT: element is not correct

                      at com.bladelogic.om.infra.model.property.LazyPropertySetInstanceImpl.validate(LazyPropertySetInstanceImpl.java:1593)

                      at com.bladelogic.om.infra.model.property.LazyPropertySetInstanceImpl.validate(LazyPropertySetInstanceImpl.java:1507)

                      at com.bladelogic.om.infra.model.property.LazyPropertySetInstanceImpl.validate(LazyPropertySetInstanceImpl.java:1501)

                      at com.bladelogic.om.infra.model.property.LazyPropertySetInstanceImpl.<init>(LazyPropertySetInstanceImpl.java:277)

                      at com.bladelogic.om.infra.model.property.PropertySetInstanceServiceImpl.createPropertySetInstance(PropertySetInstanceServiceImpl.java:1055)

                      at com.bladelogic.om.infra.model.property.PropertySetInstanceServiceImpl.createPropertySetInstance(PropertySetInstanceServiceImpl.java:1044)

                      at com.bladelogic.om.infra.model.job.script.NSHScriptJobWorkItemImpl.getPropertyReferenceValue(NSHScriptJobWorkItemImpl.java:437)

                      at com.bladelogic.om.infra.model.job.script.NSHScriptJobWorkItemImpl.expandParameters(NSHScriptJobWorkItemImpl.java:385)

                      at com.bladelogic.om.infra.model.job.script.NSHScriptJobWorkItemImpl.createMasterScript(NSHScriptJobWorkItemImpl.java:640)

                      at com.bladelogic.om.infra.model.job.script.ScriptBasedJobWorkItemImpl.executeScript(ScriptBasedJobWorkItemImpl.java:227)

                      at com.bladelogic.om.infra.model.job.script.NSHScriptJobWorkItemImpl.executeScript(NSHScriptJobWorkItemImpl.java:703)

                      at com.bladelogic.om.infra.model.job.script.NSHScriptJobWorkItemImpl.execute(NSHScriptJobWorkItemImpl.java:204)

                      at com.bladelogic.om.infra.app.service.workitem.WorkItem.doExecute(WorkItem.java:114)

                      at com.bladelogic.om.infra.app.service.workitem.thread.WorkItemThread.execute(WorkItemThread.java:176)

                      at com.bladelogic.om.infra.app.service.workitem.thread.WorkItemThread.execute(WorkItemThread.java:51)

                      at com.bladelogic.om.infra.app.service.thread.BlBlockingThread.run(BlBlockingThread.java:95)

              [03 Jun 2014 20:34:15,122] [Job-Execution-2] [ERROR] [someone@something.com:BLAdmins:] [NSHScript] Found illegal value for property TARGET: Found illegal value for property ENVIRONMENT: element is not correct

              [03 Jun 2014 20:34:15,281] [Job-Execution-2] [ERROR] [someone@something.com:BLAdmins:] [NSHScript] The job 'Apps - List' has failed

              [03 Jun 2014 20:35:04,965] [Scheduled-System-Tasks-Thread-12] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 3589210112,Free JVM (B): 2516944168,Used JVM (B): 1072265944,VSize (B): 5398581248,RSS (B): 4157640704,Used File Descriptors: 290

              [03 Jun 2014 20:36:04,964] [Scheduled-System-Tasks-Thread-7] [INFO] [System:System:] [Memory Monitor] Total JVM (B): 3589210112,Free JVM (B): 2484564824,Used JVM (B): 1104645288,VSize (B): 5398581248,RSS (B): 4157685760,Used File Descriptors: 289