Hi! I am trying to rename a user object in the way as 'this'
(http://tinyurl.com/l35bkdn) cool story outline (HowTo: Make your Move
(in IDM Workflows)).

But a function getAdminContext couse an error. The code I am trying to
call at a mapping activity:

Code:
--------------------
(function () {
var ctx = new Packages.javax.naming.directory.InitialDirContext( );
ctx = Packages.com.sssw.fw.directory.api.EboDirectoryFac tory.getConnMgr().getAdminContext( false ); // this line erase an error
return "";
})()
--------------------

The error is:

Code:
--------------------
2013-06-04 10:10:13,352 ERROR [STDERR] (pool-27-thread-10) Exception in thread "pool-27-thread-10"
2013-06-04 10:10:13,352 ERROR [STDERR] (pool-27-thread-10) java.lang.IllegalAccessError
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.util.CodeBaseSecurity.checkCodeBase Permission(CodeBaseSecurity.java:63)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.sssw.fw.directory.realm.impl.jndildap.EboLdapD irectoryConnectionManager.getAdminConnection(EboLd apDirectoryConnectionManager.java:163)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.sssw.fw.directory.realm.impl.jndildap.EboLdapD irectoryConnectionManager.getAdminContext(EboLdapD irectoryConnectionManager.java:262)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at java.lang.reflect.Method.invoke(Method.java:597)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.MemberBox .invoke(Unknown Source)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.NativeJav aMethod.call(Unknown Source)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.optimizer .OptRuntime.call1(Unknown Source)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.gen.c1049 ._c2(Unknown Source)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.gen.c1049 .call(Unknown Source)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.optimizer .OptRuntime.callName(Unknown Source)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.gen.c1049 ._c1(Unknown Source)
2013-06-04 10:10:13,353 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.gen.c1049 .call(Unknown Source)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.optimizer .OptRuntime.call0(Unknown Source)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.gen.c1049 ._c0(Unknown Source)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.gen.c1049 .call(Unknown Source)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.ScriptRun time.doTopCall(Unknown Source)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.gen.c1049 .call(Unknown Source)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.mozilla.javascript.gen.c1049 .exec(Unknown Source)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.impl.lang.es.impl.EcmaScript Engine.executeExpression(EcmaScriptEngine.java:641 )
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.script.impl.lang.es.impl.EcmaScript Engine.evalToObject(EcmaScriptEngine.java:490)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.af.impl.core.DataItemEvaluator.eval uateSource(DataItemEvaluator.java:792)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.af.impl.core.DataItemEvaluator.eval uate(DataItemEvaluator.java:678)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.af.impl.core.DataItemEvaluator.eval uate(DataItemEvaluator.java:626)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.af.impl.activity.MappingActivity.pr ocess(MappingActivity.java:65)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.af.impl.activity.ActivityNode.notif yArrive(ActivityNode.java:203)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at com.novell.soa.af.impl.activity.RunnableActivity.r un(RunnableActivity.java:50)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
2013-06-04 10:10:13,354 ERROR [STDERR] (pool-27-thread-10) at java.lang.Thread.run(Thread.java:662)
--------------------


Any ideas why I got that error?

================
RBPM 4.02 Patch B


--
hello_amigo
------------------------------------------------------------------------
hello_amigo's Profile: https://forums.netiq.com/member.php?userid=211
View this thread: https://forums.netiq.com/showthread.php?t=47883