Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] pspng error

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] pspng error


Chronological Thread 
  • From: "Bee-Lindgren, Bert A" <>
  • To: Guerin Francoise <>, "" <>
  • Subject: Re: [grouper-users] pspng error
  • Date: Thu, 30 Jun 2016 20:37:24 +0000
  • Accept-language: en-US
  • Authentication-results: spf=none (sender IP is ) ;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Thanks for the details. I'll certainly investigate. 

Is etc:pspng:provision_to defined in an ancestor folder of the new group?





From: <> on behalf of Guerin Francoise <>
Sent: Thursday, June 30, 2016 3:29 PM
To:
Subject: [grouper-users] pspng error
 
Hi,

I'm testing pspng, an  error occurs while trying to add a group with new UI. (see below)

edu.internet2.middleware.grouper.exception.ExpressionLanguageMissingVariableException: variable 'stemAttributes' is not defined in script: 'utils.containedWithin(provisionerName, stemAttributes['etc:pspng:provision_to'], groupAttributes['etc:pspng:provision_to']) && !utils.containedWithin(provisionerName, stemAttributes['etc:pspng:do_not_provision_to'], groupAttributes['etc:pspng:do_not_provision_to'])'
 
I don't know how to fix it. Can you help me?

Thanks. FG

Here's my grouper-loader.properties :



#GROUP OF UNIQUE NAMES:
ldap.groupOfUniqueNames.ldapUrl=ldap://xxxxxxxxxxxx:389
ldap.groupOfUniqueNames.binDn=uid=admingid,xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ldap.groupOfUniqueNames.binCredential=xxxxxxxxxxxxxxxxxxxxxxxxxxxx

changeLog.consumer.pspng_groupOfUniqueNames.class = edu.internet2.middleware.grouper.pspng.PspChangelogConsumerShim
changeLog.consumer.pspng_groupOfUniqueNames.type = edu.internet2.middleware.grouper.pspng.LdapGroupProvisioner
changeLog.consumer.pspng_groupOfUniqueNames.quartzCron = 0 * * * * ?
changeLog.consumer.pspng_groupOfUniqueNames.ldapPoolName = groupOfUniqueNames
changeLog.consumer.pspng_groupOfUniqueNames.memberAttributeName = uniqueMember
changeLog.consumer.pspng_groupOfUniqueNames.memberAttributeValueFormat = ${ldapUser.getDn()}
changeLog.consumer.pspng_groupOfUniqueNames.groupSearchBaseDn = ou=groupePIA,ou=ac-lyon,ou=education,o=gouv,c=fr
changeLog.consumer.pspng_groupOfUniqueNames.allGroupsSearchFilter = objectclass=groupOfUniqueNames
changeLog.consumer.pspng_groupOfUniqueNames.singleGroupSearchFilter = (&(objectclass=groupOfUniqueNames)(cn=${group.name}))
changeLog.consumer.pspng_groupOfUniqueNames.groupSearchAttributes=cn,gidNumber,objectclass

#changeLog.consumer.pspng_groupOfUniqueNames.groupCreationLdifTemplate = dn: utils.bushyDn(group.name, "cn", "ou") cn=${group.name}||objectclass: groupOfUniqueNames
#changeLog.consumer.pspng_groupOfUniqueNames.groupCreationLdifTemplate = dn: cn=${group.name}||cn: ${group.name}||objectclass: groupOfUniqueNames
changeLog.consumer.pspng_groupOfUniqueNames.groupCreationLdifTemplate = dn: utils.bushyDn(group.name, "cn", "ou")||cn: ${group.name}||objectclass: groupOfUniqueNames
#NOTE: The DN of the group can be Bushy (one LDAP OU for each Folder/Stem of the group) by doing the following: dn: utils.bushyDn(group.name, "cn", "ou")
changeLog.consumer.pspng_groupOfUniqueNames.userSearchBaseDn = o=gouv,c=fr
changeLog.consumer.pspng_groupOfUniqueNames.userSearchFilter = uid=${subject.id}







