Removing object from kodo datacache doesnt always work.

Hi,
We're using a very old version of kodo - 3.4.1 but it seems to work well.
We seem to have come across an intermittent issue where if we remove an object from the datacache using the DataCache.commit call, then the object doesnt actually seem to get removed. So the application continues operation with the out of date cached object. We get no exception or error though.
Has anyone see anything like this before? I can't seem to find any available known issues list or bug database for kodo, I guess this isnt available?
Thanks,
Dan

The size will refer to individual DataCache size.
KodoPersistenceManager.getDataStoreCache() or getDataStoreCache("myCache") will return the default or named datacaches respectively.
You can evict the L2 cache content on the returned DataCache instance from the previous methods.

Similar Messages

  • Error removing object from cache with write behind

    We have a cache with a DB for a backing store. The cache has a write-behind delay of about 10 seconds.
    We see an error when we:
    - Write new object to the cache
    - Remove object from cache before it gets written to cachestore (because we're still within the 10 secs and the object has not made it to the db yet).
    At first i was thinking "coherence should know if the object is in the db or not, and do the right thing", but i guess that's not the case?

    Hi Ron,
    The configuration for <local-scheme> allows you to add a cache store but you cannot use write-behind, only write-through.
    Presumably you do not want the data to be shared by the different WLS nodes, i.e. if one node puts data in the cache and that is eventually written to a RAC node, that data cannot be seen in the cache by other WLS nodes. Or do you want all the WLS nodes to share the data but just write it to different RAC nodes?
    If you use a local-scheme then the data will only be local to that WLS node and not shared.
    I can think of a possible way to do what you want but it depends on the answer to the above question.
    JK

  • Unable to remove object from arraylist

    Hello,
    I am trying to remove a few objects from an arraylist and it isnt happeneing in one loop :
                         for(int i=0;i<someList.size();i++){
                             empVo = (EmpVO)colList.get(i);
                             if(empVo.getempName().trim().equalsIgnoreCase("A") ||empVo.getempName().trim().equalsIgnoreCase("B") ||empVo.getempName().trim().equalsIgnoreCase("C") )
                                colList.remove(i);
                         }So, it doesnt remove the object all the time whenever the names of A,B or C appear, so I have to run this loop thrice so it deletes all the data pertaining to these three emp names. Then I thought may be the size of the arraylist is changing and used a temp var for the someList.size, but that doesnt work either. Could you please tell me what is going wrong ?
    Edited by: Sarvananda on Sep 3, 2010 12:10 PM
    Also, the exact test has names A to F. So say A, D and E will be deleted in the first loop, then I have to specifically sysout and see which ones were deleted and then write another loop for B,C and F. Ofcourse at the end A - F are removed. But why two loops for it

    Encephalopathic wrote:
    What if you do this using an iterator to remove items, or if you start from the top of the list and iterate down to the first item?thanks for your reply. I was just looking at the API, and stumbled on this :
    The iterators returned by this class's iterator and listIterator methods are fail-fast: if the list is structurally modified at any time after the iterator is created, in any way except through the iterator's own remove or add methods, the iterator will throw a ConcurrentModificationException. Thus, in the face of concurrent modification, the iterator fails quickly and cleanly, rather than risking arbitrary, non-deterministic behavior at an undetermined time in the future.Any pointers on where I could look or how I could I move from here ?
    Another question I had was, there is no efficient way to 'move' objects in an arraylist (based on their indexes), isn't it ?
    I always have to remove and add at a certain index.

  • How to remove objects from pics using LR...

    I am not a professional photographer and I do not have a whole lot of photo editing knowledge. I started out several years ago using Photoshop elements 5 and eventually learned how to do several things like moving objects around or removing them from a photo, or moving someone's face into a different picture if their eyes were closed and lots of nice editing features. I loved it and still love it. My laptop was getting really old and slow so I just recently purchased a new computer which has windows 8 on it. I loaded my photoshop elements and cannot get it to open or work properly and am wondering if it's because of the windows 8 operating system. So I then decided to purchase a new photo editing software. I decided (quickly.. too quickly) to purchase adobe lightroom just because it had very good reviews online. Now I have several pictures that need to be edited for Christmas and I cannot find any "lasso tool" or any thing similar right now.. I was so used to using the layers and features from the PE and now my heart is broken because I feel so lost and maybe broke at the same time!! This program is soooo different than what I was used to using but I don't even know if I can do the same things with it. EXAMPLE: there is an air conditioner unit in one of the photos I've taken and I was planning on removing it from the picture. Also I was aiming on moving a face over from another picture because of some closed eyes.. Someone please tell me, is this program capable of doing these things or can I only play with the lighting in this? Will I have to spend more of my $$ to get another Photoshop elements to get the features I use?

    These tasks are tasks for Photoshop or Photoshop Elements, not for Lightroom, which is more an image data base.

  • UnsupportedOperationException Error while removing object from List

    Hi,
    I need to remove a set of objects from List if it contains similar objects as the other one.
    Follwing is the code snippet of the above scenario...
    List selectedPaxList = new ArrayList();
    TreeSet seatAssignedPaxlist= new TreeSet();
    selectedPaxList.add("1");
    selectedPaxList.add("2");
    selectedPaxList.add("3");
    seatAssignedPaxlist.add("1");
    seatAssignedPaxlist.add("2");
    if(selectedPaxList.containsAll(seatAssignedPaxlist))
    selectedPaxList.removeAll(seatAssignedPaxlist);
    If i do this in java program it executes fine without any error.But if I do the same in JSP I am getting the following error......
    java.lang.UnsupportedOperationException
    at java.util.AbstractList.remove(AbstractList.java:167)
    at java.util.AbstractList$Itr.remove(AbstractList.java:432)
    at java.util.AbstractCollection.removeAll(AbstractCollection.java:351)
    Plz... help me to resolve the issue

    java.lang.UnsupportedOperationException
    at
    java.util.AbstractList.remove(AbstractList.java:167)
    at
    java.util.AbstractList$Itr.remove(AbstractList.java:43
    2)
    at
    java.util.AbstractCollection.removeAll(AbstractCollect
    ion.java:351)
    That stack trace looks wrong to me.
    ArrayList overrides the remove method, so it
    shouldn't be using the method in AbstractList. That's what I thought, too. There is either something missing or it's not an ArrayList. In fact the javadoc of AbstractList.remove sais:
    "This implementation always throws an UnsupportedOperationException."
    So it really looks like another subclass is used.
    Also
    the object it is trying to remove is a list (from
    your exmaple it should be a String)
    I could be wrong.These are just the code references not the parameters, I think.
    -Puce

  • Remove Object from ArrayList

    Hi,
    i want to remove an object from my ArrayList. The Array-List contains objects from a class like this:
    public class Data {
         String id;
         String name;
         String data;
         //getters
         //setters
    myArrayList.remove(myData);
    This doesn't work! Why not? What is wrong?
    Daniel

    The ArrayList determines which element to delete by the equals() method. The default implementation of equals() tests for instance identity. So two instances of your class with absolutely identical data fields will not match! You probably just need to override the default equals() with a proper implementation and everything will work.

  • Remove object from Linkedlist?

    Hello,
    I built this function to return the object with the lowest cost variable, and remove this object from the linkedlist.
    The method does not always seem to return the object with the lowest cost. I wondered if the problem was because I removed the object being returning?
    Could anyone see the problem?
    Thanks
    Node lowestState(LinkedList list){
    Node object = (Node) list.get(0);
    int index = 0, cost = object.getCost();
    for(int i = 1; i < list.size(); i++){
    object = (Node) list.get(i);
    int testCost = object.getCost();
    if(testCost < cost){
    cost = testCost;
    index = i;
    list.remove(index);
    return object;
    }

    get() must traverse the links until it finds the given one.
    So get() behaves O(n), like the whole traversal.
    import java.util.*;
    public class llt {
    static LinkedList li = new LinkedList();
    static int LIMIT=64*1024;
    public static void main(String args[]) {
         for(int i=0;i<LIMIT;i++) li.add(new Integer(i%7 * (i%3) + (i%5)));
         for(int k=0;k<4;k++) doit();
    static void doit() {
    int i;
    int sum=0;
    long t0=System.currentTimeMillis();
         for(i=0;i<li.size();i++) {
              sum += ((Integer) li.get(i)).intValue();
    long t1=System.currentTimeMillis();
         for(ListIterator lii =li.listIterator(0);lii.hasNext();) {
              sum -= ((Integer) lii.next()).intValue();
    long t2=System.currentTimeMillis();
         System.out.println((t2-t1) + " " + (t1-t0) + " " + sum);
    0 27594 0
    0 27719 0
    0 28359 0
    0 27391 0

  • How can we know the affected reports when i remove object from universe

    Hi All,
    If i remove any objects from the universe.
    How can i know the list of affected reports.

    Thanks for your update.
    It shows what are all the reports has been created  by using that particular universe.
    But my question was, if i remove any object from the universe, Then what are all the reports affected(We may not use that deleted object in all the reports)

  • Sending an object from client to server always on button press

    What I need is to send an object from client to server but I need to make server wait until another object is sent. What I have is the JFrame where you put the wanted name and surname, then you create a User object with these details and on button press you send this object to the server. I just can't hold the connection because when I send the first object, server doesn't wait for another button click and throws EOFexception. Creating the while loop isn't helpfull as well because it keeps sending the same object again and again. The code is here
    public class ClientFrame extends JFrame {
        private JButton btnSend;
        private JTextField txfName;
        private JTextField txfSurname;
        public ClientFrame() {
            this.setTitle(".. ");
            Container con = this.getContentPane();
            con.setLayout(new BorderLayout());
            txfName = new JTextField("name");
            txfSurname = new JTextField("surname");
            btnSend = new JButton(new AbstractAction() {
                @Override
                public void actionPerformed(ActionEvent e) {
                    SSLSocketFactory f =
                            (SSLSocketFactory) SSLSocketFactory.getDefault();
                    try {
                        SSLSocket c =
                                (SSLSocket) f.createSocket("localhost", 8888);
                        c.startHandshake();
                        OutputStream os = c.getOutputStream();
                        ObjectOutputStream oos = new ObjectOutputStream(os);
                        InputStream is = c.getInputStream();
                        ObjectInputStream ois = new ObjectInputStream(is);
                        boolean done = false;
                        while (!done) {
                            String first = txfName.getText();
                            String last = txfSurname.getText();
                            User u = new User();
                            u.setFirstName(first);
                            u.setLastName(last);
                            oos.reset();
                            oos.writeObject(u);
                            String str = (String) ois.readObject();
                            if (str.equals("rcvdOK")) {
                                System.out.println("received on the server side");
                            } else if (str.equals("ERROR")) {
                                System.out.println("ERROR");
                        //oos.writeObject(confirmString);
                        oos.close();
                        os.close();
                        c.close();
                    } catch (ClassNotFoundException ex) {
                        Logger.getLogger(ClientFrame.class.getName()).log(Level.SEVERE, null, ex);
                    } catch (IOException ex) {
                        System.err.println(ex.toString());
            btnSend.setText("send object");
            con.add(btnSend, BorderLayout.PAGE_START);
            con.add(txfName, BorderLayout.CENTER);
            con.add(txfSurname, BorderLayout.PAGE_END);
            this.pack();
            setSize(200, 150);
            setVisible(true);
    public class TestServer {
        public static void main(String[] args) {
            try {
                KeyStore ks = KeyStore.getInstance("JKS");
                ks.load(new FileInputStream(ksName), ksPass);
                KeyManagerFactory kmf =
                        KeyManagerFactory.getInstance("SunX509");
                kmf.init(ks, ctPass);
                SSLContext sc = SSLContext.getInstance("TLS");
                sc.init(kmf.getKeyManagers(), null, null);
                SSLServerSocketFactory ssf = sc.getServerSocketFactory();
                SSLServerSocket s = (SSLServerSocket) ssf.createServerSocket(8888);
                printServerSocketInfo(s);
                SSLSocket c = (SSLSocket) s.accept();
                InputStream is = c.getInputStream();
                ObjectInputStream ois = new ObjectInputStream(is);
                OutputStream os = c.getOutputStream();
                ObjectOutputStream oos = new ObjectOutputStream(os);
                boolean done = false;
                User u;
                  while(!done){
                    u = (User) ois.readObject();
                    String confirmString = "rcvdOK";
                    String errorString = "ERROR";
                    if (u != null) {
                        System.out.println(u.getFirstName() + " " + u.getLastName());
                        oos.writeObject(confirmString);
                    } else if (u == null) {
                        oos.writeObject(errorString);
                is.close();
                s.close();
                c.close();
            } catch (Exception e) {
                    System.err.println(e.toString());
    }Thanks for any help, btw this doesnt need to be via ssl, the problem would be the same using only http. Please anyone help me:)
    Edited by: Vencicek on 7.5.2012 2:19
    Edited by: EJP on 7/05/2012 19:53
    Edited by: Vencicek on 7.5.2012 3:36

    Current code fails because it's sending still the same entity again(using while loop)No it's not. You are creating a new User object every time around the loop.
    which makes the system freezeWhich means that you are executing network code in the event thread. Don't do that, use a separate thread. At the moment you're doing all that sending inside the constructor for ClientFrame which is an even worse idea: you can never get out of there to the rest of your client program. This is a program design problem, not a networking problem.
    and doesn't allow me to set new parameters of the new entityI do not understand.
    I need to find a way to keep Server running even when the client doesn't send any data and wait until the client doesnt press the send button again to read a new object.That's exactly what happens. readObject() blocks until data is received.

  • Pasting text from other apps not always work

    Is this a known problem or any way to avoid it? I usually receive emails with copy of text that was already checked for spelling errors, and when I try to copy the text from the email to AE and paste it into the text tool, it does not work 90% of the time, and if it works, it works only once, the next time I copy paste something it keeps always pasting the same old text. I noticed this on all the computers where I have AE installed.
    Thanks
    Victor

    Just a quick update.
    This problem has resurfaced AE CS6 (mac OS 10.8.x) this time.
    The copy/paste into the search bar doesn't seem to work anymore.
    I sent Aobde a note via their Bug/reports page - - (I'd suggest everyone do that.)
    So far, my only working solution is to quit/restart AE. --
    A shame for any 21st century software not to copy/paste formatted, or unformatted text.
    (BTW - the copy/paste text from within AE comps/layers works fine, just not clipboard content from outside .  .  . I'm going to poke around at a few likely culprits and attempt to troubleshoot a solution for my needs, but I can say it's a different problem than my Oct. 2010 post above.)
    Cheers

  • Removing objects from photo

    I am trialling photosup elements before deciding to buy it or not.  Not sure if there is a difference in the trial version compared to the purchased version. I am trying to remove an unwanted object from a picture by highlighting the unwanted object,  then I go to edit and then fill. However there is no option for "content aware" under the fill option as shown in the tutorial.  As a result, if I choose any of the options under the fill tab,  it will only remove the object and leave a "blank spot" on the picture.  Have I missed some steps here please?  Thank you.

    Thank you all for your advice. It certainly was amazing what you were able to do with your suggestions.  As mentioned,  I am trialling photoshop elements (before deciding it is a product that I can use with ease) and was facinated by the ease of use on the tutorials, particularly the content aware move function. If I am not mistaken, it seems to suggest it is a matter of highlighting the object to be deleted / moved, then choose the content aware move function, and photoshop will do all the 'patching' and merging of surroundings.  So basically a click of a button.  Unfortunately I couldn't find that function on the trial version of the product.  So was wondering if the function is actually available on the trial version so I can see if I can use it before resorting to other alternatives.  Thank you.

  • Remove object from TR

    Hi Expert,
    I want to remove DTP from TR , I accidently collected before I info cube and MP.Trying to stay in sequence...is there any problem if you add this object later in another TR ???
    Please advice on this.Thanks in advance
    Edited by: ramshri on Aug 18, 2011 11:50 PM

    Hi
    Just go to SE03,
    Under the folder, REQUESTS/TASK---
    Select UNLOCK Objects,
    Then ENTER your Transport Request
    Click Execute button
    Click Yes
    Then go to SE09,
    Expand the PArticular request with sign '+" on left hand side
    Then , look for the technical name as DTP_
    Select that ..by placing cursor over there, and then choose the DELETE button below the MENU option on the top of the screen where there is small ICON.
    Then again in SE09, Select the MENU Request/Task, look for the Object List which is at the last, and then expand by clicking the right arrow, and select LOCK OBJECTS from the CONTEXT MENU
    or
    Select the particular REQUEST by placing the cursor on it, and PRESS CTRL+F3
    Then you can add it another request if you want else create another etc..do as you like.
    Hope this helps you

  • Copying goals/objectives from appraisal documnt : FM not working...

    I have a requirement in which all the "Goals/Objectives" from the previous years appraisal documents are to be copied to the newly created appraisal documents for the current year.
    I take the details of the previous years appraisal document using "HRHAP_DOCUMENT_GET_DETAIL" .
    I use the exact data of the previous years document making only minor changes (document header dates) and then create a new appraisal document using FM "HRHAP_DOCUMENT_SAVE".
    The error is that the Goals/Objectives do not get copied completely....
    eg. The previous years document has 3 goals
         "xxx
          yyy
          zzz"
    The newly created will have 3 goals but the texts of the goals will not get copied and will display the default text. eg:
         "New Goal
          New Goal
          New Goal"
    Using Other FM's like HRHAP_DOCUMENT_CREATE or HRHAP_DOC_UPDATE_BODY_AND_SAVE also give the same results.
    The problem might be because I am directly using "body_elements" from the previous document in the new document w/o any edits.
    Any n all suggestions highly welcome....
    p.s. kindly notify me if this query should be posted in another forum other than ABAP Development.

    Hi,
    Try like this ...
    To get all the templates use this FM
    CALL FUNCTION 'HRHAP_TEMPLATE_GET_LIST'
        EXPORTING
          add_on_application = 'PA'
          plan_version       = '01'
        IMPORTING
          t_templates        = tb_templates.
    Data :  tb_s_with_or_without    TYPE hap_s_sel_with_or_without.
    tb_s_with_or_without-sel_display_existing = 'X'.
    *--To get the list the documents
      CALL FUNCTION 'HRHAP_DOCUMENT_GET_LIST_XXL'
        EXPORTING
          add_on_application    = ' '
          plan_version          = '01'
          t_templates           = tb_templates
          s_sel_status          = tb_hap_status-----> mandatory table to pass --just pass it
          t_sel_status_sub      = gt_1000_status_sub---->pass this if u r considering the Sub statuses also
          s_sel_with_or_without = tb_s_with_or_without---->check above
          t_appraisees          = tb_appraisees---> get all appraisal Ids into this table form HRHAP table
        IMPORTING
          t_documents           = tb1_docs.---> will get all the documents
    Regards,
    Padmasri.

  • Cisco Prime 2.1, Removing Subgroup from Group in the Device Work Centre

    Hi All,
    I am having trouble removing a Device Group from within a Group in Cisco Prime.
    In short, there is a group called 'Cisco 3850 Series Ethernet Stackable Switch' which exists under both the 'Wireless Controller' group and the 'Switches and Hubs' group. I want to remove it from the 'Wireless Controllers' group as we are not using the controller functionality of the deivce.
    Can anyone help on this issue?
    Thanks,
    Cameron

    Hi TD,
    I would suggest you to take both the backup ::
    Application and appliance backups
    Prime Infrastructure creates two types of backups:
    Application backups: These contain all Prime Infrastructure application data, but do not include host-specific settings, such as the server hostname and IP address.
    Appliance backups: These contain all application data and host-specific settings, including the hostname, IP address, subnet mask, and default gateway.
    Note that:
    Application and appliance backups can be taken from both virtual and hardware appliances.
    Either type of backup can be restored to the same or a new host, as long as the new host has the same hardware and software configuration as the host from which the backup was taken.
    You can only restore an application or appliance backup to a host running the same version of the Prime Infrastructure server software as the server from which the backup was taken.
    You cannot restore an application backup using the appliance restore command, nor can you restore an appliance backup using the application backup command.
    refer the below links::
    http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/2-2/administrator/guide/PIAdminBook/backup_restore.html#10347
    http://www.cisco.com/c/en/us/td/docs/net_mgmt/prime/infrastructure/2-2/administrator/guide/PIAdminBook/backup_restore.html#72460
    Thanks-
    Afroz
    ***Ratings Encourages Contributors ****

  • Error #2025:The supplied DisplayObject must be a child of the caller - Removing Object from Array

    Hi guys, I'm pretty new to as3 and I'm trying to make a game where the player supposedly clicks on the stage and 3 towers which I've spawned dynamically should shoot towards the area. Everything works in terms of tower rotation, etc, but the bullets will not be removed from the stage when I exit the level into another scene. The boundary checking is fine, too.
    Here's a part of the code in the Main.as file.
    private function clickTower1(e:MouseEvent):void
    for each (var tower1:mcTower1 in tower1Array)
    var newLaser1:mcLaser1 = new mcLaser1();
    newLaser1.rotation = tower1.rotation;
    newLaser1.x = tower1.x + Math.cos(newLaser1.rotation * Math.PI / 180) * 40;
    newLaser1.y = tower1.y + Math.sin(newLaser1.rotation * Math.PI / 180) * 40;
    newLaser1.addEventListener(Event.ENTER_FRAME, laser1Handler);
    tower1BulletArray.push(newLaser1); stage.addChild(newLaser1);
      private function laser1Handler(e:Event):void
    //Make laser move in direction of turret.
    var newLaser1:MovieClip = e.currentTarget as MovieClip;
    newLaser1.x += Math.cos(newLaser1.rotation * Math.PI / 180) * laser1Speed;
    newLaser1.y += Math.sin(newLaser1.rotation * Math.PI / 180) * laser1Speed;
    //Boundary checking if (newLaser1.x < -50 || newLaser1.x > 800 || newLaser1.y > 600 || newLaser1.y < -50)
    newLaser1.removeEventListener(Event.ENTER_FRAME, laser1Handler); stage.removeChild(newLaser1);
    tower1BulletArray.splice(0, 1);
    I have a function called exitLevel, which basically, as the name states, exits the level when a button is clicked. It worked perfectly before I started coding the bullets.
        private function exitLevel(e:MouseEvent):void
    stage.frameRate = 6;
    gamePaused = false;
    clearLevel();
    gotoAndStop(1, 'exitLevel');
    btnExitLevel.addEventListener(MouseEvent.CLICK, levelSelect1);
      private function clearLevel():void
    stage.removeEventListener(Event.ENTER_FRAME, update);
    stage.removeChild(buttonCreep1); stage.removeChild(buttonCreep2);
    for (var i = creep1Array.length - 1; i >= 0; i--)
    removeChild(creep1Array[i]);
    creep1Array.splice(i, 1);
    //trace ("Creep1 Removed");
    for (var j = creep2Array.length - 1; j >= 0; j--)
    removeChild(creep2Array[j]);
    creep2Array.splice(j, 1);
    //trace ("Creep2 Removed");
    for (var k = tower1Array.length - 1; k >= 0; k--)
    removeChild(tower1Array[k]); tower1Array.splice(k, 1);
    for (var l = tower1BulletArray.length - 1; l >= 0; l--)
      stage.removeChild(tower1BulletArray[l]);
    tower1BulletArray.splice(0, 1);
    After debugging, it says the error is at the end, where i try to remove the child from the stage. What is wrong? Sorry, I'm a beginner at as3 so any answers might have to be spoonfeeding... I'll try to learn and understand, though. Thanks!
    I did take some of the code off of a guide on the web, and I don't understand it totally, so can someone explain to me what this code does as well? What is e.currentTarget? Thanks!
    var newLaser1:MovieClip = e.currentTarget as MovieClip;
    Here's the full .as file if anybody wants to take a look. http://pastebin.com/5ff4BQa5

    Hi, I managed to solve the errors (kind of) by using this code.
    for (var i:int = tower1BulletArray.length - 1; i >= 0; i--)
    if (tower1BulletArray.parent)
    tower1BulletArray[l].parent.removeChild(tower1BulletArray[l]);
    tower1BulletArray.splice(i, 1);
    However, the problem still persists that the bullets stay in the screen after I change the scene. Any solution? Thanks!

Maybe you are looking for