Purpose (problem description)

This page handles issues with the error "premature end of file" such as shown in the screenshot below in TCC:


or CAST-MS:

Or in the CAST-MS log as:

Premature end of file
2018-07-31 17:25:31.846 ERROR cast.utilities.consoleHandlerGenericLogError Invalid ////S:/DMTDelivery/data/{bac54ba6-4d48-4e33-b7bd-9e3478bbd3bf}/{569d1a15-5b33-42a9-bae8-b8eb072013f8}/7e0a7c5c-3992-4c40-8cb9-6f7a5defb03c.entity.xml.entity.xml

Observed in CAST Version


Release

Yes/No

8.2(tick)
8.3(tick)
Observed in RDBMS

RDBMS

Yes/No

Oracle Server (tick)
Microsoft SQL Server (tick)
CSS3(tick)
CSS2 (tick)
Step by Step scenario
  • Run TCC and load results
  • Click on Enhancement mode
Action Plan

Perform the below actions

  1. Case 1:  The error 'premature end of file' is an indication that an extension file normally the plugin.nuspec file may have been corrupted or has been zeroed out like in the picture below:

    This folder is in an extension folder, probably one which has been installed or updated most recently.  The default extension folder is:  C:\ProgramData\CAST\CAST\Extensions, though this default location can be modified to a custom location based on the CastGlobalSettings.ini file in the CAST installation directory.  For more on the use of CastGlobalSettings.ini, please see the following page:  Configure AIP Node storage folder locations - optional - v. 1.x
    1. The solution for this issue is to replace the extension in question (you can find the extension name in Cast-ms Log view as showed in screenshot above) and verify that the files, especially the plugin.nuspec file is non-zero after installation of the extension. See the documentation here to assist you if further help is needed on this task: Install an extension
  2. Case 2:  The issue is due to an entity.xml file that is empty or corrupt.  To resolve this issue, you should restore the entity.xml file from a backup to provide the proper information.  You can also see this page on this issue:  CMS Application - Current Version - Fatal Error as well as this page on the DMT folder and contents which explains where the entity.xml is located and what this file normally contains:  Delivery Manager Tool - Information - DELIVERY Folder Structure and Contents
  3. If the above steps do not resolve your issue then please contact CAST Technical Support with the following relevant input as well as the complete extension folder.

 

Notes/comments

Ticket # 16766

Related Pages