Hi,
I tried disabling auto-commit mode. It fails in the autocommit statement
itself.
JS
-----Original Message-----
From: Girish Sahu [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 12:48 PM
To: [EMAIL PROTECTED]
Subject: Re: JDBC help --- Its off topic
Hi JS
By default, new connections are in auto-commit mode.
you got to disable that,if you want to use commit method
girish
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Singh, Jasbinder
Sent: Friday, February 16, 2001 3:24 PM
To: [EMAIL PROTECTED]
Subject: JDBC help --- Its off topic
Hi All,
I am facing a JDBC problem in one of my beans.
I update a table and then commit it. I get an exception at the point of
commit.
try
{
no_of_records=stmt.executeUpdate(query);
}
catch(SQLException e)
{ throw e; }
try
{
conn.commit();
}
catch( SQLException e )
{
throw e;
}
The exception is :
java.sql.SQLException
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.sql.SQLException.<init>(Compiled Code)
at com.informix.util.IfxErrMsg.getSQLException(Compiled Code)
at com.informix.jdbc.IfxSqliConnect.commit(Compiled Code)
at RangeBean.updCalValues(Compiled Code)
at TestCalUpdate.main(Compiled Code)
java.sql.SQLException -79744
I am using Informix database. The table still gets updated.
Could somebody help me out.
Thanks
JS
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets