Hi all,

Problem like posted in https://forums.novell.com/showthread...esh-is-running.

Workflow has 3 approvals steps and after each, an integration activity that reads approver comment. Always after second integration named password cannot be read. Bellow tomcats trace after a successful read (after first approval):
Code:
2017-10-05 14:54:27,156 [pool-7-thread-7] TRACE com.novell.soa.af.impl.core.DataItemEvaluator- [RBPM] registerNrfRequest - nrfRequestDNNode found
2017-10-05 14:54:27,156 [pool-7-thread-7] TRACE com.novell.soa.af.impl.core.DataItemEvaluator- [RBPM] registerNrfRequest - nrfRequestDN = [cn=20171005144847-4bbdbedb1f1a4c72a6d07fd91d35899b-0,cn=Requests,cn=RoleConfig,cn=AppConfig,cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME]
2017-10-05 14:54:27,225 [pool-7-thread-7] DEBUG com.novell.soa.af.impl.core.DataItemEvaluator- [RBPM] evaluating source expression: GCV.getValueForNamedPassword('userapp-pwd');
2017-10-05 14:54:27,225 [pool-7-thread-7] TRACE com.novell.soa.af.impl.scripting.GCVScript- [RBPM] Calling extended operation (GetDriverGCVResponse) lCtx.extendedOperation(new GetDriverGCVRequest(cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME, userapp-pwd));
2017-10-05 14:54:27,281 [pool-7-thread-7] TRACE com.novell.soa.af.impl.scripting.GCVScript- [RBPM] GCV definition is: <?xml version="1.0" encoding="UTF-8"?><nds dtdversion="4.0" ndsversion="8.x">
	<source>
		<product edition="Advanced" version="4.5.3.0">DirXML</product>
		<contact>NetIQ Corporation</contact>
	</source>
	<output>
		<status level="success">Global Configuration Values<configuration-values>
				<definitions>
					<definition display-name="userapp-pwd" name="userapp-pwd" type="password-ref">
						<description></description>
						<value xml:space="preserve">userapp-user-pwd</value>
					</definition>
				</definitions>
			</configuration-values>
		</status>
	</output>
</nds>
2017-10-05 14:54:27,283 [pool-7-thread-7] TRACE com.novell.soa.af.impl.scripting.GCVScript- [RBPM] userapp-user-pwd
2017-10-05 14:54:27,283 [pool-7-thread-7] TRACE com.novell.soa.af.impl.scripting.GCVScript- [RBPM] Calling extended operation (GetNamedPasswordResponse) lCtx.extendedOperation(new GetNamedPasswordRequest(cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME, userapp-user-pwd));
2017-10-05 14:54:27,381 [pool-7-thread-7] DEBUG com.novell.soa.af.impl.core.DataItemEvaluator- [RBPM] result: password
and unsuccesful:
Code:
2017-10-05 15:29:50,842 [pool-7-thread-3] TRACE com.novell.soa.af.impl.core.DataItemEvaluator- [RBPM] registerNrfRequest - nrfRequestDNNode found
2017-10-05 15:29:50,842 [pool-7-thread-3] TRACE com.novell.soa.af.impl.core.DataItemEvaluator- [RBPM] registerNrfRequest - nrfRequestDN = [cn=20171005152015-4d64626481104f0d99d1ecba7cfbf730-0,cn=Requests,cn=RoleConfig,cn=AppConfig,cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME]
2017-10-05 15:29:50,904 [pool-7-thread-3] DEBUG com.novell.soa.af.impl.core.DataItemEvaluator- [RBPM] evaluating source expression: GCV.getValueForNamedPassword('userapp-pwd');
2017-10-05 15:29:50,905 [pool-7-thread-3] TRACE com.novell.soa.af.impl.scripting.GCVScript- [RBPM] Calling extended operation (GetDriverGCVResponse) lCtx.extendedOperation(new GetDriverGCVRequest(cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME, userapp-pwd));
2017-10-05 15:29:50,953 [pool-7-thread-3] TRACE com.novell.soa.af.impl.scripting.GCVScript- [RBPM] GCV definition is: <?xml version="1.0" encoding="UTF-8"?><nds dtdversion="4.0" ndsversion="8.x">
	<source>
		<product edition="Advanced" version="4.5.3.0">DirXML</product>
		<contact>NetIQ Corporation</contact>
	</source>
	<output>
		<status level="success">Global Configuration Values<configuration-values>
				<definitions>
					<definition display-name="userapp-pwd" name="userapp-pwd" type="password-ref">
						<description></description>
						<value xml:space="preserve">userapp-user-pwd</value>
					</definition>
				</definitions>
			</configuration-values>
		</status>
	</output>
