EJB CMP remove create cache issue? DuplicateKeyException

EJB CMP remove create cache issue? DuplicateKeyException
Hi I have an EJB 2.1 application using CMP. Most things work fine. But if I in a transaction tries to remove a bean and create a new one with the same primary key I get a DuplicateKeyException:
2007-11-16 09:25:31,963 ERROR [RMICallHandler-6] AdminGroupData_ConcreteSubClass147 - Error adding AccessRules:
javax.ejb.DuplicateKeyException: Exception [EJB - 10007]: Exception creating bean of type [AccessRulesData]. Bean already exists.
at oracle.toplink.internal.ejb.cmp.EJBExceptionFactory.duplicateKeyException(EJBExceptionFactory.java:195)
I suspect that the remove call only removes from the cache (until commit), but that the create call checks the database or something?
My code is simple like the following:
AdminPreferencesDataLocal apdata1 = adminpreferenceshome.findByPrimaryKey(certificatefingerprint);
adminpreferenceshome.remove(certificatefingerprint);
adminpreferenceshome.create(certificatefingerprint,newadminpreference);
Is there some configuration I can set in toplink-ejb-jar.xml to fix this?
I use OC4j 10.1.3.3
Cheers,
Tomas

The bean.remove() was executed but the sql DELETE was executed to the database as the result, oc4j manages all sql statements and they are optimized to commit to the database in batch at once when the transaction commit. Oc4j ejb container is smart and preventing you from creating the same entity cached in the transaction because the sql delete was not really committed to the database when the create is called.
My guess is that the reason it works with IBM WAS was because it issued sql for each remove/create call right away instead of doing them in batch as oc4j, or your WAS remove then create were called in separate transactions.

