[midPoint] Re. Error importing objects

Deepak Natarajan dnataraj at trilobytesystems.com
Thu Oct 24 14:53:02 CEST 2013



Hi Ivan -


Thank you!

I am able to fix this after your recommendation. This is strange since I used one of the midpoint samples for this (see opendj-localhost-resource-sync-extension-pirates.xml) but then I see that it is different in another sample.

Thanks again, I am able to import my configuration - but am running into other frustrating issues :(

On Oct 24, 2013, at 2:40 PM, Ivan Noris <ivan.noris at evolveum.com> wrote:

> Hi,
> 
> seems to me you have bad query in connectorRef / filter:
> 
> You have:
> 
>         <connectorRef type="ConnectorType">
>             <filter>
>                 <q:equal>
>                     <q:value>
>                         <connectorType>org.identityconnectors.ldap.LdapConnector</connectorType>
>                     </q:value>
>                 </q:equal>
>             </filter>
>         </connectorRef>
> 
> You should have (notice the bold line):
> 
>         <connectorRef type="ConnectorType">
>             <filter>
>                 <q:equal>
>                 <q:path>c:connectorType</q:path>
>                   <q:value>org.identityconnectors.ldap.LdapConnector</q:value>
>                 </q:equal>
>            </filter>
>         </connectorRef>
> 
> (I.e.: "find a Connector where connectorType=org.identityconnectors.ldap.LdapConnector")
> 
> This is a quick catch; if there is another problem, I will look at it.
> Please try.
> 
> Regards,
> Ivan
> 
> 
> On 10/24/2013 01:22 PM, Deepak Natarajan wrote:
>> Dear All -
>> 
>> We've been struggling with an issue. We are trying to import a resource configuration (attached XML configuration). We get the following exception
>> 
>> Import object
>> 	• Internal error: postMarshall call failed: Failed to convert object filter from filter. Reason: Could not convert query, because query does not contain property path.
>> 	• Context: startLineNumber: 37
>> 	• Context: progress: 1
>> 	• Context: object: 
>> resource:null(APOS
>>  Engagement Resource (Apache DS))
>> 	• Context: endLineNumber: 289
>> 	• Cause: Failed to convert object filter from filter. Reason: Could not convert query, because query does not contain property path. [ HIDE ERROR STACK ]
>> com.evolveum.midpoint.util.exception.SystemException: Failed to convert object filter from filter. Reason: Could not convert query, because query does not contain property path.
>> at com.evolveum.midpoint.model.util.Utils.resolveRef(Utils.java:224)
>> at com.evolveum.midpoint.model.util.Utils.access$0(Utils.java:141)
>> at com.evolveum.midpoint.model.util.Utils$1.visit(Utils.java:134)
>> at com.evolveum.midpoint.prism.PrismValue.accept(PrismValue.java:125)
>> at com.evolveum.midpoint.prism.Item.accept(Item.java:507)
>> at com.evolveum.midpoint.prism.PrismContainerValue.accept(PrismContainerValue.java:733)
>> at com.evolveum.midpoint.prism.Item.accept(Item.java:507)
>> at com.evolveum.midpoint.model.util.Utils.resolveReferences(Utils.java:137)
>> at com.evolveum.midpoint.model.importer.ObjectImporter$1.postMarshall(ObjectImporter.java:140)
>> 
>> Has anyone encountered this before...?
>> 
>> Thanks!
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> midPoint mailing list
>> 
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
> 
> -- 
>   Ing. Ivan Noris
>   Consultant
>   Evolveum, s.r.o
>   ___________________________________________________
>   "Semper cautus - semper paratus - semper idem Vix."
> 
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint




More information about the midPoint mailing list