</nds>
2017-10-05 15:29:50,955 [pool-7-thread-3] TRACE com.novell.soa.af.impl.scripting.GCVScript- [RBPM] userapp-user-pwd
2017-10-05 15:29:50,955 [pool-7-thread-3] TRACE com.novell.soa.af.impl.scripting.GCVScript- [RBPM] Calling extended operation (GetNamedPasswordResponse) lCtx.extendedOperation(new GetNamedPasswordRequest(cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME, userapp-user-pwd));
2017-10-05 15:29:50,958 [pool-7-thread-3] ERROR com.novell.soa.af.impl.activity.ActivityNode- [RBPM] Error Evaluating Script Error Evaluating Script com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
com.novell.soa.script.ScriptException: Error Evaluating Script Error Evaluating Script com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
	at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.evalToObject(EcmaScriptEngine.java:496)
	at com.novell.soa.af.impl.core.DataItemEvaluator.evaluateSource(DataItemEvaluator.java:842)
	at com.novell.soa.af.impl.core.DataItemEvaluator.evaluate(DataItemEvaluator.java:728)
	at com.novell.soa.af.impl.core.DataItemEvaluator.evaluate(DataItemEvaluator.java:700)
	at com.novell.soa.af.impl.activity.IntegrationActivity.evaluateMaps(IntegrationActivity.java:592)
	at com.novell.soa.af.impl.activity.IntegrationActivity.evaluateInputMaps(IntegrationActivity.java:526)
	at com.novell.soa.af.impl.activity.IntegrationActivity.execute(IntegrationActivity.java:470)
	at com.novell.soa.af.impl.activity.IntegrationActivity.process(IntegrationActivity.java:311)
	at com.novell.soa.af.impl.activity.ActivityNode.notifyArrive(ActivityNode.java:206)
	at com.novell.soa.af.impl.activity.IntegrationActivity.notifyArrive(IntegrationActivity.java:277)
	at com.novell.soa.af.impl.activity.RunnableActivity.run(RunnableActivity.java:50)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: com.novell.soa.script.ScriptException: Error Evaluating Script com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
	at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.executeExpression(EcmaScriptEngine.java:642)
	at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.evalToObject(EcmaScriptEngine.java:483)
	... 13 more
