Hi Chan, "UserManagementService "OSGi service was registered under the implementation class name, not interface. Please see the following code segment.
BundleContext bundleContext = componentContext.getBundleContext(); bundleContext.registerService(UserManagementService.class.getName(),new UserManagementService(), null); I have changed the UserManagementService service publishing code as below to use its interface name instead of implementation class. Now the new name of the OSGi service is "*UserManager*". ( interface="org.wso2.carbon.device.mgt.user.core.UserManager") BundleContext bundleContext = componentContext.getBundleContext(); bundleContext.registerService(UserManager.class,new UserManagementService(), null); Thanks, Lakshitha Harshan Software Engineer Mobile: *+94724423048* Email: [email protected] Blog : http://harshanliyanage.blogspot.com/ *WSO2, Inc. :** wso2.com <http://wso2.com/>* lean.enterprise.middleware. On Mon, May 18, 2015 at 8:22 AM, Dulitha Wijewantha <[email protected]> wrote: > Hi guys, > Below is the progress of UIs - > > - Sliding operation pane > - Complex operation types > - WIFI operation for iOS > - Device loading based on platform > > There is an issue when logging into the EMM. > > [2015-05-17 17:39:07,624] ERROR > {org.jaggeryjs.jaggery.core.manager.WebAppManager} - > org.mozilla.javascript.WrappedException: Wrapped > org.jaggeryjs.scriptengine.exceptions.ScriptException: > org.mozilla.javascript.WrappedException: Wrapped > java.lang.NullPointerException (/mdm/modules/utility.js#24) > (/mdm/api/user-api.jag#27) > org.jaggeryjs.scriptengine.exceptions.ScriptException: > org.mozilla.javascript.WrappedException: Wrapped > org.jaggeryjs.scriptengine.exceptions.ScriptException: > org.mozilla.javascript.WrappedException: Wrapped > java.lang.NullPointerException (/mdm/modules/utility.js#24) > (/mdm/api/user-api.jag#27) > at > org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) > at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) > at > org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:587) > at > org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:507) > at org.jaggeryjs.jaggery.core.JaggeryServlet.doPost(JaggeryServlet.java:29) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:646) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:748) > at > org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:486) > at > org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:378) > at > org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:338) > at org.jaggeryjs.jaggery.core.JaggeryFilter.doFilter(JaggeryFilter.java:21) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) > at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:504) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) > at > org.wso2.carbon.tomcat.ext.valves.CompositeValve.continueInvocation(CompositeValve.java:99) > at > org.wso2.carbon.tomcat.ext.valves.CarbonTomcatValve$1.invoke(CarbonTomcatValve.java:47) > at > org.wso2.carbon.webapp.mgt.TenantLazyLoaderValve.invoke(TenantLazyLoaderValve.java:57) > at > org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.processResponse(WebappAuthenticatorFrameworkValve.java:46) > at > org.wso2.carbon.webapp.authenticator.framework.WebappAuthenticatorFrameworkValve.invoke(WebappAuthenticatorFrameworkValve.java:38) > at > org.wso2.carbon.tomcat.ext.valves.TomcatValveContainer.invokeValves(TomcatValveContainer.java:47) > at > org.wso2.carbon.tomcat.ext.valves.CompositeValve.invoke(CompositeValve.java:62) > at > org.wso2.carbon.tomcat.ext.valves.CarbonStuckThreadDetectionValve.invoke(CarbonStuckThreadDetectionValve.java:159) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) > at > org.wso2.carbon.tomcat.ext.valves.CarbonContextCreatorValve.invoke(CarbonContextCreatorValve.java:57) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421) > at > org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1074) > at > org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611) > at > org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1739) > at > org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1698) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) > at > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) > at java.lang.Thread.run(Thread.java:744) > Caused by: org.mozilla.javascript.WrappedException: Wrapped > org.jaggeryjs.scriptengine.exceptions.ScriptException: > org.mozilla.javascript.WrappedException: Wrapped > java.lang.NullPointerException (/mdm/modules/utility.js#24) > (/mdm/api/user-api.jag#27) > at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148) > at org.mozilla.javascript.FunctionObject.call(FunctionObject.java:386) > at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) > at org.jaggeryjs.rhino.mdm.api.c0._c_script_0(/mdm/api/user-api.jag:27) > at org.jaggeryjs.rhino.mdm.api.c0.call(/mdm/api/user-api.jag) > at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394) > at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091) > at org.jaggeryjs.rhino.mdm.api.c0.call(/mdm/api/user-api.jag) > at org.jaggeryjs.rhino.mdm.api.c0.exec(/mdm/api/user-api.jag) > at > org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) > ... 43 more > Caused by: org.jaggeryjs.scriptengine.exceptions.ScriptException: > org.mozilla.javascript.WrappedException: Wrapped > java.lang.NullPointerException (/mdm/modules/utility.js#24) > at > org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) > at org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) > at > org.jaggeryjs.jaggery.core.manager.WebAppManager.executeScript(WebAppManager.java:308) > at > org.jaggeryjs.jaggery.core.manager.WebAppManager.require(WebAppManager.java:358) > at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) > ... 52 more > Caused by: org.mozilla.javascript.WrappedException: Wrapped > java.lang.NullPointerException (/mdm/modules/utility.js#24) > at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1754) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:148) > at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225) > at org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:32) > at > org.jaggeryjs.rhino.mdm.modules.c3._c_anonymous_2(/mdm/modules/utility.js:24) > at org.jaggeryjs.rhino.mdm.modules.c3.call(/mdm/modules/utility.js) > at org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:63) > at > org.jaggeryjs.rhino.mdm.modules.c3._c_anonymous_4(/mdm/modules/utility.js:34) > at org.jaggeryjs.rhino.mdm.modules.c3.call(/mdm/modules/utility.js) > at > org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85) > at > org.jaggeryjs.rhino.mdm.modules.c1._c_anonymous_1(/mdm/modules/user.js:30) > at org.jaggeryjs.rhino.mdm.modules.c1.call(/mdm/modules/user.js) > at org.mozilla.javascript.optimizer.OptRuntime.call0(OptRuntime.java:23) > at org.jaggeryjs.rhino.mdm.modules.c1._c_script_0(/mdm/modules/user.js:23) > at org.jaggeryjs.rhino.mdm.modules.c1.call(/mdm/modules/user.js) > at org.jaggeryjs.rhino.mdm.modules.c1.exec(/mdm/modules/user.js) > at > org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:567) > ... 59 more > Caused by: java.lang.NullPointerException > at > org.wso2.carbon.context.PrivilegedCarbonContext.getOSGiService(PrivilegedCarbonContext.java:369) > at > org.wso2.carbon.context.PrivilegedCarbonContext.getOSGiService(PrivilegedCarbonContext.java:341) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:606) > at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126) > ... 74 more > > This is happening because the org.wso2.carbon.device. > mgt.user.core.service.UserManagementService is not available anymore. Did > we change the service name? This is a blocker since the user can't login to > system (I am working on an older version as a workaround for now). I > couldn't test the searches based on roles and users because of the above > mentioned issue. > > Also I have created a layer above the operation payload generator in Front > end that can be used for Profile generation as well. @Dilan let's have a > chat and embed that on the profile page of the policy. > > @Dilshan please send me the API doc for the mail operation so that I can > implement that before noon. Another point is that - after moving all > profile operations to the sliding operation pane - only Device Lock, > Location, Alarm, Enterprise Wipe are available as Command operations. Do we > have anymore command operations that we can integrate. > > @ManojG - I will meet you to talk about the Device Info for Android. Still > didn't test it because of the fore mentioned issue. > > > > Cheers~ > > -- > Dulitha Wijewantha (Chan) > Software Engineer - Mobile Development > WSO2 Inc > Lean.Enterprise.Middleware > * ~Email [email protected] <[email protected]>* > * ~Mobile +94712112165 <%2B94712112165>* > * ~Website dulitha.me <http://dulitha.me>* > * ~Twitter @dulitharw <https://twitter.com/dulitharw>* > *~Github @dulichan <https://github.com/dulichan>* > *~SO @chan <http://stackoverflow.com/users/813471/chan>* >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
