4 Replies Latest reply on Oct 26, 2017 7:22 AM by Bill Robinson

    Unexpected Exception while using bulkApplyBlAclPolicyByGroup

    Cody Dean

      Good Morning, well, almost afternoon here,

      I am trying to add an ACL Policy to all the objects under our Jobs/Workspace workspace and keep getting the following error:

       

      Info07/07/2014 11:21:27

      Command execution failed.  Unexpected exception while handling request.com.bladelogic.om.infra.model.rbac.BulkAclModifierService_bulkApplyAclPolicy(int, int, boolean, boolean)

       

      The command I am running from an NSH script is:

       

      blcli Group bulkApplyBlAclPolicyByGroup "/Workspace" "JOB_GROUP" "_Default ACL Policy_" "true" "false"

       

      Any suggestions would be greatly appreciated.

       

      Thank You,
      Cody

        • 1. Re: Unexpected Exception while using bulkApplyBlAclPolicyByGroup
          Bill Robinson

          can you get the entire stack trace out - maybe in the appserver log or the blcli log ?

          • 2. Re: Re: Unexpected Exception while using bulkApplyBlAclPolicyByGroup
            Cody Dean
            Header 1

            com.bladelogic.om.infra.mfw.util.BlException: Unexpected exception while handling request.com.bladelogic.om.infra.model.rbac.BulkAclModifierService_bulkApplyAclPolicy(int, int, boolean, boolean)

              at com.bladelogic.om.infra.app.api.manage.APIMethodInvocationProvider.executeRequest(APIMethodInvocationProvider.java:64)

              at com.bladelogic.om.infra.app.api.manage.APIMethodInvocationProvider.invoke(APIMethodInvocationProvider.java:39)

              at com.bladelogic.om.infra.app.service.routing.RoutingServiceImpl.invokeMethodLocally(RoutingServiceImpl.java:267)

              at com.bladelogic.om.infra.app.service.routing.RoutingServiceImpl.invoke(RoutingServiceImpl.java:210)

              at com.bladelogic.om.infra.app.api.manage.APIRequestManager.executeRequest(APIRequestManager.java:30)

              at com.bladelogic.om.infra.message.app.frame.APIMessageFrame.service(APIMessageFrame.java:113)

              at com.bladelogic.om.infra.mfw.net.ClientWorkerThread.processRequest(ClientWorkerThread.java:385)

              at com.bladelogic.om.infra.mfw.net.ClientWorkerThread.processClientRequest(ClientWorkerThread.java:282)

              at com.bladelogic.om.infra.mfw.net.ClientWorkerThread.handleClientRequest(ClientWorkerThread.java:182)

              at com.bladelogic.om.infra.mfw.net.ClientWorkerThread.execute(ClientWorkerThread.java:101)

              at com.bladelogic.om.infra.mfw.net.ClientWorkerThread.execute(ClientWorkerThread.java:27)

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

            Caused by: com.bladelogic.om.infra.common.BeanException: Missing expected job run for job key : DBKey:SJobKeyImpl:23618-1

              at com.bladelogic.om.infra.common.BeanUtil.getBean(BeanUtil.java:100)

              at com.bladelogic.om.infra.model.job.JobFactory.loadJob(JobFactory.java:1416)

              at com.bladelogic.om.infra.model.job.JobFactory.loadJobs(JobFactory.java:1095)

              at com.bladelogic.om.infra.model.job.JobFactory.loadJobs(JobFactory.java:1049)

              at com.bladelogic.om.infra.model.job.JobFactory.loadJobs(JobFactory.java:1039)

              at com.bladelogic.om.infra.model.job.JobFactory.loadJobsByGroupId(JobFactory.java:717)

              at com.bladelogic.om.infra.model.job.JobFactory.findAllByGroupId(JobFactory.java:588)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierAcesImpl.getChildObjects(BulkAclModifierAcesImpl.java:137)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierImpl.bulkAclSet(BulkAclModifierImpl.java:61)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierAcesImpl.bulkAclSet(BulkAclModifierAcesImpl.java:17)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierImpl.bulkAclSet(BulkAclModifierImpl.java:101)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierAcesImpl.bulkAclSet(BulkAclModifierAcesImpl.java:17)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierImpl.bulkAclSet(BulkAclModifierImpl.java:101)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierAcesImpl.bulkAclSet(BulkAclModifierAcesImpl.java:17)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierServiceImpl.bulkApplyAclPolicy(BulkAclModifierServiceImpl.java:63)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierServiceRequestHandlerImpl.bulkApplyAclPolicy_5(BulkAclModifierServiceRequestHandlerImpl.java:261)

              at com.bladelogic.om.infra.model.rbac.BulkAclModifierServiceRequestHandlerImpl.execute(BulkAclModifierServiceRequestHandlerImpl.java:72)

              at com.bladelogic.om.infra.app.api.manage.APIMethodInvocationProvider.executeRequest(APIMethodInvocationProvider.java:54)

              ... 11 more

            Caused by: com.bladelogic.om.infra.mfw.util.BlException: Missing expected job run for job key : DBKey:SJobKeyImpl:23618-1

              at com.bladelogic.om.patch.model.job.remediation.PatchRemediationJobImpl.loadRemediationJobAssociation(PatchRemediationJobImpl.java:149)

              at com.bladelogic.om.patch.model.job.remediation.PatchRemediationJobImpl.<init>(PatchRemediationJobImpl.java:114)

              at com.bladelogic.om.patch.model.job.remediation.PatchRemediationJobFactory.createInstance(PatchRemediationJobFactory.java:33)

              at sun.reflect.GeneratedMethodAccessor1955.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

              at java.lang.reflect.Method.invoke(Unknown Source)

              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:145)

              at org.springframework.beans.factory.support.ConstructorResolver$3.run(ConstructorResolver.java:564)

              at java.security.AccessController.doPrivileged(Native Method)

              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:562)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:983)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:879)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)

              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)

              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)

              at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1087)

              at com.bladelogic.om.infra.common.BeanUtil.getBean(BeanUtil.java:95)

              ... 28 more

            • 3. Re: Unexpected Exception while using bulkApplyBlAclPolicyByGroup
              Matthew Ragland

              I am having the same issue (Missing expected job run for job key : DBKey:SJobKeyImpl:28912-2)  when attempting the following command:

               

              blcli_execute Group listAllJobGroupMembersTabSeparated 0 "${JOBGROUPID}"

               

              I realize this thread is over 3 years old, what was your resolution here?

              • 4. Re: Unexpected Exception while using bulkApplyBlAclPolicyByGroup
                Bill Robinson

                are there patching jobs in this group ?  iirc there's a problem when a run of a remediation job run gets deleted or something like that. we had another customer that ran into this (though when running a job against a smart job group) and gave them some sql to fix it.  so i'd open a ticket.  you could mention ticket #00360658 which is the other customer's ticket.