problem of reference current node

Hello
I use the Java APIs for XML DB 2.4.16. I'm trying to select some nodes, and then iterate the result and inside the loop, update the nodes with Ref to the current node ('.) »). The problem is that the following code is used to work with 2.3.10 but won't work with 2.4.16. In the version of this last exception is thrown:

com.sleepycat.dbxml.XmlException: Error: DB_NOTFOUND: no matching key/data pair not found, errcode = DATABASE_ERROR
at com.sleepycat.dbxml.dbxml_javaJNI.XmlQueryExpression_execute__SWIG_7 (Native Method)
at com.sleepycat.dbxml.XmlQueryExpression.execute(XmlQueryExpression.java:119)

Can you please help me point what the problem?
The code is approximately like this:

I tried different XPath expressions, return one or more results
check the syntax in the code and shell to work
Results XmlResults = xmlManager.query ("collection ('mycoll.dbxml') / / *", queryContext);

While (results.hasNext ()) {}

XmlValue xmlValue = results.next ();

Change XmlModify = xmlManager.createModify ();
XmlQueryExpression xmlQueryExprToUpdate = xmlManager.prepare (txn, ".", queryContext); Here's the ref to the current node
modify.addAppendStep (xmlQueryExprToUpdate, XmlModify.Attribute, "someNewAttrib", NewValue);
next line throws the mentioned exception
Modify.Execute (txn, xmlValue queryContext, updateContext);






following the code gives exactly the same error
XmlQueryExpression expr = xmlManager.prepare (txn,
("Insert the node attribute someNewAttrib {'} ' NewValue ' '} in.", queryContext);
Expr.Execute (txn, xmlValue, queryContext);

}

As XmlModify is outdated, I also checked the update with XQuery and got exactly the same error. I checked the XPath and XQuery syntax with dbxml shell (I used a few XPath instead of '. ' reference in this case) and it seems to work fine. The problem is probably the '. ' reference but I stress that the code has been tested before and it worked.
I run it on Sun JDK 1.6.
Hints, pointers to the docs or better, pointers to popular examples.
Thank you

Here is the finished patch.

Lauren Foutz

