Could not synchronize

Hi there,
I'm testing a small app while trying to learn Java Persistence . Just a newbie at this...
In my first unit of work I create and persist a ScheduledCourse object like so:
EntityManagerFactory emf = Persistence.createEntityManagerFactory("scholastic");
//First Unit of work
EntityManager em1 = emf.createEntityManager();
EntityTransaction tx1 = em1.getTransaction();
tx1.begin();
ScheduledCourse scheduled_course = new ScheduledCourse(...);
em1.persist(scheduled_course);
tx1.commit();
em1.close();
emf.close();
Up to this point everything is fine.
In my second unit of work I try to remove the instance of that object from the database:
EntityManagerFactory emf2 = Persistence.createEntityManagerFactory("scholastic");
EntityManager em2 = emf2.createEntityManager();
EntityTransaction tx2 = em2.getTransaction();
tx2.begin();
//Retrieve the entity instance from the dbase and make it persistent again
ScheduledCourse sc = em2.find(ScheduledCourse.class, new Long(1));
em2.remove(sc);
tx2.commit();
em2.close();
emf2.close();
When the delete is attempted, I get this error message:
[java] Could not synchronize database state with session
[java] org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
Could someone please explain what I may have done wrong? Why isn't the deletion occurring properly?
Alan

Hi Alan
i am also facing the same problem.
please explain how did you resolve it.
you can mail me at abnig19atgmail.com
regards

