CAST HIGHLIGHT - Keyword Scanner - Error when detecting the JRE version in pom.xml

Below error was generated by keyword scanner after the user followed the steps in https://doc.casthighlight.com/how-to-detect-apps-using-oracles-jdk-1-8-others-portfolio-level/ with few edits: 

2020-05-12 22:26:24,606 INFO perl: out: file:/C:/X_Drive/Cust/CAST%20HL/CLI_Demo/keywords.xml:7: parser error : Couldn't find end of Start Tag filenameContentItem line 7
2020-05-12 22:26:24,606 INFO perl: out: <filenameContentItem id=”JRE_18_properties” filenamePattern=”pom.xml�
2020-05-12 22:26:24,606 INFO perl: out: ^
2020-05-12 22:26:24,606 INFO perl: out: file:/C:/X_Drive/Cust/CAST%20HL/CLI_Demo/keywords.xml:8: parser error : AttValue: " or ' expected
2020-05-12 22:26:24,606 INFO perl: out: <formula value=”(JRE_16_plugin or JRE_18_plugin or JRE_18_properties)” /
2020-05-12 22:26:24,606 INFO perl: out: ^
2020-05-12 22:26:24,606 INFO perl: out: file:/C:/X_Drive/Cust/CAST%20HL/CLI_Demo/keywords.xml:8: parser error : attributes construct error
2020-05-12 22:26:24,606 INFO perl: out: <formula value=”(JRE_16_plugin or JRE_18_plugin or JRE_18_properties)” /
2020-05-12 22:26:24,606 INFO perl: out: ^
2020-05-12 22:26:24,606 INFO perl: out: file:/C:/X_Drive/Cust/CAST%20HL/CLI_Demo/keywords.xml:8: parser error : Couldn't find end of Start Tag formula line 8
2020-05-12 22:26:24,606 INFO perl: out: <formula value=”(JRE_16_plugin or JRE_18_plugin or JRE_18_properties)” /
2020-05-12 22:26:24,606 INFO perl: out: ^
2020-05-12 22:26:24,606 INFO perl: out: file:/C:/X_Drive/Cust/CAST%20HL/CLI_Demo/keywords.xml:9: parser error : Opening and ending tag mismatch: UserScan line 2 and keywordGroup
2020-05-12 22:26:24,606 INFO perl: out: </keywordGroup>
2020-05-12 22:26:24,606 INFO perl: out: ^
2020-05-12 22:26:24,606 INFO perl: out: file:/C:/X_Drive/Cust/CAST%20HL/CLI_Demo/keywords.xml:10: parser error : Extra content at the end of the document
2020-05-12 22:26:24,606 INFO perl: out: </keywordScan>
2020-05-12 22:26:24,606 INFO perl: out: ^) from KeywordScan::parseKeywordDescription:perl/KeywordScan/parseKeywordDescription.pm:28

XML 

Workaround or Action Plan

1. Replace the improper double quotes with the proper double quotes. 

2. Please make the following change to display individual versions. 

<keywordScan name="Java Runtime Checks" version="1.0">
  <patternGroup name="JRE 1.6" weight="1" sensitive="0" full_word="0">
      <patterns>
    <search id="JRE_16_plugin">
        <filename>pom.xml</filename>
        <content>&lt;target&gt;1.6&lt;/target&gt;</content>
    </search>
      </patterns>
      <formula value="JRE_16_plugin"/>
  </patternGroup>
  <patternGroup name="JRE 1.8" weight="1" sensitive="0" full_word="0">
      <patterns>
    <search id="JRE_18_plugin">
        <filename>pom.xml</filename>
        <content>&lt;target&gt;1.8&lt;/target&gt;</content>
    </search>
    <search id="JRE_18_properties">
        <filename>pom.xml</filename>
        <content>&lt;maven.compiler.target&gt;1.8&lt;/maven.compiler.target&gt;</content>
    </search>
      </patterns>
      <formula value="(JRE_18_plugin or JRE_18_properties)"/>
  </patternGroup>
 </keywordScan>

 You should be able to see the below on the dashboard 

 

 

Related Articles

CAST HIGHLIGHT - Keyword Scanner - Error when detecting the JRE version in pom.xml

How to detect apps using Oracle’s JDK 1.8 (and others) at the portfolio level

Zendesk Ticket Number 

23254

Have more questions? Submit a request

Comments

Powered by Zendesk