[midPoint] Groovy problem (?)
Pertti Kellomäki
pertti.kellomaki at datactica.fi
Thu Nov 17 13:17:04 CET 2016
I finally figured this out, the problem was missing semicolons at the end of Groovy script lines. Groovy is supposed to figure out where the semicolons should be but apparently it fails in this case. It looks like end of lines are not recognized by Groovy.
My use case is that I am editing and uploading the resource definition and roles via the rest api from a Linux host, so it could well be a Windows/Linux thing.
Pertti
________________________________
Lähettäjä: midPoint <midpoint-bounces at lists.evolveum.com> käyttäjän puolestaPertti Kellomäki <pertti.kellomaki at datactica.fi>
Lähetetty: 14. marraskuuta 2016 11:01
Vastaanottaja: midpoint at lists.evolveum.com
Aihe: [midPoint] Groovy problem (?)
Hi,
I am trying to use role-meta-ldapgroup.xml from midpoint/samples/stories/unix-ldap.
Uploading the meta role via rest api succeeds, but I get an error message when trying to upload the following role:
<role
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3">
<name>My LDAP Group</name>
<description>Use LDAP Group Metarole</description>
<assignment>
<targetRef oid="1568ec1e-36cc-11e6-a052-3c970e44b9e2" type="RoleType"/>
</assignment>
</role>
The error message is shown below, and to me it looks like running a Groovy script fails for some reason. I am running midPoint in a docker container based on Ubuntu 14.04, and running 'groovy -v' says:
Groovy Version: 1.8.6 JVM: 1.8.0_111 Vendor: Oracle Corporation OS: Linux
Any ideas? Am I missing some package in the container?
Thanks, Pertti
---------------------------------
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script3.groovy: 1: unexpected token: import @ line 1, column 45.
javax.naming.ldap.Rdn import jav
^
1 error
* Closing connection 0
expression in mapping in outbound mapping for {.../resource/instance-3}dn in resource:cb9ea519-cf73-4d0c-86aa-7fafc598f08b(LDAP)(name=PPV(PolyString:My LDAP Group); ) in expression in mapping in outbound mapping for {.../resource/instance-3}dn in resource:cb9ea519-cf73-4d0c-86aa-7fafc598f08b(LDAP)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20161117/a10d4c69/attachment.htm>
More information about the midPoint
mailing list