Tech Tips: Getting "Content is not allowed in prolog" when opening a project

Document created by gadpr08 Employee on Feb 12, 2018
Version 1Show Document
  • View in full screen mode

Trying to open a project from DevTest Workstation using File-->Open-->Project-->select the project OR from the Quickstart Panel gives the below error.

 

ERROR - [Fatal Error] :1:1: Content is not allowed in prolog.
ERROR - Unable to open XML file: C:\DevTest\Projects\***\lisa.project. error: Content is not allowed in prolog.
ERROR - Error opening the project.
java.lang.NullPointerException: currentProjectManager is null! Fix this by calling ProjectManager.setCurrentProjectVersion() first!
at com.itko.lisa.repo.ProjectManager.getInstance(ProjectManager.java:272)
at com.itko.lisa.gui.ProjectTreePanel.expandTreeToDefaultLevels(ProjectTreePanel.java:323)
at com.itko.lisa.gui.ProjectTreePanel.setup(ProjectTreePanel.java:285)
at com.itko.lisa.gui.ProjectTreePanel.<init>(ProjectTreePanel.java:253)
at com.itko.lisa.gui.LisaMainPanelSwing$11.doCallback(LisaMainPanelSwing.java:793)
at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
at java.lang.Thread.run(Thread.java:745)

 

The error refers to lisa.project. Try opening the lisa.project and see it shows the content something like below or not.

<?xml version="1.0" ?>

<Project>
<Name>***</Name>
<Version>V2</Version>
<Notes></Notes>
<ActiveConfig>{{LISA_RELATIVE_PROJ_ROOT}}/Configs/project.config</ActiveConfig>

</Project>

 

The above content can have more or less information but it should be something like that. If you see the lisa.project like below then the file is corrupted and you see the above error message.

NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 

 

You can resolve the error by recreating lisa.project file or copy it from a different project and change the name and configuration path information.

 

Attachments

    Outcomes