Clarity

  • 1.  Clone Service Fails (14.4.0.4.14)

    Posted Nov 21, 2016 10:46 AM

    Hi everyone,

     

    Has anyone experimented something like this ?

    service clone app
    Cloning service(s)...
    Failed to clone service: app: [Lcom.niku.union.config.properties.War; cannot be cast to java.util.ArrayList
    Done.

    Version Clarity :

    more /app/clarity/.setup/version.properties
    # Full version number
    version=14.4.0.234
    # Clarity-specific additional information
    display.version=${version}
    release=14.4.0
    majorRelease=14.4.0
    package.id=14.4.0.4.14
    package.number=04
    package.build=14
    package=14.4.0.4.14
    build=14
    package.ref.version=14.4.0.4.14
    package.ref.release=14.4.0.4

    Version OS :

    cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 6.0 (Santiago)

    I encounter the same issue on RHEL 6.6.

     

    As a workaround, I edited $NIKU_HOME/config/properties.xml and $NIKU_HOME/config/host.xml.

     

    Thx,

    David



  • 2.  Re: Clone Service Fails (14.4.0.4.14)

    Broadcom Employee
    Posted Nov 21, 2016 11:37 AM

    Hi David,

     

    Did you had the Bind address filled up?

     

    Regards

    Suman Pramanik 



  • 3.  Re: Clone Service Fails (14.4.0.4.14)

    Posted Nov 21, 2016 12:13 PM
      |   view attached

    Yes, please fin attached the file properties.xml.

     

    I do have the same issue with nsa service :

    service clone nsa
    Cloning service(s)...
    Failed to clone service: nsa: [Lcom.niku.union.config.properties.War; cannot be cast to java.util.ArrayList
    Done.

    However, I do not have the issue with bg service :

    service clone bg
    Cloning service(s)...
    Done.

    So I'm guessing, this issue only concerns web services ?

     

    Many thx for your answer.

    David

    Attachment(s)

    zip
    properties.xml.zip   2 KB 1 version


  • 4.  Re: Clone Service Fails (14.4.0.4.14)
    Best Answer

    Broadcom Employee
    Posted Nov 21, 2016 01:14 PM

    Hi David


    This is a known defect, CLRT-80792 service clone app throws error: Failed to clone service: app

    Affecting 14.4. and 15.1 and fixed in 14.4.0.5. If you can - apply the latest patch to fix this. Otherwise, proceed with using the same workaround on your other environments, it's a safe way to get this resolved. Great to hear you were able to get it sorted.

     

     

    I am going to post the full solution for everyone's benefits.

     

    Workaround

    Manually clone services by adding app2 service to hosts.xml and properties.xml and making sure to use unique RMI port and tomcat connector ports.

    1. Edit your $clarity_home/config/hosts.xml, example:
    From:

    <?xml version="1.0" encoding="UTF-8"?>
    <hosts>
      <host id="localhost">
        <service id="bg" serviceType="bg" active="true"/>
        <service id="beacon" serviceType="beacon" active="true"/>
        <service id="db" serviceType="db" active="false"/>
        <service id="reports" serviceType="reports" active="false"/>
        <service id="app" serviceType="app" active="true"/>
        <service id="nsa" serviceType="app" active="true"/>
      </host>
    </hosts>

    Add the app2:

    <?xml version="1.0" encoding="UTF-8"?>
    <hosts>
      <host id="localhost">
        <service id="bg" serviceType="bg" active="true"/>
        <service id="beacon" serviceType="beacon" active="true"/>
        <service id="db" serviceType="db" active="false"/>
        <service id="reports" serviceType="reports" active="false"/>
        <service id="app" serviceType="app" active="true"/>
    <service id="app2" serviceType="app" active="true"/>
        <service id="nsa" serviceType="app" active="true"/>
      </host>
    </hosts>

    Save.

    2. Now open your $clarity_home/config/properties.xml:

    3. Add additional lines for <applicationServerInstance, copying the app server lines and modifying the rmiPort to set to an unused value. Example:

    From: 

       <applicationServerInstance id="app" serviceName="CA PPM App Server" rmiPort="23791" jvmParameters="-Xms512m -Xmx2048m -XX:-UseGCOverheadLimit -DforceMemorySettings=false" maxThreads="1000" programParameters="" distributed="false" cacheDistributedSession="false" runJobScheduler="false" useSSO="false" maxConcurrentJobs="10" runProcessEngine="false" messageTimeToLive="120" messageReceiverInterval="5" exceptionRunInterval="normal" serviceUser="" servicePassword="admin" autoStartService="false" maxXmlNodesLimit="50000"/>
        <applicationServerInstance id="nsa" serviceName="CA PPM System Admin Server" rmiPort="23792" jvmParameters="-Xms64m -Xmx512m" programParameters="" distributed="false" cacheDistributedSession="false" runJobScheduler="false" useSSO="false" maxConcurrentJobs="0" runProcessEngine="false" messageTimeToLive="0" messageReceiverInterval="0" exceptionRunInterval="" serviceUser="" servicePassword="" autoStartService="false" maxXmlNodesLimit="0"/>


    To:

        <applicationServerInstance id="app" serviceName="CA PPM App Server" rmiPort="23791" jvmParameters="-Xms512m -Xmx2048m -XX:-UseGCOverheadLimit -DforceMemorySettings=false" maxThreads="1000" programParameters="" distributed="false" cacheDistributedSession="false" runJobScheduler="false" useSSO="false" maxConcurrentJobs="10" runProcessEngine="false" messageTimeToLive="120" messageReceiverInterval="5" exceptionRunInterval="normal" serviceUser="" servicePassword="admin" autoStartService="false" maxXmlNodesLimit="50000"/>
        <applicationServerInstance id="nsa" serviceName="CA PPM System Admin Server" rmiPort="23792" jvmParameters="-Xms64m -Xmx512m" programParameters="" distributed="false" cacheDistributedSession="false" runJobScheduler="false" useSSO="false" maxConcurrentJobs="0" runProcessEngine="false" messageTimeToLive="0" messageReceiverInterval="0" exceptionRunInterval="" serviceUser="" servicePassword="" autoStartService="false" maxXmlNodesLimit="0"/>
        <applicationServerInstance id="app2" serviceName="CA PPM App Server 2" rmiPort="23793" jvmParameters="-Xms512m -Xmx2048m -XX:-UseGCOverheadLimit -DforceMemorySettings=false" maxThreads="1000" programParameters="" distributed="false" cacheDistributedSession="false" runJobScheduler="false" useSSO="false" maxConcurrentJobs="10" runProcessEngine="false" messageTimeToLive="120" messageReceiverInterval="5" exceptionRunInterval="normal" serviceUser="" servicePassword="admin" autoStartService="false" maxXmlNodesLimit="50000"/>


     


    4. Now add additional lines for  <webServerInstance, copying the app server lines and modifying the Tomcat connector port to set to an unused value. Example:

    From:

       <webServerInstance id="app" entryUrl="http://localhost" sslEntryUrl="https://localhost:8043" port="80" enablePort="true" sslPort="8043" enableSSLPort="false" address="" connectorPort="8119" connectorAddress="" context="/niku" documentRoot="" useHttpOnlySessionCookie="false" useSecureSessionCookie="false" restContext="/ppm"/>
        <webServerInstance id="nsa" entryUrl="http://localhost:8090" sslEntryUrl="https://localhost:8093" port="8090" enablePort="true" sslPort="8093" enableSSLPort="false" address="" connectorPort="8109" connectorAddress="" context="/niku" documentRoot="" useHttpOnlySessionCookie="false" useSecureSessionCookie="false" restContext=""/>

     

    To:

       <webServerInstance id="app" entryUrl="http://localhost" sslEntryUrl="https://localhost:8043" port="80" enablePort="true" sslPort="8043" enableSSLPort="false" address="" connectorPort="8119" connectorAddress="" context="/niku" documentRoot="" useHttpOnlySessionCookie="false" useSecureSessionCookie="false" restContext="/ppm"/>
        <webServerInstance id="nsa" entryUrl="http://localhost:8090" sslEntryUrl="https://localhost:8093" port="8090" enablePort="true" sslPort="8093" enableSSLPort="false" address="" connectorPort="8109" connectorAddress="" context="/niku" documentRoot="" useHttpOnlySessionCookie="false" useSecureSessionCookie="false" restContext=""/>
        <webServerInstance id="app2" entryUrl="http://localhost" sslEntryUrl="https://localhost:8044" port="81" enablePort="true" sslPort="8044" enableSSLPort="false" address="" connectorPort="8120" connectorAddress="" context="/niku" documentRoot="" useHttpOnlySessionCookie="false" useSecureSessionCookie="false" restContext="/ppm"/>


    5. Save and restart the services.

     

    Please note we recommend you always apply the latest patches on your system, this will avoid you from hitting some known issues like the one above.

     

    Hope this helps -Nika



  • 5.  Re: Clone Service Fails (14.4.0.4.14)

    Posted Nov 24, 2016 03:36 AM

    Hello Nika,

     

    Thanks for your reply.

     

    The latest patch available on CA Download Center is this one :

    v14.4 Cumulative Patch 4 for CA PPM (14.4.0.4) ESD only DVD09085751E.iso (Published on 09/24/2016).

     

    Can you tell me when the patch 5 will be available for download ?

     

    Regards,

    David



  • 6.  Re: Clone Service Fails (14.4.0.4.14)

    Broadcom Employee
    Posted Nov 28, 2016 10:49 AM

    Hi David

     

    My apologies, I saw the patch being tested for QA sometime before your question and assumed it was released already to customers. It's actually still being QA-d and will be released for GA on 12/7.

    I hope this helps -Nika