Hi Jitesh, What were the bundles that you updated? This looks like a compatibility issue with other JCR bundles. If you want to try it out, I would recommend you to build it straight out of the trunk.
I built the trunk couple of weeks back and used the packaged standalone sling7 jar. User manager ui works without any issues. Regards, Anuj On Thu, Aug 18, 2011 at 2:56 AM, Jithesh A P <[email protected]> wrote: > Hi, > > I am trying to use the usermanager-UI provided in the samples. Accessing it > thru /system/userManager.html, shows the page, if i click on users and click > on "A", it throws the error below (the bolded error after the mail). > > Just to let you all know, i am using apache sling 6 and running the > standalone jar. when i had pushed the usermanager-ui bundle it did not start > up as it needed JCR API 2.2, which i downloaded and updated the bundle. > > I also tried a html.esp and tried to do the findauthorizables like this > > var jcrSession = > request.getResourceResolver().adaptTo(Packages.javax.jcr.Session); > var userManager = > Packages.org.apache.sling.jcr.base.util.AccessControlUtil.getUserManager(jcrSession); > > searchResults = userManager.getAuthorizables("jithesh"); - this also > breaks at this point and says cannot find function findAuthorizables > > So i feel something to do at findauthorizables etc. I am not a java person > so it would be great if someone can point me on what to do here. > > Regards > Jithesh > Wrapped org.apache.sling.api.scripting.ScriptEvaluationException: Failure > running script /libs/sling/userManager/searchresult.html.esp: > org.apache.jackrabbit.core.security.user.UserManagerImpl.findAuthorizables(Lorg/apache/jackrabbit/api/security/user/Query;)Ljava/util/Iterator; > (/libs/sling/users/searchresult.html.esp#23) (500) > The requested URL /system/userManager/user.searchresult.html resulted in an > error in /libs/sling/userManager/searchresult.html.esp. > Exception: > org.mozilla.javascript.WrappedException: Wrapped > org.apache.sling.api.scripting.ScriptEvaluationException: Failure running > script /libs/sling/userManager/searchresult.html.esp: > org.apache.jackrabbit.core.security.user.UserManagerImpl.findAuthorizables(Lorg/apache/jackrabbit/api/security/user/Query;)Ljava/util/Iterator; > (/libs/sling/users/searchresult.html.esp#23) at > org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1757) at > org.mozilla.javascript.MemberBox.invoke(MemberBox.java:170) > > >