Similar Messages

  • EJB CMP create Error

    Hi
    my web-application tries to insert a new element in the database:
    for instance:
    my-EJB-CMP-LocalInstance.create("ENGINE-TC", "tt*", "sss");
    the application throws the following exception:
    Caused by: com.sap.exception.standard.SAPIllegalArgumentException: The parameter "argument" has the value "ENGINE-TC                               tt*                                                         ", so it contains the character "*" which is not allowed
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.checkForSpecialParameter(AbstractLockingManagerImpl.java:1034)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.checkArgument(AbstractLockingManagerImpl.java:1023)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:420)
         at com.sap.engine.services.applocking.AbstractBaseLocking.lockInternal(AbstractBaseLocking.java:133)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:131)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:140)
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:82)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.create(UpdatablePersistent.java:242)
         at com.sap.sigsrv.profile.AttributeBean2_0Persistent.create(AttributeBean2_0Persistent.java:532)
         at com.sap.sigsrv.profile.AttributeBean2_0PM.ejbCreate(AttributeBean2_0PM.java:140)
         at com.sap.sigsrv.profile.AttributeLocalHomeImpl2_0.create(AttributeLocalHomeImpl2_0.java:342)
         ... 27 more
    com.sap.exception.standard.SAPIllegalArgumentException: The parameter "argument" has the value "ENGINE-TC                               tt*                                                         ", so it contains the character "*" which is not allowed
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.checkForSpecialParameter(AbstractLockingManagerImpl.java:1034)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.checkArgument(AbstractLockingManagerImpl.java:1023)
         at com.sap.engine.core.locking.AbstractLockingManagerImpl.lock(AbstractLockingManagerImpl.java:420)
         at com.sap.engine.services.applocking.AbstractBaseLocking.lockInternal(AbstractBaseLocking.java:133)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:131)
         at com.sap.engine.services.applocking.TableLockingImpl.lock(TableLockingImpl.java:140)
         at com.sap.engine.services.ejb.entity.pm.lock.TableLockingSystem.write(TableLockingSystem.java:82)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.create(UpdatablePersistent.java:242)
    the DB-filed where the value 'tt*' should be stored, is defined as primary key VARCHAR Field!
    if I remove the primary key constrain from this field, then it works!
    Can anybody tell me what can I do in this case?
    I would like to insert a regular expression strings in this primary key String-field.
    Is there an escape or quoting operation? some suggestions?
    thank you

    Most probably you have an error in resources setup. Please check the <resources> section of the instance server.xml
    or via the admin ui.
    Regards,
    Marina

  • Caching issue - How ro remove cache from the portal iview

    Hi,
    I am facing problem of caching.In my application I am substituting one user(user 1) to some other user(user 2).Based on the substitution(latest substitute user 2),I should get the values for the User 2.
    But after substitution,I am getting the values for the user 1 and after some time(2/3 second) I am able to get all the values for the User 2.The application is working fine.But some how its retaing the previous values of the user 1.
    Can anyone please suggest me how to remove the cache from the iview.
    Regards
    -Sandip

    Hi Sandip,
    Enterprise Portal caching can be taken care or in a number of ways, all these are listed in the doc below:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/71d7b8dc-0701-0010-dfba-881dba1b5b95
    - Regards, Dibya

  • CC2014 Cache Issue/Bug?

    Has anyone had any Cache issues withe After Effects CC2014? I'm using the latest version and myself and a co-worker are having cache-related(we think) issues whenever we re-time something.
    Specifically I was trying to create a looping comp using a 1second comp that uses the loopOut expression. It's basically a rangefinder set of lines that continuously move to the right. Inside the 1s comp it loops perfectly, but when I use loopOut, no matter what I do, or check, it creates a huge amount of motion blur on the last frame of the comp(even though it doesn't happen at all in the precomp)
    My coworker was re-timing a scene with a person using twixtor pro, the footage is touched up to remove some wrinkles under the subjects eyes, but when twixtor is applied it appears to be using the wrinkled-eyed footage. It's 100% opacity and doesn't have a blend mode or any expressions. The original un-retouched image with wrinkles is a hidden(not shy) layer under the new footage for timing/matching purposes.
    When the original footage is removed from the comp and the cache is cleared it seems to clear up.
    Any thoughts/suggestions?

    hey sandeep--
    if i'm understanding you correctly, this does indeed sound like a cache issue. based on what i'm thinking is your expected behavior, it sounds as if you're forgetting to clear the cache for your other PARAM items when a value is selected from one of your PARAM items that, from a logical perspective, comes before it. so to use your example...
    After I get Report based on (1). And then go back & select (2). It works fine. But when I go back & select (1) again, it still shows the Regions displayed based on the (2).
    ...i'd say you'd want to add a process to your page that fires after submit and clears the cache for PARAM2 when the value of :REQUEST = 'PARAM1'.
    hope this helps,
    raj
    ps-if i've misunderstood your issue, please explain it in more detail.

  • Directory Caching issue with Cisco Jabber client for Windows

    Hi ,
    I am facing cache issue with Cisco Jabber client for Windows. If I do any change related to modification or deletion of contacts in Active Directory/ Callmanager, it does not reflect in the Jabber. Because jabber takes the contacts from the locally stored cache file in the Windows system.
    Every time I have to remove the cache file to overcome this issue, practically it's not possible to do the same with all the Widows users. As, if any employee leaves the company and still I can see his contact appears in the "Cisco Jabber client". I have not seen this issue with Android/Apple iOS.
    Is there any automated way to remove the cache file? 
    Here is the detail of CUCM,Presence and Jabber.
    CUCM version: 9.1.x
    Presence          : 9.1.X
    Jabber              : 10.5 and 10.6

    Hello
    On our environment we had to install a dedicated Microsoft Certificate Authority "just for Cisco Jabber usage" to house the
    Network Device Enrollment Service.
    Our certificate for the CUPS were generated on this Certification Authority too.
    I discussed this certificate matter with my colleagues this afternoon and nobody seems to remember how these certificates were deployed into the
    Enterprise Trust store for the users.
    But I think they asked all 400 users to accept the 3 certificates by answering "yes" to the popup instead of using a script deployed by GPO...
    I wish you success with that deployment and really hope you have a technical partner that *Knows* this subject.
    Our partner left us alone with that unfortunately.
    Florent
    EDIT: If the "Certutil script method" works, please let me know. This could be useful in our own deployment.

  • Error in creating Cache Group

    Hi,
    When i tried to create cache group i am getting below error
    CREATE READONLY CACHE GROUP customer_orders
    FROM myuser.customer
    (cust_num NUMBER(6) NOT NULL,
    region VARCHAR2(10),
    name VARCHAR2(50),
    address VARCHAR2(100),
    PRIMARY KEY(cust_num)),
    myuser.orders
    (ord_num NUMBER(10) NOT NULL,
    cust_num NUMBER(6) NOT NULL,
    when_placed DATE NOT NULL,
    when_shipped DATE NOT NULL,
    PRIMARY KEY(ord_num),
    FOREIGN KEY(cust_num) REFERENCES myuser.customer(cust_num)) ;
    5220: Permanent Oracle connection failure error in OCIServerAttach(): ORA-12154: TNS:could not resolve the connect identifier specified rc = -1
    5131: Cannot connect to backend database: OracleNetServiceName = "orcl_db", uid = "XXXXXXX", pwd is hidden, TNS_ADMIN = "C:\TimesTen11.2.2", ORACLE_HOME= ""
    But my Oracle database Name is MYdatabase
    Oracle LSNRCTL
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1522)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 11.2.0.2.0 - Production
    Start Date 07-AUG-2012 10:31:38
    Uptime 4 days 3 hr. 1 min. 55 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File C:\TimesTen11.2.2\listener.ora
    Listener Log File E:\app\XXXXXXX\diag\tnslsnr\localhost\listener\alert\log.xml
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1522ipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1522)))
    Services Summary...
    Service "MYdatabaseXDB" has 1 instance(s).
    Instance "MYdatabase", status READY, has 1 handler(s) for this service...
    Service "MYdatabase" has 1 instance(s).
    Instance "MYdatabase", status READY, has 1 handler(s) for this service...
    Service "orcl" has 1 instance(s).
    Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    how to change OracleNetServiceName = "orcl_db" to OracleNetServiceName = "MYdatabase"
    Thanks!

    You should create the cache groups by using cachadmin user, not use object owner user.
    In Oracle DB:
    SQL> @grantCacheAdminPrivileges "cacheadmin"
    Please enter the administrator user id
    The value chosen for administrator user id is cacheadmin
    ***************** Initialization for cache admin begins ******************
    0. Granting the CREATE SESSION privilege to CACHEADMIN
    1. Granting the TT_CACHE_ADMIN_ROLE to CACHEADMIN
    2. Granting the DBMS_LOCK package privilege to CACHEADMIN
    3. Granting the RESOURCE  privilege to CACHEADMIN
    4. Granting the CREATE PROCEDURE  privilege to CACHEADMIN
    5. Granting the CREATE ANY TRIGGER  privilege to CACHEADMIN
    6. Granting the DBMS_LOB package privilege to CACHEADMIN
    7. Granting the SELECT on SYS.ALL_OBJECTS privilege to CACHEADMIN
    8. Granting the SELECT on SYS.ALL_SYNONYMS privilege to CACHEADMIN
    9. Checking if the cache administrator user has permissions on the default
    tablespace
         Permission exists
    11. Granting the CREATE ANY TYPE privilege to CACHEADMIN
    ********* Initialization for cache admin user done successfully *********
    SQL>In TimesTen:
    Command> CREATE USER cacheadmin IDENTIFIED BY oracle;
    User created.
    Command> GRANT CREATE SESSION, CACHE_MANAGER, CREATE ANY TABLE, DROP ANY TABLE TO cacheadmin;
    Command>
    Command> CREATE USER oratt IDENTIFIED BY oracle;
    User created.
    Command> grant create session to oratt;
    Command>
    [oracle@tt1 ~]$ ttIsql "DSN=db_cache;UID=cacheadmin;PWD=oracle;OraclePWD=oracle"
    Copyright (c) 1996-2010, Oracle.  All rights reserved.
    Type ? or "help" for help, type "exit" to quit ttIsql.
    connect "DSN=db_cache;UID=cacheadmin;PWD=oracle;OraclePWD=oracle";
    Connection successful: DSN=db_cache;UID=cacheadmin;DataStore=/u01/app/oracle/datastore/db_cache;DatabaseCharacterSet=AL32UTF8;ConnectionCharacterSet=US7ASCII;DRIVER=/u01/app/oracle/product/11.2.1/TimesTen/tt1/lib/libtten.so;PermSize=100;TempSize=32;TypeMode=0;CacheGridEnable=0;OracleNetServiceName=ORCL;
    (Default setting AutoCommit=1)
    Command> call ttCacheUidPwdSet('cacheadmin','oracle');
    Command>
    Command> CREATE READONLY CACHE GROUP readcache
           >   AUTOREFRESH INTERVAL
           >   5 SECONDS
           > FROM oratt.readtab (
           >        a NUMBER NOT NULL PRIMARY KEY,
           >        b VARCHAR2(100) );
    Command> Additionally dont forget to issue the grants for cacheadmin user in Oracle DB
    SQL> GRANT SELECT ON readtab TO cacheadmin;
    Grant succeeded.Regards,
    Gennady

  • Acrobat Connect Pro LMS 7.5 server cache issue - displaying old content

    Our Adobe Acrobat Connect Pro server is showing old Captivate-created content from about 4-6 weeks ago.
    I loaded 35+ sets of Captivate 3 (SCORM 1.2, HTML, zipped) content onto our Acrobat Connect Pro LMS about 6 weeks ago.
    I converted all training content from Captivate 3.0.1 to 4.0.1, 4 weeks ago by opening each file in Captivate 4 and following prompts to "Save As" new files with different file names.
    I reloaded all content 4 weeks ago, and again 2 weeks ago.
    I reloaded about half of all content again last week.
    End User Acceptance testing performed this week showed that most of the courses are showing old content, ranging from 2-6 weeks old
    Attempted fixes and workarounds:
    Deleting content entirely and reloaded from scratch - this will not work long term, as we lose usage data each time we reload completely new files.
    Contacted Adobe, provided times to track incidents of the issue.  We reached Tier 2 - who told us it was our problem and that everything appeared to be working fine from their side.
    New workaround - load new content and reattach course to new content.  This presents the same long term issue as the first workaround, but enables us to retain older versions of content in the system, should we need to revert or report on it.
    Gaining server side access is a bit challenging due to the hosting situation we have, so I am looking (ideally) for a solution that can be performed from the Administrator/Author Frontend.  However, I want to learn the real cause of the problem, wherever it might reside, so that it can be properly corrected and avoided in the future.  I am calling this a server cache issue, as it seems the server has somewhere retained unwanted old versions of content, preventing current content from being displayed to end users.  Viewing content as an end user = see old content.  Viewing content from the Content area (Author view) shows the current files, so I know they are on the server and are loading correctly, up to a point.
    I am preparing all content for another round of loading/reloading due to other issues and updates, so republishing and reloading all 35+ files into the LMS is unavoidable at this point.
    This issue is keeping our LMS from launching to several thousand users across the country, so any suggestions or helpful tips are much appreciated.

    I think I have isolated the source of this problem. It's the Pitstop Professional 9 plug in. I un-installed this, and everything opens quicker than greased lightning. I re-installed it and it's back to slowsville.
    Unfortunately Pitstop is essential to my workflow.
    Until recently I did my pre-press on a Mac G5 with Acrobat Pro 7 and Pitstop 6.5. I never had this problem with slow file opening. But it seems that the delays would occur when I used the plug-in with large complex files.. So it would open files as fast as you'd expect from an elderly machine. But starting to use Pitstop would result in a prolonged period of staring at a spinning beachball.
    I wonder is there any way to stop the Pitstop plug-in from initializing until it is used? So the plug-in stays inert until you select the tool from from the menus.

  • IE Caching Issue while closing and opening a UI thrice or more

    Hi Everybody..
    Greetings of the day..
    I am working on a web application (Can not disclose the name) where at certain level a word document generated contains a customized toolbar.
    It contains one print option, when clicked opens a UI which shows default printer available (Its different from our normal printing).
    When I repeat opening and then closing of this UI thrice or more times, the entire application gets hanged and I have
    to terminate it by killing the associated process from task manager.
    When this issue was analysed our by onsite team they arrived at a conclusion saying that its an IE caching issue.
    But upto my knowledge I know that any application which is .SSL secured, by default IE never does cache control.
    What could be the solution if application is not .SSL secured or if it is.
    Kindly help asap.
    Thanks.

    Hi all
    Did anyone ever manage to fix this? I'm having this issue across multiple iPads. Even if i completely reset the iPad (erasing all content and settings) it does it again when restored.
    I've just got an iPad Air and that does it too. I even created a new Apple ID to see if that would work (trying to avoid any kind of caching aross iCloud, etc) and it does it straight away in those books. It's massivley frsustrating.
    I have noticed it only seems to do it for iBooks formatted books, not ePubs.
    Anyone have a resolution - it's quite embarrassing when you're doing a presentation about book features and the audience assumes youve only the wrong book each time. More annoying when clsoing the book and the wrong cover appears again, but also takes you to that books collection page, rather than the one you were in.

  • How can FS03 be made Display only without removing Create/Change Activities

    ECC 6.0 Release 700
    Our internal auditors have asked to limit access to change the Chart of Accounts. Currently our Functional team has access to do this via transactions FS00, FSS0, FSP0, etc. which needs to be removed.
    The issue is that if we assign display transaction FS03 to the functional team's role, the Change and Create buttons are still enabled due to the corresponding activities in the Authorization object F_SKA1_BUK, as it seems FS00 and FS03 are essentially the same. The same holds true for FSS3 and FSP3.
    Unfortunately, the functional team requires the create and change activity in F_SKA1_BUK for other transactions, so if we strip the activities for the purposes of FS03, they will lose functionality elsewhere.
    The standard reports S_ALR_87012327 and S_ALR_87012328 were deemed as insufficient replacements for the information in FS00.
    Is there any way to limit the functionality of FS03 to Display only without taking away the create and change activities?

    While researching F_SKA1_KTP, I found that without the change or create activities in both F_SKA1_KTP and F_SKA1_BUK, the buttons gray out. The functional team is currently researching if they need change/create in F_SKA1_KTP, as I sent them a list of transactions they have for which it is required.
    I tried to remove S_TCODE FS00, but when I ran FS03 it gave me a "not authorized for FS00" message and did not display the screens. I removed the dependency via SE97, but then FS03 essentially became FS00 and I was back at square one.
    Thank you both for your suggestions.

  • Is there a caching issue with DPS

    Facing a unique issue. When I am creating a folio it references to redundent files while build which are not used in the folio, and then the build does not upload to folio producer. Could there be a caching issue and how can I clear the DPS cache (Not the indesign cache.) After some time it shows the dreaded network error message.

    Hopefully you are using Windows:
    Close InDesign and follow the steps below:
        1.       Go to C: drive.
        2.       Click on Organize button on top left hand side.
        3.       Click on Folder search option.
        4.       Click on view tab and select show all hidden items.
        5.       Apply and ok.
        6.       Then  c:\users\username\AppData\Roaming\StageManager.BD092818F67280F4B42B04 877600987F0111B594.1\Local Store.
        7.       Delete dmp and shared object folder.
        8.       Empty Recycle Bin.
    Then re-launch InDesign

  • TOC caching issue on IE

    Hello all
    RH10 to webhelp
    I just received a call from an ongoing client. He's reporting that they are experiencing TOC caching issues in IE only. A topic and a book in the TOC that we removed in the latest updates are still appearing in the TOC, but obviously are dead links to topics that no longer exist. He said they cleared the folder and replaced it entirely with the new output files. They clear the cache but they keep showing up. He says they don't have this issue in Chrome.
    Any ideas?
    Thanks,
    Laurie

    He would ideally be looking for a way to not cache or to automatically clear the cache so his clients don't have to manually do it each time (they likely wouldn't know that they even would need to, and would just be confused by orphan links in the TOC).
    I found info re using meta tags to disable the cache (Disable Browser Caching with Meta HTML Tags [Cristian Sulea]). I inserted the tags into the master page header according to the instructions, but curiously they are not included in the output topics. I manually inserted it into the index.htm, and have sent the output to the client to test. I can't test it because I'm not experiencing the issue.

  • Integration Builder - runtime data cache - Error when creating cache list

    All,
    When I go into the Integration Builder --> Administration --> Runtime tab --> Data Cache
    I get a message saying "Error when creating cache list".
    All cache areas look ok and I do not see any other error.
    Also, RFC INTEGRATION_DIRECTORY_HMI looks good.
    Please advise.
    Thanks a lot.

    Hi,
      Use transaction SXI_CACHE to update the Integration Directory cache. Alternatively, you can use the following URLs to update the CPA cache. Use XIDIRUSER to refresh the cache.
    For complete cache refresh u2013 http://<hostname>:<port>/CPACache/refresh?mode=full
    For delta cache refresh u2013 http://<hostname>:<port>/CPACache/refresh?mode=delta
    If this does not solve the issue, check transaction SLDCHECK to ensure that connection to SLD is available. If the connection fails, check the configuration in the transaction SLDAPICUST. Make sure that the password maintained is correct and the maintained service user is not locked.
    Now in the Integration Repository go to Environment u2192 Clear SLD Data Cache. Also go to Integration Directoy and clear the cache using menu Environment u2192 Clear SLD Data Cache.
    Open the XI Start Page and click on Administration. On the Repository tab, choose Cache Overview. Refresh the cache using the buttons/icons on the right. Use XIDIRUSER to refresh the cache. Carry out cache refresh in the same way on the Directory and Runtime tabs.
    regards,
    ganesh.

  • BitmapImage cache issue

    On WIndows 8 RP, I create a BitmapImage with the Uri of a file on disk. The user has the ability to change the image file (using a picker which will replace the file on disk that is currently being used). The issue is that even when the BitmapImage is recreated,
    because the Uri is pointing to the same file, the new updated image is never loaded. The only way to get the new image to load is to close and reopen the app. Clearly there is a cache issue.
    I have two questions:
    1. Is the issue with the cache of the BitmapImage that I construct using the Uri? Or is the issue with the cache of the Image UIElement that is displayed using the BitmapImage I mentioned previously?
    2. It looks like I have far fewer options when dealing with BitmapImages on WinRT. I cannot do bi.BeginInit() or bi.CacheOption. All I can do is bi.CreateOptions = BitmapCreateOptions.IgnoreImageCache; ... but this does not help.
    Here is how I'm constructing my BitmapImage:
    BitmapImage bi = new BitmapImage();bi.CreateOptions = BitmapCreateOptions.IgnoreImageCache;bi.UriSource = new Uri(currentFile.Path, UriKind.Absolute);
    Here is how I'm setting the grid cell BitmapImage (which is binded to a UIElement Image):
    gridViewCellObject.tileImage = bi;
    Here is the code for the gridViewCellObject tileImage get/set
    public BitmapImage muteImage
    get { return _muteImage; }
    set
    _muteImage = value;
    // Call NotifyPropertyChanged when the source property
    // is updated.
    NotifyPropertyChanged("muteImage");
    Here is the XAML which binds the Image to tileImage:
    <Image Source="{Binding tileImage, Mode=OneWay}" Width="140" Height="140" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,10,0,0" Stretch="Fill"/>
    Any advice on how get around this caching?
    Bryan L. Keller

    Here is the solution. As the comments in my code suggest, this is ridiculous and shouldn't even be necessary.
    Here is the revised getPhotos method. I copy each bitmap from its original source to the temp folder. I give it a random name that will never be repeated while the application is open. This is done by getting some information about the current system time.
    I calculated it out to be a 1 in 10^-8 chance of getting a duplicate file name using my method of naming.
    public async Task<List<BitmapImage>> getPhotos()
    photos.Clear();
    IReadOnlyList<IStorageFile> files = (IReadOnlyList<IStorageFile>) await folderHierarchy.Last().GetFilesAsync(); //gets storagefiles of original png files
    DateTime currentTime;
    foreach (StorageFile currentFile in files)
    if (currentFile.Name.EndsWith(".png")) //get only png files
    //copy to and read from temp to prevent bitmap caching. (It's ridiculous that I even need to do this)
    currentTime = DateTime.Now;
    String tempFileName = currentTime.Hour + " " + currentTime.Minute + " " + currentTime.Second + " " + currentTime.Millisecond; //generate unique name
    await currentFile.CopyAsync(Windows.Storage.ApplicationData.Current.TemporaryFolder, tempFileName); //copy to temp with unique name
    //because the name is new each time, the bitmap will never be cached. photos.Add(new BitmapImage(new Uri((await Windows.Storage.ApplicationData.Current.TemporaryFolder.GetFileAsync(tempFileName)).Path))); //add bitmap to array of photos. This is used by the rest of the app to populate the gridview
    return photos; //return array of photos
    Microsoft, I shouldn't need to waste time solving your API issues. This stuff should have been fixed in one of the Developer Preview builds, NOT the Release preview.
    Get your act together so developers can do their job.
    Bryan L. Keller

  • Cache issue coming in Start Process for Employee iView under MSS

    Hi,
    Navigate to MSS -> Team -> HCM Process and Forms -> Start Process for Employee
    In Start Process for Employee iView, when I clicks on Refresh link at the bottom right of the table the Direct Reports got removed from the table (which is correct) but when I navigates to some other screen and comes back then again the previous data comes back. It seems to be cache level issue. Even I logs off and login the same data comes back which should not happen.
    I have checked the forum [Team=>Personnel Developent=>Employee Search; and found it that Refesh property will work if I set the parameter of iview Cache Lifetime = -1 then it will disable the caching at all.
    And I wants the same behaviour for Start Process for Employee iView. But I am not able to find the similar property in Start Process for Employee iView.
    Anyone have an idea of What is the resolution for this issue?
    Regards,
    Deep

    Hi Deep,
    now I understand your problem )
    To me it sounds like an OADP cache issue rather than one in Portal. The iview uses OADP which again uses the cache which does not reflect on the actual current org-structure.
    One possibility would be enhancing the WD4A and call FMs
    HRWPC_OADP_DELETE_TGTOBJCACHE
    HRWPC_OADP_DELETE_SRCHOBJCACHE
    HRWPC_OADP_DELETE_NAVOBJCACHE
    HRWPC_OADP_DELETE_DATAVWCACHE
    dependent on what you want to delete to refresh.
    I would probably try to enhance HookMethod WDDOINIT in Component Controller and call them there, but that's just a guess; could be complete nonesense.
    Another possibility would be trying to add the application parameter "sap.xss.req.crt.cachelifetime=0" to the iView.
    Links for reference:
    http://help.sap.com/saphelp_ppm50/helpdata/en/21/1ac5ca5cad46528d4f970cc03b8e8f/content.htm
    Web dynpro abap and OADP cache
    http://help.sap.com/saphelp_dimp50/helpdata/DE/97/7f754067025537e10000000a1550b0/content.htm
    hope this helps a bit now
    regards, Lukas

  • Remove image cache files

    I found on a metalink note "Remove image cache files within directory "$OA_HTML/cabo/images/cache" and style sheet cache files within directory "$OA_HTML/cabo/styles/cache" after the patch is successfully applied"
    Could anybody tell me which are the files extension I have to look for (I have to remove)?
    thanks,
    Paul

    That would be ok but make sure you bounce Apache then.
    If you have any other languages installed, you would find a directory <lang code> (such as 'en' for English, 'ar' for Arabic) under <OA_HTML>/cabo/images/cache/<lang code> which is used to cache dynamically created images for each language.

