org.pentaho.pms.core.exception.PentahoMetadataException: org.xml.sax.SAXParseException; Premature end of file.

Pentaho BI Platform Tracking | Roland Bouman | 4 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Repo path: 0) edit pentaho-solutions/steel-wheels/metadata.xmi and make it invalid (f.e. change encoding to UTF-88) 1) open File > Manage datasources 2) In the datasource admin dialog, do New > Metadata 3) In the import dialog, choose pentaho-solutions/steel-wheels/metadata.xmi, set domain to steel-wheels and import. 4) This fails as as expected (BISERVER-9104) 5) Correct the error in pentaho-solutions/steel-wheels/metadata.xmi (or import a another, valid xmi file) 6) Try to import again. This fails again. The log shows: [Fatal Error] :-1:-1: Premature end of file. 14:54:56,902 ERROR [PentahoMetadataDomainRepository] org.xml.sax.SAXParseException; Premature end of file. 14:54:56,908 ERROR [MetadataDatasourceService] Error import metadata: org.pentaho.pms.core.exception.PentahoMetadataException: org.xml.sax.SAXParseException; Premature end of file. at org.pentaho.metadata.util.XmiParser.parseXmi(XmiParser.java:932) at org.pentaho.platform.plugin.services.metadata.PentahoMetadataDomainRepository.storeDomain(PentahoMetadataDomainRepository.java:228) at org.pentaho.platform.plugin.services.importer.MetadataImportHandler.processMetadataFile(MetadataImportHandler.java:75) at org.pentaho.platform.plugin.services.importer.MetadataImportHandler.importFile(MetadataImportHandler.java:50) at org.pentaho.platform.plugin.services.importer.PentahoPlatformImporter.importFile(PentahoPlatformImporter.java:70) Re-attempting the sequence after closing the datasource admin dialog doesn't fix the problem. But after refresh of the entire page, it works again (indicating the file is valid).

    Pentaho BI Platform Tracking | 4 years ago | Roland Bouman
    org.pentaho.pms.core.exception.PentahoMetadataException: org.xml.sax.SAXParseException; Premature end of file.
  2. 0

    Repo path: 0) edit pentaho-solutions/steel-wheels/metadata.xmi and make it invalid (f.e. change encoding to UTF-88) 1) open File > Manage datasources 2) In the datasource admin dialog, do New > Metadata 3) In the import dialog, choose pentaho-solutions/steel-wheels/metadata.xmi, set domain to steel-wheels and import. 4) This fails as as expected (BISERVER-9104) 5) Correct the error in pentaho-solutions/steel-wheels/metadata.xmi (or import a another, valid xmi file) 6) Try to import again. This fails again. The log shows: [Fatal Error] :-1:-1: Premature end of file. 14:54:56,902 ERROR [PentahoMetadataDomainRepository] org.xml.sax.SAXParseException; Premature end of file. 14:54:56,908 ERROR [MetadataDatasourceService] Error import metadata: org.pentaho.pms.core.exception.PentahoMetadataException: org.xml.sax.SAXParseException; Premature end of file. at org.pentaho.metadata.util.XmiParser.parseXmi(XmiParser.java:932) at org.pentaho.platform.plugin.services.metadata.PentahoMetadataDomainRepository.storeDomain(PentahoMetadataDomainRepository.java:228) at org.pentaho.platform.plugin.services.importer.MetadataImportHandler.processMetadataFile(MetadataImportHandler.java:75) at org.pentaho.platform.plugin.services.importer.MetadataImportHandler.importFile(MetadataImportHandler.java:50) at org.pentaho.platform.plugin.services.importer.PentahoPlatformImporter.importFile(PentahoPlatformImporter.java:70) Re-attempting the sequence after closing the datasource admin dialog doesn't fix the problem. But after refresh of the entire page, it works again (indicating the file is valid).

    Pentaho BI Platform Tracking | 4 years ago | Roland Bouman
    org.pentaho.pms.core.exception.PentahoMetadataException: org.xml.sax.SAXParseException; Premature end of file.

    Root Cause Analysis

    1. org.pentaho.pms.core.exception.PentahoMetadataException

      org.xml.sax.SAXParseException; Premature end of file.

      at org.pentaho.metadata.util.XmiParser.parseXmi()
    2. org.pentaho.metadata
      XmiParser.parseXmi
      1. org.pentaho.metadata.util.XmiParser.parseXmi(XmiParser.java:932)
      1 frame
    3. org.pentaho.platform
      PentahoPlatformImporter.importFile
      1. org.pentaho.platform.plugin.services.metadata.PentahoMetadataDomainRepository.storeDomain(PentahoMetadataDomainRepository.java:228)
      2. org.pentaho.platform.plugin.services.importer.MetadataImportHandler.processMetadataFile(MetadataImportHandler.java:75)
      3. org.pentaho.platform.plugin.services.importer.MetadataImportHandler.importFile(MetadataImportHandler.java:50)
      4. org.pentaho.platform.plugin.services.importer.PentahoPlatformImporter.importFile(PentahoPlatformImporter.java:70)
      4 frames