Clarity

Expand all | Collapse all

"service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

  • 1.  "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Posted Apr 09, 2018 08:30 AM

    Hi Everyone,

     

    The command "service clone app" fails on 15.3 Patch 2.

    As a workaround, I edit $NIKU_HOME/config/hosts.xml and $NIKU_HOME/config/properties.xml

     

    Is this issue is going to be fixed soon ?

     

    Thx,

    David

     

    > version
    # Full version number
    version=15.3.0.200

    # Clarity-specific additional information
    display.version=${version}
    release=15.3.0
    package.id=15.3.0.2.16
    package.number=02
    package.build=16
    package=15.3.0.2.16
    build=16
    package.ref.version=15.3.0.2.16
    package.ref.release=15.3.0.2
    > status
    CA PPM Beacon [beacon] is not running.
    CA PPM App Server 8080 [app] is not running.

    > service clone app
    Cloning service(s)...
    Failed to clone service: app: java.lang.IllegalArgumentException: 'null' is not a valid ApplicationServerInstanceTypeServiceTypeType
    Done.


  • 2.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Broadcom Employee
    Posted Apr 10, 2018 03:48 AM

    Hi David 

     

    I tried cloning the app in 15.2 patch 6 and I was able to do it 

     

     



  • 3.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)
    Best Answer

    Posted Apr 12, 2018 03:03 AM
      |   view attached

    Hi Again,

     

    Same error on 15.4 (no patch).

    I'm leaving attached the properties.xml for 15.4.

    For info, I have created the case 01010694.

     

    Regards,

    David

     

    > version
    # Full version number
    version=15.4.0.270
    # Clarity-specific additional information
    display.version=${version}
    release=15.4.0

     

    > service clone app
    Cloning service(s)...
    Failed to clone service: app: java.lang.IllegalArgumentException: 'null' is not a valid ApplicationServerInstanceTypeServiceTypeType
    Done.
    > service clone app 2
    No service found with id: 2
    Cloning service(s)...
    Failed to clone service: app: java.lang.IllegalArgumentException: 'null' is not a valid ApplicationServerInstanceTypeServiceTypeType
    Done.

    Attachment(s)



  • 4.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Posted May 23, 2018 02:21 PM

    Hi,

    We are also facing the same issue on 15.4 for clone app.

       

    @David - Did you hear back from support on this issue. What is the workaround/solution for this one.



  • 5.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Broadcom Employee
    Posted May 23, 2018 03:05 PM

    Hi Abhijit/ David,

     

    This was logged as defect DE40475 'service clone app' fails java.lang.IllegalArgumentException

    Affecting 15.3 and 15.4 and fixed in 15.4.1

     

    To workaround the issue please do the following, I just tested it successfully:

     

    1. Open the $cappm/config/hosts.xml

    Copy the line corresponding to app hosts accordingly:

    Instead of:

        <service id="app" serviceType="app" active="true"/>

     

    Add another entry for app2:

                     <service id="app" serviceType="app" active="true"/>

                    <service id="app2" serviceType="app" active="true"/>

     

    Save the file.

     

    2. Now run: service status all

    Service deploy start app2

     

    This should resolve the issue for now until you upgrade.

     

    Please let me know for any questions -Nika



  • 6.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Posted May 23, 2018 04:37 PM
      |   view attached

    Hello Nika,

    Thanks for sharing workaround.

    But it did not work. I edited file as per instructions but it does not create executable service.

    Attached is the screenshot.

     

     

     

    Kind Regards,

    Abhijit Tarkunde

    IT Systems Analyst

    BB&T, IT Portfolio Services

    312.885.5111

    ATarkunde@BBandT.com<mailto:ATarkunde@BBandT.com>



  • 7.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Posted May 24, 2018 02:03 AM

    Hello,

     

    You also need to edit manually $NIKU_HOME/config/properties.xml. Copy-paste following nodes :

     

    - applicationServer/applicationServerInstance[@id='app'] and change properties id to app2 and rmiPort to a unique value (from 23791 to 23793 for instance), be sure it is not in conflict with csa service

    - webServer/webServerInstance[@id='app'] and change properties id to app2 and port, connectorPort to a unique value

     

    With the change made on $NIKU_HOME/config/hosts.xml, it should work after deploy :

    service add deploy start all

     

    Regards,

    David



  • 8.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Broadcom Employee
    Posted May 24, 2018 02:40 PM

    Thanks for adding that David, yes, looks like this part is also not being added and has to be done manually.



  • 9.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Posted May 25, 2018 04:26 AM

    Thanks David.  

    This will help in our upgrade as well.



  • 10.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Posted May 25, 2018 10:08 AM

    Thank you David! After doing that property part it worked fine.

    Thank you Nika for your help on this.

     

    Kind Regards,

    Abhijit



  • 11.  Re: "service clone app" fails java.lang.IllegalArgumentException (15.3.0.2)

    Posted May 24, 2018 12:15 AM

    This is known issue and had been logged already as Defect DE40475. The good news is that as per the latest update the issue has been fixed in CA PPM 15.4.1 version. Hope that helps. 

     

    Cheers!