Upgrading to Sun Master Index

Survivor Strategy

The Configuration Editor might make changes to the survivor strategy in update.xml that prevent the project from being built. To fix the file, do the following:

  1. Open update.xml.

  2. If any candidate fields have a specific strategy defined, reformat the XML structure for that candidate field by removing the forward slash at the end of the candidate-field element and adding a closing candidate-field element after the survivor-strategy element.

    For example, the following excerpt:


    <candidate-field name="Person.Phone[*].*"/>
       <survivor-strategy>
          <strategy-class>com.sun.mdm.index.survivor.impl.WeightedSurvivorStrategy
          </strategy-class>
          <parameters>
             <parameter>
                <parameter-name>ConfigurationModuleName</parameter-name>
                <parameter-type>java.lang.String</parameter-type>
                <parameter-value>WeightedSurvivorCalculator</parameter-value>
             </parameter>
          </parameters>
       </survivor-strategy>

    Would change to this:


    <candidate-field name="Person.Phone[*].*">
       <survivor-strategy>
          <strategy-class>com.sun.mdm.index.survivor.impl.WeightedSurvivorStrategy
          </strategy-class>
          <parameters>
             <parameter>
                <parameter-name>ConfigurationModuleName</parameter-name>
                <parameter-type>java.lang.String</parameter-type>
                <parameter-value>WeightedSurvivorCalculator</parameter-value>
             </parameter>
          </parameters>
       </survivor-strategy>
    </candidate-field>