MySQL -- Cannot disable AUTO_COMMIT

Hi
I have problem with mySQL, the following is the exceptions thrown. I'm using
mySQL v3.23.47
Can anyone tell me what's wrong?
Thanks!
Exception in thread "main" javax.jdo.JDOException: Cannot disable
AUTO_COMMIT
NestedThrowables:
java.sql.SQLException: Cannot disable AUTO_COMMIT
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newObjectId(J
DBCStoreManager.java:385)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFil
ter(PersistenceManagerImpl.java:670)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(Pe
rsistenceManagerImpl.java:651)

Hi Patrick,
Here is the output of the exception, it throws when I call
makePersistent(Object).
java.sql.SQLException: Cannot disable AUTO_COMMIT
at org.gjt.mm.mysql.Connection.setAutoCommit(Connection.java:396)
at
com.solarmetric.kodo.impl.jdbc.datasource.ConnectionImpl.setAutoCommi
t(ConnectionImpl.java:157)
at
com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.updateSequenc
e(DBSequenceFactory.java:231)
at
com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory.getNext(DBSeq
uenceFactory.java:99)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.newObjectId(J
DBCStoreManager.java:381)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistentFil
ter(PersistenceManagerImpl.java:670)
at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.makePersistent(Pe
rsistenceManagerImpl.java:651)
"Patrick Linskey" <[email protected]> wrote in message
news:[email protected]..
Hey,
Could you please post the full stack trace of the nested SQLException?
To do this, put code something like this around wherever the exception
is caught:
try
catch (JDOException jdoe)
Throwable[] ts = jdoe.getNestedExceptions ();
for (int i = 0; ts != null && i < ts.length; i++)
ts.printStackTrace ();
Thanks,
Patrick
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com

