Statement.executeUpdate() modifies DB despite disabled autocommit mode

Hi
I've got problem with transactions in JDBS. That's an example code:
    // (...) static public void main(String[] args) throws Exception     {         Class.forName("com.mysql.jdbc.Driver");         String url = "jdbc:mysql://127.0.0.1:3306/JAVADB";                Connection con = DriverManager.getConnection(url,"xxx","yyy");             con.setAutoCommit(false);         Statement stmt = con.createStatement();                stmt.executeUpdate("UPDATE CARS SET power=30");         con.rollback();         con.commit();         stmt.close();         con.close();     } // (...)
In my opinion this code shouldn't modify table CARS in database, because I initially disable autocommit mode, and then i cancel all updates made in transaction by invoking rollback() function, but it modifies. When I delete con.rollback() line and con.commit() line the result is the same - database is modified despite not invoking commit() function. As You can see, i use mysql's driver on Debian ( if it matters ).
Edited by: Guest111 on Aug 26, 2010 3:44 AM
Edited by: Guest111 on Aug 26, 2010 4:09 AM

You haven't enabled transactions on this table in MySQL. Not really Java's problem.

Similar Messages

  • Acrobat Reader X Disable Protection mode

    Hi All,
    i need some help with this freaky Acrobat Reader X version.
    We have currently  ~1000 computers with different old versions of AR (form 6 to 9)
    We need to upgrade to 10.0.1 version all PC's
    Will use SCCM for distributing the package.
    OK... everything here seems good but ... a lot of problems and erros appear.
    First we've installed on test group of 10 pc's the AR 10.0.0
    all users start complainig that they can't open the pdf's from our file servers.
    Solution - bring the patch 10.0.1
    After that all users start complaining that they can't print - Windows Error - Acrobat need to be closed !
    Solution - Protection mode disabled.
    My questions :
    1. How can I distribute both the Package of Acrobat and the update together with SCCM
    All my tries and reaings failed !!!
    i've try different methods and no success
    msiexec /i /q \\server\d$\Workstation Baseline\AcrobatReaderX\AcroRead.msi TRANSFORMS="AcroRead.mst" PATCH=\\server\d$\Workstation Baseline\AcrobatReaderX\adbeRdrUpd1001_Tier1.msp
    this do not work for me This is in SCCM program
    2. How can i disable through Adobe Wizard the Protection Mode ?
    I know how to do it manually but is not acceptable this way - i can't communicate with 1000 users to do this manually
    I know how to disable it from registry with GPO , but i can't disable it before installation, also i can't disable it on all PC's after installation, because it will take several days to complete for all pc's and this "hole" of some days will stop the work of our end-users.
    Any fresh ideia is wellcome. Also any help
    Thanks

    hey,
    had similar issues with protection mode.
    found we can do it 2 ways, 1. via registry entry, or 2. via an ADM.
    sorry cannot remember the referenced posts for the fixes below...
    we use the adm so that users cannot change it, and so that updates dont reset it.
    note that the adm has only a few settings, and i dont know the code for any other settings.
    1. - REG method:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Acrobat Reader\10.0\FeatureLockDown]
    "bProtectedMode"=dword:00000000
    REM: Above line Disables Protected Mode on startup
    2. - ADM Template method
    please note, just copy and paste into a text file and rename as .adm.
    remember that on the last section of the code below, change the "YOUR HEADER HERE" bit to what you want to use to find it in the GPO manager once you add the template.
    CLASS USER
    CATEGORY !!YOUR_COMPANY_NAME_GOES_HEREHeader
    CATEGORY "Adobe Reader 10"
    CATEGORY "Preferences"
    CATEGORY "General"
    CATEGORY "Application Startup"
    POLICY "Show splash screen"
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Originals"
    EXPLAIN !!ExplainNosplash
    VALUENAME "bDisplayedSplash"
    VALUEON NUMERIC 0
    VALUEOFF NUMERIC 1
    END POLICY
    POLICY "Enable Protected Mode at startup"
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Privileged"
    EXPLAIN !!ExplainProtectedMode
    VALUENAME "bProtectedMode"
    VALUEON NUMERIC 1
    VALUEOFF NUMERIC 0
    END POLICY
    END CATEGORY
    END CATEGORY
    CATEGORY "Identity"
    POLICY "Organization Name"
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Identity"
    EXPLAIN !!ExplainOrgName
    PART "Organization Name." EDITTEXT
    VALUENAME "tCorporation"
    END PART
    END POLICY
    END CATEGORY
    CATEGORY "Internet"
    CATEGORY "Internet Options"
    POLICY "Connection speed"
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\AVGeneral"
    EXPLAIN !!ExplainConnection
    PART "Connection speed." DROPDOWNLIST REQUIRED
    VALUENAME "iConnectionSpeed"
    ITEMLIST
    NAME "56kbps" VALUE NUMERIC 56000
    NAME "LAN" VALUE NUMERIC 10000000 DEFAULT
    END ITEMLIST
    END PART
    END POLICY
    END CATEGORY
    END CATEGORY
    CATEGORY "Spelling"
    CATEGORY "Dictionaries"
    POLICY "Dictionaries"
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Spelling"
    EXPLAIN !!ExplainDictionary
    PART "Default Dictionary" DROPDOWNLIST
    VALUENAME "tDictionaryName"
    ITEMLIST
    NAME "English (United Kingdom)" VALUE "English (United Kingdom)"
    ACTIONLIST
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Spelling"
    VALUENAME "iDictionaryDefaultID" VALUE NUMERIC 7
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Spelling\cDictionaryOrder"
    VALUENAME "t0" VALUE "English (United Kingdom)"
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Spelling\cDictionaryOrderID"
    VALUENAME "i0" VALUE NUMERIC 7
    END ACTIONLIST
    NAME "English (United States)" VALUE "English (United States)"
    ACTIONLIST
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Spelling"
    VALUENAME "iDictionaryDefaultID" VALUE NUMERIC 2
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Spelling\cDictionaryOrder"
    VALUENAME "t0" VALUE "English (United States)"
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Spelling\cDictionaryOrderID"
    VALUENAME "i0" VALUE NUMERIC 2
    END ACTIONLIST
    END ITEMLIST
    END PART
    END POLICY
    END CATEGORY
    END CATEGORY
    CATEGORY "Units"
    POLICY "Page Units"
    KEYNAME "Software\Adobe\Acrobat Reader\10.0\Originals"
    EXPLAIN !!ExplainPageUnits
    PART "Page unit" DROPDOWNLIST REQUIRED
    VALUENAME "iPageUnits"
    ITEMLIST
    NAME "Points" VALUE NUMERIC 0
    NAME "Inches" VALUE NUMERIC 1
    NAME "Millimeters" VALUE NUMERIC 2 DEFAULT
    NAME "Centimeters" VALUE NUMERIC 3
    NAME "Picas" VALUE NUMERIC 4
    END ITEMLIST
    END PART
    END POLICY
    END CATEGORY
    END CATEGORY
    END CATEGORY
    CATEGORY "Adobe Acrobat 10"
    CATEGORY "Preferences"
    CATEGORY "General"
    CATEGORY "Application Startup"
    POLICY "Show splash screen"
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Originals"
    EXPLAIN !!ExplainNosplash
    VALUENAME "bDisplayedSplash"
    VALUEON NUMERIC 0
    VALUEOFF NUMERIC 1
    END POLICY
    END CATEGORY
    END CATEGORY
    CATEGORY "Identity"
    POLICY "Organization Name"
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Identity"
    EXPLAIN !!ExplainOrgName
    PART "Organization Name." EDITTEXT
    VALUENAME "tCorporation"
    END PART
    END POLICY
    END CATEGORY
    CATEGORY "Internet"
    CATEGORY "Internet Options"
    POLICY "Connection speed"
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\AVGeneral"
    EXPLAIN !!ExplainConnection
    PART "Connection speed." DROPDOWNLIST REQUIRED
    VALUENAME "iConnectionSpeed"
    ITEMLIST
    NAME "56kbps" VALUE NUMERIC 56000
    NAME "LAN" VALUE NUMERIC 10000000 DEFAULT
    END ITEMLIST
    END PART
    END POLICY
    END CATEGORY
    END CATEGORY
    CATEGORY "Spelling"
    CATEGORY "Dictionaries"
    POLICY "Dictionaries"
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Spelling"
    EXPLAIN !!ExplainDictionary
    PART "Default Dictionary" DROPDOWNLIST
    VALUENAME "tDictionaryName"
    ITEMLIST
    NAME "English (United Kingdom)" VALUE "English (United Kingdom)"
    ACTIONLIST
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Spelling"
    VALUENAME "iDictionaryDefaultID" VALUE NUMERIC 7
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Spelling\cDictionaryOrder"
    VALUENAME "t0" VALUE "English (United Kingdom)"
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Spelling\cDictionaryOrderID"
    VALUENAME "i0" VALUE NUMERIC 7
    END ACTIONLIST
    NAME "English (United States)" VALUE "English (United States)"
    ACTIONLIST
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Spelling"
    VALUENAME "iDictionaryDefaultID" VALUE NUMERIC 2
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Spelling\cDictionaryOrder"
    VALUENAME "t0" VALUE "English (United States)"
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Spelling\cDictionaryOrderID"
    VALUENAME "i0" VALUE NUMERIC 2
    END ACTIONLIST
    END ITEMLIST
    END PART
    END POLICY
    END CATEGORY
    END CATEGORY
    CATEGORY "Units"
    POLICY "Page Units"
    KEYNAME "Software\Adobe\Adobe Acrobat\10.0\Originals"
    EXPLAIN !!ExplainPageUnits
    PART "Page unit" DROPDOWNLIST REQUIRED
    VALUENAME "iPageUnits"
    ITEMLIST
    NAME "Points" VALUE NUMERIC 0
    NAME "Inches" VALUE NUMERIC 1
    NAME "Millimeters" VALUE NUMERIC 2 DEFAULT
    NAME "Centimeters" VALUE NUMERIC 3
    NAME "Picas" VALUE NUMERIC 4
    END ITEMLIST
    END PART
    END POLICY
    END CATEGORY
    END CATEGORY
    END CATEGORY
    END CATEGORY
    [strings]
    YOUR_COMPANY_NAME_GOES_HEREHeader=YOUR HEADER HERE
    ExplainNosplash="When disabled, the program will not display a splashscreen on startup.\n\nWhen enabled, the splashscreen will be displayed."
    ExplainProtectedMode="When disabled, the program will not run in Protected Mode.\n\nWhen enabled, Protected Mode will run, and may cause compatibility errors.\n\nSee http://kb2.adobe.com/cps/860/cpsid_86063.html for more details."
    ExplainOrgName="Enter the organization name by typing it in."
    ExplainConnection="To specify LAN, set the connection speed to 10000000."
    ExplainPageUnits="Set the page unit from the drop-down list.\n\nThe default is millimeters."
    ExplainDictionary="Used to specify the default dictionary to spell checking."

  • Disable Protected Mode Reader 11

    All,
    I have found articles on Adobe's website about disabling protected mode -
    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Acrobat Reader\11.0\FeatureLockDown]
    "bProtectedMode"=dword:00000000
    [HKCU\Software\Adobe\Acrobat Reader\11\Priviledged]
    "bProtectedMode"=dword:00000000
    With both these settings turned on when you start up adobe and view edit > preferences it displays protected mode as being disabled however if I open task manager then open adobe reader I can see 1 instance of AcroRD32.exe - when I then open a PDF file via file > open browser to a PDF file I can see another 2 instances of AcroRD32.exe inside task manager. I thought this behavior was down to PM being enabled as it would spawn multiple instances of this to ensure it runs in sandboxing mode? The problem I have is we use an application inhouse which whitelist's only approved .dll's and .exe's and because Reader continues to spawn multiple instances of Reader even with these registry settings enabled I continue to hit issues getting Reader to work with my whitelist application.
    Is there a way that when you open Reader it will only ever open 1 instance of AcroRD32.exe or is the behavior I am seeing by design even with Protected Mode disabled?
    Thanks

    Solution : Open OSD file and modify the part "Policies"
    <POLICIES>
    <LOCAL_INTERACTION_ALLOWED>TRUE</LOCAL_INTERACTION_ALLOWED>
    <VIRTUAL_FILE_SYSTEM_PASS_THROUGH>TRUE</VIRTUAL_FILE_SYSTEM_PASS_THROUGH>
    <VIRTUAL_REGISTRY_PASS_THROUGH>TRUE</VIRTUAL_REGISTRY_PASS_THROUGH>
    <ENFORCE_ACLS_ON_VREG_MODIFY>TRUE</ENFORCE_ACLS_ON_VREG_MODIFY>
    </POLICIES>

  • [SOLVED] Disabling N mode: possible? (iwl4965)

    Hey guys, I have an Intel 4965 802.11abgn wireless card.
    I have been getting download speeds significantly lower than what I expect and what I get with Windows Vista on the same machine.
    For example, with the easylist.com Arch mirror I usually get about around 1mbps on other computers. With this one, I get between 60-200kbps.
    This happened in Vista as well, but I fixed the problem by disabling N mode in a device manager. I guess our router doesn't support it. So, my question is this: is there a way for me to disable N mode under Linux? It'd be great to get my regular download speeds back. Thanks!
    Last edited by wirenik (2008-12-05 01:39:17)

    lucke wrote:Try loading the module with "modprobe module_name that_option=1" (rmmod it first). If it works, add "options module_name that_option=1" to /etc/modprobe.conf to make it permament.
    I did it!
    $ modprobe -r iwlagn
    $ modprobe iwlagn 11n_disable=1
    Now I get up to nearly 2mbps from easynews, and download speeds everywhere else are soaring too. Thanks a million for the help, everyone!

  • Disable clamshell mode via Terminal

    Hi everyone.
    Is there any way to disable "clamshell mode" and avoid my MacBook Pro waking up seconds after I close the lid?. I always use my MBP17 with a magic mouse, usb hub, external monitor and plugged magsafe but using both screens at the same time. I just would like to close the lid and enter sleep mode while I go away from my mac for five minutes without having to unmount drives, unplug magsafe and turn off mouse. It's crazy!!. I still can't believe there is no preference for that.
    I know thats the wanted behaviour for using the external display with the macbook screen off but I just wanna send my mac to sleep for God sake!!
    Thanks in advance and excuse my poor english.

    Your English is much better than that of some native English speakers who post here.
    Your MBP's waking up immediately after being closed, without your doing something to cause it, is *not a feature of clamshell mode.* In clamshell mode, the expected behavior is that the machine will sleep when the display is closed, and you will then wake it and bring the external display into operation *by pressing a key on the external keyboard.* If you don't do that, it stays asleep. So clamshell mode doesn't need to be disabled to stop the behavior that's annoying you, because that behavior has nothing to do with clamshell mode.
    Instead, you need to determine which of the devices you are using with the MBP is interrupting sleep. This is nearly always caused by a USB device that doesn't understand sleep, and tries to communicate with the computer while it sleeps — which causes it to wake up. It may be your keyboard, your mouse, an external drive, a printer, scanner, ExpressCard device, Bluetooth cell phone, or even an SD card in the built-in card reader, if you have one. So first turn Bluetooth off and close the display to test for a change in behavior. If the MBP still wakes up a minute later, that wasn't the culprit. Disconnect your other peripheral devices one at a time, testing again after each disconnection, until you discover which device is responsible.

  • How can I disable Safe Mode permanently?

    I'm one of many people who use a Firefox addon called 'Leechblock' to help combat the tendency to waste time online by visiting time-wasting sites, or in my case - visiting porn sites. Leechblock helped, because it allowed me to ban the sites and search terms I would habitually go for. The only problem is that I'm now aware I can circumvent the whole ban thing by hitting 'Shift' when I click FIrefox and opening up the Safe Mode, this allows me to freely search for porn and\or disable the addon.
    I know that several other people use Leechblock for the same purpose, and we've all come up against this - if we could disable Safe mode on our own version of Firefox, it'd take considerably more effort to get back in and fall back to those bad habits.
    Others have posted instructions for disabling Safe Mode, but they've only worked with much older versions of Firefox. Is anyone with the experience able to dedicate a little bit of time to figuring out and explaining for the non-technical user how to do this on the latest version of Firefox?
    Your help would be much appreciated, not only by me but by others with the same issue. Thanks!

    See:
    *CCK2 Wizard: https://addons.mozilla.org/firefox/addon/cck2wizard/

  • Safari won't let me disable safety mode for Youtube

    Hi community,
    I have tried a number of ways to do this and consistently failing. Youtube is locked into safety mode and I cannot disable it. My Google account is not in safety or filtering mode. Youtube works fine when I log in on Firefox. But when in Safari, and I scroll to the bottom of the Youtube page and click disable safety mode, the screen does not return to Youtube it goes nowhere, and when I get back on, safety mode is STILL ACTIVATED. This only happens when I'm using Safari. Can anyone help? I'm on a pretty old Safari I must admit - 5.1.10 - but I never used to have this issue until fairly recently. I don't know how it happened!?

    Tried removing cookies?
    Safari > Preferences > Privacy
    Press the "Details" button.
    Press "Remove All" button.

  • Why i cant watch youtube as youtube inform this "This video is unavailable with safety Mode enabled. To view this video, to need to disable safety mode" how can i turn off safety mode

    Why i cant watch youtube as youtube inform this "This video is unavailable with safety Mode enabled. To view this video, to need to disable safety mode" how can i turn off safety mode
    Why i cant watch youtube as youtube inform this "This video is unavailable with safety Mode enabled. To view this video, to need to disable safety mode" how can i turn off safety mode

    You need to disable Safety Mode at the bottom of the YouTube page. More info here:
    https://support.google.com/youtube/answer/174084?hl=en

  • Disable Protected Mode the easy way

    I have created a script to disable protected mode in Adobe flash player after it is installed. I see a lot of this being done for various reasons. If anyone is interested in it, as it is a quick and easy way to do so, you dont have to go fooling with OS files.
    You can read about it below
    http://firefoxcrash.blogspot.com/2013/12/disable-protected-mode-in-adobe-flash.html
    Best Regards

    Protected Mode is win only fearture. http://blogs.adobe.com/asset/2010/07/introducing-adobe-reader-protected-mode.html

  • How do I disable Protected Mode at startup on Reader XI

    fallowing the instructions on:
    http://helpx.adobe.com/acrobat/kb/protected-mode-troubleshooting-reader.html
    I went  to "Edit > Preferences > General Tab".  The objective wasa to uncheck "Enable Protected Mode at startup".  The page was written for Reader X on Reader XI I couldn't find "Enable Protected Mode at startup" on the Gernal tab.  How do I disable Protected Mode at startup on Reader XI?

    Dragon NaturalySpeaking software doesn't work on FireFox in with Reader in Protected Mode.
    I see no hope for the future of our people if they are dependent on the frivolous youth of today, for certainly all youth are reckless beyond words. When I was a boy, we were taught to be discreet and respectful of elders, but the present youth are exceedingly disrespectful and impatient of restraint.
    - Hesiod, eighth century B.C.E..

  • Disable Protected Mode

    I have installed Reader 10.0.1 on my MacBook (OS X 10.6.3).
    I am trying to disable protected mode in order to view a particularly troublesome file/document. Where is the configuration panel that will allow me to toggle on/off "Enable Protected Mode at Startup"?
    I've seen it suggested that this panel is located under Edit > Preferences > General, but my version of Reader does not present this as an option (ie. there is no "Preferences" option under the Edit tab). There is a Preferences option under the main Adobe Reader tab, but I do not see the Protected Mode toggle button under this option...

    Protected Mode is win only fearture. http://blogs.adobe.com/asset/2010/07/introducing-adobe-reader-protected-mode.html

  • Disable read mode by default during installation

    I am currently trying to disable read mode by default as a part of the software installation.
    I have searched the msi file using the customization wizard but have not found any part of it that refers to this setting.
    Is there a reg key or a setting in the MSI I can change to disable this setting?
    Edit:
    This is for Reader X

    I have been able to figure out the answer, so I'll put it into here in case anyone else wants to do this.
    The following registry key has to be added to the msi or mst
    HKCU > Software > Adobe > Acrobat Reader > 10.0 > AVGeneral
    Dword - bBrowserDisplayInReadMode = 0

  • How to disable safe mode on xperia z1,power and volume button doesn't work

    How to disable safe mode on xperia z1,power and volume button doesn't work

    Hi rafharum,
    Welcome to the community! Since you're new please be sure that you have checked out our Discussion guidelines.
    A simple restart to the device would generally resolve this issue, however if the power key and Volume key are not working they may very well be causing the handset to execute safemode when ever you power the device on.
    If this is the case, you will need to get the handset to a service agent for assessment. Please use the link below to contact Sony Mobile Customer Care directly.
    http://support.sonymobile.com/global-en/contactUs/
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Disable Cache mode for a specific Mailbox

    Hi
    Is it posibble disable cache mode for a specific mailbox ??

    As per the information and details provided by you, to disable Cache Mode for a specific mailbox, please follow these steps: -
    The information provided by
    Amy.Wang is correct, Exchange has no built in function to disable cached mode for a specific mailbox. And to
    configure Cached Exchange mode setting by using Group Ploicy, please follow these steps: -
    To do this, first you need to download
    custom administrative template.
    Download and extract the templates to your domain controller.
    Start > Admistrative tools > Group Policy Management Console > either create a new policy and link it to your
    USERS or edit an existing policy.
    Navigate to:
    User Configuration > Policies > Administartive Templates
    Right click >
    Add/Remove Templates.
    Add > Navigate to the folder where you extracted the templates >
    ADM Folder > en-us folder (change depending on your locale) > Outlk14.adm > Open.
    Now Navigate to:
    User Configuration > Policies > Administrative Templates > Classic Administartive Templates > Microsoft Outlook 2010 > Account Settings > Exchange > Cached Exchange Mode.
    Locate “Use Cached Exchange Mode for new and existing Outlook profiles”
    Set the policy to
    Disabled > Apply OK > Close the policy editor. Locate “Use Cached Exchange Mode for new and existing Outlook Profiles”
    Then get the clients to log off and back on again, wait a couple of hours, or manually run
    “gpupdate/ force” on them.
    I hope this information will be helpful for you.
    Thanks and regards
    Ashish@V

  • Disable "Safe Mode with Networking in Windows 7"

    Hello,
    Does anyone know, how to disable "Safe Mode With Networking" option from Windows 7 boot menu?
    Kind Regards
    Kalle Reivilä

    Hi,
    Base on my research, there’s no official method to disable Safe Mode with networking in Windows 7.
    Thank you for your understanding.
    Regards,
    Leo  
    Huang
    Leo Huang
    TechNet Community Support
    Thank You .This is what I was afraid.
    I work  at school and We have one problematic classroom. It's http traffic is blocked by a FSecure's firewall, but students have figured out a way. They boot computers to safe mode with networking and after that
    they have access to the Internet! Now We have to change Microsofts's own firewall.
    Regards,
    Kalle Reivilä

Maybe you are looking for