Menu

#6 Query refused to work

open
Server (18)
9
2005-08-02
2005-08-02
Web Hiker
No

To reproduce, run the JUnit test :
"maven clean test:single
-Dtestcase=net.sf.nxqd.NxqdContainerTest"

It adds a simple document into the DB, and tries to
query it.
Regardless of the query content, the server always
reports the error :

[warning] Error while trying execute query //*: Error:
An attempt to navigate when the Context Item was not a
node was m
ade [err:XP0020]

Discussion

  • Tom McCubbin

    Tom McCubbin - 2005-08-05

    Logged In: YES
    user_id=991898

    what is the goal of this query...it should return all docs
    contained in all containers ....is this correct?

     
  • Web Hiker

    Web Hiker - 2005-08-05

    Logged In: YES
    user_id=125101

    Actually the query is unrelated to the problem error
    message. I simply put it in as the simplest possible valid
    xpath statement which will without fail return results.

    Sorry been unresponsive - my time to be bogged down at work.
    (and I have to admit, a little bit of wind forced me to
    kitesurf this afternoon, against my will). Tomorrow is the
    big rugby game (tri-nations, you weren't invited) so I will
    be having too many barley-pops to be any good till Sunday.
    By the way - I've done lots of xdoc stuff - your turn to
    update the server bits.

    Nice logos, perhaps we can decide on a colour scheme, plus
    it needs to work in my prize Kudu bull horns somewhere. ;>

     
  • Tom McCubbin

    Tom McCubbin - 2005-08-05

    Logged In: YES
    user_id=991898

    i was curious what that grass eating beast was...i'll get
    the horns into the logo.

    i assume you killed that one? can i put a picture of my
    manly white-tail deer? not!

    now worries dude, enjoy yourself. i'm moving a bunch of
    server stuff over to be all boost, all the time, and then
    should get us a long way towards winbloze compat...

    I've seen this kitestuff in denmark last summer. looks
    pretty f**ing cool...massive air (even in DK).
    unfortunately, i have 2 weights around my ankles in the form
    of a three year old, and a 1 year old...

    my wife already chastized me re: the logo being too
    busy/distracting, so i'm gonna clean it up, and get those
    horns in!

    -tom

    ps - i would say there is quite a pent up demand for this
    thing once we go live...we need to do a sf.net promo...

     
  • Web Hiker

    Web Hiker - 2005-08-17

    Logged In: YES
    user_id=125101

    Just figured out the problem.
    For some cryptic reason, Sllepycat expects a query to be of
    the form
    (collection("11242852817461077140497.dbxml"))//*
    instead of the worldwide accepted
    //*
    So now I just insert manually this silly collection
    reference internally, but this raises the question of what
    to do if the user already has this as part of the expression?
    I assume this is the tip of some special Sleepycat syntax
    iceberg, and probably requires deeper thought. But for now,
    it's working ok.

     
  • Tom McCubbin

    Tom McCubbin - 2005-08-17

    Logged In: YES
    user_id=991898

    Should //* equate to:

    foreach container in containers
    return all documents;

    ??

     
  • Web Hiker

    Web Hiker - 2005-08-17

    Logged In: YES
    user_id=125101

    Dunno, but it works now (returns root node).
    Still don't understand what all the container() crap is -
    Sleepycat has no documentation on this proprietary syntax
    that I can find anywhere.
    Now it's breaking my Xml:DB stuff...cos I need to use
    collection() AND doc()...

    HELP!

     

Log in to post a comment.

MongoDB Logo MongoDB