2016-06-30 17:08:00,082: [DefaultQuartzScheduler_Worker-4] ERROR GrouperLoaderJob.runJob(436) -  - Error on job: CHANGE_LOG_consumer_pspng_groupOfUniqueNames
java.lang.RuntimeException: Error in loader job: null, check logs: Error: edu.internet2.middleware.grouper.exception.ExpressionLanguageMissingVariableException: variable 'stemAttributes' is not defined in script: 'utils.containedWithin(provisionerName, stemAttributes['etc:pspng:provision_to'], groupAttributes['etc:pspng:provision_to']) && !utils.containedWithin(provisionerName, stemAttributes['etc:pspng:do_not_provision_to'], groupAttributes['etc:pspng:do_not_provision_to'])'
        at edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage(GrouperUtil.java:9275)
        at edu.internet2.middleware.grouper.pspng.Provisioner.evaluateJexlExpression(Provisioner.java:500)
        at edu.internet2.middleware.grouper.pspng.Provisioner.shouldGroupBeProvisioned(Provisioner.java:1079)
        at edu.internet2.middleware.grouper.pspng.Provisioner.filterWorkItems(Provisioner.java:413)
        at edu.internet2.middleware.grouper.pspng.Provisioner.provisionBatchOfItems(Provisioner.java:1114)
        at edu.internet2.middleware.grouper.pspng.PspChangelogConsumerShim.processChangeLogEntries(PspChangelogConsumerShim.java:71)
        at edu.internet2.middleware.grouper.changeLog.ChangeLogHelper.processRecords(ChangeLogHelper.java:242)
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$4.runJob(GrouperLoaderType.java:629)
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:416)
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:318)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.apache.commons.jexl2.JexlException: edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage@9255![39,53]: 'utils.containedWithin(provisionerName, stemAttributes['etc:pspng:provision_to'], groupAttributes['etc:pspng:provision_to']) && !utils.containedWithin(provisionerName, stemAttributes['etc:pspng:do_not_provision_to'], groupAttributes['etc:pspng:do_not_provision_to']);' undefined variable stemAttributes
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:689)
        at org.apache.commons.jexl2.parser.ASTIdentifier.jjtAccept(ASTIdentifier.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:345)
        at org.apache.commons.jexl2.parser.ASTArrayAccess.jjtAccept(ASTArrayAccess.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:1045)
        at org.apache.commons.jexl2.parser.ASTReference.jjtAccept(ASTReference.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:808)
        at org.apache.commons.jexl2.parser.ASTMethodNode.jjtAccept(ASTMethodNode.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:1045)
        at org.apache.commons.jexl2.parser.ASTReference.jjtAccept(ASTReference.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:321)
        at org.apache.commons.jexl2.parser.ASTAndNode.jjtAccept(ASTAndNode.java:18)
        at org.apache.commons.jexl2.Interpreter.interpret(Interpreter.java:162)
        at org.apache.commons.jexl2.ExpressionImpl.evaluate(ExpressionImpl.java:64)
        at edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage(GrouperUtil.java:9261)
        ... 11 more
Did not get all the way through the batch! -1 != 538
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:425)
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:318)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2016-06-30 17:08:00,092: [DefaultQuartzScheduler_Worker-4] ERROR GrouperLoaderJob.execute(321) -  - Error running up job
java.lang.RuntimeException: Error in loader job: null, check logs: Error: edu.internet2.middleware.grouper.exception.ExpressionLanguageMissingVariableException: variable 'stemAttributes' is not defined in script: 'utils.containedWithin(provisionerName, stemAttributes['etc:pspng:provision_to'], groupAttributes['etc:pspng:provision_to']) && !utils.containedWithin(provisionerName, stemAttributes['etc:pspng:do_not_provision_to'], groupAttributes['etc:pspng:do_not_provision_to'])'
        at edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage(GrouperUtil.java:9275)
        at edu.internet2.middleware.grouper.pspng.Provisioner.evaluateJexlExpression(Provisioner.java:500)
        at edu.internet2.middleware.grouper.pspng.Provisioner.shouldGroupBeProvisioned(Provisioner.java:1079)
        at edu.internet2.middleware.grouper.pspng.Provisioner.filterWorkItems(Provisioner.java:413)
        at edu.internet2.middleware.grouper.pspng.Provisioner.provisionBatchOfItems(Provisioner.java:1114)
        at edu.internet2.middleware.grouper.pspng.PspChangelogConsumerShim.processChangeLogEntries(PspChangelogConsumerShim.java:71)
        at edu.internet2.middleware.grouper.changeLog.ChangeLogHelper.processRecords(ChangeLogHelper.java:242)
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderType$4.runJob(GrouperLoaderType.java:629)
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:416)
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:318)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.apache.commons.jexl2.JexlException: edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage@9255![39,53]: 'utils.containedWithin(provisionerName, stemAttributes['etc:pspng:provision_to'], groupAttributes['etc:pspng:provision_to']) && !utils.containedWithin(provisionerName, stemAttributes['etc:pspng:do_not_provision_to'], groupAttributes['etc:pspng:do_not_provision_to']);' undefined variable stemAttributes
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:689)
        at org.apache.commons.jexl2.parser.ASTIdentifier.jjtAccept(ASTIdentifier.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:345)
        at org.apache.commons.jexl2.parser.ASTArrayAccess.jjtAccept(ASTArrayAccess.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:1045)
        at org.apache.commons.jexl2.parser.ASTReference.jjtAccept(ASTReference.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:808)
        at org.apache.commons.jexl2.parser.ASTMethodNode.jjtAccept(ASTMethodNode.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:1045)
        at org.apache.commons.jexl2.parser.ASTReference.jjtAccept(ASTReference.java:18)
        at org.apache.commons.jexl2.Interpreter.visit(Interpreter.java:321)
        at org.apache.commons.jexl2.parser.ASTAndNode.jjtAccept(ASTAndNode.java:18)
        at org.apache.commons.jexl2.Interpreter.interpret(Interpreter.java:162)
        at org.apache.commons.jexl2.ExpressionImpl.evaluate(ExpressionImpl.java:64)
        at edu.internet2.middleware.grouper.util.GrouperUtil.substituteExpressionLanguage(GrouperUtil.java:9261)
        ... 11 more
Did not get all the way through the batch! -1 != 538
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.runJob(GrouperLoaderJob.java:425)
        at edu.internet2.middleware.grouper.app.loader.GrouperLoaderJob.execute(GrouperLoaderJob.java:318)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
2016-06-30 17:08:04,026: [DefaultQuartzScheduler_Worker-6] INFO EventLog.info(156) -  - [3dff1845058842539feef9492e87d19a,'GrouperSystem','application'] session: start (6ms)




Archive powered by MHonArc 2.6.16.

Top of Page