diff -r 1c1645fbc47f src/dbxml/RawNodeValue.cpp
--- a/src/dbxml/RawNodeValue.cpp     Thu Dec 11 18:51:30 2008 -0500
+++ b/src/dbxml/RawNodeValue.cpp     Tue Dec 16 14:40:32 2008 -0500
@@ -84,6 +84,12 @@
 // it comes from the Container.
 DbWrapper *RawNodeValue::getDocDB() const
 {
+     //Make sure the doc db of this node and the document are the same
+     if (!xdoc_.isNull()) {
+          DbWrapper *docDb = (*xdoc_).getDocDb();
+          if (docDb) return docDb;
+     }
+
      Results &res = GET_RESULTS();
      XmlManager &mgr = res.getManager();
      CacheDatabaseMinder &minder = res.getDbMinder();
diff -r 1c1645fbc47f src/dbxml/Results.cpp
--- a/src/dbxml/Results.cpp     Thu Dec 11 18:51:30 2008 -0500
+++ b/src/dbxml/Results.cpp     Tue Dec 16 14:40:32 2008 -0500
@@ -241,12 +241,13 @@
      if (contextItem && (contextItem->getType() == XmlValue::NODE)) {
           XmlDocument &xdoc = (XmlDocument&)contextItem->asDocument();
           CacheDatabaseMinder &minder = ((Document *)xdoc)->getDbMinder();
-          if (minder.isNull()) {
+          if (minder.isNull() && !((Document*)xdoc)->getContainerID()) {
                dbMinder_.findOrAllocate((Manager&)(context->getManager()),
                                ((Document *)xdoc)->getContainerID());
                minder = dbMinder_;
           }else
                dbMinder_ = minder;
+          if ((*xdoc).isUninitialized()) (*xdoc).changeContentToNsDom(0);
      }
      oc_.set(txn);
      conf_.setMinder(&evaluationMinder_);

Tags: Database

Similar Questions

  • AF:train current node

    Hi all

    I have a problem with the train component.

    lets say there are three knots with train component.

    Assume that the current node is the third node, then click on the first.

    on this point of action, how will I know user click on first?

    With respect,
    Wai Phyo

    Hello

    See 'Customizing the interface of train' header in http://www.oracle.com/technetwork/issue-archive/2011/11-sep/o51adf-452576.html

    Frank

  • Satellite A300-202 - problems with alternating current

    Hello

    I bought a Satellite A300-202 a few months ago and I'm having intermittent problems with alternating current.

    Sometimes I plug the AC power and it does not start (the led are off and windows says that it is on battery) charge. Other times, he is in charge and suddenly stops.

    I suspected it might be the cord broken inside, but it seems to happen also when no one touches it. Usually, when it stops to load, I unplug the wall, wait a few seconds and plug in again, and it starts to load correctly never stop again.

    Someone at - it had a similar problem? I wonder if is it possible to just replace the parts to AC power so I won't have to send the laptop for repair.

    Thank you

    Pedro

    Hello

    I've never had a problem with my Toshiba Chargers but an old non - Toshiba power adapter died after 6 months of use. After the replacement, it works without any problem.

    I think you should check the update of the BIOS as mentioned by Akuma, but for me, it looks more like a problem with the AC adapter.
    So if the BIOS update help t doesn't, the adapter should be checked permanently.

  • How to set programmatically the current node in a tree view of the ADF.

    Hello

    I'm trying to understand how to set programmatically the current node in a tree view of the ADF.

    My use case example is quite simple; If we take the sample application ADF Summit where under Management Summit, we have a tree view on the left with a list of high level of the country which in turn contain a subset of customers; then, in the right pane, we the customer detail information.

    What I'm trying to achieve is a solution by which I can add a new customer, commit and then to the tree show the client newly created as the currently selected entry.

    I use a pop-up dialog box to create my new entry of the customer and everything works well in this area, and my newly created folder is saved in the database.

    I know how to force the tree to cool off, but what I can't understand is how to do so, it highlights the newly created folder.

    Any help would be much appreciated.

    Refer

    https://blogs.Oracle.com/jdevotnharvest/entry/how_to_programmatically_disclose_a

    http://www.Oracle.com/technetwork/developer-tools/ADF/learnmore/78-man-expanding-trees-treetables-354775.PDF

  • There was a problem with the current system. Please try again later. If the problem persists, contact customer service.

    There was a problem with the current system. Please try again later. If the problem persists, contact customer service.

    Why?

    Please tell us what Adobe application you are trying to download. Please try creative cloud install app - https://helpx.adobe.com/creative-cloud/help/install-apps.html

  • I bought a desktop computer and wanted to know if I am able to have creative clouds on this plan as well as my laptop with the same problem, I'm currently?

    I bought a desktop computer and wanted to know if I am able to have creative clouds on this plan as well as my laptop with the same problem, I'm currently?

    Your subscription license allows you to have two facilities activated, so if both machines meets the system requirements so you should be able to install and connect the two.

  • Change "current node" of the XML object

    Hello

    I am trying to edit the "current node" of an XML object, but I still don't know what will be the current node.

    My XML object to load an external XML file:

    < mx:XML id = source="assets/article_text.xml"/ "featureData" >

    and I read that data through a < mx:Repeater > create a < mx:TextArea > for each 'currentItem '.

    < mx:Repeater id = dataProvider = "{featureData.body_text.children ('repeatParas')}" >
    "< mx:TextArea htmlText =" {repeatParas.currentItem} "width ="80% "borderStyle ="none"click =" showBodyEditor (event, event.currentTarget.getRepeaterItem ()) "verticalScrollPolicy =" off "creationComplete ="resizeTextArea (event); "updateComplete ="resizeTextArea (event); "/ > < / mx:Repeater >

    A click on < mx:TextArea > event load a pop-up window containing a RichTextEditor that contains the content of currentItem:

    private void showBodyEditor(event:Event,_item:String):void {}
    var pop1:BodyEditor = BodyEditor (PopUpManager.createPopUp (this, BodyEditor, true));
    Set the properties of the custom component BodyEditor.
    POP1.showCloseButton = true;
    POP1.targetBodyText = event.currentTarget;
    POP1. CurrentNode = item;
    PopUpManager.centerPopUp (pop1);
    }

    I then passes the value of everything that has been entered in the return to the initial < mx:TextArea > RichTextEdior via a function on a button click event '' made '' (processBodyText()):

    [Bindable]
    public var targetBodyText:Object;
    [Bindable]
    public var currentNode:String;

    Transfer data to text boxes
    private function processBodyText (): void {}
    targetBodyText.htmlText = String (bodyTextForm.htmlText);
    currentNode = String (bodyTextForm.htmlText);
    Remove pop-up.
    PopUpManager.removePopUp (this);
    }

    But what I can't do is actually updated for that node in the featureData XML object without explicitly saying what node to update (for example, it works: parentApplication.featureData.body_text.p [1] = String (bodyTextForm.htmlText);) I don't necessarily know which node to update, I just want to be able to update some node I happen to be editing at the time.

    Is this possible?

    Thanks to anyone who can enlighten us!

    I'll reply to my own post (where everyone was watching).

    I just changed the parameters/variables currentNode type Object (instead of string) and within the processBodyText function, I replaced

    currentNode = String (bodyTextForm.htmlText);

    with

    currentNode.setChildren (bodyTextForm.htmlText);

    who updates the node in the XML data provider.

    I still need to get rid of some of the gobblygook of html that is passed to the rear (for example < TEXTFORMAT LEADING '2' = >) but as long as I am able to update the current node, I'm happy (for now).

  • The current node to display all the levels at the atomic scale

    Hi all

    If anyone has example of expand/collapse the current node to display all the levels at the atomic scale. Please post here. I appreciated the help.

    Thank you

    James,

    try adding a condition just before current node if the next node id is null or not.

    Thus, the update procedure will be like that.

    PROCEDURE Expand_Collapse_Node (Tree_Name IN VARCHAR2 , Trigger_Node IN VARCHAR2, Str_Type IN VARCHAR2 DEFAULT 'COLLAPSE') IS
         Item_Id ITEM;
         Current_Node FTREE.NODE;
         Starting_Node_Level NUMBER;
         Current_Node_Level NUMBER;
    BEGIN
         IF Trigger_Node IS NOT NULL THEN
              Item_Id := FIND_ITEM(Tree_Name);
              IF NOT ID_NULL(Item_Id) THEN
                   Current_Node := Trigger_Node;
                   Starting_Node_Level := FTREE.GET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_DEPTH);
                   LOOP
                        IF FTREE.ID_NULL(Current_Node) OR (Current_Node_Level = Starting_Node_Level) THEN
                             EXIT;
                        ELSE
                             IF Str_Type = 'EXPAND' THEN
                                  IF FTREE.GET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_STATE) = FTREE.COLLAPSED_NODE THEN
                                        FTREE.SET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_STATE,      FTREE.EXPANDED_NODE);
                                  END IF;
                             ELSIF Str_Type = 'COLLAPSE' THEN
                                  IF FTREE.GET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_STATE) = FTREE.EXPANDED_NODE THEN
                                        FTREE.SET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_STATE,      FTREE.COLLAPSED_NODE);
                                  END IF;
                             END IF;
                             Current_Node := FTREE.FIND_TREE_NODE(Tree_Name, '', FTREE.FIND_NEXT, FTREE.NODE_LABEL, '', Current_Node);
                             IF FTREE.ID_NULL(Current_Node) = FALSE THEN
                                  Current_Node_Level := FTREE.GET_TREE_NODE_PROPERTY(Item_Id, Current_Node, FTREE.NODE_DEPTH);
                             END IF;
                        END IF;
                   END LOOP;
              END IF;
         END IF;
    END Expand_Collapse_Node;
    

    Kind regards

    Manu.

    If this answer is useful or appropriate, please mark. Thank you.

  • Problems with references to cRIO as startupApp

    I am having trouble with my programs that run as starting applications on of different cRIO.

    The problem is that it takes too long to load correctly references (or load at all).

    In the attached screenshot, there are two tabs that I put the State enabled on. Page 1 is to be set as 'disabled and grayed out' and page 2 of "enabled."

    The upper part shows the reference pages directly and update tabs. This does not, as the reference table is empty.

    The lower expected the reference table to become a zero table. After a while, this happens and the while loop stops.

    The right-hand side of the screenshot is from the web server runs the program. When I press Start on my computer (but continues running on the cRIO), this is not a problem.

    For larger programs, it is very difficult to detect if the references are updated or not. Is there a method to wait until everything is ready before that code runs?

    This isn't. The problem you see is because the remote façade connects to your VI already running. Connection to the front panel remote "to not start" the VI - it's a window in a VI that is already running. For this reason, the property nodes that have been put forward that the client connects do not appear (that is, they are reset to zero by default) in the remote control Viewer.

    What is described here: functionality not supported in the visualization and control remote facades

  • Mounted.OCFS2 EI presents the current node only

    I'm trying to configure two nodes (10 g R2) RAC on Linux 32-bit on VMWare (Vincent Chan guide).

    When I run this command, it only shows the current (where the command is issued) node:

    on rac1
    [root@rac1 init.d]# mounted.ocfs2 -f
    Device                FS     Nodes
    /dev/sdb1             ocfs2  rac1
    It shows "rac1" only. 'rac2' is missing.


    on rac2
    [root@rac2 init.d]# mounted.ocfs2 -f
    Device                FS     Nodes
    /dev/sdb1             ocfs2  rac2
    It shows "rac2" only. 'rac1' is missing.

    Here is some info:

    * 1 node - rac1 *.
    [root@rac1 init.d]# mounted.ocfs2 -f
    Device                FS     Nodes
    /dev/sdb1             ocfs2  rac1
    [root@rac1 init.d]# mounted.ocfs2 -d
    Device                FS     UUID                                  Label
    /dev/sdb1             ocfs2  18f13142-7c34-43a1-92d3-668f666dbacb  oracle
    [root@rac1 init.d]# ./ocfs2 status
    Configured OCFS2 mountpoints:  /ocfs
    Active OCFS2 mountpoints:  /ocfs
    [root@rac1 init.d]# ./o2cb status
    Module "configfs": Loaded
    Filesystem "configfs": Mounted
    Module "ocfs2_nodemanager": Loaded
    Module "ocfs2_dlm": Loaded
    Module "ocfs2_dlmfs": Loaded
    Filesystem "ocfs2_dlmfs": Mounted
    Checking O2CB cluster ocfs2: Online
      Heartbeat dead threshold: 61
      Network idle timeout: 10000
      Network keepalive delay: 5000
      Network reconnect delay: 2000
    Checking O2CB heartbeat: Active
    * 2nd node - rac2 *.
     
    [root@rac2 init.d]# mounted.ocfs2 -f
    Device                FS     Nodes
    /dev/sdb1             ocfs2  rac2
    [root@rac2 init.d]# mounted.ocfs2 -d
    Device                FS     UUID                                  Label
    /dev/sdb1             ocfs2  b65abba9-5988-4ee0-9e10-ad5533dff807  oracle
    [root@rac2 init.d]# ./ocfs2 status
    Configured OCFS2 mountpoints:  /ocfs
    Active OCFS2 mountpoints:  /ocfs
    [root@rac2 init.d]# ./o2cb status
    Module "configfs": Loaded
    Filesystem "configfs": Mounted
    Module "ocfs2_nodemanager": Loaded
    Module "ocfs2_dlm": Loaded
    Module "ocfs2_dlmfs": Loaded
    Filesystem "ocfs2_dlmfs": Mounted
    Checking O2CB cluster ocfs2: Online
      Heartbeat dead threshold: 61
      Network idle timeout: 10000
      Network keepalive delay: 5000
      Network reconnect delay: 2000
    Checking O2CB heartbeat: Active
    Also, if I create a file on "/ ocfs ' it is not visible of rac1, rac2 and vice versa.


    Could you get it someone please let me know what should I check further? Or what the problem might be?

    TIA

    Published by: user130038 on July 21, 2011 10:10

    OK, I finally understood - I recreated the disk virtual ocfs with option "give now" and by mistake I no it has not created in the same folder where the other shared virtual disks were created. Once I've recreated in the folder shared and followed the rest of the steps in the guide of the Vincent Chan, everything was OK.

    Thanks for your help, Fiedi.

  • problem of reference to shift files that pass

    Hi, I have encountered a few problems when I use the shift register to store the file reference, please refer to the attachment.

    I want to implent the function as every hour a new file would be create and close the file. but the narrow file.vi, source of such error reported error message is cannot close the file. other parties in the diagarm works well.

    You test this VI alone or in a Subvi called?  LabVIEW automatically closes the reference of the file once the appellant of high level stops, even if you do not close this code.  The Ref info will remain in the register shift, but it is no longer valid.  That means he spends not a Ref test but close file cannot use it.  I threw a loop around your code to make it work (as if it were a Subvi) and everything worked.

  • Problems printing multiple 'current page' range of documents.

    -Use of Word 2007 with a printer HP 1300 (Windows VISTA).
    -Select PRINT from the menu.
    -I am trying to print multiple copies of a page using "current page" to the print range.
    -I select the 'number of copies' and click OK, it will only print a copy.
    Which tried it:
    -J' typed in the number manually.
    -J' chose the number using the arrow.
    -J' I pressed ENTER, and I clicked OK
    Each time, just print a copy.

    Hi MaryVL,

     

    Welcome to Microsoft Answers Forums.

    We would like to get more information about you to help solve your problem. You better, please answer the following questions.

    ·         When was the last time it worked?

    ·         Remember to make changes to the computer recently?

    ·         You can print multiple copies using programs windows like Word pad or Notepad?

    First of all, I suggest that you try to print multiple copies using windows programs and check if you are facing similar problems.

    If you are facing this problem with Word 2007 suggest you try the steps in the Microsoft KB article below.

    You cannot print multiple copies of a Word 2007 document

    http://support.Microsoft.com/kb/918790

    If still cannot print multiple copies using Word 2007 suggest posting your question in the community of desktop application for more support.

    Discussions in Desktop Applications

    http://www.Microsoft.com/Office/Community/en-us/FlyoutOverview.mspx

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problem UZ2715H monitor: current input synchronization is not supported...

    Can someone help me with this problem? -"Current input synchronization is not supported by the display. Please change your entry in 1920x1080@60hz or any other listed monitor calendar date according to the characteristics of the monitor. "I get this message when I run a game (for example I always get this message with CS GO), there are a few games that works fine however.

    I have Nvidia GTX 580 graphics card, windows 7 64 bit, so my pc and the monitor are connected with DVI - VGA (for the pc) adapter and VGA cable to the monitor.

    I tried to update the drivers for graphics cards, changing the resolution of 1920 x 1080 60 hz troubleshooting display... still the same problem...

    Any solution will be appreciated.

    Ok. A DVI to VGA adapter will not work. DVI cannot convert to RFP via a straight through cable. So, your only option is this =
    Computer DVI GTX 580 on-->--> UZ2715H HDMI DVI to HDMI Cable to

  • Time synchronization problem = &gt; there are currently no server to connect to the service connection request

    I see the following error when you run the harness; It seems to relate to the logging in vCenter.

    20120302 14:12:21VMmark2: Verifying time synchronization Client
    20120302 14:12:21Tile 0: Listen to Client 1330726341: the customer client0 time: 1330726341: TimeErrors: 0: Clock Skew 0
    20120302 14:12:23Stafcmd process: vCServer: audit VXGLE2VMVC01. VXGLE2. VTG. VCE.COM synchronization time failed start/finish. Gave: RC = 10002, STAFResult = {'files list': [{"staf-map-class-name": ' STAF/Service/process/ReturnFileInfo', 'data': ' System Error 1311 has occurred.\r\n\r\nthere currently no login server available to process the logon request is. \r\n\r\n', 'rc': '0'}], 'key': None, "staf-map-class-name": 'STAF, Service, process, CompletionInfo', 'rc': '2'}
    20120302 14:12:23Stafcmd process: vCServer: audit VXGLE2VMVC01. VXGLE2. VTG. VCE.COM synchronization time is also returned: STAFResultContext. User display job log
    20120302 14:12:23Error! [Clients or vCServer out of Sync:]

    What is the cause and how can I solve this problem? I can RDP of the Client to the server vCenter (VXGLE2VMVC01. VXGLE2. VTG. VCE.COM). I can also staf ping virtual machines from the privileged client. I lilies on the cached credentials can cause this kind of problem in a Windows environment, but I don't know if it is applicable, or something else.

    I carried this tile over an another Vblock and have worked in recent weeks to make it work. She was running nearly on the other Vblock; I got a mail server problem to solve... but he could run everything.

    Thank you!

    Like James, I'm really not versed enough on AD to determine if the problem is there.

    Here as a test script that should help you to try out different options (credentials, ip, etc.) outside of the bundle, so you can speed up the trials.  I put it so its exactly like the VMMARK2.config that you sent, but it should be pretty easy for you to modify as needed.  Do not forget to leave orders STAF and run it from a shell.  Maybe a few different iterations will shed light on the problem.

  • Problem with the current SNA on the database pending...

    Hello;

    A day ago I went on our main database on the eve of database, everything went well. But today when I checked current SNA for the two database, I saw that the two were different. and current SNA did not change on the standby database. What can cause this problem?

    some exits here when I tried to find the problem...

    on the primary database.

    SQL> select thread#, max(sequence#) from v$archived_log group by thread#;       
       THREAD# MAX(SEQUENCE#)
    ---------- --------------
             1            156 
    on the database pending;
    SQL> select thread#, max(sequence#) from v$archived_log  where applied='YES' group by thread#;
    
       THREAD# MAX(SEQUENCE#)
    ---------- --------------
             1            156 
    standby mode
    SQL> select LAST_CHANGE#, STATUS from V$STANDBY_LOG;
    
    LAST_CHANGE# STATUS
    ------------ ----------
         2927636 ACTIVE
               0 UNASSIGNED
               0 UNASSIGNED
               0 UNASSIGNED 
    standby mode
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
        2916773 
    on primary
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
        2927809
    Published by: Ecimen on 01:36 18.Eki.2012

    Published by: Ecimen on 01:47 18.Eki.2012

    SQL > change database recovery managed standby database disconnect from the session.

    modify the recovery of database managed standby database disconnect from the session
    *
    ERROR on line 1:
    ORA-01153: an incompatible media recovery is active
    >

    Most likely you had missed the log files from the backup site. You can check in question "select max(SEQUENCE#) from v$ loghist. Most likely old log files has not yet delivered to the main site backup site. Another simple method that you can do is stop tio watch db, and then start it as a mode of editing if you have 11 GR 2 db which should be enough. Oracle will automatically synchronized between primary and standby for you. If you can't wait, you can start the editing for db in waiting mode, then run the command "recover the database sleep until cancel;

Maybe you are looking for