You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@syncope.apache.org by roccom <fo...@gmail.com> on 2020/01/21 16:13:02 UTC
Rest Connector issue
I am trying to setup a rest connector to pull and push data for the Group
entity. I am receiving this error when I try to execute the pull task and my
end point is not hit. Also, the SearchScript.groovy script does not hit any
of my logging messages. I am not sure what I am missing. Can someone point
me in the right direction?
09:31:51.521 DEBUG instance='RESTConnector' Enter: search(ObjectClass:
__GROUP__, null,
org.apache.syncope.core.provisioning.java.ConnectorFacadeProxy$2@1a37ebd5,
OperationOptions:
{PAGED_RESULTS_OFFSET:-1,ATTRS_TO_GET:[__NAME__,IFSGroupId,__UID__,__ENABLE__,IFSGroupName],PAGE_SIZE:100})
Method: search
09:31:51.696 DEBUG Create script loaded Method: init
09:31:51.696 DEBUG Update script loaded Method: init
09:31:51.696 DEBUG Delete script loaded Method: init
09:31:51.696 DEBUG Search script loaded Method: init
09:31:51.697 DEBUG Search script loaded Method: init
09:31:51.697 DEBUG Search script loaded Method: init
09:31:51.817 DEBUG Sync script loaded Method: init
09:31:51.817 DEBUG Sync script loaded Method: init
09:31:51.817 DEBUG Test script loaded Method: init
09:31:51.817 DEBUG Connector net.tirasa.connid.bundles.rest.RESTConnector
successfully inited Method: init
09:31:51.818 DEBUG ObjectClass: __GROUP__ Method:
createFilterTranslator
09:31:51.818 DEBUG instance='RESTConnector' Enter: executeQuery(ObjectClass:
__GROUP__, null,
org.identityconnectors.framework.impl.api.local.operations.SearchImpl$1@3432d341)
Method: executeQuery
09:31:51.818 DEBUG instance='RESTConnector' Exception: Method: executeQuery
java.lang.UnsupportedOperationException: null
at
net.tirasa.connid.commons.scripted.AbstractScriptedConnector.executeQuery(AbstractScriptedConnector.java:548)
~[?:?]
at
net.tirasa.connid.commons.scripted.AbstractScriptedConnector.executeQuery(AbstractScriptedConnector.java:81)
~[?:?]
at
org.identityconnectors.framework.impl.api.local.operations.SearchImpl.rawSearch(SearchImpl.java:175)
~[connector-framework-internal-1.5.0.0.jar:?]
at
org.identityconnectors.framework.impl.api.local.operations.SearchImpl.search(SearchImpl.java:133)
~[connector-framework-internal-1.5.0.0.jar:?]
at sun.reflect.GeneratedMethodAccessor1628.invoke(Unknown Source)
~[?:?]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_191]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191]
at
org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:99)
~[connector-framework-internal-1.5.0.0.jar:?]
at com.sun.proxy.$Proxy400.search(Unknown Source) ~[?:?]
at sun.reflect.GeneratedMethodAccessor1628.invoke(Unknown Source)
~[?:?]
--
Sent from: http://syncope-user.1051894.n5.nabble.com/
Re: Rest Connector issue
Posted by Francesco Chicchiriccò <il...@apache.org>.
Hi,
it seems you haven't defined a Search Script for your connector instance: the messages below state this.
Here is some example scripts, including Search:
https://github.com/apache/syncope/tree/2_1_X/fit/core-reference/src/test/resources/rest
https://github.com/Tirasa/ConnIdRESTBundle/tree/master/src/test/resources/net/tirasa/connid/bundles/rest
HTH
Regards.
On 21/01/20 17:13, roccom wrote:
> I am trying to setup a rest connector to pull and push data for the Group
> entity. I am receiving this error when I try to execute the pull task and my
> end point is not hit. Also, the SearchScript.groovy script does not hit any
> of my logging messages. I am not sure what I am missing. Can someone point
> me in the right direction?
>
> 09:31:51.521 DEBUG instance='RESTConnector' Enter: search(ObjectClass:
> __GROUP__, null,
> org.apache.syncope.core.provisioning.java.ConnectorFacadeProxy$2@1a37ebd5,
> OperationOptions:
> {PAGED_RESULTS_OFFSET:-1,ATTRS_TO_GET:[__NAME__,IFSGroupId,__UID__,__ENABLE__,IFSGroupName],PAGE_SIZE:100})
> Method: search
> 09:31:51.696 DEBUG Create script loaded Method: init
> 09:31:51.696 DEBUG Update script loaded Method: init
> 09:31:51.696 DEBUG Delete script loaded Method: init
> 09:31:51.696 DEBUG Search script loaded Method: init
> 09:31:51.697 DEBUG Search script loaded Method: init
> 09:31:51.697 DEBUG Search script loaded Method: init
> 09:31:51.817 DEBUG Sync script loaded Method: init
> 09:31:51.817 DEBUG Sync script loaded Method: init
> 09:31:51.817 DEBUG Test script loaded Method: init
> 09:31:51.817 DEBUG Connector net.tirasa.connid.bundles.rest.RESTConnector
> successfully inited Method: init
> 09:31:51.818 DEBUG ObjectClass: __GROUP__ Method:
> createFilterTranslator
> 09:31:51.818 DEBUG instance='RESTConnector' Enter: executeQuery(ObjectClass:
> __GROUP__, null,
> org.identityconnectors.framework.impl.api.local.operations.SearchImpl$1@3432d341)
> Method: executeQuery
> 09:31:51.818 DEBUG instance='RESTConnector' Exception: Method: executeQuery
> java.lang.UnsupportedOperationException: null
> at
> net.tirasa.connid.commons.scripted.AbstractScriptedConnector.executeQuery(AbstractScriptedConnector.java:548)
> ~[?:?]
> at
> net.tirasa.connid.commons.scripted.AbstractScriptedConnector.executeQuery(AbstractScriptedConnector.java:81)
> ~[?:?]
> at
> org.identityconnectors.framework.impl.api.local.operations.SearchImpl.rawSearch(SearchImpl.java:175)
> ~[connector-framework-internal-1.5.0.0.jar:?]
> at
> org.identityconnectors.framework.impl.api.local.operations.SearchImpl.search(SearchImpl.java:133)
> ~[connector-framework-internal-1.5.0.0.jar:?]
> at sun.reflect.GeneratedMethodAccessor1628.invoke(Unknown Source)
> ~[?:?]
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_191]
> at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191]
> at
> org.identityconnectors.framework.impl.api.local.operations.ConnectorAPIOperationRunnerProxy.invoke(ConnectorAPIOperationRunnerProxy.java:99)
> ~[connector-framework-internal-1.5.0.0.jar:?]
> at com.sun.proxy.$Proxy400.search(Unknown Source) ~[?:?]
> at sun.reflect.GeneratedMethodAccessor1628.invoke(Unknown Source)
> ~[?:?]
>
>
> --
> Sent from: http://syncope-user.1051894.n5.nabble.com/
--
Francesco Chicchiriccò
Tirasa - Open Source Excellence
http://www.tirasa.net/
Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/