javax.xml.bind.UnmarshalException
- with linked exception:
[Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.7.11.v20220804-52dea2a3c0): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred unmarshalling the document
Internal Exception: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[10,2]
Message: The content of elements must consist of well-formed character data or markup.]
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.handleXMLMarshalException(JAXBUnmarshaller.java:1136)
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:643)
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:168)
at com.kms.katalon.util.XmlMarshalViaNioUtil.unmarshal(XmlMarshalViaNioUtil.java:33)
at com.kms.katalon.dal.fileservice.strategies.DefaultEntityLoadStrategy.load(DefaultEntityLoadStrategy.java:25)
at com.kms.katalon.dal.fileservice.EntityService.loadEntityFromFile(EntityService.java:208)
at com.kms.katalon.dal.fileservice.EntityService.getEntityByPath(EntityService.java:175)
at com.kms.katalon.dal.fileservice.EntityService.getEntityByPath(EntityService.java:164)
at com.kms.katalon.dal.fileservice.manager.ProjectFileServiceManager.openProjectWithoutClasspath(ProjectFileServiceManager.java:98)
at com.kms.katalon.dal.fileservice.dataprovider.ProjectFileServiceDataProvider.openProjectWithoutClasspath(ProjectFileServiceDataProvider.java:31)
at com.kms.katalon.controller.ProjectController.openProjectForUI(ProjectController.java:123)
at com.kms.katalon.controller.ProjectController.openProjectForUI(ProjectController.java:112)
at com.kms.katalon.composer.project.handlers.OpenProjectHandler$1.run(OpenProjectHandler.java:191)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:124)
Caused by: Exception [EclipseLink-25004] (Eclipse Persistence Services - 2.7.11.v20220804-52dea2a3c0): org.eclipse.persistence.exceptions.XMLMarshalException
Exception Description: An error occurred unmarshalling the document
Internal Exception: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[10,2]
Message: The content of elements must consist of well-formed character data or markup.
at org.eclipse.persistence.exceptions.XMLMarshalException.unmarshalException(XMLMarshalException.java:122)
at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.convertSAXException(SAXUnmarshaller.java:1042)
at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:948)
at org.eclipse.persistence.internal.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:694)
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:640)
... 12 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[10,2]
Message: The content of elements must consist of well-formed character data or markup.
at java.xml/com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:652)
at org.eclipse.persistence.internal.oxm.record.XMLStreamReaderReader.parse(XMLStreamReaderReader.java:101)
at org.eclipse.persistence.internal.oxm.record.XMLStreamReaderReader.parse(XMLStreamReaderReader.java:89)
at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:940)
... 14 more
Same as
Which version of Katalon Studio or KRE are you using?
As @duylong wrote, Katalon Studio prior to v8.0.5 had a bug that caused this Unmarshall exception.
I suppose that you tried to open a very old project which were created using Katalon Studio older than v8.0.5, and now you tried to open the Reports folder which contained execution0.log file with broken character due to a bug of the old Katalon Studio.
When you try to open the broken execution0.log file, you will repeatedly encounter the problem. So, you should throw the files in the Reports folder of the project away.
Your project XML file is malformed, likely due to invalid characters or broken tags around line 10. Fix or restore the file to resolve the UnmarshalException.
Here are small, clear steps to fix the UnmarshalException in Katalon Studio:
-
Go to your project folder Locate the
.prjorproject.settingsfile. -
Open the file in a text editor Use something like Notepad++ or notepad.
-
Find line 10 Look for any broken XML—like unescaped
&,<, or>characters. -
Fix the markup Example: change
&to&, ensure all tags are properly closed. -
Save the file After fixing, save the changes.
-
Reopen Katalon Studio Try opening the project again.
It would be great if you share the file and I can help you checking the file.
Upgrade to the latest version of Katalon Studio and confirm if the issue still persists