Query doesn't reflect changes in same tx.

Hello,
I'm writing a (multithreaded) web application where I'd like
to precompile and store a query for later use. Each thread
uses it's own PersistenceManager. The following problem comes up:
1) The initializing thread gets its PersistenceManager, constructs
a new query, compiles and stores it. This query queries for all
instances of e.g. type Abc.
2) A request comes in generating a new thread (again with its own
PersistenceManager) and begins a transaction. Within the tx a new object
of type Abc is beeing created and made persistent via makePersistent(Object).
Now (still in the same tx) I'm using the stored query to query all
instances of A. What's missing in the result collection is the newly
created Object.
ignoreCaches is set to false.
It seems to me that it's a problem with the two different PersistenceManagers
involved.
Am I right? Does anyone have an explanation or better, a solution for this problem?
Thanks,
Klaus

IgnoreCache: yes
pm.newQuery(compiled): no!!
Many thanks for your quick response!
- Klaus
Abe White wrote:
There shouldn't be any problems with what you are doing. Are you sure
IgnoreCache is set to false for the query that you have stored? And I
assume you are correctly retrieving a copy of the query from each new pm
through the pm.newQuery(Object compiled) method?

Similar Messages

  • HRMD_A idocs sent and processed, but Org chart doesn't reflect it sometimes

    From our HR box, we send HRMD_A idocs to our FI box - We have an intermittent issue where we have a position change & the idoc gets created & sent over.
    On the inbound side, the idoc gets posted successfully with Status 53. However, this EE does not appear in the org chart as it does on the HR side.
    We have these IDocs set up to process immediately, so it passes to the FI port and is processed all within a few seconds.
    We come across this issue once about every 3-4 weeks and I can't seem to get anywhere trying to resolve it.
    any ideas?

    There are two main annoying problems with Flash Builder and swc's:
    1.  Flash Builder doesn't reflect changes made to swc files
    Solution : First of all - keep your swc files inside your project folder, you can also disable global swc cache: change as3api.cpp code,refresh swc in flashBuilder bug!
    2. Flash Builder breakes content inside swc files (and also popular problem "TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::MovieClip@1f21adc1 to...")
    Solution : locate the project .actionScriptProperties file and set useFlashSDK=”false” :  Flash Builder 4.7 – useFlashSDK | In Flagrante Delicto!
    In this case you can also download latest Apache Flex SDK to target new Flash player versions: http://flex.apache.org/
    Hope this helps!
    P.

  • He Genres on the iPod doesn't reflect the same as that of my iTunes.

    he Genres on the iPod doesn't reflect the same as that of my iTunes. It shows unknown as a genre. Issue started when upgraded to the recent os. Tried clearing the tag info and putting them back in but no cigars... fix?

    It sounds as though the hold switch on the top of the iPod has been moved to the "hold" position (which will display the small lock icon). Sliding it to the left should unlock your iPod.
    The hold switch is meant to disable all functions so accidentally pressing one of the controls will not do anything (prevents accidentally turning on the iPod, for instance).

  • In System Preferences- Sharing- Remote Management the address doesn't reflect the computer name.

    Hi,
    I have a dual boot system with two seperate hard drives, Lion and Snow Leopard.  One drive has a name of mac-pro2 for Lion and mac-pro2sl for Snow Leopard.  Something happened when I rebooted from Snow Leopard to Lion that in System Preferences->Sharing->Remote Management that the computer name had changed to the Snow Leopard  computer name it has a address and name of mac-pro2sl.  I have change the Computer Name: and it worked and was changed to mac-pro2 but Remote Management still has the address of mac-pro2sl and doesn't reflect the computer name.  I can ssh into Lion with mac-pro2sl but I have a conflict with from other computers when I log in with a warning of "Remote Host Identification has Changed".  How do you change the computer name for remote management and ssh?
    I have changed the hostname and it reflects the change when you login, mac-pro2 for Lion.  But when you ssh into Lion it requires mac-pro2sl not mac-pro2.
    When I change the computer name it shows below that the name in "Remote Management: On" "computer using the address mac-pro2sl" is selected but then doesn't change but remains the same when the dialog closes.  How do you change the address to reflect the computer name? Is there a command line utility?
    Thanks for any help.

    If this problem is due to DNS, look in your configuration. What is the number one DNS server address? Is it local, or is it on the Internet at large? Or post the Address here and folks can help you look it up.
    192.168.yyy.zzz
    10.xxx.yyy.zzz
    172.xxx.yyy.zzz
    are all strictly local.

  • Workbook is not reflecting changes

    Hi Friends,
       I have done some changes in existing structure at1 existing query and same structure are using in different query also, that also reflected and working fine, but these 2 queries are already added in 1 workbook as in 2 worksheets, the problem is, the changes which I did in query is not reflecting in workbook ( 2 worksheets in workbook ), how do get reflect those queries in workbook. Pls suggest. Thanks.
    Regards,
    CS.
    Edited by: csr_03 on Jul 22, 2010 3:07 PM

    Hi,
    You have made changes to query but those changes do not refelct in workbook automatically.
    Either you need to create new work book by using the modfied query or use the existing workbook and include the modified query again after removing the existing one.
    Workbook is just an excel save file of any exitisng query so you need to save or creat that file again.
    I hope it will help.
    Thanks,
    S

  • Changed value for Dom0 but xl does not reflect changed value

    Hi.
    I have updated Dom0 default value to 4096M in /boot/grub/grub.conf. However it only display a value of 2994M when I do a xl list after rebooting the host.
    I have installed OVMS 3.1.1 on a Dell M620.
    Any help is welcome.
    Thanks.

    Same here. I've been intending to open an SR about it an never have. I don't know what difference it actually makes but the documentation does recommend you do it and it doesn't reflect that its been changed.

  • SQL query doesn't work in VB program

    Hi:
    The following SQL query doesn't work into a VB program, I'm using Oracle OLEDB to established connection to the DB, ... the query returns 0 rows ...
    When I run this same query from any SQL Plus, works well (returning me something like 119 rows) ...
    Any clue or hint ??
    Thanks in advanced
    Angel Castro
    SELECT OPERADOR, ID_ALIMENTADOR, RB_FSC, NUM_CTROL, COND_OPERA, TRANSITORIO, PENDIENTES, ANORMAL, EDO_REAL, IDENTIFICADOR, CAUSA
    FROM HISTORICO_OPERACION
    WHERE (FECHA BETWEEN '20-AUG-2004' AND '5-NOV-2004')
    AND (HORA BETWEEN '10:00:00' AND '16:00:00')
    ORDER BY ID_ALIMENTADOR ASC;

    Is the column FECHA of datatype DATE?
    Are you running the query with the constant date looking like strings ('20-AUG-2004' in your post, for example) as-is from the VB program?
    If not, are you binding the parameters correctly?
    What is the setting of your NLS_DATE_FORMAT parameter?
    What happens if you do a
    ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY'from your VB program before running the query?

  • Why Java Platarform Micro Edition 3.0 doesn't reflect the reality ?

    Hi guys,
    It's my first ME project and I would like to know why into version 3.0 of ME, don't have the necessity of create your access (read and write into files) methods using Threads, and in 2.5.2 I must have to use Threads ? Because my project runs smooth into 3.0 but not into my mobile (E63) and 2.5.2 emulator, after reading plenty docs, and change the emulator to 2.5.2 I did discover that have the need of using Threads. What is the right one and why the 3.0 doesn't reflect the reality ?
    There are any way that my project made with 3.0 runs smooth, how ?
    Thank you in advance.

    Hi once again,
    One example of what I'm doing, using the javax.microedition.io.file.FileConnection to save and read my files, though it only works into my 3.0 emulator.
    I'm using this method to open and read the file.
    private String loadCipher(String typedKey, String pathLoad, String fileName) throws DigestException {
            StringBuffer notFormattedText = new StringBuffer();
            pathLoad = pathLoad + fileName;
            FileConnection fc = null;
            InputStream is = null;
            try {
                fc = (FileConnection) Connector.open(pathLoad);
                is = fc.openInputStream();
                int ch = 0;
                for (int i = 0; i < fc.fileSize(); i++) {
                    if ((ch = is.read()) != -1) {
                        notFormattedText.append((char) ch);
                is.close();
                fc.close();
            } catch (IOException ioe) {
                System.out.print("Error reading!");  // Here I'll have to deal with exceptions
                System.out.print("IOException : " + ioe.getMessage());
            } catch (SecurityException se) {
                System.out.print("Error security!");  // Here I'll have to deal with exceptions
                System.out.print("Securuty exception : " + se.getMessage());
            pathLoad = FILE_ROOT;
            String myFileText = notFormattedText.toString();
            byte[] keyFromFile = readKey(typedKey, myFileText.getBytes()); // Here is where the program goes and decript my file
            return new String(keyFromFile);  // Here I return the decripted text to be compared with password or for that the user might read it.
        }I don't intend to use Thread to run it, although I'm afraid of that it's the only way and with this all program structure will have to be re-designed.
    Anyone knows if Thread is needed just to use the javax.crypto.... and javax.security..... ? Because I'm lost.
    Thank you in advanced

  • Why do the thumbnails not reflect changes I make to pages?

    I am working on a pdf in Acrobat DC.
    I am working on a page with all the layers hidden.
    So the thumbnail is blank
    When I show a layer it appears on the page.
    The thumbnail however does not change.
    Why do the thumbnails not reflect changes I make to pages?

    Hi Jules,
    The behavior is same in Acrobat 11 as well. The thumbnails do not get refreshed till you close the document and reopen.
    Regards,
    Rave

  • WIS 00015 error- Multiple Query Filters contain a prompt with same name

    Hi
            I am working BOXIR2 environment. I created two prompts at Universe level- one of Date field and one on agency name field.
    syntax for the prompts is
    customerInfo.RSRCE_NAME =  @Prompt('Enter value(s) for AgencyName ','A' , , ,)
    datetable.STARDATE =datetable.STARDATE.STARTDATE =  @Prompt(' 'Enter value(s) for StartDate:','D' , , ,)
    When I include even one of  the prompts in the report I am getting an error WIS 00015 Multiple Query Filters contain a prompt with the same text, but the prompts use a different operand type.
    If I try to change text of one of the prompts in Universe selection statement, then I see the prompt two times in the report.
    Please let me know how to overcome this issue.

    Ok, I've simplified the case.
    Here is the real case :
    Object filter =
    Based on object =
    .[LEVEL01]
    Object filter =
    Based on object =
    .[LEVEL01]
    In WBI query result I take these objects :
    .[LEVEL01]
    .[LEVEL01]
    .[4IUX93YJGXQEHGLX0T0GPNA9Y]
    In query filters, my 2 filters with same text :
    1.
    I run the query.
    Answer to question 'Single Year Period ?' = Period 06 2010
    ==> MDX error
    A database error occured. The database error text is: Echec de l'exécution de la requête MDX SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006] avec l'erreur Invalid MDX command with . (WIS 10901)
    And you can see that the value sent to both filters is the same and come from the first filter .[Z12010006] instead of applying the value to each filter .[Z12010006] for the first one and .[Z12010006] for the second one.
    Please, notice that if I change the order of this 2 filters in the WBI query, the MDX generated become :
    SELECT  { .[4IUX93YJGXQEHGLX0T0GPNA9Y] }  ON COLUMNS , NON EMPTY CROSSJOIN( .[LEVEL01].MEMBERS, .[LEVEL01].MEMBERS ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM SAP VARIABLES INCLUDING .[Z12010006] INCLUDING .[Z12010006]
    Thanks for your help.
    G.OM.

  • Refreshing iTunes to reflect changes made to metadata?

    How to get iTunes to reflect changes in done to metadata outside of iTunes? Why doesn't Apple make the folder you select for your music library a "watched" folder and scan that folder often so that it can automatically find and change things.

    Why doesn't Apple make the folder you select for your music library a "watched" folder and scan that folder often so that it can automatically find and change things.
    Because iTunes (and your computer) would be too busy to do anything else if it had to constantly scan every file in iTunes.
    It will reread the tags when you play or get info.

  • After 9.5.1 iphoto doesn't save changes in its library

    Since I've updated iphoto to v9.5.1, iphoto doesn't save changes made to the library.
    When I
    - delete event
    - import event from aperture
    - import pictures
    everything goes well until I close and reopen iphoto. Than everything is the same as when I opened iphoto before the changes.
    So it doesn't save the changes in its library.
    Anyone experiencing the same problem?  Or anyone who has a solution?

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Flash not reflect changes on postback

    Hi
    My flash file get images from one folder
    with C# code file I changes the image in the folder dynamically on button click
    flash not show changes on post back
    but when I close IE and run page then flash reflect changes 
    pls help 
    Thank You

    I have the same problem!!  This was first asked some time ago and I have been searching for an answer, but have not found one.  COULD SOMEONE FROM APPLE PLEASE ANSWER THIS??!!  It is a real pain and a black mark on an otherwise great product.
    I have tried sync-ing via the cable and via wireless.  No difference.  My SW versions are:  iPad: 5.1.1, iTunes: 10.6.3, OSX: 10.6.8.  My iPad is an iPad1; my computer is a MacBook Pro.

  • ANY SY-INDEX REFLECT CHANGES WHEN CONTROL BREAK STATEMENT PROCESS

    Dear Guru's,
                     I have a requirement where i have to move the values to variable when control break (AT END OF) process. So i want to move the values according to the end of Vendor so for that  i want to know is there any sy-index available which reflects changes when Control break (AT end of) process.
    LIKE Sy-subrc = 0 when select statement fetches record or sy-tabix is like counter for loop.
    Hope to get reply soon.
    Regards,
    Himanshu Rangappa

    Hi,
    There is no system Fields for it.
    But your requirement can be done with 'AT NEW' and 'AT END' statement.
    Refer this sample example,
    loop at otab.
        at new module.
          move otab-module to otab2-module.
        ENDAT.
          at END OF effort.
          sum.               "Do your calculations here
          move otab-count to otab2-count.
          append otab2.
        endat.
      endloop.

  • Different LOVs in af:query and af:form for the same VO attribute

    Hi,
    We need to display different LOVs in af:query and af:form for the same attribute in VO.
    Is it possible to use LOV Switcher for this ?
    What condition can we use in LOV Switcher attribute to check if it is View Critearia row or VO row ?

    We have a VO attribute "User" which needs to be displayed as LOV in a Search Panel ( af:query component created using View Critearia ) and in a af:form.
    When this VO attribute is displayed in search panel, in LOV, we need to show all users.
    When this VO attribute "User" is displayed in a form for editing, in LOV, we need to show only active users.
    For this, we created two LOVs "ActiveUsersLOV" ( which shows only active users ) and "AllUsersLOV" ( which shows all users ) on VO attribute "User".
    LOVSwitcher attribute should return "ActiveUsersLOV" if the LOV is displayed in form and "AllUsersLOV" if the LOV is displayed in search panel.

Maybe you are looking for

  • How do I share a calendar listed in "my Mac" with I cloud in I cal

    Hi there - I want to share the calendars in the top group with the bottom group. apart from exporting them and importing the file into a new calendar in the iCloud group is there not a better way? TNX PNDH

  • How can I reset password in iDS5.1?

    A newbie question: There is a thread as below, can some one tell me if there is a passwordMustChange value in iDS5.1? Cause I change the password in console as a diretory manager and checked on 'User must change password after reset', but there is no

  • CSA control of IE communication when using a proxy ?

    Has anyone tried to do a network access control rule for IE communication when using a Proxy server in IE ? How would CSA know what sites are visited by ip if all comms are to the proxy server ?

  • System Crash!! Please Help!

    My system is crashing multiple times a day now. The screen fades grey with the power on symbol center of the screen. A text box pops up instructing the computer must be restarted (list 4 different languages). It completely locks up the system when th

  • WLC Captive Portal not loading images or via HTTP correctly

    Hi All, I have a strange issue I'm hoping someone can shed some light on. I have a CT2504 at a customer site which does not load the captive portal page correctly nor will it load via HTTP as opposed to HTTPS. So for starters I did what I do with all