Hi Sharath,

It's difficult to tell what might go wrong in your setup. Could you please provide us with a step-by-step procedure that allows us to reproduce the problem?

Thanks in advance,
Christian



Sharath Babu Pulumati <spulumat@opentext.com> schrieb am Do., 3. Sep. 2020, 13:55:
Hi,

I'm facing an issue with the basex when trying to import documents,
  1. With specified and un-specified encoding values.
  2. Importing the document which are exported from basex server.
Getting the below error when trying to import the exported document from basex server with below content:

Imported Document Content to BaseX: 
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited by XMLSpy® -->
<root>
<name>mahesh</name>
</root>

Received Document Content from BaseX:
<!-- Edited by XMLSpy® -->
<root>
<name>mahesh</name>
</root>

NOTE: Data loss of encoding is occurred.


Error: Invalid byte 1 of 1-byte UTF-8 sequence.
Stack trace:
2020-09-03 16:33:35,911 INFO  [stdout] (default task-3) 16:33:35,895 DEBUG [default task-3] com.xmlstore.service.BaseXXmlStoreService - id: 0601e16280001ada slot: 0101e162800009130

2020-09-03 16:33:35,911 INFO  [stdout] (default task-3) [16:33:35.911] TRACE: XQConnection-1.createExpression() invoked.

2020-09-03 16:33:35,911 INFO  [stdout] (default task-3) [16:33:35.911] TRACE: XQConnection.getStaticContext() invoked.

2020-09-03 16:33:35,926 INFO  [stdout] (default task-3) [16:33:35.926] TRACE: XQExpression-6.executeQuery(), raw XQuery resolved to: db:replace('testenvSSL1', '6301e16280000114/0601e16280001ada.xml', 'C:\Program Files (x86)\BaseX\data\0601e16280001ada.xml')

2020-09-03 16:33:35,989 INFO  [stdout] (default task-3) [16:33:35.989] DEBUG: XQExpression-6.close() invoked.

2020-09-03 16:33:35,989 ERROR [stderr] (default task-3) javax.xml.xquery.XQException:
2020-09-03 16:33:35,989 ERROR [stderr] (default task-3)   BXCE001 - Stopped at ., 1/11:

2020-09-03 16:33:35,989 ERROR [stderr] (default task-3) [FOUP0002] "C:/Program Files (x86)/BaseX/data/0601e16280001ada.xml" (Line 1): Invalid byte 1 of 1-byte UTF-8 sequence.

2020-09-03 16:33:35,989 ERROR [stderr] (default task-3)   at deployment.XMLStoreService.ear.XMLStoreService.war//com.xmlstore.repository.BaseXQueryProcessorClient.storeDocument(BaseXQueryProcessorClient.java:354)

Could you please help me in resolving this issue, as we are near to our release.

Thanks & Regards,
Sharath.