Maybe you are looking for

  • GUI_DOWNLOAD issue - returns empty table

    I am using the following to read a text file (I have tried a tab delimited text file as well as a .csv file) into an internal table.  The returned sy-subrc value is 0 but the returned table is empty. Any ideas? Regards, Davis d_string = p_file.   CAL

  • Call function IN BACKGROUND TASK don't work

    Hello, I've a interface RFC to JDBC asyncronous. When i call function in R3 (IN BACKGROUND TASK), sy-subrc = 0, however i don't see any message in SXMB_MONI and runtime workbench. The CC sender (for RFC) is OK, what happen? thanks very much

  • 18 month of BT FAILURE, tricks, and abysmal servi...

    This has now gone on for nearly two years, My broadband connection slows down to a crawl but frequently simply STOPS thisis  occuring at least ten time a day EVERY DAY  and ANY time during the day or night. All three lights on the hub  will blaze blu

  • Adding a name to Group in Address book

    I am using Lion - I have added a new contact to my address book and put it into the group it belongs to.  It stays blue for some reason - then when I try to send an EMail to the group it tells me this new EMail address I just added is not a valid ema

  • How to find out total memory used by each database ?

    I have two databases in one unix server. 1) I need to know total memory used by each database. 2) secondly, I want to know the detail used in each database. thanks