WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  wsadmin Exception: IBM Connections 4.5

    Posted Wed May 14, 2014 05:17 AM
    HI,

    I Used the reparenting commands to modify a subcommunity to become a stand alone community by following this IBM Wiki :

    www-10.lotus.com/ldd/lcwiki.nsf/xpDocVie...

    Commands Which I have run:

    cd D:\IBM\Websphere\AppServer\profiles\Dmgr01\bin
    wsadmin -lang jython -username wasadmin -password wasadmin
    execfile("communitiesAdmin.py")
    CommunitiesService.moveSubcommunityToCommunity("6d854b5a-f483-4415-b75a-77c1503926be")

    And wsadmin Client gives an error like below:

    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]

    Help should be appcreciated:)

    Thanks,
    Shiva




  • 2.  wsadmin Exception: IBM Connections 4.5

    Posted Wed May 14, 2014 09:21 AM
    Hi Shiva,

      Are you accessing first wsadmin interface and then launching execfile("communitiesAdmin.py") and finally CommunitiesService.moveSubcommunityToCommunity("6d854b5a-f483-4415-b75a-77c1503926be")?
     
      are you connecting to the correct node?
     
      In documentation its a space between CommunitiesService.moveSubcommunityToCommunity and The UUID of the subcommunity
     
      Anyway I suggest to enable traces of wsadmin to get more details:
     
      Go to D:\IBM\Websphere\AppServer\profiles\Dmgr01\properties\

      Edit wsadmin.properties and uncomment the line

      #com.ibm.ws.scripting.traceString=com.ibm.*=all=enabled

      then try again the command and after fails review wasadmin traceout (by default)

      D:\IBM\Websphere\AppServer\profiles\Dmgr01\logs\wsadmin.valout
     
      Hope this helps, tell us if you need more support.
     
     regards


  • 3.  wsadmin Exception: IBM Connections 4.5

    Posted Thu May 15, 2014 09:09 AM
    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 



     



  • 4.  wsadmin Exception: IBM Connections 4.5

    Posted Thu May 15, 2014 02:39 PM
    Shiva,


      review if in your Connections SystemOut.log have you any message like this
     
       
       
       000000f8 TangoServiceI W com.ibm.tango.internal.service.TangoServiceImpl getMemberProfileWithUpdates CLFRM0110W: Undetermined memberProfile, in which its name: wasadmin, email: null, member uuid: 5de8dc2d-0829-42ef-897d-c99c208eb929, and logins: [wasadmin], closely matches to directory service object of an user, whose name: wasadmin, email: null, and logins: [wasadmin].
       
       www-10.lotus.com/ldd/lcforum.nsf/869c741...
       
       If yes do actions of the next link and try executing again the script.
       
    regards


  • 5.  wsadmin Exception: IBM Connections 4.5

    Posted Mon May 19, 2014 08:06 AM
    Gabriel,

    Thank you so much for your quick support.

    My issue has been resolved.

    After synchronizing the wsadmin ExtID with the CommunitiesMemberServices, Now I can able to move Sub Community is to a stand alone community & Parent community to a sub community.


    Commands:
    wsadmin>execfile("communitiesAdmin.py")
    wsadmin>CommunitiesMemberService.syncMemberExtIdByLogin("wasadmin") 
     

     Thanks a tonne Gabriel 


  • 6.  wsadmin Exception: IBM Connections 4.5

    Posted Mon May 19, 2014 08:17 AM
    Good news, glad to help Shiva

    regards