Strange behavior when performing query

Hi all,
I'm getting some odd behavior when doing different kinds of queries and am hoping someone here can help out. I have a database with continuously updated PDML data (http://www.nbee.org/doku.php?id=netpdl:pdml_specification). I am opening anf querying the database from a seperate application. This appears to work fine for certain types of queries, and fails for other types with error messages that don't seem relevant. Specifically, some queries that use the attribute axis as the last leaf seem to get fouled up. Here are some example queries and the results I get:
First some queries that work:
Query: "string(collection()[1]/packet[1]/proto[1]/field[1]/@size)"
Result:
A valid number
Query: "collection()//proto[@name='geninfo']/field[@name='len']"
Result:
<field name="len" pos="0" show="64" showname="Packet Length" value="40" size="64"/>
<field name="len" pos="0" show="64" showname="Packet Length" value="40" size="64"/>
<field name="len" pos="0" show="64" showname="Packet Length" value="40" size="64"/>
Now some queries that don't work:
Query: "collection()//packet/proto/field/@size"
Result:
Output to stdout - "Transaction specified for a non-transactional database"
and an Exception with message - "Error: Invalid argument"
Query: "collection()//proto[@name='geninfo']/field[@name='len']/@name" (notice it's almost identical to above working query except with @name)
Result:
Same as above, an stdout about transactions and an exception about invalid arguments
What I find most interesting is that both errors (the one printed to stdout and the one I get in my exception) don't seem to have anything to do with the problem. I know the transactional stuff isn't messed up because the exact same code works for certain queries. I'm not sure about the "Error: Invalid argument" exception, but it's not very helpful by itself. I'm using the Java library and DBXML version 2.4.16. Anyone have any ideas what's going on?
Thanks,
Dave

As a follow-up, it appears that I just needed to wrap my attributes in the XPath string() function. For example "collection()//packet/proto/field/@size" does not work while "collection()//packet/proto/field/string(@size)" works fine.
I'm still not sure why it's spitting out an error message to stdout about transactions not being enabled when the only real error is with the query, but at least it's working now.

Similar Messages

  • Strange behavior when I try to match a mpeg2 video with the menu size image

    hello all,
    got a strange behavior when I try to match a mpeg2 video with the menu size image,
    menu size is 1920 x 1080 (photoshop file)
    mpeg2 video 1920 x 1080 (1second 19 frames)
    the idea is to go from the menu link to the next sub menu with a video as transition, using the same image on the video as the menu and then zooming in (in my case through a door) to end up after the zoom in the next level menu.
    I try to achieve a smooth change from the first play menu picture to the video image into the next level menu picture,
    everything works good but when I watch it on the preview mode on the left and right side of the video it shows a black bar at least 15 to 25 pixel wide, that means the video image appears smaller and it causes a little jump what is preety disturbing and can not be sold as a professional work.
    why encore treats the video size and picture differently?
    it's gratful appreciated if somebody who got experience in a transition I mentioned obove posting any solution,
    thankl you all

    Hi all
    I'm having a very similar problem with Encore. My menu items are distorting (a minor but infuriating squashing top and bottom) when previewed.
    Using Encore,PS,AE CS4
    DVD format SD PAL DV widescreen
    I created 3 menu frameworks and 3 video transistions to link them in AE. On the final frame of each transistion in AE I saved the frame with Composition>Save Frame to> Photoshop Layers. In PS i added the button functionality and saved.
    In Encore I use Dynamic link to import AE transistions as timelines and imported each PS menu twice, once as "menu" and once as an asset.
    When I link the timeline transistions to the menu and preview at the point the menu begins the whole image is squashed. When the next transistion is activated the image returns to its original size.
    Thinking it was the use of PS that was causing the menus to distort I used the menu asset directly in the time line. Obviously no menu functionality but also no distortion. The AE transistion flowed straight into the "menu" just as I expected.
    In the properties panel the menu Aspect Ratio 16:9
    The AE transistions PAR is SD PALwidescreen 1.4587.
    I did try the Blu Ray suggestion above but the same distortion was apparent.
    Any suggestions short of squashing the video to match the menu would be welcomed.
    Thanks

  • Strange behavior when compiled with Visual C++ 2005 Express Edition

    I wrote a program for Berkeley DBXML 2.2.13 on Windows XP that executes a query 5 times and prints out the runtime for each execution. When I run the program using the Debug version of the libraries the queries take about the same time to execute for all 5 executions. When I run the program using the Release version of the libraries the execution time of the queries degrades significantly between each execution. One query takes 2 seconds to execute the first time and 20 to execute the last. I have tried recompiling the Release version without optimization and the strange behavior persists. I have run both the Release and Debug versions several times and gotten the same results, so I doubt it is a program running in the background that is slowing the execution.
    This behavior does not happen when I compile the program under Unbuntu using g++, so I assume it is caused by some flag set in the Release version of Visual C++. Has anyone else experienced this behavior and know what flags I should or should not set?
    Thanks for your time.
    Lauren

    Hi Lauren,
    We've had users experience this before, and it seems to be a bug/"feature" of the default windows heap allocator. Please see this post for a bit more explanation and a solution:
    Re: Performance Issue caused by XmlResults.next().asString();
    John

  • Strange behavior in inner query with group by clause

    Hi All,
    I found a very strange behaviour with Inner query having a group by clause.
    Please look the sample code
    Select b,c,qty from (select a,b,c,sum(d) qty from tab_xyz group by b,c);
    This query gives output by summing b,c wise. But when i run the inner query it gives error as "not a group by expression "
    My question is - though the inner query is wrong, how is it possible that this query gives output.
    it behaves like -
    Select b,c,qty from (select b,c,sum(d) qty from tab_xyz group by b,c);
    Is it a normal behaviour ?
    If it is a normal behaviour, then how group by behaves inside a inner query.
    Thanks !!

    This case I have tested already and it throws error.
    But why the initial posted query is not throwing
    error even the inner query is wrong.
    In what way oracle behaves for the initial posted
    query?what is the scenario that throws the error? is it at the time when you only run the inner query or the whole query?

  • Strange behavior when shutting down - only works once

    Hi there,
    I'm taking advice from around the forum to create a shutdown button for my VI. When the user sends the shutdown command, the loop stops all processes running and turns off all heaters. Then when this is complete it passes a shutdown variable to all loops allowing them to close. This seems to work perfectly once, but when I hit run again and test it again, it fails. If I abort the VI and restart again, the shutdown works. I can't quite figure out what the behavior is doing here.
    Attached is my program, it's a little messy but everything works, and it has to be added to by someone who isn't me, so I tried to keep everything clear and seperate. If anyone's got any ideas as to what is causing this strange behavior I'd love to hear it.
    Thanks,
    Chris.
    Attachments:
    Main VI.vi ‏259 KB

    First of all, your event loop should look something more like this.  Otherwise you won't exit the loop until another event comes through.
    Secondly, I think you are writing to the wrong control here (this is in your timed loop).  I have no clue what is in the subVI, but I don't think it should be looking at the Shutdown PB control.  That control should be in it's event case.  But here you are trying to cause the shutdown event, but you are writing to the wrong control.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Event Structure issue.png ‏10 KB
    wrong property node.png ‏3 KB

  • Strange behavior when "trying" to burn a disk.

    At least I think this is strange behavior, following the instructions in the help viewer, topic "Backing up your music to a CD or DVD." One thing for sure, it's not burning a disc and it ain't telling me why.
    I select the playlist and click "Burn Disc"
    Requests a blank disc. I insert one.
    Message "checking media"
    after about a minute, the disc ejects
    Message "checking media" displays another 30 seconds
    No other messages displayed.
    What the ??? Shouldn't it at least display an error message??
    Super-Drive information..... from System Profiler
    MATSHITA DVD-R UJ-845C:
    Firmware Revision: DPP9
    Interconnect: ATAPI
    Burn Support: Yes (Apple Shipped/Supported)
    Cache: 2048 KB
    Reads DVD: Yes
    CD-Write: -R, -RW
    DVD-Write: -R, -RW, +R, +RW
    Burn Underrun Protection CD: Yes
    Burn Underrun Protection DVD: Yes
    Write Strategies: CD-TAO, CD-SAO, DVD-DAO
    Media: No
    Using Sony DVD+R discs.
    Mac Mini   Mac OS X (10.4.8)  

    Whoops, sorry, this was while burning a playlist.
    I've also tried some Pleomax CD disks (Samsung), with no luck. I've tried burning directly from iTunes, and from Toast 7.
    Of the types I've tried, the Sony DVD's have been the best for me. Haven't tried many types though. Maybe I can get disks one at a time until I find a brand my burner likes.
    Still, isn't it strange that there is NO error message? It just quits?
    Mac Mini   Mac OS X (10.4.8)  

  • Oracle Forms returns the first record in the database when performing query

    Once in a while when we query for a record on a form, say by first name Tom, then it returns the first record in the database. Other times it return the Tom's record. It only happens once in a while and if you close the form and reopen it and requery for Tom, then it brings Tom's record.
    Does anyone know the issue what could be happening. It just happens every now and then that it's hard to reproduce.
    ORacle Forms 10GR2
    ORacle Application Server 10.1.3
    thanks

    then it returns the first record in the databaseI'm not sure if i understand you correctly. Do you mean forms ignores the searc-condition you entered? I would check SYSTEM.LAST_QUERY at the moment this happens to check if the condition gets somehow lost.

  • Strange behavior when resizing with 'Selection Tool'

    Hello,
    I have a really strange issue when using selection tool to resize object. I have several rectangles stacked and grouped inside a layer. When I select one of them (either in Layer panel or with Group selection tool) and switch to 'Selection Tool (V)' to resize it, this tool behaves diferently at diferent zoom levels. Only at 200% zoom it behaves as it shoul.. With 100-150% zoom result is diferent - like there's a invisible box around selected object and I'm resizing it.. I've tried to explain the issue in attached image.. Anyone knows why is this happening?
    Thanks.

    - make new document, size 16383x16383px
    - create rectangle any width, hight say 200px (or anything less then 320px for 5% zoom)
    - select rectangle and show bounding box
    - try resizing hight by stretching bounding box
    - this is how same selection looks at diferent zoom levels
    - same zoom level as befor, hight 100px..

  • ORA-01722: invalid number when performing query

    Hi,
    I am running SQL Developer on a laptop (XP Pro) accessing Oracle Applications
    Product Version     11.5.10.2
    Platform     IBM SP AIX
    OS Version     AIX
    Database     9.2.0.7.0
    Support ID     14460365
    If I run the following query it works fine -
    select
    mtrh.request_number
    ,to_number(mtrh.request_number)
    from
    mtl_txn_request_headers mtrh
    where
    to_number(mtrh.request_number) = 135060
    and mtrh.request_number = '135060' -- works with this line in!!!!
    however if I comment out the last line I get
    An error was encountered performing the requested operation :
    ORA-01722: invalid number
    The field request_number is defined as varchar2(30)
    It seems that there is something strange about the way it handles to_number in where clauses.
    Thanks
    Mick Sulley

    You have an invalid number in request_number. If you add "and mtrh.request_number = '135060' ", the result set will be reduced to only those rows which have 135060 in the column and the to_number() will work. WIthout that row, it does to_number(request_number) for all rows in order to identify the one you want. When it comes across a request_number column which contains an invalid number it reports an error.
    <preach>
    If request_number is a number then it should be stored in a number column. If it isn't, don't try an convert it to a number.
    </preach>

  • Strange behavior when searching a phrase using reg exp and dynamic sql

    Hi,
    I have a strange issue while using dynamic sql for an apex page. I have a requirement to search a string in the database column which is entered by user on a page item. The search process should search the whole phrase only.
    I have a query generated dynamically in the back end and use it in a cursor in the stored procedure
      SELECT t.group_cn , t.group_desc, t.group_type, t.partner_organization_id, t.partner_organization
      FROM vr_idm_group t WHERE regexp_like(t.group_desc,'(^|\W)HR Selection & Assignment(\W|$)', 'i')The pl sql code with the dynamic sql statements are below.
       IF p_search_process NOT in ('PARTNER') THEN
          OPEN v_cursor FOR v_sql;
       ELSE
          OPEN v_cursor FOR v_sql USING p_search_id;
       END IF;
       LOOP
          FETCH v_cursor INTo v_obj.group_cn, v_obj.group_desc, v_obj.group_type, v_obj.partner_organization_id,
             v_obj.partner_organization, v_obj.match_count;
          EXIT WHEN v_cursor%NOTFOUND ;
          v_search_array.extend;
          v_search_array(v_search_array.last) := v_obj;
          dbms_output.put_line(v_sql);
       END LOOP;The search works fine if the search string does not contain any special character like &,- etc.
    However, if the search string contains any special character, it does not return any thing. This strange issue happens only if I call the procedure from the apex page and the search string contains a special character. (please note that the procedure works fine even from apex if the string does not have a special character). When I debugged this, found that, the cursor does not fetch any rows (it is supposed to fetch two rows) for unknown reason. When I run the query separately, it returns the two rows (in which the column group_desc contains the search string "HR Selection & Assignment") as desired. Also, when I test the procedure in the back end (PLSQL developer), it works fine.
    Any idea, what is causing this strange behaviour?
    Advance thanks.
    Regards,
    Natarajan

    i don't see anything about a dataProvider.  you're assigning a source for a scrollpane.  scrollpane's don't have a dataProvider property.
    anyway, other than arrayRun always being false when that last if-statement executes, what's the problem?  doesn't that movieclip display when that 2nd branch of the last if-statement executes (assuming instance is defined correctly etc)?

  • Has anyone experienced this strange behavior when selecting a region of an image in preview?

    When I select a section of an image that has the height and/or width of one pixel, the bounding box does the strange thing pictured to the left (at around 6x mag).  The box starts out the correct dimension on that axis (i.e., 1 px), but tapers down to 0 px by the other end of that line.  Below is an example (at 80x) if a 1 x 2 px box.  Depending on the direction you sweep the mouse when selecting the box can also appear as a single diagonal, horizontal, or vertical line.
    Copying and pasting the selection demonstrates that this does not have an effect on the shape of the selection, only on how it is displayed.
    I don't suppose that this is anything but a curious little bug with no impact on performance, though it could be confusing to some small subset of users.

    Interesting but I do not see this in my Preview/cropping.
    see the annotation:

  • HTTP Handler strange behavior when updating HR data

    Hi there,
    Brief summary: Executing a function module from inside a HTTP Handler gives a different result than executing the function module direcly through SE37. The user defined for the SICF service calling the Handler is the same as the one we use for SE37.
    Details:
    We have created an HTTP Handler implementing the interface IF_HTTP_EXTENSION.
    We have also defined a new service through SICF that access the previous Handler.
    We have a web application accessing SAP through that HTTP Handler.
    Within our HTTP Handler (within the IF_HTTP_EXTENSION~HANDLE_REQUEST method), we are calling a custom function module that perform different actions depending on the parameters received.
    The solution works really well but we have identified an issue for some actions: when we execute some background updates (like calling HR_INFOTYPE_OPERATION) and the transaction returns an error, the HTTP Handler suddenly stops and the HTTP call returns an error.
    The strange thing is that executing the function module directly (without calling the HTTP handler from the web) captures the error and continues the execution of the function module.
    It seems that when the function module gets called from the Handler, there is some screen or user parameters that affect the result of the transaction, and we cannot find the way to capture that error and let the Handler to continue.
    Any idea, suggestion, alternative solution would be much appreciated
    Best regards,
    Miguel

    Hi Olivier, thanks for your reply, nice to see you are still out there
    You raise a good point. We are reusing an "old" web app that was connecting to SAP through the DCOM connector. The RFC (the function module I mentioned on my first post) cannot be modified as it handles tons of different web calls, so we decided to call that RFC from the Handler.
    It may not be the best solution, but the web app has been modified to call the different handlers (for the different environments) and still hope to find a work around our current problem.
    Other than that, it works really well and performance is amazing
    Thanks again,
    Miguel

  • Strang behavior when creating folders

    Hi all!
    Ever since I went from my old tower with Snow Leopard to a new 12-core running Lion this summer, Logic has been acting strangely when I'm trying to create a new folder in the Save As... dialog window. The normal behavior would be that you end up in the new folder after creating it, while I'm now endig up in the root folder every time. Are anyone else experiencing this? It seems to be happening only in Logic.
    Ginge

    Yes, I'm experiencing this. Once you've created a folder you then have to go back and direct Logic to that folder before saving. Otherwise it jumps back to the root and will make another folder there thinking that there's no new folder.
    No idea why but this is happening, but it started on my recent Macbook Pro upgrade too.

  • Strange Behavior when Switching from/to Library

    Some annoying behavior has presented itself in my copy of iTunes. It didn't used to work this way but now when I've made a selection in my Library (say an band or a particular album), click play, then switch to some other source (say the Music Store), then switch back...my entire Library is shown...not the selection I had just made.
    So instead of being in Genre (All), Artist (Galaxie 500), Album (All), for example, iTunes switches me back to Genre (All), Artist (All), Album (All).
    This is really annoying and only started happening a month or two ago.
    Any ideas?

    Thank you for the swift replies.
    After Bill asked about the ID Query, I decided to try a few things that I had already gone over just to double check. I was suspspicious that timing was the source of the error. Using a timed while loop, I set the wait time to 10 seconds and got results. As it turns out, 5 seconds is not long enough, but 8 seconds is a sufficient wait time for the program to work. With the problem solved, I am still mystified as to why waiting 8 seconds is required.
    I think that the oscilloscope must be given sufficient time to display the signal on-screen before the Start Aquistion or Get Waveform functions are used. With this logic in mind, the breakpoints were acting as a sort of wait, allowing the signal to be displayed before continuing through the program.
    In response to Jeff, I am indeed using an external direct trigger. The hardware is sound, but apparently, my coding could use some work.
    I have attached the modified code. I am certain that there is a more elegant solution to the timing than simply slapping a timed while loop on the code. Any suggestions?

  • Strange behavior when Popup LOVs has read-only condition and Bug Report

    Hi,
    I observed an inconsistent behavior of Popup LOVs when the read-only condition is true. In that case the defined lov query is used to map the internal value of the page item to the display value defined in the lov query.
    What is the reason for this behavior? Because if the Popup LOV is in "edit mode" the page item value is just displayed without looking up the display value. The display value is just used for the popup lov. Mapping the value is normally a behavior of the popup key lov.
    -> The result is that different values are displayed if the page item is in edit or read-only mode. That's not really the behavior someone would expect.
    BTW, there seems to be a bug with "Display Extra Values" set to "Yes" in the case read-only is true. If the lookup doesn't return a value it just displays [ ], but because the property is set to yes it should display the value. The Popup Key Lov has the same bug.
    Thanks for bringing some light into that behavior
    Patrick
    Oracle APEX Essentials: http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

    Patrick,
    I've added your comments to a task already in our queue to examine all item types for correct behavior in read-only mode. I've noticed the quirks with display extra values also.
    By the way, still interested in your thoughts re: Re: Bug Report: Images broke when using get_blob_file_src and not authentic .
    Scott

Maybe you are looking for

  • Error occurred in UPDATE_INFOCUBE

    Error message during processing in BI Diagnosis An error occurred in BI while processing the data. The error is documented in an error message. System Response A caller 01, 02 or equal to or greater than 20 contains an error meesage. Further analysis

  • No HDMI sound

    Windows 7 Home premium SP1 NVIDIA High Definitiion Audio with nvhda32v.sys driver version 1.0.0.55

  • Establishing initial connection with R/3.

    Hi all, Here in my project we have BI 7.0 and ECC 6.0 versions. Now can anyone guide me, on  establishing connections with SAP server what things need to be done. .i.e. Creating a BW system user in SAP and BW and then filling the RSADMINA table. Is t

  • TimeStamp - Add Months

    Dear All, I have the requirement to calculate an opportunity 'contract end date' as follows: User Populates: Contract Start Date = 01/11/2008 Contract Duration (Months) = 4 Calculation Required: Contract End Date = 01/03/2009 Any suggestions? A simpl

  • Weblogic on MAC

    i All, I have MacBookPro. I downloaded net_wls1032_generic.jar weblogic jar file and trying to install on my MbBookPro. In installer window, i give Oracle Home then in next window it ask me to Specify a location where installer will place any downloa