IBM Support

Parsing default Date/Time/Timestamp values when exporting item type definitions to XML schemas.

Troubleshooting


Problem

When you export an item type that contains a default value for a Date, Time, or Timestamp field, you might encounter an error if the format of the default value is not parseable by the java.sql.Date, java.sql.Time, or java.sql.Timestamp classes.

Symptom

When you try to export an item type to XML using the system administration client, you will receive an error similar to the following:
[MSG]: java.lang.IllegalArgumentException: Timestamp format must be yyyy-mm-dd hh:mm:ss.fffffffff
at java.sql.Timestamp.valueOf(Timestamp.java:304)
at com.ibm.mm.sdk.xml.PXMLAttributeTransformerICM.castCMAttrTypeValue(PXMLAttributeTransformerICM.java:1056)
at com.ibm.mm.sdk.xml.PXMLAttributeTransformerICM.toXMLDataModel(PXMLAttributeTransformerICM.java:356)
at com.ibm.mm.sdk.xml.PXMLElementTransformerICM.toXMLDataModel(PXMLElementTransformerICM.java:486)
at com.ibm.mm.sdk.xml.PXMLDocumentElementTransformerICM.toXMLDataModel(PXMLDocumentElementTransformerICM.java:110)
at com.ibm.mm.sdk.xml.PXMLExportDataModelICM.transformCMItemTypeToXSDObject(PXMLExportDataModelICM.java:354)
at com.ibm.mm.sdk.xml.PXMLExportDataModelICM.exportDM(PXMLExportDataModelICM.java:229)
at com.ibm.mm.sdk.xml.PXMLExportICM.exportToXML(PXMLExportICM.java:131)
at com.ibm.mm.sdk.xml.PXMLSysAdminServiceICM.extractLS(PXMLSysAdminServiceICM.java:481)
at com.ibm.mm.sdk.xml.PXMLSysAdminServiceICM.extract(PXMLSysAdminServiceICM.java:193)
at com.ibm.mm.sdk.xml.DKXMLSysAdminService.extract(DKXMLSysAdminService.java:360)
at com.ibm.mm.admin.client.CsaXMLExportOptionsModel.export(CsaXMLExportOptionsModel.java:562)
at com.ibm.mm.admin.client.CsaXMLExportOptionsModel.serverAction(CsaXMLExportOptionsModel.java:1051)
at com.ibm.mm.admin.client.CsaXMLExportOptionsDialog.doExport(CsaXMLExportOptionsDialog.java:857)
at com.ibm.mm.admin.client.CsaXMLExportOptionsDialog.access$1600(CsaXMLExportOptionsDialog.java:81)
at com.ibm.mm.admin.client.CsaXMLExportOptionsDialog$ExportThread.run(CsaXMLExportOptionsDialog.java:980)

[{"Product":{"code":"SSRS7Z","label":"IBM Content Manager Enterprise Edition"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"DB2 Information Integrator for Content","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"8.4.3","Edition":"All Editions","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
17 June 2018

UID

swg21472576