Hi
Gabriel,
First I want to thank you for your quick reply.
Yes,
1) I connected to wsadmin client first
2) executed
execfile("communitiesAdmin.py") successfully
3) Connected to proper node also
4) yes, you are right
In documentation its a space between CommunitiesService.moveSubcommunityToCommunity and The UUID of the subcommunity. But I executed commands properly without space.
5) I enabled trace of wsadmin by Editing wsadmin.properties and uncommented the line #com.ibm.ws.scripting.traceString=com.ibm.*=all=enabled
6) I re-run the commands again.
Please follow this commands which I have run:
D:\IBM\WebSphere\AppServer\profiles\Dmgr01\bin>wsadmin -lang jython -username wasadmin -password wasadmin
WASX7209I: Connected to process "dmgr" on node LAMINAIRESCellManager01 using SOAP connector; The type of process is: DeploymentManager
WASX7031I: For help, enter: "print Help.help()"
wsadmin>execfile("communitiesAdmin.py")
1: WebSphere:cell=LAMINAIRESCell01,name=CommunitiesAdmin,type=LotusConnections,node=LAIDERONNode01,process=Cluster1_server1
2: WebSphere:cell=LAMINAIRESCell01,name=CommunitiesAdmin,type=LotusConnections,node=LAITERONNode01,process=Cluster1_server2
Which service do you want to connect to?
1
Connecting to WebSphere:name=CommunitiesAdminService,type=LotusConnections,cell=LAMINAIRESCell01,node=LAIDERONNode01,process=Cluster1_server1
Communities Administration initialized
wsadmin>CommunitiesService.moveSubcommunityToCommunity("6d854b5a-f483-4415-b75a-77c1503926be")
Exception - com.ibm.ws.scripting.ScriptingException com.ibm.ws.scripting.ScriptingException: javax.management.RuntimeMBeanException: java.lang.Runtime
Exception: [wasadmin]
wsadmin>
And output of wsadmin.tracout:
[15/5/14 13:03:38:851 CEST] 00000000 SecurityHelpe < isCertPathValidatorException: false Exit
[15/5/14 13:03:38:851 CEST] 00000000 SecurityHelpe > getGSSException Entry
javax.management.RuntimeMBeanException: java.lang.RuntimeException: [wasadmin]
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.handleAdminFault(SOAPConnectorClient.java:951)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplateOnce(SOAPConnectorClient.java:919)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:685)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invokeTemplate(SOAPConnectorClient.java:675)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:661)
at com.ibm.ws.management.connector.soap.SOAPConnectorClient.invoke(SOAPConnectorClient.java:483)
at com.sun.proxy.$Proxy0.invoke(Unknown Source)
at com.ibm.ws.management.AdminClientImpl.invoke(AdminClientImpl.java:224)
at com.ibm.ws.scripting.AdminControlClient.invoke_jmx(AdminControlClient.java:827)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
at org.python.core.PyMethod.__call__(PyMethod.java)
at org.python.core.PyObject.__call__(PyObject.java)
at org.python.core.PyObject.invoke(PyObject.java)
at org.python.pycode._pyx51.moveSubcommunityToCommunity$50(communitiesAdmin.py:990)
at org.python.pycode._pyx51.call_function(communitiesAdmin.py)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyFunction.__call__(PyFunction.java)
at org.python.core.PyInstance.invoke(PyInstance.java)
at org.python.pycode._pyx52.f$0(:1)
at org.python.pycode._pyx52.call_function()
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.Py.exec(Py.java)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
at com.ibm.bsf.engines.jython.JythonEngine$BSFPythonInterpreter.runcode(Unknown Source)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
at org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java)
at com.ibm.bsf.engines.jython.JythonEngine.iexec(Unknown Source)
at com.ibm.bsf.BSFManager$7.run(Unknown Source)
at java.security.AccessController.doPrivileged(AccessController.java:327)
at com.ibm.bsf.BSFManager.iexec(Unknown Source)
at com.ibm.ws.scripting.AbstractShell.interactive(AbstractShell.java:1386)
at com.ibm.ws.scripting.AbstractShell.run(AbstractShell.java:2273)
at com.ibm.ws.scripting.WasxShell.main(WasxShell.java:1096)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:234)
at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:96)
at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:587)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:198)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:340)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:981)
at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:374)
at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:145)
Caused by: java.lang.RuntimeException: [wasadmin]
at com.ibm.tango.internal.service.TangoServiceImpl.getMemberProfileWithUpdates(TangoServiceImpl.java:3171)
at com.ibm.lconn.comm.auth.LCSubjectPolicyAuthContextImpl.getCurrentMemberProfile(LCSubjectPolicyAuthContextImpl.java:419)
at com.ibm.lconn.comm.auth.LCSubjectPolicyAuthContextImpl.getCurrentMemberProfile(LCSubjectPolicyAuthContextImpl.java:439)
at com.ibm.tango.internal.service.core.CommunityBo.save(CommunityBo.java:310)
at com.ibm.tango.internal.service.TangoServiceImpl.updateCommunity(TangoServiceImpl.java:4435)
at com.ibm.tango.util.CommunityUtils.moveSubcommunityToCommunity(CommunityUtils.java:178)
at com.ibm.tango.internal.service.admin.mbean.CommunitiesAdminService$22.run(CommunitiesAdminService.java:2886)
at com.ibm.tango.internal.service.admin.mbean.CommunitiesAdminService$22.run(CommunitiesAdminService.java:2884)
at java.security.AccessController.doPrivileged(AccessController.java:362)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:727)
at com.ibm.websphere.security.auth.WSSubject.doAsPrivileged(WSSubject.java:335)
at com.ibm.websphere.security.auth.WSSubject.doAsPrivileged(WSSubject.java:289)
at com.ibm.lconn.core.auth.wasimpl.WasLCSubjectDelegateImpl.doAsPrivileged(WasLCSubjectDelegateImpl.java:90)
at com.ibm.lconn.core.auth.LCSubject.doAsPrivileged(LCSubject.java:120)
at com.ibm.tango.internal.service.admin.mbean.CommunitiesAdminService.moveSubcommunityToCommunity(CommunitiesAdminService.java:2884)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:272)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:106)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:40)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:220)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:132)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:276)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:847)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:783)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1335)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1228)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:181)
at com.ibm.ws.management.connector.ipc.CallRouter.route(CallRouter.java:247)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink.doWork(IPCConnectorInboundLink.java:360)
at com.ibm.ws.management.connector.ipc.IPCConnectorInboundLink$IPCConnectorReadCallback.complete(IPCConnectorInboundLink.java:602)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1700)
[15/5/14 13:03:38:866 CEST] 00000000 SecurityHelpe 3 getGSSException class name: javax.management.RuntimeMBeanException
[15/5/14 13:03:38:866 CEST] 00000000 SecurityHelpe < getGSSException: null Exit
[15/5/14 13:03:38:866 CEST] 00000000 AbstractShell > setLastException Entry
[15/5/14 13:03:38:866 CEST] 00000000 AbstractShell < setLastException Exit
[15/5/14 13:03:38:866 CEST] 00000000 AbstractShell 3 Command -- CommunitiesService.moveSubcommunityToCommunity("6d854b5a-f483-4415-b75a-77c1503926be")
[15/5/14 13:03:38:866 CEST] 00000000 AbstractShell > getCommand Entry
Thanks,
Shiva