Clarity

Expand all | Collapse all

Error during install Clarity 14.2

  • 1.  Error during install Clarity 14.2

    Posted Jul 30, 2015 04:03 AM

    A new installation of Clarity 14.2 on a Win2008 server fails with the error : (XPath) java.lang.ArrayIndexOutOfBoundsException: 2048

    It seems this occurs right after all the pre install check scripts are run.

    Anyone seen this before ?

     

    Btw, a 14.1 install doesn't error out on that point.

     




  • 2.  Re: Error during install Clarity 14.2

    Posted Jul 30, 2015 04:18 AM

    Do you get anything in the install.log?

    Did Checkinstall go OK?



  • 3.  Re: Error during install Clarity 14.2

    Posted Jul 30, 2015 04:28 AM

    Right after the entry : Target "_create-output-trailer" started, it fails with above error.

    Not sure where this message comes from.  I already compared the checkinstall.xml file from the 2 different versions, but i can't find anything different at the point where the _create-output-trailer is called through the antcall



  • 4.  Re: Error during install Clarity 14.2

    Posted Aug 03, 2015 05:29 PM

    Hi Frank. I was getting this error earlier today to but now I have a successful upgrade. I changed multiple things so I don't know what the fix is. I'll list the changes to see if anything jumps out at you.

    Win2008 R2 Small Architecture (tomcat) going from 13.2 to 14.2. Server & NSA were SSL (443 & 8093) with a separate Apache instance on port 80 for re-direct.

    - Restored back to 13.2

    - Re-installed 1.7.0_21 JDK

    - Re-added Beacon, App & NSA service.

    - Shut down Apache re-direct

    - Fired up NSA, disabled HTTPS, Enabled HTTP, set app to 'HTTP only'.

    - admin general-upload-config

    - Restarted everything, tested HTTP over port 80. Once pleased that 13.2 was good...

    - Shut down and removed all services.

    - Updated JAVA_HOME for 14.2's JDK path but kept 1.7.0_21 JDK on the file system.

    - Re backed up 13.2

    - Fired off 14.2 install, selected false for install NSA.

     

    Upgrade successful.

     

    Hope you spot something here that helps.



  • 5.  Re: Error during install Clarity 14.2

    Posted Aug 04, 2015 03:41 AM

    Robert,

    I always get the error on a brand new install. (I had it on both win2008 and win2012)

    Only workaround I found is to install R14.1 and upgrade to R14.2.

     

    Regards,

    Frank



  • 6.  Re: Error during install Clarity 14.2

    Broadcom Employee
    Posted Aug 03, 2015 02:45 PM

    Hi Frank,

    Can you please provide your install.log for review?

     

    Many thanks

    Nika



  • 7.  Re: Error during install Clarity 14.2
    Best Answer

    Broadcom Employee
    Posted Aug 04, 2015 04:51 PM

    Frank,

     

    We had other occurrences of same error during the checkinstall so I don't need your logs anymore. Here is the solution to this issue:

     

     

    Error message:
    8/3/15 12:52 PM (Target) Target "_output-log-info" started.
    8/3/15 12:52 PM (XPath) java.lang.ArrayIndexOutOfBoundsException: 2048

     


    What fails is actually the checkinstall tool that runs before and after upgrades.

    The error happens in ant target _output-log-info which exists in another file called check-utils.xml, ending with this:

    <target name="_output-log-info">
       <if property="check.result.msg" isEmpty="false" >
         <override name="result.message" value="${check.result.msg}" />
       </if>
      
        <trycatch>
            <try>
                <!-- CLRT-71023 : catch xerces parsing issue --> 
                <xpath file="${result.xml.file}">
                 <apply parent="/results" insert="true"  after="true">
                   <element name="result" overwrite="false">
                     <attribute name="name" value="${script.name}" />
                     <attribute name="value" value="${check.result}" />
                     <element name="resultinfo" >
                       ${result.message}
                     </element>
                   </element>
                 </apply>
                </xpath>
            </try>
            <catch>
                <fail>Error preparing the output log. Please run the utility again.</fail>
            </catch>
        </trycatch>
    </target>

     

    Here you’ll see the XPath task definition being called, in order to append some data to the logs.  In this version of the check-utils, it’s wrapped with a try/catch block to try and stop the ‘xerces parsing issue’ from causing the upgrade to bail when reading and adding content to the results XML file of the check scripts.  All it is trying to do in this case is add a line to that file to say that this script was skipped.

     

    This is given as the ultimate root cause, stated as a rare and possibly freak occurring fault: https://issues.apache.org/jira/browse/XERCESJ-1275

    I would suggest that perhaps the easiest way to work around this would be to ensure that the output going into that XML results file is different, so that it doesn’t end up on an exact boundary of 2048 bytes when re-parsing the content and tripping over.

     


    Solution:

    1.      Open the file $install\checkinstall\scripts\imports\check-utils.xml
    2.      On line 250 modify the output from:
    ${result.message}
    to
    ${result.message} ${result.message}
    3.      Save the file and re-run the upgrade. This should normally resolve the issue with the array output.

     


    Hope this helps.


    Kind Regards


    Nika Hadzhikidi
    CA Technologies
    Principal Support Engineer



  • 8.  Re: Error during install Clarity 14.2

    Posted May 03, 2017 07:17 AM

    Thanks Nika. This worked for us.



  • 9.  Re: Error during install Clarity 14.2

    Posted Aug 05, 2015 02:07 AM

    received the same error on new installation on windows 2008 server .

     

    I don't know if what i have done is correct , but i could get it installed using the below steps.

     

    1.) navigate to <directory which holds temp files>\install-packages\14.2.0\

    2.) run the install.bat script

    3.) continue the installation as you normally would do .

     

    Regards,

    Bhargav.



  • 10.  Re: Error during install Clarity 14.2

    Posted Aug 05, 2015 03:17 AM

    Bhargav,

    Be careful, I also tried that and it continued, but you'll run into other problems during the installation.

    I would follow the indications from Nika.

     

    Regards,

    Frank



  • 11.  Re: Error during install Clarity 14.2

    Broadcom Employee
    Posted Aug 05, 2015 03:03 PM

    Hello fellow Clarity folks:

     

    Just to clarify, in addition to my post above.
    Due to the unpredictability of the bug which is hit when exactly 2048 bytes are returned, changing the environment/parameters/steps sometimes helps to resolve the issue. But firstly, it does not 100% guarantee the solution, and secondly, changing the server or reinstalling can be time consuming. This is why going with the workaround I stated above would be the easiest remedy, which resolves the issue.

    Hope this helps to clarify why in some cases changing the server or the environment / environmental parameters help to workaround the issue too.

     

     

    Kind Regards

     

    Nika Hadzhikidi
    CA Technologies
    Principal Support Engineer