Hi, I am having errors in a ws before rule. For debugging purposes, I left it at its minimal expression, but it throws the same exception.
actual rule is:
return requestEndPoint; ]]>
When I attach it to source, all operations fail (included test operation). If I detach, connector works fine, so I realized that perhaps I am missing something in rule creation.
I created rule following documentation. This is the actual json payload of rule creation: { âdescriptionâ: âThis rule is used by Senior Aggregationâ, âtypeâ: âWebServiceBeforeOperationRuleâ, âsignatureâ: { âinputâ: [ { ânameâ: âapplicationâ, âdescriptionâ: âThe application whose data file is being processed.â, âtypeâ: null }, { ânameâ: ârequestEndPointâ, âdescriptionâ: âThe current request information contain header, body ,response objectâ, âtypeâ: null }, { ânameâ: âprocessedResponseObjectâ, âdescriptionâ: âResponse Object processed by the Web services connectorâ, âtypeâ: null }, { ânameâ: ârawResponseObjectâ, âdescriptionâ: âResponse Object returned from the end systemâ, âtypeâ: null }, { ânameâ: ârestClientâ, âdescriptionâ: âREST Client Objectâ, âtypeâ: null } ], âoutputâ: { ânameâ: âUpdate Account/Group Listâ, âdescriptionâ: âUpdate information Map contains parsed list of accountsâ, âtypeâ: null } }, âsourceCodeâ: { âversionâ: â1.0â, âscriptâ: â<?xml version='1.0' encoding='UTF-8'?>\r\n\r\n<Rule name="SeniorBodyMod" type="WebServiceBeforeOperationRule">\r\n Modify body</Description>\r\n </Source>\r\n</Rule>â }, âattributesâ: { âsourceVersionâ: â1.0â }, âidâ: âdd0a4ab6d3ca4deda6b554a5ea63be08â, ânameâ: âBodyModâ, âcreatedâ: â2023-08-09T19:16:02.580Zâ, âmodifiedâ: null }
Exception shown in log is:
{âexceptionâ:{âstacktraceâ:âsailpoint.connector.ConnectorException: Exception occurred in Test Connection. Error: Error executing before operation rule for endpoint âTest - WSâ: BeanShell script error: bsh.ParseException: Parse error at line 1, column 1. Encountered: < BSF info: BodyMod at line: 0 column: columnNo\n\tat com.sailpoint.ccg.cloud.container.Container.testConnection(Container.java:337)\n\tat com.sailpoint.ccg.cloud.container.ContainerIntegration.ping(ContainerIntegration.java:73)\n\tat com.sailpoint.ccg.handler.TestConnectionHandler.invoke(TestConnectionHandler.java:29)\n\tat sailpoint.gateway.accessiq.CcgPipelineMessageHandler.handleMessage(CcgPipelineMessageHandler.java:42)\n\tat com.sailpoint.pipeline.server.PipelineServer$InboundQueueListener$MessageHandler.run(PipelineServer.java:369)\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\nCaused by: sailpoint.connector.ConnectorException: Exception occurred in Test Connection. Error: Error executing before operation rule for endpoint âTest - WSâ: BeanShell script error: bsh.ParseException: Parse error at line 1, column 1. Encountered: < BSF info: BodyMod at line: 0 column: columnNo\n\tat sailpoint.connector.webservices.v2.WebServiceFacadeV2.testConnection(WebServiceFacadeV2.java:504)\n\tat sailpoint.connector.webservices.WebServicesConnector.testConfiguration(WebServicesConnector.java:112)\n\tat sailpoint.connector.ConnectorProxy.testConfiguration(ConnectorProxy.java:411)\n\tat com.sailpoint.ccg.cloud.container.Container.testConnection(Container.java:330)\n\t⌠9 more\nâ,âexception_classâ:âsailpoint.connector.ConnectorExceptionâ,âexception_messageâ:âException occurred in Test Connection. Error: Error executing before operation rule for endpoint âTest - WSâ: BeanShell script error: bsh.ParseException: Parse error at line 1, column 1. Encountered: < BSF info: BodyMod at line: 0 column: columnNoâ},âstackâ:âccgâ,âpodâ:âcookâ,âconnector-loggingâ:â148â,âclusterIdâ:â2274â,âbuildNumberâ:â912â,âapiUsernameâ:â6b439e5d-79eb-4eb1-9064-d9143324fbefâ,âorgTypeâ:ââ,âfileâ:âBaseHandler.javaâ,âencryptionâ:â1266â,âmessageTypeâ:âtest-connectionâ,âconnector-bundle-identityiqâ:â202â,âline_numberâ:228,â@versionâ:1,âCB_versionâ:â986â,âlogger_nameâ:âcom.sailpoint.ccg.handler.BaseHandlerâ,âmantis-clientâ:â1266â,âclassâ:âcom.sailpoint.ccg.handler.BaseHandlerâ,âatlas-apiâ:â1752â,âva-gateway-clientâ:â40â,âclientIdâ:â6640â,ârequest_millisecondsâ:â493â,âsource_hostâ:âd30625237730â,âmethodâ:âhandleExceptionâ,âorgâ:ârodobens-sbâ,âlevelâ:âERRORâ,âIdentityIQâ:â8.3p4 Build 1527a593753-20230805-223436â,âmessageâ:âException â,âpipelineâ:â1266â,â@timestampâ:â2023-08-09T21:34:09.890Zâ,âthread_nameâ:âpool-7-thread-147â,âatlas-utilâ:â1752â,âmetricsâ:â1266â,âregionâ:âus-east-1â,âAppTypeâ:âWeb Servicesâ,âApplicationâ:âWS - Copy [source]â,ârequest_idâ:â76659c96dcdb48829a4e0f3a8952b710â,âCB_Typeâ:âconnector-bundle-webservicesâ,âqueueâ:âcook-rodobens-sb-cluster-2274â,âSCIM Commonâ:â8.0 Build 00b1f252d1b-20200225-190809â} {âexceptionâ:{âstacktraceâ:âsailpoint.connector.ConnectorException: Exception occurred in Test Connection. Error: Error executing before operation rule for endpoint âTest - WSâ: BeanShell script error: bsh.ParseException: Parse error at line 1, column 1. Encountered: < BSF info: BodyMod at line: 0 column: columnNo\n\tat com.sailpoint.ccg.cloud.container.Container.testConnection(Container.java:337)\n\tat com.sailpoint.ccg.cloud.container.ContainerIntegration.ping(ContainerIntegration.java:73)\n\tat com.sailpoint.ccg.handler.TestConnectionHandler.invoke(TestConnectionHandler.java:29)\n\tat sailpoint.gateway.accessiq.CcgPipelineMessageHandler.handleMessage(CcgPipelineMessageHandler.java:42)\n\tat com.sailpoint.pipeline.server.PipelineServer$InboundQueueListener$MessageHandler.run(PipelineServer.java:369)\n\tat java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)\n\tat java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat java.base/java.lang.Thread.run(Thread.java:829)\nCaused by: sailpoint.connector.ConnectorException: Exception occurred in Test Connection. Error: Error executing before operation rule for endpoint âTest - WSâ: BeanShell script error: bsh.ParseException: Parse error at line 1, column 1. Encountered: < BSF info: BodyMod at line: 0 column: columnNo\n\tat sailpoint.connector.webservices.v2.WebServiceFacadeV2.testConnection(WebServiceFacadeV2.java:504)\n\tat sailpoint.connector.webservices.WebServicesConnector.testConfiguration(WebServicesConnector.java:112)\n\tat sailpoint.connector.ConnectorProxy.testConfiguration(ConnectorProxy.java:411)\n\tat com.sailpoint.ccg.cloud.container.Container.testConnection(Container.java:330)\n\t⌠9 more\nâ,âexception_classâ:âsailpoint.connector.ConnectorExceptionâ,âexception_messageâ:âException occurred in Test Connection. Error: Error executing before operation rule for endpoint âTest - WSâ: BeanShell script error: bsh.ParseException: Parse error at line 1, column 1. Encountered: < BSF info: BodyMod at line: 0 column: columnNoâ},âstackâ:âccgâ,âpodâ:âcookâ,âconnector-loggingâ:â148â,âclusterIdâ:â2274â,âbuildNumberâ:â912â,âapiUsernameâ:â6b439e5d-79eb-4eb1-9064-d9143324fbefâ,âorgTypeâ:ââ,âfileâ:âBaseHandler.javaâ,âencryptionâ:â1266â,âmessageTypeâ:âtest-connectionâ,âconnector-bundle-identityiqâ:â202â,âline_numberâ:228,â@versionâ:1,âCB_versionâ:â986â,âlogger_nameâ:âcom.sailpoint.ccg.handler.BaseHandlerâ,âmantis-clientâ:â1266â,âclassâ:âcom.sailpoint.ccg.handler.BaseHandlerâ,âatlas-apiâ:â1752â,âva-gateway-clientâ:â40â,âclientIdâ:â6640â,ârequest_millisecondsâ:â493â,âsource_hostâ:âd30625237730â,âmethodâ:âhandleExceptionâ,âorgâ:ârodobens-sbâ,âlevelâ:âERRORâ,âIdentityIQâ:â8.3p4 Build 1527a593753-20230805-223436â,âmessageâ:âException â,âpipelineâ:â1266â,â@timestampâ:â2023-08-09T21:34:09.890Zâ,âthread_nameâ:âpool-7-thread-147â,âatlas-utilâ:â1752â,âmetricsâ:â1266â,âregionâ:âus-east-1â,âAppTypeâ:âWeb Servicesâ,âApplicationâ:âWS - Copy [source]â,ârequest_idâ:â76659c96dcdb48829a4e0f3a8952b710â,âCB_Typeâ:âconnector-bundle-webservicesâ,âqueueâ:âcook-rodobens-sb-cluster-2274â,âSCIM Commonâ:â8.0 Build 00b1f252d1b-20200225-190809â} bo
In the json payload you should be putting in only the java codes inside the script under sourceCode as shown below:
"sourceCode": { "version": "1.0", "script": "import sailpoint.object.*; import sailpoint.connector.*;return requestEndPoint;" }
Thank you @iamnithesh !! Working!
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.