Error while acceessing embedded databases through client-server.
Thursday, 4 September 2014 · 2 messages · last reply 5 Sep 2014
KC
Kunal Chauhan4 Sep 2014 15:48 #
Hello,
I have created embedded database using java API.
Now, while opening the databases using XQJ client-server architecture.
Exception in thread "main" javax.xml.xquery.XQException:
BXCE001 - Stopped at ., 1/245:
[BXDB0002] The database format has changed; please use a newer version. at HelloWorld.main(HelloWorld.java:39)
I started the BaseXServer and
while running BaseXClient from command prompt, following is the output of "list" command.
Quoted text · 1 line
> list
name Resources Size Input Path
-------------------------------------
testDB 0 0 Error
but I am able to open the same database through Java API.
So, my question is can we use databases which are created in embedded mode and use it through client-server architecture ?
Thanks,
--
*Kunal Chauhan*
mail4ck at gmail.com
[+918655517141]
CG
Christian Grün5 Sep 2014 12:01 #
Hi Kunal,
actually, the database format of BaseX has not changed for quite a while. Could you please give us more information on what you have done, or, ideally, provide us an SSCCE [1] that allows us to reproduce the problem.
Thanks,
Christian
[1] http://sscce.org
Quoted text · Kunal Chauhan · 31 lines
On Thu, Sep 4, 2014 at 3:48 PM, Kunal Chauhan <mail4ck at gmail.com> wrote: > Hello, > > I have created embedded database using java API. > Now, while opening the databases using XQJ client-server architecture. > > Exception in thread "main" javax.xml.xquery.XQException: > BXCE001 - Stopped at ., 1/245: > [BXDB0002] The database format has changed; please use a newer version. > at HelloWorld.main(HelloWorld.java:39) > > > I started the BaseXServer and > while running BaseXClient from command prompt, following is the output of > "list" command. > >> list > name Resources Size Input Path > ------------------------------------- > testDB 0 0 Error > > but I am able to open the same database through Java API. > > So, my question is can we use databases which are created in embedded mode > and use it through client-server architecture ? > > Thanks, > -- > Kunal Chauhan > mail4ck at gmail.com > [+918655517141]
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery