Hi Sharath, I would appreciate if you could spend some more time on preparing code (e.g. a Java class) that we can run out of the box. This way, we can ensure that the problem is really caused by BaseX, and not the framework you might be using. Thanks, Christian
On Thu, Sep 3, 2020 at 4:43 PM Sharath Babu Pulumati spulumat@opentext.com wrote:
Hi Christian,
The detailed steps are below,
- Installed the BaseX and started the BaseX server, with default
configuration. 2. Using the xqj client, for communicating with the basex sever. 3. Using db::replace(), I have tried pushing and pulling of the document in basex.
Can we have a quick call at any time, to discuss on this issue.
Thanks & Regards, Sharath.
*From:* Christian Grün christian.gruen@gmail.com *Sent:* Thursday, September 3, 2020 5:29 PM *To:* Sharath Babu Pulumati spulumat@opentext.com *Cc:* James Ball basex-talk@jamesball.co.uk; BaseX < basex-talk@mailman.uni-konstanz.de> *Subject:* [EXTERNAL] - Re: Re. Encoding support for the BaseX server
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,
- With specified and un-specified encoding values.
- 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.
basex-talk@mailman.uni-konstanz.de