Caused by: com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
	at com.novell.soa.script.mozilla.javascript.Context.throwAsScriptRuntimeEx(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.MemberBox.invoke(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.NativeJavaMethod.call(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.Interpreter.interpret(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.InterpretedFunction.call(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.InterpretedFunction.call(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.InterpretedFunction.exec(Unknown Source)
	at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.executeExpression(EcmaScriptEngine.java:633)
	... 14 more
Caused by: com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
	at com.novell.soa.af.impl.scripting.GCVScript.getNamedPassword(GCVScript.java:460)
	at com.novell.soa.af.impl.scripting.GCVScript.getValueForNamedPassword(GCVScript.java:118)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	... 22 more
Caused by: javax.naming.AuthenticationNotSupportedException: [LDAP: error code 13 - 13 (0xd)]; remaining name ''
	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3126)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2888)
	at com.sun.jndi.ldap.LdapCtx.extendedOperation(LdapCtx.java:3260)
	at sun.reflect.GeneratedMethodAccessor686.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sssw.fw.directory.realm.impl.jndildap.EboLdapContextProxyHandler.invokeMethod(EboLdapContextProxyHandler.java:145)
	at com.sssw.fw.directory.realm.impl.jndildap.EboLdapContextProxyHandler.invoke(EboLdapContextProxyHandler.java:86)
	at com.sun.proxy.$Proxy20.extendedOperation(Unknown Source)
	at com.novell.soa.af.impl.scripting.GCVScript.getNamedPassword(GCVScript.java:446)
	... 27 more
2017-10-05 15:29:50,959 [pool-7-thread-3] ERROR com.novell.soa.af.impl.LogEvent- [RBPM] [Workflow_Error] Initiated by cn=uaadmin,ou=USUARIOS,ou=CONTAS,o=ACME, Error Message: Dataitem [test_value_0] with expression [GCV.getValueForNamedPassword('userapp-pwd');] failed to evaluate., Process ID: 2480cee68d0442d2838dad11e663d048, Process Name: cn=metaAppRoletApproval,cn=RequestDefs,cn=AppConfig,cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME:134, Activity: Activity30, Recipient: cn=000006,ou=USUARIOS,ou=CONTAS,o=ACME
2017-10-05 15:29:50,963 [pool-7-thread-3] TRACE com.novell.soa.af.impl.LogEvent- [RBPM] Dataitem [test_value_0] with expression [GCV.getValueForNamedPassword('userapp-pwd');] failed to evaluate.
com.novell.soa.af.DataItemException: Dataitem [test_value_0] with expression [GCV.getValueForNamedPassword('userapp-pwd');] failed to evaluate.
	at com.novell.soa.af.impl.core.DataItemEvaluator.evaluateSource(DataItemEvaluator.java:848)
	at com.novell.soa.af.impl.core.DataItemEvaluator.evaluate(DataItemEvaluator.java:728)
	at com.novell.soa.af.impl.core.DataItemEvaluator.evaluate(DataItemEvaluator.java:700)
	at com.novell.soa.af.impl.activity.IntegrationActivity.evaluateMaps(IntegrationActivity.java:592)
	at com.novell.soa.af.impl.activity.IntegrationActivity.evaluateInputMaps(IntegrationActivity.java:526)
	at com.novell.soa.af.impl.activity.IntegrationActivity.execute(IntegrationActivity.java:470)
	at com.novell.soa.af.impl.activity.IntegrationActivity.process(IntegrationActivity.java:311)
	at com.novell.soa.af.impl.activity.ActivityNode.notifyArrive(ActivityNode.java:206)
	at com.novell.soa.af.impl.activity.IntegrationActivity.notifyArrive(IntegrationActivity.java:277)
	at com.novell.soa.af.impl.activity.RunnableActivity.run(RunnableActivity.java:50)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: com.novell.soa.script.ScriptException: Error Evaluating Script Error Evaluating Script com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
	at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.evalToObject(EcmaScriptEngine.java:496)
	at com.novell.soa.af.impl.core.DataItemEvaluator.evaluateSource(DataItemEvaluator.java:842)
	... 12 more
Caused by: com.novell.soa.script.ScriptException: Error Evaluating Script com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
	at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.executeExpression(EcmaScriptEngine.java:642)
	at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.evalToObject(EcmaScriptEngine.java:483)
	... 13 more
Caused by: com.novell.soa.script.mozilla.javascript.WrappedException: Wrapped com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
	at com.novell.soa.script.mozilla.javascript.Context.throwAsScriptRuntimeEx(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.MemberBox.invoke(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.NativeJavaMethod.call(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.Interpreter.interpret(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.InterpretedFunction.call(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.ScriptRuntime.doTopCall(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.InterpretedFunction.call(Unknown Source)
	at com.novell.soa.script.mozilla.javascript.InterpretedFunction.exec(Unknown Source)
	at com.novell.soa.script.impl.lang.es.impl.EcmaScriptEngine.executeExpression(EcmaScriptEngine.java:633)
	... 14 more
Caused by: com.novell.soa.af.ProvisioningException: Script error evaluating xml [cn=UserApplication,cn=DriverSet01,ou=IDM,ou=SERVICOS,o=ACME] for GCV key [userapp-user-pwd].
	at com.novell.soa.af.impl.scripting.GCVScript.getNamedPassword(GCVScript.java:460)
	at com.novell.soa.af.impl.scripting.GCVScript.getValueForNamedPassword(GCVScript.java:118)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	... 22 more
Caused by: javax.naming.AuthenticationNotSupportedException: [LDAP: error code 13 - 13 (0xd)]; remaining name ''
	at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3126)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:3081)
	at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2888)
	at com.sun.jndi.ldap.LdapCtx.extendedOperation(LdapCtx.java:3260)
	at sun.reflect.GeneratedMethodAccessor686.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sssw.fw.directory.realm.impl.jndildap.EboLdapContextProxyHandler.invokeMethod(EboLdapContextProxyHandler.java:145)
	at com.sssw.fw.directory.realm.impl.jndildap.EboLdapContextProxyHandler.invoke(EboLdapContextProxyHandler.java:86)
	at com.sun.proxy.$Proxy20.extendedOperation(Unknown Source)
	at com.novell.soa.af.impl.scripting.GCVScript.getNamedPassword(GCVScript.java:446)
	... 27 more
2017-10-05 15:29:50,969 [pool-7-thread-3] TRACE com.novell.soa.af.impl.core.ProcessImpl- [RBPM] Process 2480cee68d0442d2838dad11e663d048 isActive() = false
Both activities have same code.

Tried to put a flowdata variable with GCV.getValueForNamedPassword('userapp-pwd') value, but in this case always does not work.

Am I doing something wrong?

IDM 4.5.3 AE on eDir 8.8.8.7 and SLES 11 SP4