<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I am afraid there is a problem with the logback.xml file (because
there're no logging entries at all while it's in use).</p>
<p>I would suggest simply adding these two lines:<br>
</p>
<p> <logger name="org.identityconnectors" level="TRACE"/><br>
<logger
name="com.evolveum.midpoint.provisioning.ucf.impl.connid"
level="TRACE"/><br>
</p>
<pre class="moz-signature" cols="72">Pavol Mederly
Software developer
evolveum.com
</pre>
<div class="moz-cite-prefix">On 06.09.2017 20:59, Kromhout, Ethan A.
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:BLUPR03MB1394DEAC2B36EE196E8FF991AE970@BLUPR03MB1394.namprd03.prod.outlook.com">
<pre wrap="">I added the following to WEB-INF/classes/logback.xml:
<logger name="org.identityconnectors" level="ALL">
<appender-ref ref="IDM_LOG"/>
</logger>
<logger name="com.evolveum.midpoint.provisioning.ucf.impl.connid" level="ALL">
<appender-ref ref="IDM_LOG"/>
</logger>
But curiously I no longer see any mention of my connector at all, so I'm not sure I've done this correctly.
Thanks again,
Ethan
________________________________________
From: midPoint <a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><midpoint-bounces@lists.evolveum.com></a> on behalf of Pavol Mederly <a class="moz-txt-link-rfc2396E" href="mailto:mederly@evolveum.com"><mederly@evolveum.com></a>
Sent: Wednesday, September 6, 2017 12:15 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>
Subject: Re: [midPoint] New Connector not loading
Oh, I see. I forgot about that.
So please make the change also in WEB-INF/classes/logback.xml file. It is used until system configuration is read from the repository and logging from it is applied.
Pavol Mederly
Software developer
evolveum.com
On 06.09.2017 17:37, Kromhout, Ethan A. wrote:
Hi Pavol,
Thank you for looking at it with me. I have org.identityconnectors set to ALL, and the attached is what I see on a clean startup. I think I'm not getting much for my connector from the org.identityconnectors logs because the failure is so early in the initialization.
Thanks,
Ethan
________________________________________
From: midPoint <a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><midpoint-bounces@lists.evolveum.com></a><a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><mailto:midpoint-bounces@lists.evolveum.com></a> on behalf of Pavol Mederly <a class="moz-txt-link-rfc2396E" href="mailto:mederly@evolveum.com"><mederly@evolveum.com></a><a class="moz-txt-link-rfc2396E" href="mailto:mederly@evolveum.com"><mailto:mederly@evolveum.com></a>
Sent: Wednesday, September 6, 2017 8:50 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a><a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><mailto:midpoint@lists.evolveum.com></a>
Subject: Re: [midPoint] New Connector not loading
Hello Ethan,
you could try setting TRACE or ALL logging level on
org.identityconnectors.framework package. Maybe we could find something
useful in the log then.
Best regards,
Pavol Mederly
Software developer
evolveum.com
On 06.09.2017 14:37, Ivan Noris wrote:
Hi Ethan,
definitely very strange, unfortunately this is out of my experience, I
have never seen that.
I hope someone else might have a clue.
Best regards,
Ivan
On 06.09.2017 13:04, Kromhout, Ethan A. wrote:
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 <a class="moz-txt-link-freetext" href="file:/var/opt/midpoint/icf-connectors/connector-amqp-import-0.1-SNAPSHOT.jar">file:/var/opt/midpoint/icf-connectors/connector-amqp-import-0.1-SNAPSHOT.jar</a>. 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 <a class="moz-txt-link-freetext" href="file:/var/opt/midpoint/icf-connectors/connector-amqp-import-0.1-SNAPSHOT.jar">file:/var/opt/midpoint/icf-connectors/connector-amqp-import-0.1-SNAPSHOT.jar</a> due error occured
________________________________________
From: midPoint <a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><midpoint-bounces@lists.evolveum.com></a><a class="moz-txt-link-rfc2396E" href="mailto:midpoint-bounces@lists.evolveum.com"><mailto:midpoint-bounces@lists.evolveum.com></a> on behalf of Ivan Noris <a class="moz-txt-link-rfc2396E" href="mailto:ivan.noris@evolveum.com"><ivan.noris@evolveum.com></a><a class="moz-txt-link-rfc2396E" href="mailto:ivan.noris@evolveum.com"><mailto:ivan.noris@evolveum.com></a>
Sent: Wednesday, September 6, 2017 3:20 AM
To: <a class="moz-txt-link-abbreviated" href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a><a class="moz-txt-link-rfc2396E" href="mailto:midpoint@lists.evolveum.com"><mailto:midpoint@lists.evolveum.com></a>
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
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><a class="moz-txt-link-rfc2396E" href="mailto:midPoint@lists.evolveum.com"><mailto:midPoint@lists.evolveum.com></a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
--
Ivan Noris
Senior Identity Engineer
evolveum.com
_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><a class="moz-txt-link-rfc2396E" href="mailto:midPoint@lists.evolveum.com"><mailto:midPoint@lists.evolveum.com></a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><a class="moz-txt-link-rfc2396E" href="mailto:midPoint@lists.evolveum.com"><mailto:midPoint@lists.evolveum.com></a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><a class="moz-txt-link-rfc2396E" href="mailto:midPoint@lists.evolveum.com"><mailto:midPoint@lists.evolveum.com></a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><a class="moz-txt-link-rfc2396E" href="mailto:midPoint@lists.evolveum.com"><mailto:midPoint@lists.evolveum.com></a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
</blockquote>
<br>
</body>
</html>