Similar Messages

  • Exception accessing MySql: Cannot disable AUTO_COMMIT

    How can I avoid this exception?
    finder-query is defined in weblogic-cmp-rdbms-jar.xml as:
    <finder-query><![CDATA[(= surName $0)]]></finder-query>
    javax.ejb.FinderException: Problem preparing or executing statement: 'SELECT ejbTest_
    ID, firstname, surname, sex FROM cp WHERE (surname = ?)':
    java.sql.SQLException: Cannot disable AUTO_COMMIT
    at org.gjt.mm.mysql.Connection.setAutoCommit(Connection.java:396)
    at weblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java
    :619)
    at weblogic.jdbcbase.jts.Connection.prepareStatement(Connection.java:135)
    at de.duit.ejb.ContactPartnerPSWebLogic_CMP_RDBMS.findBySurname(ContactPartne
    rPSWebLogic_CMP_RDBMS.java:556)
    at de.duit.ejb.ContactPartnerBeanHomeImpl.findBySurname(ContactPartnerBeanHom
    eImpl.java:99)
    at de.duit.ejb.ContactPartnerBeanHomeImpl_WLSkel.invoke(ContactPartnerBeanHom
    eImpl_WLSkel.java:134)
    at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectA
    dapter.java:347)
    at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHand
    ler.java:69)
    at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java
    :15)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
    at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:7
    6)
    at de.duit.ejb.ContactPartnerBeanHomeImpl_WLStub.findBySurname(ContactPartner
    BeanHomeImpl_WLStub.java:350)
    at de.duit.ejb.ContactPartnerBeanHomeImpl_ServiceStub.findBySurname(ContactPa
    rtnerBeanHomeImpl_ServiceStub.java:237)
    at EjbTester.main(EjbTester.java:69)
    Please contact me by email if possible.
    Thanks a lot,
    Dirk

    Hi!
    "Joseph Weinstein" <[email protected]> wrote in message
    news:[email protected]..
    Dirk wrote:
    How can I avoid this exception?Hi. Weblogic interacts via standard JDBC calls to enact transactionsaccording to the
    JDBC and EJB specs. I believe MySql and/or that JDBC driver doesn'tqualify as a
    fully functional DBMS. If it cannot implement the semantics ofautoCommit(false), it
    is unuseable for multiple-statement transactions which require standardACID properties.
    MySQL supports transactions with InnoDB and BDB type tables if you run the
    MySQL-Max standard distribution from www.mysql.com. The SQL command to set
    the autocommit off is
    SET AUTOCOMMIT=0
    The mm.MySQL JDBC driver below seems to fail in setting it off. Please check
    that you are running MySQL-Max, and that you have the latest version of
    mm.MySQL.
    The recent eWEEK benchmark
    http://www.eweek.com/article/0,3658,s=708&a=23115,00.asp
    was run with Weblogic on MySQL with InnoDB tables. Thus we know it is
    possible to get Weblogic working on MySQL/InnoDB.
    Best regards,
    Heikki Tuuri
    Innobase Oy
    InnoDB - transactions, row level locking, and foreign key support for MySQL
    See http://www.innodb.com, download MySQL-Max from http://www.mysql.com
    Joe
    finder-query is defined in weblogic-cmp-rdbms-jar.xml as:
    <finder-query><![CDATA[(= surName $0)]]></finder-query>
    javax.ejb.FinderException: Problem preparing or executing statement:
    'SELECT ejbTest_
    ID, firstname, surname, sex FROM cp WHERE (surname = ?)':
    java.sql.SQLException: Cannot disable AUTO_COMMIT
    atorg.gjt.mm.mysql.Connection.setAutoCommit(Connection.java:396)
    atweblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java
    :619)

  • Java.sql.SQLException: Cannot disable AUTO_COMMIT

    Hi,
    I am getting "java.sql.SQLException: Cannot disable AUTO_COMMIT" exception when using mySQL
    with Weblogic 5.1 EJB (through org.gjt.mm.mysql.Driver JDBC driver).
    Can anybody help!!!!!!
    Thank you, Eric
    [email protected]

    eric wrote:
    >
    Hi,
    I am getting "java.sql.SQLException: Cannot disable AUTO_COMMIT" exception when using mySQL
    with Weblogic 5.1 EJB (through org.gjt.mm.mysql.Driver JDBC driver).Hi. I'd have to see the whole stack trace to know for sure, but it looks like the
    DBMS/driver you're using doesn't implement the transactional calls/behavior that
    are required for managing EJB transactions. If you can write a small standalone
    java program that just gets a JDBC connection to your database, then calls setAutoCommit(false),
    then does a few updates, then calls Conenction.commit(), then there may be a weblogic problem,
    but if your simple program gets the same error, you need a transactionally capable DBMS.
    Joe
    Can anybody help!!!!!!
    Thank you, Eric
    [email protected]

  • In Lion 10.7.x I cannot disable the Lock documents for 2 weeks in Time Machine! Thus it prevents to change anything else like the system preferences or other settings. How I can disable it?

    Hello, In Lion 10.7.x I cannot disable the Lock documents for 2 weeks in Time Machine! Thus it prevents to change anything else like the system preferences or other settings. All is locked. How I can disable it?

    Do you mean the check box isn't enabled?
    Or you remove the check but it doesn't "stick"?
    Or you remove the box but documents are stil getting locked?
    That setting doesn't apply to other things in System Preferences, just apps that support AutoSave and Versions.  If you're having a problem with System Prefs, please clarify exactly what.

  • I cannot disable the full keyboard  navigation

    Hello I have quite a problem.
    As it says above, I cannot disable the full keyboard navigation option, whenever I try to, it re-activates itself in the preferences, even if I just change tabs and return within the preferences.
    Furthermore, the keys seem to activate oddly, as I do not know of any shortcuts bound to the S key (JUST the s key), which commonly causes Itunes to skip forward a track in whatever playlist I am playing.
    I have tried changing the other preferences, and I can change them with no difficulties, it is just the Keyboard navigation that is giving me problems.
    Any help would be appreciated.
    Thank you in advance.

    On second thought... The help article cor-el linked mentions that Firefox may prompt you every time if the file is sent with the disposition:attachment header, i.e., forced save. You can bypass that problem (change disposition:attachment to disposition:inline) using the Inline Disposition extension. It has been around for a while, but I haven't tried it myself: [https://addons.mozilla.org/en-US/firefox/addon/inlinedisposition/]. Maybe that's what you need for Gmail.

  • Cannot disable a mailbox in Exchange 2013 CU6!?!?!?!

    I cannot disable a mailbox in Exchange 2013 CU6. I get the following error:
    Anyone seen this error? As you know, I just want to remove the Exchange attributes from the user object in Active Directory. Of course, deleting the user object works just fine but don't want to go that route. 

    I tried with the EMS (Powershell) and I still get an error:
    [PS] C:\>disable-mailbox [email protected]
    Confirm
    Are you sure you want to perform this action?
    Disabling mailbox "[email protected]" will remove the Exchange properties from the Active Directory user object and mark the mailbox in the database for removal. If the mailbox has an archive or remote archive, the archive will also
    be 
    marked for removal. In the case of remote archives, this action is permanent. You can't reconnect this user to the remote archive again.
    [Y] Yes  [A] Yes to All  [N] No  [L] No to All  [?] Help (default is "Y"): 
    Y
    Active Directory operation failed on LocalDCName.local.com. This error is not retriable. Additional information: The parameter is incorrect.
    Active directory response: 00000057: LdapErr: DSID-0C090CB9, comment: Error in attribute conversion operation, data 0, v2580
        + CategoryInfo          : NotSpecified: (:) [Disable-Mailbox], ADOperationException
        + FullyQualifiedErrorId : [Server=LA-MBX01Server,RequestId=6ed97c1e-ae68-4670-a097-c4e65f683274,TimeStamp=11/18/2014 7:50:07 PM] [FailureCategory=Cmdlet-ADOperationException] 8D6C0FEB,Microsoft.Exchange.Management.RecipientTasks.Disable 
       Mailbox
        + PSComputerName        : LocalDCName.local.com
    I captured everything with the START-TRANSCRIPT cmdlet and changed the specific values to our organization (i.e., "[email protected]" and "LocalDCName.Local.com"). I've tried this on other mailboxes and I receive the same error whether
    I use EMC or EMS. I believe this might be AD schema related just not sure where.

  • Cannot disable the tax-only calculation in a AR Credit Notes document

    Hello,
    When trying to raise a tax only credit the following error message appears "Cannot disable the tax-only calculation in a AR Credit Notes document that was based on another document"
    I have two lines specified in the AR Credit Note screen both with a tick under the 'Tax only' column.
    Would anyone be able to advise?
    Regards,
    Juan

    Hi,
    Just to confirm you there is no option for this. If you have created the invoice(base document) for that then you cant change it in target document..
    Other wise you can do one thing while copying it in target doc. just select customize option in copy from--> draw document wizard & select the right items you want.
    Regards.
    ShriX.

  • Cannot disable Homes: Enable Virtual Share Points

    Hello,
    We just installed 10.5 server this morning, and many things seem to be a big improvement-- e.g., the new version of Samba (3.0.25) now allows AD transitive trust users to connect, whereas 10.4's Samba (3.0.10) did not. But the problem now is: we cannot disable the virtual share points for homedirs on Samba. In Server Admin, if you uncheck the checkbox and hit "Apply", the GUI rechecks it.
    10.4 Server has this same configuration option, and it works as expected. I did a little investigation with the serveradmin command-line tool on our Leopard machine, and this tool exhibits the same problem. For example:
    floydpepper:/ admin$ sudo serveradmin settings smb:adminCommands:homes = no
    Password:
    smb:adminCommands:homes = yes
    For reference, we are set up as a Domain Member for Active Directory. We do not have any schema additions (for Mac stuff, anyway).
    I suspect that maybe there's some configuration option further up that supercedes this, and that's why Server Admin rechecks the checkbox. My guess was that maybe Directory Services was overlaying an attribute on top of AD information. And I see that if I use dscl and look at the attributes for my user in AD, there is indeed an attribute for home folders that clearly does not exist in the AD itself: "NFSHomeDirectory" which is set to /Users/[myusername]
    When I go back and us dscl to lookup the same thing in Tiger Server, Directory Services also appends the NFSHomeDirectory attribute, but without the same side-effect. So I'm probably mistaken that that is the cause.
    Anyone have any pointers? This looks an awful lot like a bug to me.
    Thanks,
    -b
    P.S. I also did have a look at where in smb.conf this is being set-- it is being put in an include'd smb.conf that is stored in /var/run. If I comment out the \[homes\] section, and restart Samba, that /var/run/smb.conf is overwritten with a new autogenerated version. I would just wipe that section out, lock the file, and restart Samba, but I really do want our administrators to be able to use the GUI tools. Otherwise, I would just be using Samba on Linux.

    I was able to "fix" the issue with an ugly workaround by modifying /etc/smb.conf and adding certain values to the [[homes]] share that render it ineffective. I added the following to /etc/smb.conf:
    ; Site-specific parameters can be added below this comment.
    ; END required configuration.
    ; Hack to disable virtual homes
    [[homes]]
    path = /dev/null
    valid users = root
    ; END hack
    With these values added to [[homes]], it is only available to the root user, and even then it would go nowhere. I debugged the issue to the point where it appears that the synchronize-preferences tool (/usr/libexec/samba/synchronize-preferences) ignores user settings for disabling virtual homes. I sent so far as to modify the system default in /System/Library/CoreServices/SmbFileServer.bundle/Resources/ServerDefaults.plis t to see if it was a simple case of default settings overriding user settings, but that also had no effect on the configuration that synchronize-preferences created in /var/db/smb.conf
    I hope this helps you all out.
    Message was edited by: Garret Huntress
    Message was edited by: Garret Huntress

  • Exception Typo: ORA-02297: cannot disable constraint (string.string)

    ORA-02297: cannot disable constraint (string.string) - dependencies exist
    Cause: an alter table disable constraint failed becuase the table has foriegn keys
    that are dpendent on this constraint.
    Action: Either disable the foreign key constraints or use disable cascade
    Note the typo of the word BECAUSE from Version 11R2 back to at least 10R2.
    Thanks.

    Actually, please also correct the words "foriegn" and "dpendent" too!

  • Cannot disable cookies

    iMac 24" OS Lion/ FF 5.0.1 & 6. cannot disable cookies even with permanent private mode ,cookies unchecked & third party unchecked when I open FF there are about 50 cookies I remove them they come right back with out going any where on the web !!!!!!! remove them again ,close FF, open FF they are all back !!! and when I surf the WEB I get MORE !!! ever since I started using Lion !! I now have tons of spam !! it was a Good Install no prob's I prepped for Lion Before Installed. No Issues at all !! Safari is the same way cookies everywhere !!!

    See http://kb.mozillazine.org/Preferences_not_saved and [[Preferences are not saved]]
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Cannot disable or enable Bluetooth with user rights

    Hi,
     If user do not have administrator rights he/she cannot disable or enable bluetooth using Fn+F5 menu.Is there any solution to this problem?

    Still looking for solution....

  • Cannot disable trackpad zooming??

    Am I correct in understanding I cannot disable trackpad zooming on my MacBook Pro? It's getting very annoying scrolling webpages and instead having the text size grow or shrink. Why is this not a feature the user has control over?
    After all the issues I've been having over the last 3 weeks with my 3G iPhone, I shoulda thought a little longer about getting an Apple laptop.
    Message was edited by: johnnycat99

    Dear Apple,
    PLEASE fix this. We aren't all using iPhoto all day long.
    I've never seen something even CLOSE to as irritating as having things constantly getting expanded or contracted in size.
    Better yet. Just bring the button back. It really isn't all that wonderful to have no button. There is no benefit from it (other than aesthetics) and it's created this new "problem" that never existed before.
    Somebody get the Espresso away from Johnny Ive. I think the new trackpad was done just for the sake of change...no real benefit, just a "fun" new problem.

  • Cannot disable spotlight - endlessly indexing

    Hello all,
    I cannot disable spotlight - it is endlessly indexing.  I have dropped the main drive into Provacy under Spotlight.  I have dropped my other 3 drives there as well.  I have taken them out and reurned them many times - no change.  I repaired disk permissions many times - no change.  I downloaded and installed the 10.6.8 Combo update - no change.  It keeps indexing and says: Indexing _____________'s Mac Pro. And the estimated time is not there - just that barber pole.  And I believe it is affecting my applications - I am having major problems with Avid's Pro Tools 9.0.6.
    Is there anything else that I can try?  I do own Spotless but I stopped using it over a year ago - it didn't seem to do anything more than what I could do using the Privacy option.  It it possible that Spotless might be able to do something that I cannot?
    Any ideas would be welcome.

    Maybe some file is corrupt in such a way to hang up spotlight.  Is it possible for you to run with just your boot drive with the other 3 drives physically removed from the machine?  See if it loops that way.  If so something may be going on with the boot drive.  If not, start adding the removed drives back one-by-one until it gets caught in the loop again. 
    If this method works at least you can narrow it down to a specific drive.  Of course that won't tell you what the problem is on that drive but you at least have a single drive to concentrate on as opposed to 4 of them.
    Since you already tried adding these drives to privacy I am not going to suggest the mdutil command to erase the indices (-E) or flag for no indices (-i).  I don't think it will change anything and of course won't resolve why it is looping.
    Also note that this problem is not unique.  Look at the right side of this page for More Like This.
    Related articles:
    Turning Off Spotlight
    The X Lab: Spotlight Tips

  • Cannot Disable Correct Spelling Automatically

    I cannot disable the Correct Spelling Automatically feature.  Rather, I can, but once I close and reopen the application it will be reenabled.  I first noticed the issue when I upgraded from Trillian 1.2.20 to 1.2.40, but I just tested this in TextEdit and the issue exists there as well.

    Philmac88 wrote:
    I cannot disable the Correct Spelling Automatically feature. […] I just tested this in TextEdit
    There are two settings for it.
    One is in Edit > Spelling and Grammar. The other in TextEdit > Preferences > Options.
    If you turn off the former and quit, it will be re-enabled when you open TextEdit again.
    If you turn off the latter and quit, both should be disabled when you open TextEdit again.
    Is this the behaviour you see?

  • Cannot disable DHCP on ACS

    I cannot disable DHCP on a Cisco Secure ACS. I am consoled into the device and run "set ip", choose "yes" for static IP and enter my IP information. However, after save, network test, etc... DHCP is still enabled and grabs an address on reboot. Anyone seen this or have ideas???

    Hi, I had a similar problem on the Appliance (Ver 4.00). After the initial configuration I had to reboot and then re-enter both the IP and hostname. You also have to make sure that when you set up initially that the device is connected to the network. The re-entering the IP address was a TAC recommendation. Hope this helps.

Maybe you are looking for

  • ICal Week view, Date is not aligned with the Time(schedule) of each date

    Well, just like it says over there (`` ). I've recently been to China for a business trip, and I suppose the different time zone may have had something to do with the problem. Now I'm back home, changed the time zone back to normal, still the iCal sh

  • Create a new group in Messaging

    How do you create a new group in messaging, I had to select ios4.33 in the Operating system as ios5 is not available yet

  • Sales Order Free item and Credit Limit Checking

    Hiii Guys, need your help, How to release Sales Order free item when credit limit exceeded ? Here some info : Customer : ABC Credit limit : 50,000.00 Credit Exposure : 52,000.00 Risk Category : 003 High Risk My user want to create sales order for fre

  • Vertical iPhone Footage into Final Cut

    I have some iPhone footage that was shot vertically and needs to stay vertical but straight from the phone (into FCP 6) the footage has to render for extended lengths of time that makes editing a lengthy burden every time you change an opacity or any

  • Insert rows based on column value

    I have customer_ no., Date and no_months as columns. I need to insert in a new table the customer_no as many times as the value of no_months column. Meaning if customer_no is 001 and if months value is 3 then in the new table I want three rows having