[midPoint] New Connector not loading

Kromhout, Ethan A. ethan at unc.edu
Wed Sep 6 13:04:25 CEST 2017


Thank you Ivan, I double checked permissions, and got rid of an old logback.xml file, and set logging for com.evolveum.midpoint.provisioning.ucf.impl.connid to ALL. I got the below log snippet that at least mentions my jar, but doesn't give me much more information. Do you know of any additional logging that might tell me more about this error, or does this error look familiar at all? Googling takes me to this condition in the source for ConnectorFactoryConnIdImpl , but I'm still reading through to figure out  how I'm meeting the condition "if (connectorInfos == null || connectorInfos.isEmpty())".

Thanks,

Ethan


2017-09-06 10:50:05,778 [] [localhost-startStop-1] INFO (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorFactoryConnIdImpl): Discovered ICF bundle in JAR: unc.edu.polygon.connector-amqp-import version: 0.1-SNAPSHOT
2017-09-06 10:50:05,806 [] [localhost-startStop-1] ERROR (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorFactoryConnIdImpl): Strange error happened. ConnId is not accepting bundle file:/var/opt/midpoint/icf-connectors/connector-amqp-import-0.1-SNAPSHOT.jar. But no error is indicated.
2017-09-06 10:50:05,807 [] [localhost-startStop-1] WARN (com.evolveum.midpoint.provisioning.ucf.impl.connid.ConnectorFactoryConnIdImpl): Skip loading budle file:/var/opt/midpoint/icf-connectors/connector-amqp-import-0.1-SNAPSHOT.jar due error occured

________________________________________
From: midPoint <midpoint-bounces at lists.evolveum.com> on behalf of Ivan Noris <ivan.noris at evolveum.com>
Sent: Wednesday, September 6, 2017 3:20 AM
To: midpoint at lists.evolveum.com
Subject: Re: [midPoint] New Connector not loading

Hi,

my only tip and question is - have you put the connector to the correct
directory? $midpoint.home/icf-connectors/

If there is no message, not even error related to that connector when
midPoint starts, I'd say it has not been picked up. I remember in the
past I had some bad connector which was unable to load, but there was a
message in idm.log each time when midPoint started. So the connector was
detected, but not usable.

Please check if the connector jar file is in correct directory (and has
correct permissions etc. to be readable by midPoint/tomcat).

Best regards,

Ivan


On 05.09.2017 16:42, Kromhout, Ethan A. wrote:
> I have a new connector I've been working on, and it doesn't appear to get loaded when I restart midPoint. I've tried manually creating a Connector definition for it, but I get and exception when trying to configure it as a resource, so I think I'm missing something basic that the connector needs to load.
>
> My connector is just implementing a few operations:
>
> public class AmqpConnector implements  Connector, DeleteOp, SearchOp<String>, SchemaOp {
>
> And provides init, getConfiguration, dispose, createFilterTranslator, schema, executeQuery and delete.
>
> It contains the following  classes and files:
>
> META-INF/
> META-INF/MANIFEST.MF
> lib/
> lib/commons-csv-1.4.jar
> lib/amqp-client-4.0.2.jar
> lib/slf4j-api-1.7.21.jar
> edu/
> edu/unc/
> edu/unc/polygon/
> edu/unc/polygon/connector/
> edu/unc/polygon/connector/amqp/
> edu/unc/polygon/connector/amqp/AmqpFilterTranslator.class
> edu/unc/polygon/connector/amqp/AmqpConfiguration.class
> edu/unc/polygon/connector/amqp/AmqpConnector.class
> edu/unc/polygon/connector/amqp/Messages.properties
>
> And has the following manifest:
>
> Manifest-Version: 1.0
> Archiver-Version: Plexus Archiver
> Built-By: ekromhout
> ConnectorBundle-FrameworkVersion: 1.4.2.14
> ConnectorBundle-Version: 0.1-SNAPSHOT
> Created-By: Apache Maven 3.3.9
> Build-Jdk: 1.8.0_141
> ConnectorBundle-Name: unc.edu.polygon.connector-amqp-import
>
> When midpoint starts up, I see the other jar files being loaded by org.identityconnectors.framework.impl.api.local.LocalConnectorInfoManagerImpl  , but I don't see anything for my jar file above.
>
> Just hoping someone sees something obvious missing in the way of a file or method that would cause the jar file not to be picked up as a connector.
>
> Thanks,
>
> Ethan
> 6C2F 9067 96D4 AB4A 9621  4FEB 3069 4100 EBFB 55D1
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint

--
Ivan Noris
Senior Identity Engineer
evolveum.com

_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint



More information about the midPoint mailing list