[Fatal Error] EKMData.xml:290:16: The end-tag for element type "KeyUsageEvent" must
end with a '>' delimiter.
org.xml.sax.SAXParseException: The end-tag for element type "KeyUsageEvent" must
end with a '>' delimiter.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at com.ibm.keymanager.tools.EKMDataParser.a(EKMDataParser.java:136)
at com.ibm.keymanager.tools.EKMDataParser.a(EKMDataParser.java:26)
at com.ibm.keymanager.tools.EKMDataParser.main(EKMDataParser.java:93)
If this error occurs, it is due to a missing XML ending tag for an element. The
Encryption Key Manager metadata file can be recovered to allow the
EKMDataParser to parse the file again.
1. Make a backup copy of the Encryption Key Manager metadata file.
2. Edit the Encryption Key Manager metadata file.
3. In XML, there is should be an initial tag and a corresponding ending tag for
each piece of data or event.
v Some examples of an initial tag:
– <KeyUsageEvent>
– <driveSSN>
– <keyAlias1>
v Some examples of an ending tag:
– </KeyUsageEvent>
– </driveSSN>
– </keyAlias1>
4. Scan the file and look for unmatched tags. The error message from the
EKMDataParser lists which tag is missing its ending tag. This should make the
search somewhat easier.
5. When an unmatched tag is found, temporarily delete the event or add the
necessary tags to complete the event.
v For example, the following excerpt from a Encryption Key Manager metadata
file shows a first KeyUsageEvent that has no ending tag:
<KeyUsageEvent>
<driveSSN>001310000109</driveSSN>
<volSer> </volSer>
<driveWWN>5005076312418B07</driveWWN>
<keyAlias1>key00000000000000000F</keyAlias1>
<dki>6B657900000000000000000F</dki>
<dateTime>Thu Aug 30 09:50:53 MDT 2007</dateTime>
<KeyUsageEvent>
<driveSSN>001310000100</driveSSN>
<volSer> </volSer>
<driveWWN>5005076312418ABB</driveWWN>
<keyAlias1>key000000000000000000</keyAlias1>
<dki>6B6579000000000000000000</dki>
<dateTime>Thu Sep 06 16:49:39 MDT 2007</dateTime>
</KeyUsageEvent>
Adding a </KeyUsageEvent> between the lines <dateTime>Thu Aug 30
09:50:53 MDT 2007</dateTime> and <KeyUsageEvent> would complete the
first <KeyUsageEvent>.
Repairing the file corruption will allow the EKMDataParser to successfully parse
the data.
Chapter 8. Using Metadata 8-3