Cannot parse document: Content is not allowed in prolog.

knoblauch
knoblauch New Altair Community Member
edited November 5 in Community Q&A
Hello,

I cannot access my Processes and data within Rapid miner anymore. I copied the whole repository manually in a repository folder on a different computer before, which obviously was a bad idea, because the error occured right after this. The .property and .rmp files are still in my local repository folder I just cannot open them in Rapid Miner. Does anyone know how I can open them again?

The error message is the following:

Exception: com.rapidminer.tools.XMLException
Message: Cannot parse document: Content is not allowed in prolog.
Stack trace:

com.rapidminer.Process.readProcess(Process.java:1555)
com.rapidminer.Process.readProcess(Process.java:1530)
com.rapidminer.Process.<init>(Process.java:294)
com.rapidminer.RepositoryProcessLocation.load(RepositoryProcessLocation.java:110)
com.rapidminer.gui.actions.OpenAction$2.run(OpenAction.java:145)
com.rapidminer.gui.tools.ProgressThread$3.run(ProgressThread.java:586)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

Cause
Exception: org.xml.sax.SAXParseException
Message: Content is not allowed in prolog.
Stack trace:

com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
com.rapidminer.Process.readProcess(Process.java:1542)
com.rapidminer.Process.readProcess(Process.java:1530)
com.rapidminer.Process.<init>(Process.java:294)
com.rapidminer.RepositoryProcessLocation.load(RepositoryProcessLocation.java:110)
com.rapidminer.gui.actions.OpenAction$2.run(OpenAction.java:145)
com.rapidminer.gui.tools.ProgressThread$3.run(ProgressThread.java:586)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)

Thanks.

Best Answer

  • Marco_Boeck
    Marco_Boeck New Altair Community Member
    Answer ✓
    Hi,

    This error typically occurs if the process XML is completely empty. Can you open the .rmp files in your file browser with a text editor and check what's in there?
    Sounds like for some reason the copy operation did break the files :(

    Regards,
    Marco 

Answers

  • sgenzer
    sgenzer
    Altair Employee
    hi @knoblauch hmm that is not great. Please try this:

    1. Quit RapidMiner.
    2. Make a backup of your complete .RapidMiner folder somewhere else on your drive and then deleting everything in it.
    3. Restart RapidMiner.
    4. RM will rebuild your .RapidMiner folder now - you will need to enter all your license info, etc...
    5. You should be up and running now. Once you're sure you are, open a new local repository and point it to your backup.
    Scott

  • Edin_Klapic
    Edin_Klapic New Altair Community Member
    You can also try to open the .rmp files (the RapidMiners processes) with a Text Editor of your choice. The Processes are stored in XML format. Maybe copying corrupted something there.
    You can try to copy the XML content and paste it in the XML view in RapidMiner Studio. When the process XML is valid and you click on the green checkmark the process can be inspected in the design perspective.
    Happy Mining,
    Edin

  • Marco_Boeck
    Marco_Boeck New Altair Community Member
    Answer ✓
    Hi,

    This error typically occurs if the process XML is completely empty. Can you open the .rmp files in your file browser with a text editor and check what's in there?
    Sounds like for some reason the copy operation did break the files :(

    Regards,
    Marco 
  • knoblauch
    knoblauch New Altair Community Member
    Hi,

    thanks a lot for your answers. Unfortunately @Marco_Boeck is right. The copy operation broke my files and they are all empty now. There was no way to recover the files so I had to start from scratch again. So be careful with copying repository folders.

    Best,
    Hannah
  • StrongBronco
    StrongBronco New Altair Community Member
    You can try to copy the XML content and paste it in the XML view in RapidMiner Studio. When the process XML is valid and you click on the green check mark the process can be inspected in the design perspective.