Permanent OptimisticLockException

Hi,
I'm having some weird problems with an OptimisticLockException on an object. No matter what the application tries to do with this object, toplink throws an OptimisticLockException.
The weird part is, the application catches the exception, and does a refresh on the object before rethrowing it, so I would expect it to be fresh the next time it's written upon.
I can see in the logfile that no other unitOfWork modifies the object in the meantime. But frustratingly the next uow fails with the same OptimisticLockException as before.
The object exists in the database. Restarting the application and thus having brand new cache doesn't change anything.
Unfortunately the culprit object has been deleted by hand in the database so the only evidence I have are the logfiles. But I have a sneaking feeling that if it happened once, it might happen again.
Any ideas how this can happen? Or how do I go about debugging the problem?
by the way, this is a productive environment and SQL logging is turned off for performance reasons.

Hi,
Forget it, it's not a toplink problem. It's the database.
There are apparently some database rows "lost in space". They are there, unless you query them by primary key...
Example 1-n relationship parent ---> child
select * from child_table where parent_id = 4 id name parent_id
1 child1 4
2 child2 4
3 child3 4
select * from child_table where id = 30 rows
No wonder I kept getting an OptimisticLockException when reading all "children" and then trying to modify child3

Similar Messages

  • IMac 10.4.11 Because permanent vertical lines have appeared on my screen, I need to get a new monitor. The adapter apple sells goes from female VGA to mini-DVI. What kind of cable should I get as well:female to male?

    If I use an adapter (female VGA to mini-DVI) for my iMac 10.4.11 OSX, I also need a cable. Should that cable be female VGA to male VGA?
    Permanent vertical lines have appeared on my display, and connecting to another display (monitor) requires a cable and adapter. I want to be sure I am purchasing the correct cable for the Apple adapter. 

    What made me think I need to format if I upgrade the OS?
    I just presumed so really.
    What made me think I need to constantly format computer with my problem?
    Well, after many attempts to repair the drive, which fails, cannot even reach the log in screen, I am left with no other choice?
    And also, I have to note now, System Preferences keeps crashing without reason, it either takes ages to load, just by clicking it to open, or clicking something within it, or it just crashes.
    And temporarily, it freezes the computer totally, with no response.
    Seriously, am I missing a system file or something? Anyone experienced this problem before?
    My computer is literally a blank computer right now, installed VLC and Shades, updated Adobe Flash Player, installed Skype and Adium. I would say Growl from Adium caused it, but it has happened prior to Skype and Adium. Any ideas anyone?
    Thanks,
    From Lelouch

  • HT5361 I want to permanently remove years old emails from my IMac Mountain Lion system.  How can I do this by year instead of laboriously doing it one message at a time?

    I want to permanently remove years old emails from my IMac Mountain Lion system.  How can I do so by year rather than slowly removing one message at a time?  Many thanks.

    Another option is to create a smart mailbox that includes emails with date received before a desired date.
    Then, select one message in the Smart Mailbox and cmd-A to select all. Then delete.

  • Table space not getting cleaned after using free method (permanent delete)

    Hi ,
    We are using the free method of the LIB OBJ, to permanently delete the objects. As per documentation, the ContentGarbageCollectionAgent will be cleaning the database which runs in a scheduled mode. But the log of that ContentGargabageCollectionAsgent shows, all zero for objects without reference, objects cleared,etc. I.e the table space remains the same before and after deleteing all the contents in the cmsdk database. But the agent is running as per the schedule but just comes out doing nothing.
    Can anbody put some light on this issue.
    thanks
    Raj.

    Hi Matt,
    Thanks for replying. It's been a very long time waiting for you ;)
    ---"Are you running the 9.2.0.1, 9.2.0.2, or 9.2.0.3 version of the Database?"
    we are using 9.2.0.1
    ---"If you installed the CM SDK schema in the "users" tablespace ......."
    Yes we are using USERS tablespace for our Development.
    I ran the query. The result is:
    SYSTEM MANUAL NOT AFFECTED
    USERS MANUAL NOT AFFECTED
    CTXSYS_DATA MANUAL NOT AFFECTED
    CMSDK1_DATA MANUAL NOT AFFECTED
    (USERS belongs to develpoment cmsdk schema. And CMSDK1 for Prod CMSDK schema)
    From the results I see only "Manual", but still I don't see the tablespace size being coming down. Both table space sizes (USER and CMSDK1) always grows higher and higher.
    Also to let you know, We use ORACLE EM Console (Standalone) application to see the oracle databse information online. Will there be any thing to do with the tool we use to see the table space sizes. We make sure we always refresh it before making a note.
    So is there anything else I can see. Once I saw the ContentGarbageCollection agent to free 1025 objects and deleted 0 objects. But I don't see any change in the table space size. I am little confused b/w freed and deleted.
    thanks once again for your response Matt.
    -Raj.

  • How do I permanently STOP the Bing Suggested Sites icon from being in the IE 9 toolbar for everyone and make it the default for all new users

    Non of the other post on this subject were correctly answered and they are now old so here is a new thread for a question that a Microsoft Engineer should have answered a long time ago in one of the other threads.
     I have IE 9 installed.
    I am setting up my default profile which will be used for ALL users to configure their profile when they log on. All profiles are destroyed on system reboot. All PCs are frozen.
    Every time I log in as a new user and open IE 9, the favorites bar shows up as I want it with NO BING Suggested Site crapware in site. Then about .5 secs after IE starts and the Favorites bar is shown, the EVIL "Bing Suggested Sites" button appears.
     I can delete it and it seems to stay away until I delete the users profile folder etc and have them log in again. When the profile is recreated the Favorites folder does not have a "Suggested Sites" option in the c:\users\username\favorites\links"
    folder. (I have deleted the hidden .ini files in the default folder) Nor does one exist in the "c:\users\default\favorites\links" folder from which the newly created user profile folder comes. But as soon as I start IE 9, one is created and placed
    in the users favorites links folder. This MUST STOP!!!!!!!!!!!!! This is UNACCEPTABLE. AND IT MUST BE STOPPED!!!!! Where in the Windows 7 x64 Enterprise OS is the location of this evil action and how do I PERMANENTLY delete it.
    I don't EVER want to see the EVIL BING Suggested Sites button anywhere on the PC especially in the Favorites Tool bar on IE 9. An I expect/demand that Microsoft tell us how to 100% cannot fail get rid of it for ALL USERS FOREVER NO MATTER WHAT!!!!!!!!!!!! I
    have spent a lot of time perfecting my default profile making sur that ALL options are decide by me NOT MICROSOFT. I NEVER USE SYSPREP as that will destroy ALL custom defaults every time.
    When a user logs in in to one of my PCs and they start IE 9 they get REAL Google for the default search engine, not the version Microsoft will give you which first sends all search requests to Microsoft so they can spy on what you searched in Google for etc.,
    but real Google, not sent to Microsoft 1st. (I'll bet more than 90% of the readers of this site did not notice how if you let Microsoft set your default search provider to Google, they fix it so that all search requests go to Microsoft 1st, before it gets
    sent to Google. Look at the search string under manage your search providers, in IE 7 & 8. In IE 9 it is hidden, but still there. HOW EVIL OF MICROSOFT)
    With my default profile IE does not ask how you want to set it up, I have already made those decisions. I have made all those decisions for my users. But as of recently I have started installing IE 9 and now this unacceptable BING Suggested Sites junk ware
    keeps showing up. HOW DO I STOP IT. Do I have to put a line in my HOSTS file to send all request for Bing.com to 127.0.0.1 just to make sure that it can't be used. There by removing all possibility of my users ever being able to use Bing FOREVER.
    I would rather not do that but unless a Microsoft representative will tell me how to keep that useless Bing Suggested Sites button from appearing on the Favorites tool bar I will have to. I would love to let my user decide if they want to use Bing and waist
    their time trying to find good search results, but I will not have it forced on them and I will not allow it to be on the Favorites tool Bar ever. So will a Microsoft Engineer please tell us how to put a permanent end to the "Bing Suggested Sites"
    button for ALL users ALWAYS FOREVER.
    Thanks,
    Ralph

    Hi,
    I suggest you try the steps in this thread for test:
    Disable Suggested Sites does not work.
    http://answers.microsoft.com/en-us/ie/forum/ie9-windows_7/disable-suggested-sites-does-not-work/4ba064b1-1c6e-43f1-939e-2db1d335b2ef
    Regards,
    Vincent Wang
    TechNet Community Support

  • CC desktop app stops launching @ boot-up & Adobe Tech Support can't fix it permanently. Now what?

    Problem: Adobe Creative Cloud desktop app stops launching upon boot-up and the CC icon does not appear up on my iMac's desktop menu bar at top. And whenever I loose that, I can't open my CC apps.  Our friends in India seem eager to help and always manage to stumble onto a solution, (each time through a different process, it seems), but that lasts for only 2 or 3 boot-ups before it quits working again.
    When I try to manually launch the "Adobe Creative Cloud" desktop app (by double-clicking it in my Applications folder), its red icon appears on my Dock and bounces up and down but does nothing more. My Force-Quit utility shows it as "not responding" so I have to force quit it.
    My case has been elevated to Tier-2 Support but they call outside of the agreed-upon hours so I'm not here. My only recourse is to call them back, but that only gets me yet another Tier-1 technician and their limited troubleshooting playbook. I did get to talk with a Tier-2 technician once, but the results were still the same:  Manages to restore it, but after just a few boot-ups the Adobe Creative Cloud app stops launching again and I can't use my Creative Cloud tools: Ps, Ai, Id, Pr. (And leaving my workstation on all the time isn't an option.)  What DOES keep working without fail is Adobe's monthly hit on my credit card.
    Has anyone else experienced this and managed to permanently solve it?  How?  I'm running a slightly older OS-X 10.7.5 and wondering if that could be a factor. Thanks for reading this and for any help you can offer.

    Hi TWalkerArt,
    Could you please create a test account and see whether the apps are working there: http://support.apple.com/kb/ph4600
    Regards,
    Romit Sinha

  • How to permanently delete voice memos from iPhone 4s?

    As you can see, I have over 387 voice memos somewhere on my phone, and I want them permanently deleted. I've deleted the voice memos through the voice memos app, and these appear to be all of the deleted voice memos. I tried deleted the voice memos playlist, and that didn't do anything either. This list is shown on the new iTunes.... where you click "On This Phone" when looking at my connected iphone. It's taking up a ton of space on my phone and I don't need them. A majority of them appear to be the exact same voice memo just in there a bunch of times. I can't find a solution anywhere for this.
    Also, how can I make sure that any future voice memos don't sync to my iTunes? I can't find an option to uncheck the syncing of voice memos. All of these changes are confusing me.
    Thank you!
    UPDATE: I just checked, and I do not have voice memos checked in itunes as syncing to my computer from my phone. So why was it syncing anyway? I don't understand.

    I was having a similar issue and I if I understand correctly, I think this is a solution for others..
    in itunes with iphone plugged in, go to summary tab. click "manually manage music.." and apply. Then go to "on this phone tab" and you can actually physically delete the voice memo playlist or individual voice memos. This appears to have finally worked for me..or at least the voice memos playlist doesn't persist under the "on this phone tab" anymore....not sure it made a huge difference in my iphone available space.

  • If I pay the carrier such as Rogers or Telus to unlock my iPhone 4S will it be permanent?

    I have recently purchased a used iPhone 4S with 5 months remaining on the 1 year warranty (not eligible for Apple Care). Buying used while everyone is upgrading to the new 5 allows me to buy into this market - already have a Mac Book - sadly, can't afford all the luxes brand new.
    The phone is with Rogers but I would like to stick with Bell and if I pay Rogers the fee to unlock my iPhone (no longer under contract) will it be permanent? Do they inform Apple that my iPhone should be added to the Apple Registry.
    I am asking this because while I was in Jump-Plus one of the staff said that if I accept the new ios 6 Update before I have my phone unlocked then I might have to go back and pay again to have it unlocked. Also, that the Carrier may not be able to unlock the 4S with th ios6 update. What is if any of this info is correct?
    With my work I do a fair bit of travelling including overseas and I would like to have the phone unlocked for this purpose as well as to keep my old number with Bell. Not interested in contracts. I know that I could use a third party app to unlock my phone but I would want to wait until the warranty has run out in Feb 2013. Through some of my reading, it appears that I might have to do the unlock procedure everytime there is a new major software updateWhat are some pros and cons to these kind of apps?
    Any feedback, suggestions, out their in th apple community would be greatly appreciated.
    Thank-you for your time.

    Thank-you for clarifying third party and for pointing out the potential problems.
    i will either have my phone unlocked by the carrier or get my phone service from them. switching carriers is not essential.
    Thanks agin.
    Cheers!

  • Permanently deleting emails from Gmail, while saving them in AppleMail

    I'm trying to figure out how to permanently delete emails from my Gmail All Mail folder without deleting them from the folders I moved them to in the On My Computer area of my AppleMail on my MacBook Pro.  I like the IMAP syncing function in Gmail that keeps my iphone, ipad and MacBook all synced from an email perspective.  However, I don't like my emails living on Gmail's servers any longer than they have to.  I don't want them living on Apple's servers either, so I'm not using iCloud. 
    I only want emails to remain on the Gmail servers for as long as I keep them in either my inbox or sent items.  I use those two folders as my holding zones for items that still require action.  Once I have done what needs to be done in regard to an email, I either delete it or I move it to a folder under On My Computer on my MacBook Pro for possible later reference.  If I move an email to a folder, I never want it to be deleted.  I use a Time Capsule to back up my Macbook through Time Machine, so I'm not worried about losing my historical email files from a hard drive problem.  I also back up the MacBook quarterly to a separate hard drive which I store offsite in case a catastrophe at my home destroys both my MacBook and the Time Capsule.
    I have about 8 years of email history that I imported from my old PC into the MacBook in AppleMail and I now want to clean out the All Mail account in my Gmail to delete all those emails, but I need them to remain in my folder system on the MacBook.
    Can anyone tell me how to delete all mail from the Gmail account without having the IMAP function delete them from my MacBook Pro?
    Here's an added complication.  When I move an email from my inbox to a folder on my MacBook, I do want that email to disappear from my ipad and my iphone. In essence, I like to manage all my emails from my MacBook Pro if they need to be saved into folders, but I also like to be able to delete emails that don't need to be saved from any of my devices and have that deletion sync to all my devices.
    I haven't been able to figure this one out.  Any help is appreciated.

    Make local folders (On My Mac) and move the mails there, they will delete from the GMail servers but remain accessible in Mail, only in Mail.
    All Mail (in Gmail) is not a folder, it is a label for all your mail, anything in there is also in one of GMails folders, when you delete from All Mail you are deleting the original mail.

  • I delete some emails ,there are moved to trash . I delete them from trash folder too and they still appear in a folder called 'all messages". I repeat the same actions and after a while they appear again!what should i do to delete them permanently??

    I delete some emails ,there are moved to trash . I delete them from trash folder too and they still appear in a folder called 'all messages". I repeat the same actions and after a while they appear again!what should i do to delete them permanently??

    If you are using Apple's Mail app 6.5 is the latest version irrespective of what a previous poster says. It does sound though that you are using a gmail account online via a web browser. Please confirm and fill in missing information.

  • Some emails are there when searching, but do not show up in inbox for mail account. How do we permanently fix that? This is dangerous for businesses that rely

    Hi, and thanks,
    I noticed that many dozens of others have expressed the same problem with Thunderbird, but it still continues.
    For no apparent reason, sporadically, some emails don't show up in the inbox list of an account, but are actually there. If we're told later that someone sent one, and if we do a search at that time, it does come up!
    We rely on this for business, and wouldn't know to search if we are unaware that an email has come in but simply doesn't appear in the list. We have actually lost significant business $ on 3 separate occasions, from clients who have said they emailed us, but we never responded! (That's really bad, and even worse because they also won't use us any more.)
    Obviously, we of course would not want to have to check with the webmail host when we have Thunderbird. So...., how can we permanently fix this problem so it never, ever occurs??? We used to use Eudora before switching, and this never happened.
    Some blogs say to delete one of the files in the system to re-index the inboxes, but again, that would not be the answer, because we wouldn't know to do that, nor when to do that, since some emails, without a warning or clue, occasionally simply don't show up in the list at all.
    Please let us know the permanent and complete fix for this ASAP.
    Thanks so much,
    Les Pock

    Lers, I have used Thunderbird for the best part of a decade and have only once experienced something similar to what you describe and it was a corrupt database.
    So lets just back up a bit.
    If you want mail to flow without issue the first bullet to bite is anti virus.
    * Scanning of outgoing mail is a total waste of time and an added risk for no return. You anti virus already certifies your machine clean.
    * Scanning of incoming mail is of extremely limited value. Thunderbird does not allow scripts in email, so there is no bug that will junmp out and start running even if your mail is not scanned and it contains a virus. The exception to that is attachments. But they are not dangerous either, unless you try and open them. Even then your anti virus should be monitoring the temporary folder on your computer and blocking any attempt to write the infected file, let alone execute the contents.
    * Scanning of your mail folder likewise is of limited value, but is more than often the cause of mail indexes not being updated. These days anti virus program appear to scan everything. Every file as it is accessed and opened. Thunderbird often has quite large files to store mail, up to 4Gb is not all that uncommon. Anti virus program take about 2 minuted per Gigabyte to scan files. So it can be the case that the anti virus is scanning while Thunderbird is timing out waiting for access to the appropriate files.
    To make things more efficient exclude your Thunderbird mail profile folders from on access scanning by your anti virus program. The folders contain NO executable programs, and a weekly scan along with the rest of your computer with Thunderbird closed should be more than adequate. Perhaps scheduled for1am Friday. Gives Friday to deal with anything found and does not interrupt your use of the device.
    A similar exclusion can also be beneficial for other data storage areas (databases especially)
    Finally look at what processes run on your computer. there aerew by default about 40 when it is new and over time this grows with almost every security, office or game you install until your computer is so busy running background processes to check if the latest versions of XXXX has been released that it becomes sluggish and performance on most things is degraded (That common nugget of Windows computers getting slower over time is TRUE, but a large part of that is added processes and security software which is actually reducing performance quite extensively.)
    BTW right clicking a folder, selecting properties and the repair button rebuilds the index non destructively as deleting the files as you mention also looses tags.

  • How to set SMS editor languange permanently ?

    Hi, I use Nokia E52. Since some time I cannot write SMS messages, because strange letters appear in SMS editor. Options -> Text language show me that Cestina language ist set. This is the first from the choice. When I set any other language like English or my Polish press OK and return to the editor I can write one letter and after it the editor switches back to Cestina language. How can I set the proper language permanently ? Alternatively how to reset the E52 to the factory state completely ?
    Thank you in advance for your help
    Zbyszek
    Solved!
    Go to Solution.

    menu -> tools -> settings -> -> telephon -> general -> language has solved the problem

  • Form Line Space Work Around (permanently set leading)

    Hi All,
    new to the forums – I find the format confusing, but I'll try to do my best!
    I have discovered a way to permanently set the line space (leading) of a form field. If you all discover a better way, then let me know!
         Create a small, multiline text field anywhere. Name it "Reference". This field will become hidden and read only later, so don't worry too much about it.
         Enable it to have rich text formatting. This is done in the form field properties under "Appearance".
         Exit form field editing. Place a single space in that field (no other characters).
         Select that space, then hit command + e (ctrl +e on PC) to bring up the rich text formatting options.
         Select a font and size, then press "More."
         Click the paragraph tab, then select a line height. I prefer to use the "exactly" option from the drop down menu, makes it the most similar to setting type in Illustrator or Indesign.
         We're halfway done! Exit out of this field and save.
    This next part gets a little trickier because it requires some event javascript.
         Create a new miltiline text field. Worry about this one more, because this is the one the user will use. For this example, name it "Text"
         Like before, enable it to be multiline and rich text in the appearance settings.
         Go to the "Actions" tab of the form field properties.
         Choose event "on blur" and action "run javascript".
         Insert the following code:
    if (this.getField("Text").value == "") {this.getField("Text").richValue = getField("Reference").richValue;}
    This code tells the form field that when exited, if it is left empty, it should copy the exact rich text found in the form field "reference."
    Now set the field "Reference" to read only and hidden under "general" in form field properties. Exit form field editing. Select "Text" and type anything you want, then delete it. Click the field again. There is now a single space there! (invisible to user at first) that has saved all your formatting! If the user starts typing, it will be properly formatted. Make sure to save your document with the field "Text" having only the properly formatted space.
    Other Notes:
    There 100% is a value in the javascript to set line height. Otherwise, copying the ".richValue" of a field wouldn't allow this to work. Problem is, no one seems to know the syntax and can't find it in the API. My challenge to you guys is to find it! We've proven it exists. If we can find the syntax then we can avoid these complicated workarounds.

    Sorry, when I instruct you to adjust settings in the "appearance settings," I actually meant the options settings. Sorry for the confusion!

  • Permanently save line spacing in a multi-line text field

    Me: Adobe Acrobat 8 Pro, Windows Vista
    (I think the people who will be using the form have Reader 7 on Windows)
    I work in a doctors' clinic, and we use phone message sheets to document conversations between the patients/us/nurses/doctors, and I scanned the form and made it into a fillable PDF for our secretaries to fill out more quickly. The "message" area has pre-printed lines on it, and the multi-line text field I placed there needs to match up to the lines. I used the Rich Text Formatting options to set it to "Exactly 24 Points," but I can't get it to KEEP the formatting permanently. The only way I could get it to save the formatting in that field was to put a space in it and then save it, and then give that to the 2 phone secretaries. It works perfectly the first time, but instead of just closing/re-opening the file to start a new message, one of the secretaries highlights everything in the "message" field and deletes it... which deletes the line spacing formatting. I've told her
    b numerous
    times to leave that starting space in the field, but she "forgets" so all of her messages look messed up. So is there a way to force that line spacing
    b PERMANENTLY
    ???? Here's a shrunken screenshot of the field -- I wish I could just erase the lines altogether so the spacing wouldn't matter, but the secretaries type/print the message out, then the nurses/docs write on the page with pen so the lines have to stay. http://img187.imageshack.us/my.php?image=notepreviewph8.jpg
    Thanks!

    You can set the font size of the text. Then play with the underlines in the original document to match the needs of the font that is used. Print to a new PDF and then use replace pages to put the new page into the form without changing the form fields. I was able to do this with a word processing document by adding underlining in the document with 12 pt and setting the font to 12 pt in the text field. You can play with the font, the border of the field, and the underlining in the original document to get the desired result. Is this optimal, probably not. However it does the job.

  • TS4644 How do i permanently delete my credit card info from my iPhone?

    I saved my debit card information on my iPhone 5s iOs 7 device a while back so i could purchase an app and some music. Now my bank account that is connected to that debit card is in the negative at the moment. I have 12 apps that have been needing to be updated for the past 2 weeks and when i try to update them, it says there is a problem with your billing info. But i don't want to buy anything, i just need to update my apps! it won't even let me download a free app! please help me permanently delete my debit card info. I don't have another credit card to replace the other one.

    Hello RachelWaller7,
    Thanks for using Apple Support Communities.
    Follow the directions in the article below to change your payment type to none.
    Change or remove your payment information from your iTunes Store account (Apple ID)
    http://support.apple.com/kb/HT1918
    Take care,
    Alex H.

Maybe you are looking for