我正在尝试使用Groovy ScriptedConnector连接器为脚本化 groovy 连接器(不是REST/CREST 连接器)生成提供程序配置。
当我将以下配置发送到CreateFullConfig REST 服务(/openidm/system?_action=createFullConfig) 时,我发出500 internal server error。
{“名称”:“scriptedGroovy”,“connectorRef”:{“bundleName”:“org.forgerock.openicf.connectors.groovy-connector”,“bundleVersion”:“1.4.1.0”,“connectorName”:“org.forgerock .openicf.connectors.groovy.ScriptedConnector" }, "configurationProperties": { "authenticateScriptFileName": "AuthenticateScript.groovy", "warningLevel": 1, "minimumRecompilationInterval": 100, "deleteScriptFileName": "DeleteScript.groovy", "schemaScriptFileName “:“SchemaScript.groovy”,“scriptRoots”:null,“customizerScriptFileName”:null,“resolveUsernameScriptFileName”:null,“customConfiguration”:null,“debug”:假,“targetDirectory”:null,“disabledGlobalASTTransformations”:null,“classpath”:[“path/connector/tools”],“scriptExtensions”:[“groovy”],“testScriptFileName”:“TestScript.groovy”,“customSensitiveConfiguration “:空,“updateScriptFileName”:“UpdateScript.groovy”,“sourceEncoding”:“UTF-8”,“searchScriptFileName”:“SearchScript.groovy”,“scriptOnResourceScriptFileName”:空,“scriptBaseClass”:空,“详细”:假,“createScriptFileName”:“CreateScript.groovy”,“recompileGroovySource”:假,“容差”:10,“syncScriptFileName”:“SyncScript.groovy”},“operationTimeout”:{ “CREATE”:-1,“UPDATE”:-1,“DELETE”:-1,“TEST”:-1,“SCRIPT_ON_CONNECTOR”:-1,“SCRIPT_ON_RESOURCE”:-1,“GET”: -1,“RESOLVEUSERNAME”:-1,“AUTHENTICATE”:-1,“SEARCH”:-1,“VALIDATE”:-1,“SYNC”:-1,“SCHEMA”:-1 },“resultsHandlerConfig”: {“enableNormalizingResultsHandler”:真,“enableFilteredResultsHandler”:真,“enableCaseInsensitiveFilter”:假,“enableAttributesToGetSearchResultsHandler”:真},“poolConfigOption”:{“maxObjects”:10,“maxIdle”:10,“maxWait”:150000,“ minEvictableIdleTimeMillis": 120000, "minIdle":1 },“configurationProperties”:{“xsdIcfFilePath”:“samples/sample1/data/resource-schema-1.xsd”,“xsdFilePath”:“samples/sample1/data/resource-schema-extension.xsd”,“xmlFilePath " : "samples/sample1/data/xmlConnectorData.xml", "createFileIfNotExists": false } }
它导致以下堆栈跟踪:
警告:资源异常:500 内部服务器错误:“内部服务器错误”org.forgerock.json.resource.InternalServerErrorException:org.forgerock.openidm.provisioner.impl.SystemObjectSetService.actionInstance(SystemObjectSetService.java:340) 处的内部服务器错误org.forgerock.json.resource.Resources$SingletonHandler.handleAction(Resources.java:513) at org.forgerock.json.resource.Router.handleAction(Router.java:208) at org.forgerock.json.resource.FilterChain$ Cursor.handleAction(FilterChain.java:57) at org.forgerock.json.resource.Filters$ConditionalFilter.filterAction(Filters.java:52)
引起:java.lang.reflect.Constructor.newInstance(Constructor.java: 45) 的 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 的 sun.reflect.GeneratedConstructorAccessor131.newInstance(Unknown Source) 的 java.lang.UnsupportedOperationException 526)
我认为配置不完全正确,但我不知道在哪里......