Similar Messages

  • Could not synchronize record?

    could not synchronize record  this is an error log notification that shows in entourage  it repeats over and over   i can delete the notification, but it continues to alert me.  how do i stop this alert?

    Is the issue still seen ? If yes, try the followings : 
    Plan A:
    1. Open the Error log window. 
    2. Check for the problematic item. 
    3. Search in outlook for that item.
    4. Check if the item is CATEGORIEZED. 
    5. Check the Categories name.
    6. Remove Special Character in the name of the categories.
    7. Close outlook and re-launch it. 
    8. Check the behavior. 
    Plan B: 
    1.       If the issue still persisting, Would need to repair mailbox on the exchange server.
    E.g. : Exchange 2010 SP1 command-let on the mailbox server: 
    New-MailboxRepairRequest -Mailbox [email protected] -CorruptionType SearchFolder, AggregateCounts, ProvisionedFolder, FolderView 
    let me know, if you have any query.
    - SK

  • "Could not synchronize the color settings because of a program error." App keeps crashing.

    Hi, I keep getting this error message, "Could not synchronize the color settings because of a program error." whenever I click on Photoshop in my dock. A few seconds after, I'll get a crash report. I just upgraded to OS X Mountain Lion and have not been able to start Photoshop since. Illustrator, on the other hand, works fine. Any idea why this is? Any help would be greatly appreciated.

    Can you open Photoshop with the shift.key pressed?
    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by keeping command-alt-shift pressed on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.

  • Could not synchronize the color settings because of a program error.

    Hello,
    I am using PS CS 5 on a brand new MAC OSX 10.9.4.
    Upon startup of PS, I get this message:
    "Could not synchronize the color settings because of a program error."
    If I click "Okay", the message goes away and I can use PS. What does this message mean and how do I fix it?
    Thanks in advance.
    Patrick

    Just ignore it.
    The message refers to color settings not being identical in all installed applications. And they don't have to be - mine are deliberately unsynchronized and I have no desire whatsoever to synchronize them.
    Note that color settings are stored under your user account and are not removed with an uninstall. So the message could well refer to uninstalled apps, trial versions, anything you once had on your system.
    Personally I think this is a useless and misleading warning and they should just remove it, considering the amount of confusion it causes.
    Spinipes, the printing crash is unrelated to this. Start a new thread for that.

  • Could not synchronize color settings because of a program error.

    First, let me preface this by saying that I have several identical workstations that are all imaged from a single master.
    On the master, I configured Bridge to synchronize color settings across my Creative Suite apps.  This works on the Master but on every machine I've imaged from the Master I get a "Could not synchronize color settings because of a program error" when I launch Photoshop.
    Is there a way to stop the error?
    Thanks in advance,
    hp

    I have my machines setup this way to make preference/setting management/deployment easier.
    Yes, I can understand that and as said, I have a single set up.
    But in normal set up you install the suite at system level Application folder and use it from the dedicated user account(s) on that machine. All preferences and custom settings for Adobe (at least that I know of) are stored in the user library ( User/ library / Application Support / Adobe / and then per app presets - and same library / preferences / Adobe and many settings folders)
    Color sync and custom color profiles you have added are stored in the system library while the saved custom color setting you have created in one of the CS6 apps for use of color settings synchronization is in its turn again stored on user level library (user/ library / application support / Adobe/ Color / Settings) and inhere should be the custom name .csf file you have saved and should be able to find back in the list showing in Bridge when asking for color settings sync.
    I really doubt (but as said, no experience in it) imaging the systems is the correct procedure. I'm not sure what settings you want to pre set but mostly they are found in the user lib app support and user lib pref folder (for PS actions, workspaces, custom brushes etc etc.)
    And if you are using it for education it is a very good idea to learn all user that there is such thing as a preference command that offer you options to customize the application to your wishes. I can't yell enough about that because PS has a very pre historic default preference settings that needs changing for better use of the app. And the default workspace of Bridge is very clumsy and very unattractive, so the more people learn how to change that themselves the better it will be for making it more popular...

  • Could not synchronize the color settings

    Upon startup, I get the following message: "Could not synchronize the color settings because of a program error."  I have Mac OS 10.9.5; Photoshop 12.0 x64.
    I can click on "OK" and move on, but would like to know what to do to eliminate that message.
    Thanks!

    Can you open Photoshop with the shift.key pressed?
    Boilerplate-text:
    Are Photoshop and OS fully updated?
    As with all unexplainable Photoshop-problems you might try trashing the prefs (after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed) by keeping command-alt-shift pressed on starting the program or starting from a new user-account.
    System Maintenance (repairing permissions, purging PRAM, running cron-scripts, cleaning caches, etc.) might also be beneficial, Onyx has been recommended for such tasks.
    http://www.apple.com/downloads/macosx/system_disk_utilities/onyx.html
    Weeding out bad fonts never seems to be a bad idea, either. (Validate your fonts in Font Book and remove the bad ones.)
    http://helpx.adobe.com/photoshop/kb/troubleshoot-fonts-photoshop-cs5.html
    If 3rd party plug-ins are installed try disabling them to verify if one of those may be responsible for the problem.

  • Entourage 12.2.1 'could not synchronize record to Exchange' error -18500

    HI all -
    I have an issue with a Mac user with Entourage 12.2.1 on OSX 10.6.1. He is unable to retrieve email at all from an Exchange 2007 server, but was able to until ~2-3 weeks ago. Settings have not changed on the Mac at all and there have been no changes to the configuration of the server. Searching on the web seems to indicate this is a frequent issue with 12.2.1, and that forcing a database rebuild at Entourage startup (holding Control) may resolve the problem temporarily, but this did not help in this case.
    Any suggestions?

    From a subscriber map a drive to the snapshot share. Can you do this successfully? Can you browse the files and folders in this share?
    The account that this app runs under (or the account you are logged onto the desktop with) must have read permission for the snapshot share (\\<server_name>\repldata).
    Then this same account needs rights to list files and folders for the folder which underlies this share. By default it will be
    C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\ReplData
    or something like that.
    Also make sure your snapshot is deposited in the snapshot share. Right click on the publication select properties and select snapshot. In the text box put your files in the following folder do you see \\<server_name>\repldata? If not is whatever is
    there shared as \\<server_name>\repldata?
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • I could not synchronize my ipod classic 180gb with itunes. whenever i connect and click podcast tab it gets hanged and no working untill i close all programs from task manager. please. help me

    Please help me in this regards.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable
    - Try on another computer                            
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

  • CSCth57521 - percentFABRIC-SP-3-SYNC_FAILED the module in slot 7 could not synchronize wit

    Hi team,
    please help me in the below query. Is this below bug is fixed in 12.2(33)SRD7.?
    Bug id : CSCth57521
    Regards,
    JR

    Yes.  Since it is fixed in 12.2(33)SRD5, all subsequent releases after SRD5 will have the fix.  (SRD6, SRD7, etc)

  • The AAW Synchronization Runbooks could not be located

    I have installed AAW (Application Approval Workflow) on the SCSM Management Server and Orchestrator. I have also imported the Runbooks to Orchestrator, and created a Orchestrator connector in Service Manager, and sucessfully transfered the runbooks
    so that i can see them in the SM console under Library -> Runbooks. So far so good, but when I make an attempt at synchronizing the applications from SCCM by clicking on Sync Now under All Applications it fails with the error message "The AAW
    Synchronization Runbooks could not be located". So now I'm confused about what that really means, because I can see the runbooks in both Service Manager and Orcestrator.
    Thanx in advance for any info on this!

    Hi Mortue,
    Go with the below document uploaded at skydrive  . Then let us know what issue your are facing with screenshot
    https://skydrive.live.com/view.aspx?resid=6261DC3D358734F7!134
    http://social.technet.microsoft.com/Forums/en-US/b9312b5b-921e-456e-a772-c4b058012dd4/create-a-software-ordering-runbook-using-sco-sccm-scsm-?forum=scodeployment#f15e98e5-3ab2-4a4f-a1d5-6383cd9a2017
    Thanks Rahul$

  • System synchronization failed--Protocol Error: Handheld file could not be opened. (4004)

    I have reviewed Palm Support Page and the forums and recognize this is an old story but the solutions offered haven't worked for me.  I have had my Tungsten 2E for over a year and an earlier version before that.  It has been working well for me until I had a problem (out of the blue) with the HotSync.  I reinstalled the Palm software after checking cables, etc.  I was able to relink and get updated info from my handheld to the desktop but with a few blips in DocstoGo where I had to delete documents and add them back to the desktop and resync with the handheld.  All the info is on the handheld but see the log below to see the message "System synchronization failed".  A suggestion by other users is to delete the "PmTraceDatabase" to file C:\Program Files\Palm\N\Backup\PmTraceDatabase.PDB but I cannot find the named file on my desktop program files for Palm. 
    Does anyone have an explanation other than "live with it" since I believe I'm getting all my info synced?
    HotSync operation started 02/14/08 09:26:07
    OK Calendar
    OK Contacts
    OK Tasks
    OK Memos
    OK Expense
    OK Note Pad
    OK Documents To Go
    OK Photos
       - Installed file: C:\Program Files\Palm\N\Install\DocsToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\GraphicsLibrary.prc
       - Installed file: C:\Program Files\Palm\N\Install\SheetToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\SS_P2P.prc
       - Installed file: C:\Program Files\Palm\N\Install\WordToGo.prc
       - Installed file: C:\Program Files\Palm\N\Install\WP_P2P.prc
       - Installed file: C:\Program Files\Palm\N\Install\WTGFontPackage.pdb
    OK Install
       -- Backing up db psysLaunchDB to file C:\Program Files\Palm\N\Backup\psysLaunchDB.PDB
       -- Backing up db PmTraceDatabase to file C:\Program Files\Palm\N\Backup\PmTraceDatabase.PDB
    System synchronization failed
    Protocol Error: Handheld file could not be opened.  (4004)
    HotSync operation complete 02/14/08 09:26:47
    Post relates to: Tungsten T2
    This question was solved.
    View Solution.

    1. download and install FileZ from here
    http://nosleepsoftware.sourceforge.net/index.php?page=filez
    2. Launch FileZ and tap on view and edit files
    3. Open the internal folder and tap pmtracedatabase and put a check mark next to it
    4. Tap details
    5. Tap on the "Attrs" tab
    6. Uncheck the box next to backup
    7. Click Save
    8. Sync

  • Hi all, I'm trying this morning to make the backup of my iPhone from 32 gigabytes. When I start the synchronization and backup I get written'' iTunes could not back up iPhone because an error occurred. I tried it on another iphone (4) and everything works

    Hi all, I'm trying this morning to make the backup of my iPhone from 32 gigabytes. When I start the synchronization and backup I get written'' iTunes could not back up iPhone because an error occurred. I tried it on another iphone (4) and everything works fine. I can not reset the device because I have too much important data on it. Please help me.
    Salve a tutti, sto cercando da stamattina di effettuare il Backup del mio IPhone da 32 gigabyte. Quando avvio la sincronizzazione e il Backup mi esce scritto '' iTunes non ha potuto eseguire il backup di Iphone perche si è verificato un errore. Ho provato su un altro iphone (4) e tutto funziona correttamente. Non posso ripristinare il dispositivo perchè ho troppi dati importanti sopra. Vi prego aiutatemi.

    Ok I tried to delete the backup by using your location via preferences, but I did not find any file, maybe because I've already deleted following the path to the disk. I repeat that I have 2 devices and the problem only occurs on one

  • In PerfDataSource could not resolve counter instance OpsMgr DW Synchronization Module,Total Error Count,All Instances.

    Hello,
    Event viewer Shows warning 10103 in one of SCOM Server 2012 R2.
    In PerfDataSource could not find counter <counter name> in Snapshot. Unable to submit Performance value. Module will not be unloaded.
    One or more workflows were affected by this.  
    Workflow name: <workflow name>
    Instance name: <instance name> Instance ID: {<ID>}
    Management group: <group>.
    Counter: "OpsMgr DW Synchronization Module, Total Error Count, All Instances" 
    How can solve its?
    Thanks

    Hi,
    Can you try to open perfmon and add above counters to see if they are there?
    In addition, please also try to manually create the collection rule of OpsMgr DW Synchronization Module object and check the performance counters.
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • When I connect my iPhone 4S to my MacBook Pro, the synchronization process by iTunes failed with the following message "My iPhone could not be synchronized, because the synchronization process has not started". What does that mean?

    Hello,
    When I connect my iPhone 4S to my MacBook Pro (through the USB port), the synchronization process by iTunes failed with the following message "My iPhone could not be synchronized, because the synchronization process has not started".
    What does that mean?
    Thanks in advance for fixing my problem.

    I think I remember hearing that if you quit iTunes with your device still connected, then open iTunes up again, it should work.
    EDIT: Here, this might help: http://support.apple.com/kb/ts1567

  • OseException (-12021) Could not find snapshot error during synchronization

    I have successfully deployed mobile adf client to blackberry simulator.
    When I started the application first time, it synchronized the data without any errors.
    But, in subsequent synchronizations, it shows the following error
    oseException (-12021) Could not find snapshot with id 133.
    Any help would be highly appreciated.

    I have successfully deployed mobile adf client to blackberry simulator.
    When I started the application first time, it synchronized the data without any errors.
    But, in subsequent synchronizations, it shows the following error
    oseException (-12021) Could not find snapshot with id 133.
    Any help would be highly appreciated.

Maybe you are looking for

  • My music files keep disapearing from iTunes Its all up to date

    My music files keep disapearing. I have uninstalled iTunes and re installed it, works for a bit then slowly the ! keep appearing. Can someone please help me?

  • One website is not opening in Safari or chrome

    I have a strange problem. One website called www.abudhabievents.ae is not opening in Safari nor chrome and whenever I am trying its showing the following error : - usr/local/cache/files/block.html;403 I tried this website on my windows pc and could o

  • Is there a bug in Automator filter finder items?

    I'm trying to do a batch processing script and there seems to be a bug with items created earlier in the script.  For example, the 2brokegirls.jpg file was created earlier in the script and added to the main folder whose contents can be seen in the g

  • Using contacts with two Apple ID's

    I have a personal iPhone, iPad and MacBook Pro for which I have an Apple ID under which I keep my contacts.  I recently started a new job and they gave me an iPhone for work purposes, however I need to have a separate Apple ID for that phone.  I real

  • Collection Status : Disabled by Upload Manager

    I am getting this with ... ./emctl status agent How do I enable the upload manager?