Dbms_xmldom.cloneNode always deep ?

Hi,
i'm unable to see any difference between :
1. dbms_xmldom.cloneNode( node, false )
2. dbms_xmldom.cloneNode( node, true )
i always get a complete copy of the original node.
Any suggestion ?
thanks
Alessandro Scotti

9.2.0.1.0 is not supported for any XML DB functionality. Please upgrade to at least 9.2.0.3.0, or ideally 9.2.0.5.0 or 10.1.0.2.0 and try again

Similar Messages

  • Storing XML Data in a Table

    I wan to store some XML Data in a table. The sole purpose is to break the big XML in smaller chunks so that I only work with what I need to. I am a newbie at this so any help will be appreciated.
    Sample XML:
    <root>
       <row id="1">
          <node1>hello</node1>
          <node2>hola</node2>
       </row>
       <row id="2">
          <node1>hello</node1>
          <node2>hola</node2>
       </row>
    </root>Expected Result in the table:
    ID             Data
    1             <row id="1"><node1>hello</node1><node2>hola</node2></row>
    2             <row id="2"><node1>hello</node1><node2>hola</node2></row>My file is pretty big, so if I can do this with SQL Loader or another similar process it would be handy.
    Thanks.

    If anyone needs this by any chnace:
    DECLARE
       PROCEDURE load_xml (
          p_dir        IN   VARCHAR2
        , p_filename   IN   VARCHAR2
       AS
          l_bfile           BFILE                       := BFILENAME (p_dir, p_filename);
          l_clob_xml        CLOB;
          l_xml_doc         DBMS_XMLDOM.domdocument;
          l_top_node        DBMS_XMLDOM.domnode;
          l_top_node_list   DBMS_XMLDOM.domnodelist;
          l_claim_node      DBMS_XMLDOM.domnode;
          l_attr_node       DBMS_XMLDOM.domnode;
          l_attr_map        DBMS_XMLDOM.domnamednodemap;
          l_clob_data       CLOB;
          l_claim_id        VARCHAR2 (500);
          l_root_node       DBMS_XMLDOM.domnode;
          l_new_node        DBMS_XMLDOM.domnode;
       BEGIN
          -- Open a file and store the data as CLOB
          DBMS_LOB.createtemporary (l_clob_xml, TRUE);
          DBMS_LOB.fileopen (l_bfile, DBMS_LOB.file_readonly);
          DBMS_LOB.loadfromfile (l_clob_xml
                               , l_bfile
                               , DBMS_LOB.getlength (l_bfile)
          DBMS_LOB.fileclose (l_bfile);
          -- Close file
          -- Create DOMDocument handle
          l_xml_doc := DBMS_XMLDOM.newdomdocument (l_clob_xml);
          l_top_node := DBMS_XMLDOM.makenode (DBMS_XMLDOM.getdocumentelement (l_xml_doc));
          l_top_node_list := DBMS_XMLDOM.getchildnodes (l_top_node);
          FOR x IN 0 .. DBMS_XMLDOM.getlength (l_top_node_list) - 1
          LOOP
             DBMS_LOB.createtemporary (l_clob_data, TRUE);
             l_claim_node := DBMS_XMLDOM.item (l_top_node_list, x);
             l_attr_map := DBMS_XMLDOM.getattributes (l_claim_node);
             l_attr_node := DBMS_XMLDOM.getnameditem (l_attr_map, 'id');
             l_claim_id := DBMS_XMLDOM.getnodevalue (l_attr_node);
             l_root_node := DBMS_XMLDOM.clonenode (n         => l_top_node, deep => FALSE);
             l_new_node := DBMS_XMLDOM.appendchild (n             => l_root_node, newchild => l_claim_node);
             DBMS_XMLDOM.writetoclob (l_root_node, l_clob_data);
    --         DBMS_OUTPUT.put_line (l_claim_id);
    --         DBMS_OUTPUT.put_line (l_clob_data);
    --         DBMS_OUTPUT.put_line ('---------------------------');
             INSERT INTO temp_xml_test
                         (claim_id
                        , xml_doc
                  VALUES (l_claim_id
                        , l_clob_data
             DBMS_LOB.freetemporary (l_clob_data);
          END LOOP;
          COMMIT;
          DBMS_LOB.freetemporary (l_clob_xml);
       EXCEPTION
          WHEN OTHERS
          THEN
             ROLLBACK;
             DBMS_OUTPUT.put_line (SQLCODE);
             DBMS_OUTPUT.put_line (SQLERRM);
             DBMS_LOB.freetemporary (l_clob_xml);
             DBMS_LOB.freetemporary (l_clob_data);
             RAISE;
       END;
    BEGIN
       load_xml ('INPUT_DIR', 'Audit_082008.xml');
    END;

  • Which patch parameters "reset to saved value" on changes and which don't?

    Despite having the preferences patch set to "reset to saved" AND all screen control inspector attributes set to "preference", AND updating to 2.0.1, I can't make sense out of why some parameters reset to "as-saved" and some don't when changing patches away then back again to a patch. Which parameters reset and which don't quite random and despite many tests and much manual reading I can't figure out the logic, so to speak.
    I've been testing by changing a screen parameter on a patch, switching to another patch, then switching back to the first patch, expecting the first patch to be as it was when the concert was opened or last saved. Not so. I've tried this in many different concert templates and only gotten very inconsistent hair-pulling-out results despite much reading of manuals. I know that concert-level parameters take precedence over patch parameters but I'm testing what I am quite sure are patch parameters -- like instrument volume, or drive gain, or filters, etc. -- which do not perform consistently.
    Eg: usually but not always, volume does NOT reset back to saved position when I return to a patch I moved it away from saved position on. Sometimes, but not always, deeper parameters like drive volume or bell volume (EP88) or EXS88 parameters will revert back to as-saved in one concert or even set, then in another they won't. On one of the preset concerts, everything works great ("Tonewheel organ"). On another, it's all over the map ("Keyboard with patches") with inconsistencies.
    SO: Can anyone clarify if there's a certain type or family of patch parameters that I shouldn't expect to reset? Or are the factory patches buggy? Or is this still a buggy part of MainStage? Or am I looking at this wrong? Or what? Ahhhgggrrrrr.
    This is a big deal as my keyboard tech and I prepare to use or not use MainStage's indredibly promising sounds on a European tour. I really want to, as I really hear a difference b/n even the best hardware and MS, but I have to know what to expect on stage. I was really hoping the new update would fix this, but no difference.
    Thanks much for any clarification,
    Neil

    Actually I think the light bulb just went off, and it is indeed a semantic definition conflict. I thought "revert to saved" was about going back to the untweaked (saved) version of a patch every time you navigated back to it while playing, like in my hardware keyboard example. Upon dissection, I realize that this is about what happens when you actually SAVE the file after playing it; it either saves the file with changes to parameter values (keep current value) or saves the file without keeping the changed values (revert to saved).
    The reason for the confusion is two-fold:
    One why wouldn't you just "close without saving" if you want to revert to the saved values after playing? Like one does in other programs when you tweak away but want to retain the original version. Seems like overkill to have a preference dedicated to this, maybe you know the design philosophy.
    Second, the language is very confusing:
    The manual says, in this section, "You can set the default to either have parameters keep their current value when changing patches, or to reset their values to the last saved value".
    This sounds like a behavior when changing patches. It's actually trying to say that this is the behavior for when you're saving after the playing time is over. Should have said "When saving a aconcert, you can set the default to either have parameters keep their current value including all changed patch parameters, or to reset their values to the last saved value, ignoring any changed patch parameters".
    I still don't understand the reason for this VERY CONFUSING preference versus just closing without saving.
    I'd appreciate it if you could confirm if we're looking at this correctly now, which would mean we have to re-think our tech approach to concerts.
    Thanks for the help and sorry for the confusion, but hopefully now you understand the reasons.
    Neil

  • Disable "File on my computer"?

    Hi, I am trying to set up a new Contribute site and am in the
    process of customizing the menus and toolbars to suit our needs. I
    am wondering if there is any way to disable/remove the button "File
    on my computer" on the "Insert link" dialog. If anybody knows of a
    way to do this, any help would be greatly appreciated.

    Actually, I would assume they meant it to be used in this
    way, because they have a note about it below that setting. It says
    something like "to completely disable file upload, enter 0 for
    file-size..."
    The way our users edit web pages and upload files might have
    something to do with the problem we're seeing... Our users have
    access to the server shared drive, so they copy-paste files
    directly to the server THAT way (in order to place them in certain
    subfolders, which are always deep in the web site structure, so
    they have to do it manually). They would, then, edit a web page
    through Contribute, and insert a link to the file they added
    recently, by using Browse-Choose method).
    But in my mind, there should be no issue with Contribute's
    own "file upload" mechanism, since it's being "bypassed", in a
    way... Yet somehow, it still complains, intermittently, mind you...
    which is why I'm leaning onto the "bug" idea... :-) Since I saw the
    problem, I turned off the file-size limit, and I haven't had time
    to play with it more... but I really ought to do some more
    testing...

  • One time parameter use pattern

    I'm wondering if the following pattern breaks any convensions or smells of poor design.
    I have a complex directed-graph-like object, let's call it MyGraph.
    I plan to build them by putting together smaller less complex MyGraph objects which get integrated into the whole.
    The problem is that when they are integrated, their nodes are, of course, possibly linked (hence modified) to nodes in the graph they are constructing.
    To sum up so far:
    MyGraph subGraph1 = new MyGraph(...);
    MyGraph subGraph2 = new MyGraph(...);
    //WARNING! subGraph1 and subGraph 2 get modified in here!
    MyGraph aGraph = new MyGraph(subGraph1, subGraph2);
    //ADDITIONAL WARNING! Don't touch subGraph1 or subGraph2
    //because doing so will change aGraph.
    //ADDITIONAL ADDITIONAL WARNING! Don't use subGraph1 or subGraph2
    //as parameters to grate a new MyGraph, because then things get REALLY ugly.So I have at least 2 possible solutions.
    1. A complicated, expensive deep copy of a directed (possibly with cycles) MyGraph every time it's used in a constructor. Even though it's very likely never to be used again.
    2. In the constructor check/modify a private "used" field in the parameters (ok because I have access to it) so I can't ever inadvertently re-use a MyGraph.
    The second option introduces the idea of the "one-time use as parameter" pattern. Where, once used as a parameter, an object becomes invalid for any other use.
    In some ways this pattern feels okay, and in others it "rubs me the wrong way".
    A final consideration: this code is very generic, and is likely to be used by other developers, and I want to confuse/surprise them as little as possible.
    So, finally, is option 2 ok? bad? so-so?
    Would you cringe if you saw it?

    To satisfy the curious.
    Specifically, what I've done is implement "Regular Expressions" over a sequence of arbitrary objects as opposed to characters.
    A bit of background:
    http://forum.java.sun.com/thread.jsp?forum=4&thread=414189
    I call them JOREs (Java Object Regular Expressions)
    I was hoping to avoid the need to deep-copy a directed cyclical graph, because:
    a. it's a bit of a pain and cpu hog
    b. I really want to avoid StackOverflowErrors so all of my "recursive" functions are implemented with iteration and a Stack. That makes the copy even more of a pain and cpu hog.
    It works now.
    I have made JOREs immutable and have implemented a deep-copy function.
    The directed graph is my FA, and I had to "invent" a sensible way of putting together complex JOREs out of simple rules and sub-JOREs. This is what it looks like to put one together:
           Rule anyStringOfLength7 = new Rule("any String of length 7"){
                public boolean accepts(Object o)
                    return (o instanceof String && ((String)o).length()==7);
            Rule aNull = new Rule("a null"){
                public boolean accepts(Object o)
                    return (o==null);
            Jore nullOrStringOfLength7 = Jore.createNew().or(
                    Jore.createNew().then(aNull),
                    Jore.createNew().then(anyStringOfLength7)
            //note that the instance methods return a new Jore, and always
            //deep-copy parameters before using them now
            Jore myJore  = Jore.createNew().then(aNull).then(nullOrStringOfLength7).finish();

  • Useless Batteries Due to Battery Reset

    I recently purchased two used OEM Lenovo extended capacity batteries or my 15" Widescreen T61.  Because the ThinkVantage power management  indicated it would take several hours to reset the battery gauge, I told my nephew to do this for the two new batteries and the battery thst came with the computer. Upon doing so, all of my batteries are useless and cannot be charged even though they were all in good condition before the reset. Is the anything I can do to the batteries or to the computer to enable them to charge again? When trying to charge any of them the charging light just flashes. Please help! Thanks!

    I recommend getting genuine batteries with panasonic cells. They usually sell at a premium if you can find them, but well worth it.
    Be very careful with generics, many are smuggled into the country in person to person shipments and haven't been inspected to assure they are safe. Some even have fake lenovo logos on them so be careful. If you do get a generic, get it from a trusted manufacturer or importer, not from an auction site. 
    ps. I always deep cycle charge used batteries, sometimes it kills them, sometimes it improves them. If it kills them, they were about to die anyway. Also be sure you have a genuine AC adapter when doing this.
    ThinkPad W-510 i7-820QM(1.73-3.06GHz) Quad Core... ThinkPad T500, T9900, 8gb SSD...FrankNpad T-60p/61p (X9000 2.8ghz) 8gb SSD ips FlexView...ThinkPad T-61p (T9300 2.5ghz) 8gb ram...Thinkpad X-61 Tablet 4gb ram...ThinkPad A-31 (1.9ghz P4 1.5gb ram)

  • Leave your Mac On or Shut it Down???...What the Genius Say?

    Hi Guys!!!!!
    What do you think about leaving your Mac On or shut it down when you are not using it????
    Thanks.

    Hi,
    Sleep mode has to supply power to the RAM memory in order to facilitate rapid wake-up. On the MacBook, safe sleep is the default mode. The MacBook will wake itself up when the battery gets low, then save the memory image to a disk file before the battery runs out.
    In another thread, the same question came up. Users reported sleep would use about 4% of the battery every day. That seems very reasonable since a lithium ion battery will often discharge a few percent per day just sittig doing nothing.
    I turn my MacBook off when I am not using the MacBook. I am impressed at how quickly the MacBook boots up rom being totally off. If you are a heavy duty multitasking person, the obvious advantage of sleep is the applications you were usng last time are open with the files you were woking on already open when you wake up the machine.
    If you worry about wearing out the battery, you can change the sleep mode with the command line tool called pmset. You can use pmset to set the default sleep mode to always deep sleep to disk. The disadvantage of deep sleep is it takes longer to wake up, but is does reduce unnecessary battery use.
    This thread discusses the use of pmset:
    http://discussions.apple.com/thread.jspa?messageID=5981685
    Bill

  • MacBook always needs to be woken from deep sleep twice

    Whenever I wake my MacBook Pro (mid 2012) from  "deep sleep"/"hibernation", it wakes up with the gray loading bar and brings me to the login screen as usual, but the keyboard and mouse remain unresponsive.  The cursor is blinking in the "Enter Password" field and everything, but it won't recognize any input at all.  It remains this way for 2 or 3 minutes, and then it shuts off again.  Not just goes back to regular sleep, but back to "deep sleep", so I have to press the power button again, I get the mac chime, and the gray loading bar again, and this time it does this same thing but after about a minute it will suddenly start recognizing mouse and keyboard input.
    What's up with this?  Is it some driver that's taking a very very long time to load or something?  This happens 100% of the time, every single time I wake my MacBook from deep sleep, without fail.  Please help, this is extremely inconvenient.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Why I always have to go back to Arch?

    Hi there!
    A little story about me. I discovered Linux a long ago (6-7 years ago) while I was interested in computer security and hacking, and got a hint the 1337s uses Linux (or any other unix based system), so I decided to try it (I choose for Linux because it was the most popular *nix based system atm).
    My romance with Linux started with Mandrake (today Mandriva) and included distributions like Red hat (it wasn't enterprise oriented that time and AFAIK there were no Fedora yet), and the lovely Gentoo. Its funny tough, Ubuntu wasn't that popular at the time (I even remember how I was on an open lecture in University about open source and Linux, and I got a free CD of Ubuntu and no body heard about it before )
    Anyway its stopped there for few years and I got back to Linux about 2 years ago, with Ubuntu on my desktop machine.
    My nature is to discover and be different. If everybody uses Ubuntu, I must use something else (even now, I'm on Xubuntu).
    This nature lead me to replace Ubuntu with Arch. This was the first time I encountered a very similar distribution to Gentoo, that were optimized to i686 and did not require you to compile every package (for instance I installed Gentoo like 2-3 times from scratch [those were beautiful Friday evenings-nights :romantic-smiley:]) and I remember how compiling Xorg took me hours (and when I say hours I mean hours, something like 6-8 hours).
    Then I got back to windows since my old PC died and I got a new one and a laptop.
    This leads us to nearly today. Right now I'm using my laptop as my main computer at home and at work (the desktop PC had a motherboard issue that was replaced under warranty. While they were fixing it, I switched to use my laptop).
    I started with Ubuntu, simply because it works! But I hated Untiy and I switched to Xubuntu. But you do remember my nature right? This lead me to switching to Arch.
    A few days of configurations and I got stable up and running system. Then I came to work and had some issues (especially with keyring) and they blocked me from working, instead I needed to fix them. Then I said "This is it! I need a machine that works!".
    I removed Arch, installed Xubuntu and promised my self never to do this pointless Distro_name->Arch->Distro_name path, because well, it ends the same way always.
    But you do remember my nature right? So right now I'm standing in front of a decision whether to go back to Arch or not. I must say I really like the rolling release scheme, I'm in love with pacman (its a lot more superior than apt-get or yum IMHO), I like the way you can customize Arch.
    But Archs customization is also its weak point, you have to devote hours or reading and configuring to get a stable and running system. And sometimes (especially if you use your laptop for work or for studies or both) you need to have a running system and you don't want to mess with cups just because its 2 A.M. and you need to print your project to submit it in 5 hours (yes you must take care of it at a lot earlier point than 5 hours before deadline )
    Ubuntu is nice, but its bloated. It doesn't even give you the option to select what packages you want to install (unlike Fedora for example). Its comes with (IMHO) stupid meta packages like ubuntu-desktop, xubuntu-desktop so its nearly impossible to try gnome3, xfce, openbox on the same system without breaking something.
    Ubuntu simply works, but as soon as you need something deeper, you are screwed.
    I don't really ask sort of a question here, but I know many of you use Arch (I'm on bbs.archlinux.org doh -.-' ) as your everyday system, so I would like to know how do you handle its configuration, what you do when something breaks and you don't have the time to fix it (you are at work, hitting the deadline of your university project or whatever). Maybe you will be able to convince me why I always want to get back to Arch and what I need to do to choose it as my the one and only distribution. Maybe you will be able to suggest me another distro that fits my needs. Or maybe you want to tell me how sucky I'm.
    So simply go on and post, this is why I created this topic.
    Thanks you for your time

    skwo wrote:
    Hi there!
    A little story about me. I discovered Linux a long ago (6-7 years ago) while I was interested in computer security and hacking, and got a hint the 1337s uses Linux (or any other unix based system), so I decided to try it (I choose for Linux because it was the most popular *nix based system atm).
    My romance with Linux started with Mandrake (today Mandriva) and included distributions like Red hat (it wasn't enterprise oriented that time and AFAIK there were no Fedora yet), and the lovely Gentoo. Its funny tough, Ubuntu wasn't that popular at the time (I even remember how I was on an open lecture in University about open source and Linux, and I got a free CD of Ubuntu and no body heard about it before )
    Anyway its stopped there for few years and I got back to Linux about 2 years ago, with Ubuntu on my desktop machine.
    My nature is to discover and be different. If everybody uses Ubuntu, I must use something else (even now, I'm on Xubuntu).
    This nature lead me to replace Ubuntu with Arch. This was the first time I encountered a very similar distribution to Gentoo, that were optimized to i686 and did not require you to compile every package (for instance I installed Gentoo like 2-3 times from scratch [those were beautiful Friday evenings-nights :romantic-smiley:]) and I remember how compiling Xorg took me hours (and when I say hours I mean hours, something like 6-8 hours).
    Then I got back to windows since my old PC died and I got a new one and a laptop.
    This leads us to nearly today. Right now I'm using my laptop as my main computer at home and at work (the desktop PC had a motherboard issue that was replaced under warranty. While they were fixing it, I switched to use my laptop).
    I started with Ubuntu, simply because it works! But I hated Untiy and I switched to Xubuntu. But you do remember my nature right? This lead me to switching to Arch.
    A few days of configurations and I got stable up and running system. Then I came to work and had some issues (especially with keyring) and they blocked me from working, instead I needed to fix them. Then I said "This is it! I need a machine that works!".
    I removed Arch, installed Xubuntu and promised my self never to do this pointless Distro_name->Arch->Distro_name path, because well, it ends the same way always.
    But you do remember my nature right? So right now I'm standing in front of a decision whether to go back to Arch or not. I must say I really like the rolling release scheme, I'm in love with pacman (its a lot more superior than apt-get or yum IMHO), I like the way you can customize Arch.
    tl;dr
    But Archs customization is also its weak point, you have to devote hours or reading and configuring to get a stable and running system. And sometimes (especially if you use your laptop for work or for studies or both) you need to have a running system and you don't want to mess with cups just because its 2 A.M. and you need to print your project to submit it in 5 hours (yes you must take care of it at a lot earlier point than 5 hours before deadline )
    That is the strong point. Arch's customisation allows me to use it on the craptop and on the desktop. I prefer to see it as an investment of time to get a system I want instead of one a developer thinks I want (don't get me wrong open source devs do an amazing job!)
    Ubuntu is nice, but its bloated. It doesn't even give you the option to select what packages you want to install (unlike Fedora for example). Its comes with (IMHO) stupid meta packages like ubuntu-desktop, xubuntu-desktop so its nearly impossible to try gnome3, xfce, openbox on the same system without breaking something.
    Ubuntu simply works, but as soon as you need something deeper, you are screwed.
    Bloat is the price you pay to have a distro that works out of the box.
    I don't really ask sort of a question here, but I know many of you use Arch (I'm on bbs.archlinux.org doh -.-' ) as your everyday system, so I would like to know how do you handle its configuration, what you do when something breaks and you don't have the time to fix it (you are at work, hitting the deadline of your university project or whatever). Maybe you will be able to convince me why I always want to get back to Arch and what I need to do to choose it as my the one and only distribution. Maybe you will be able to suggest me another distro that fits my needs. Or maybe you want to tell me how sucky I'm.
    So simply go on and post, this is why I created this topic.
    Thanks you for your time
    My arch setup is relatively simple, I set cron jobs to back up files with rsync and keep important config files backed up too. I am lucky by the fact I have a laptop I can use if the desktop breaks and vice versa but the sensible solution is to upgrade after work is done.
    I keep coming back to arch because of pacman and the AUR. No package manager comes close.

  • When trying to work with Agilent 34401A multimeter (serial RS-232 connection), HP34401A Getting Started.vi gives always the message: "Error 1073807369 occurred at Old VISA Open ".

    Baud rate and parity are set correctly, RS-232 cable is also connected correctly. My QuickBasic program has no problems to read and write to the Multimeter. It is obviously a software problem: the same error is persistent if I disconnect RS-232 cable.
    I downloaded NI-VISA 2.6 for Windows 95/98/NT/ME/2000/XP frorm digital.ni.com and installed it. But it did not help.
    Thank you in advance
    Best regards
    Alexei Soloviev

    Hi Steve
    I have problems with the 34401A and serial communication. Do you remember
    where the error was in the code ?
    Thanks
    Klaus
    wrote in message
    news:[email protected]..
    > Alexei,
    > This may or may not help, I was tasked to do something similar
    > recently and found an error in their driver. The GPIB VISA worked
    > fine, but when I tried it on serial it played up. There was an errant
    > carriage return (or CR/LF I can't remember). GPIB liked one and Serial
    > liked the other. It always amuses me that we never have problems with
    > Quickbasic!.
    > If you want me to dig deeper give me a shout.
    >
    > Steve Watts
    >
    > On Thu, 24 Jan 2002 06:16:55 -0800 (PST), "Alexei V. Soloviev"
    > wrote:
    >
    > >When trying
    to work with Agilent 34401A multimeter (serial RS-232
    > >connection), HP34401A Getting Started.vi gives always the message:
    > >"Error 1073807369 occurred at Old VISA Open ".
    > >
    > >Baud rate and parity are set correctly, RS-232 cable is also connected
    > >correctly. My QuickBasic program has no problems to read and write to
    > >the Multimeter. It is obviously a software problem: the same error is
    > >persistent if I disconnect RS-232 cable.
    > > I downloaded NI-VISA 2.6 for Windows 95/98/NT/ME/2000/XP frorm
    > > digital.ni.com and installed it. But it did not help.
    > >Thank you in advance
    > >Best regards
    > >Alexei Soloviev
    >

  • Wake on Lan (works, but not always)

    Iam trying to get Wak on Lan working on my iMac. It works, but not always. When I put my mac to sleep en send the magic package, my mac turns back on. But when my mac turns to sleep and I wait a few hours (the next morning), my Mac doesn't respond to the same magic packag. When I wake up the Mac by hand, and put it back to sleep again, the magic package works again en turns the mac on.
    It almost looks like the mac goes into a deeper sleep mode after a few hours. Does anyone knows what could ben the reazon.

    mmm, It seems like my mac doesn't always turns to sleep mode. Most of the time it only turns off the screen (solid light). My energy settings are 10 minutes for the screen and 15 minutes for the mac. But after turning of the screen it never turns to sleepmode. Ecxept when I put it to sleep manualy.
    Strange thing is: when the screen is turned of, shouldn't I be able to get tot my files... (I can't actualy).

  • Exception not always caught in Sun Studio 12

    Hi,
    We're using Sun Studio 12 (Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25) on a Solaris 10 SPARC machine. In our applications an exception thrown is sometimes not caught in the try/catch statement and the program continues at an outer catch statement (which usually leads to the program exiting). So far I've not been able to reduce the code down to a simple example and I don't yet know what conditions causes this behaviour.
    In general the code has a big try/catch statement in main. Somewhere deep in the code there is a second try/catch statement which protects against a piece of code which we know may throw an exception. This is usually a smart pointer being dereferenced. The act of dereferencing the smart pointer in turn causes an exception to be thrown which is caught internally in a third try/catch inside the dereference code. The exception is successfully caught and some clean up is done. Then the exception is re-thrown by either using a throw; statement or a new throw xmsg("...");. All our exceptions are always of type xmsg which simply takes a string argument.
    When the problem manifests itself the second try/catch is ignored and the re-thrown exception is instead caught in the outer catch statement in main which causes the program to log an error and exit.
    We have lots of code which is structured the same way and the same style of code works in many cases only to fail in some specific case. It's an elusive problem because the problem moves around and it also depends on how the program is compiled. It only seems to happen when compiled in debug mode. If I compile with -xO4 the problem seems to go away.
    The problem also goes away or moves to a different place if the code has changed somewhere between compiles, i.e. some other developer has modified some code, not necessarily in the same are where the problem originally happened.
    One thing we have is a function we call DoThrow (used to suppress a warning on an older compiler) defined like this:
    void DoThrow(const std::string& msg)
      throw xmsg(msg);
    }As an experiment I replaced the call to DoThrow with a straight throw xmsg(...) at a place where the first exception was thrown and the problem went away. I'm not sure if removing the call to DoThrow fixed the problem or if the minor restructuring of the code was enough to move the problem elsewhere.
    For production releases we still use WorkShop 6, update 2 which does not have any problems like this. We really would like to upgrade to Sun Studio 12 because it's a much better compiler over all. We can't upgrade until we feel confident we have a workaround.
    Does anyone have any thoughts on what might be wrong or any ideas on what I can do to narrow down the problem?
    Thanks,
    Krister

    Many thanks. You've given me a few areas to focus on and I'll bring my house in order.
    The only external C++ library we depend on is STLport 5.0.2 which we compile ourselves. It's currently compiled with 5.3 on Solaris 8 and I will recompile it with 5.9 on Solaris 10. All other external libraries are C libraries. Our own code is put in static libraries and linked statically. I've read that exceptions thrown in shared libraries can be problematic.
    Your comment about complex conditional expressions (a ? f() : g()) is interesting. We've been bitten before by compiler bugs affecting those types of expressions. Destructors called twice or destructors called for temporaries never created. We may still have some conditional expressions like that.
    The exception is of type xmsg, defined this way:
    class xmsg
      public:
        xmsg(const char* s) : _msg(s) {}
        xmsg(const std::string& s) : _msg(s) {}
        const std::string& why() const { return _msg; }
      private:
        const std::string _msg;
    };There are three catch blocks involved and all the try/catch statement look like this:
    try
    catch(const xmsg& msg)
    }Here is a stack trace from dbx at the point where the exception is thrown the first time.
      [1] __exdbg_notify_of_throw(0xffbf4ae8, 0xffbf4ad0, 0x959b292c, 0xffff0000, 0x0, 0xfc00), at 0xfb6549b4
      [2] _ex_debug_handshake1(0x0, 0x101cb84, 0x1, 0x14ffc, 0xfb66a67c, 0xfb66ad38), at 0xfb655728
      [3] _ex_throw_body(0xfb66af80, 0x80b2ac, 0xfb66a67c, 0x14d9c, 0x0, 0xfb66af80), at 0xfb655934
      [4] __Crun::ex_throw(0xfb66afd0, 0x1460bf8, 0x7ead20, 0x0, 0x16538, 0x1), at 0xfb6558bc
    =>[5] TransportSource<User>::Activate(this = 0x1624810, r = CLASS, _ARG3 = CLASS), line 39 in "TransportSource.H"
      [6] Source<User>::DoActivate(this = 0x162486c, r = CLASS, e = CLASS), line 272 in "Factory.H"
      [7] BaseFactory::Load(this = 0x16020a8, e = CLASS), line 2799 in "BaseFactory.C"
      [8] GPAuthorizationSource::Load(this = 0x15d2440), line 110 in "GPAuthorization.C"
      [9] ExchangeServer::ExchangeServer(this = 0xffbfa95c, argc = 8, argv = 0xffbfbaec), line 380 in "exchangeServer.C"
      [10] main(argc = 8, argv = 0xffbfbaec), line 1525 in "exchangeServer.C"Here is the code for the Activate function in stack frame 5. The exception thrown is the second one.
        virtual T& Activate(const Reference& r, Exemplar<T>&)
          _transport->In().Write(r);
          DemarshallStream out;
          _transport->Method(Process::Activate, out);
          if(!out.Data())
         throw xmsg("Failed to call Activate on server " + _transport->Name());
          if(!out.GetBool())
         throw xmsg("Server returned error: " + out.GetString());
          const ClassHandle& h = out.GetClassHandle(&_connection);
          // don't need to pass refresh flag here because a call to Activate
          // means the object is being loaded for the first time.
          BaseExemplar* x = _handle.GetFactory().Demarshall(h, out, false,
         &_connection, this);
          BaseTransportSource::DoActivate(out);
          if(!x)
         throw xmsg("Failed to activate ref: " + r.ExternalValue());
          return static_cast<T&>(*x->GetInstance());
        }The exception is caught (frame 7 in the stack trace above) and re-thrown in the below code, at the last throw statement.
    void BaseFactory::Load(BaseExemplar& e)
      SourceMap::iterator p = _sources.find(&e._key->Type());
      if(p == _sources.end())
        throw xmsg("Factory<" + _handle.Name() + ">::Load - no source for: "
          + e._key->ExternalValue());
      AutoPointer<BaseGuard> g(Guard());
      std::list<BaseSource*>::iterator i = p->second.begin();
      while(true)
        try
          (*i)->_currentExemplar = &e;
          BO& x = (*i)->DoActivate(*e._key, e);
          (*i)->_currentExemplar = 0;
          if(!e._instance)
         e._instance = &x;
         Activate(e, ActivatedOld, 0);
          return;
        catch(const xmsg& msg)
          (*i)->_currentExemplar = 0;
          ++i;
          if(i == p->second.end())
         throw;
    }There is a second try/catch one level up (stack frame 8, the call to GPAuthorizationSource::Load). Here's a snippet of that piece of code.
        try
          const Exemplar<User>& user = UserFactory::Instance().CreateExemplar(
         *new UserReference(authorizationTable._login.Value()));
          *user;
        catch(const xmsg& msg)
          Logger::Instance() << LogHeader << MsgClass(MsgClass::Error)
         << "Error PMAutorizationSource: " << msg.why() << EndMsg;
        // ...I put a break-point in the catch block in the above code but I never hit the break point and the exception is caught in an outer try/catch, an error is printed and the program exits.
      try
      catch(const xmsg& msg)
        std::cerr << "ERROR: " << msg.why() << std::endl;
      }I'm sorry I have not yet been able to produce a smaller example that can be compiled and tested in isolation. I know that's important in order to track down the problem. It seems like the smallest change in seemingly unrelated parts of the code makes the problem come or go.

  • Where is the "Always open folder in new Finder Window/Tab" option ?

    Prior to 10.9, we have an options to choose whether to open folders in the same window in Finder preference. But I can't find anything similiar to that in Mavericks. Now I'm forced to open folders within the same window / tab, unless I press the CMD key while double clicking on the folder, and I still yet to find a way to do so with keyboard navigation.
    Did I missed something ?

    Yes I know that, but that option is completely useless, since you're forced to open a folder within the same tab.
    Even with that option turned on, you still can "open folder in new tab" only by holding CMD key while double-clicking on a folder. And there is still no way to open a folder in new tab with keyboard navigation: CMD+O or CMD+Down-Arrow will always open folder within same tab.
    So I consider this as a bug; maybe someone just forget to enable this option in the Finder preference dialogbox.
    Is there any terminal command (defaultswrite ?) or 3rd party tool like TinkerTool, OnyX or Deeper that can change the default behavior of Finder ?

  • Deep links in Flash Player not working

    The German support-team of Adobe asked me to introduce this question here again:
    They have already verified the problem with their systems.
    Chrome versions 21 - 33 (at least 32-bit versions on Windows (at least XP up to Windows 7) do no longer jump to Flash-links like
    http://www.domain.xxx/.../xxx.php#two
    All other browsers do resp. earlier Chrome-versions did jump correctly to frame / reference #two.
    It does not matter, what deep link you want to jump to (two, three, four etc.), Chrome always starts with „one“ - i.e. at the beginning of the Flash-animation.
    Like all other browsers (I successfully tested: Opera, Safari, Firefox, Internet-Explorer) Chrome should jump directly to the deep link #two, #three, etc.
    In August 2012 this bug was implemented in Chrome 21.
    You will find a test-suite explaining and showing the problem here:
    http://www.in-tanz.de/test-chrome/test.php
    Does anyone know any help?

    Chrome uses a proprietary build of the plug-in called "PepperFlash" because it's a PPAPI plug-in where the ActiveX and standard plug-in are NPAPI. That may have something to do with it.

  • Playlist always starts at the begiing after turning on iPod.

    I originally posted this in the iPod classic section but thought U might get an answer here too:
    So I've had a 5.5 Pod loaded with many playlists for a year or so. I Just got my 160GB Classic, has about 100GB of music loaded now and the latest iTunes with new interface. I have several huge playlists that I play in my studio all day. So now when I stop the Pod and start again later or the next day (yes the iPod is off for a long time) , that play list always starts from the beginining and not from where I had left off.
    My old pod and the last iTunes would always start again where I had left off. Fo instance I always have shuffle turned on and if I had gone through 303 songs, the next time I turn on and start the ipod and same playlist, the 303rd song would begin-right where I left off the day before. Now it starts at the beginning, track 1 of xxxx many songs every time rather than where I was when I turned it off. What's up with this? A glitch???

    If you press Pause and power off, or play sonething else and go back, the selected playlist will start from the beginning.
    It has always been this way.
    If you press Pause and let it go to sleep itself, then press Play, it should start from where it left off.
    If the iPod goes into deep sleep, the playlist will start from the beginning.
    http://docs.info.apple.com/article.html?artnum=60945

Maybe you are looking for

  • How do I check if my PC's Wi-Fi card is compatible?

    I have a notebook and it's a Dell Latitude D410 with Intel Pentium 1.6 GHz running windows XP pro 2002. I checked my wireless connections and i have two: 1. Sierra Wireless EDGE Adapter and a 2. Dell Wireless 1350 WLAN Mini-PCI Card I want to purchas

  • Calling java application from Oracle forms button

    Hi all, I have a problem. The idea is to call Java desktop application when button is pressed. I have used this (above) line of code, but there is no results. When I start form in local everything is fine but when I start from server it doesn't work.

  • Regarding  to logic

    Hi All, Having doubt in ranges ? im having  variable date1 which carries value sy-datlo. for ex : 12.02.2008 My requirment is i want date that shoul be exactly less than 1000 days by the current system date(date1) Regards, Murthy

  • How to hide list box

    Hi am having a listbox in my jsp page (<html:select>) How can i hide the listbox from my form thanks.

  • Workitem format-task descrp:comment, bold, underline, modlog, tab,imm. line

    Hi All, How do I insert a modlog or a comment line in the task description of a workflow step? This needed, as in the case of reports or any development, to later know the TR, person who developed, date,description of functionality,etc,... Like in SA