f



java.lang.NullPointerException - at org.postgresql.Connection.ExecSQL(Connection.java:312)

>>>>>Hi!
>>>>>
>>>>>We are experiencing problems on a live application and are getting intermittent errors. The stack trace is as follows. As the system is live, this is urgent.
>>>>>
>>>>>java.lang.NullPointerException
>>>>>      at org.postgresql.Connection.ExecSQL(Connection.java:312)
>>>>>      at org.postgresql.jdbc2.Connection.setAutoCommit(Connection.java:141)
>>>>>      at org.enhydra.jdbc.standard.StandardXADataSource.getFreeConnection(StandardXADataSource.java:392)
>>>>>      at org.enhydra.jdbc.standard.StandardXAConnection.getConnection(StandardXAConnection.java:124)
>>>>>      at org.enhydra.jdbc.pool.StandardPoolDataSource.getConnection(StandardPoolDataSource.java:186)
>>>>>      at org.enhydra.jdbc.pool.StandardPoolDataSource.getConnection(StandardPoolDataSource.java:152)
>>>>>      at com.mphasis.give.common.utilities.DatabaseUtil.getConnection(DatabaseUtil.java:46)
>>>>>      at com.mphasis.give.payment.CartDAO.addToCart(CartDAO.java:161)>>>>>

>>>>>We are using JOTM..............

Any help would be appreciated.

Regards,
Dhaval


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

0
dhaval
12/8/2003 6:12:43 AM
comp.databases.postgresql.bugs 1041 articles. 0 followers. Post Follow

1 Replies
948 Views

Similar Articles

[PageSpeed] 48


On Mon, 8 Dec 2003, Dhaval Bhagat wrote:

> >>>>>Hi!
> >>>>>
> >>>>>We are experiencing problems on a live application and are getting intermittent errors. The stack trace is as follows. As the system is live, this is urgent.
> >>>>>
> >>>>>java.lang.NullPointerException
> >>>>>      at org.postgresql.Connection.ExecSQL(Connection.java:312)
> >>>>>      at org.postgresql.jdbc2.Connection.setAutoCommit(Connection.java:141)
> >>>>>      at org.enhydra.jdbc.standard.StandardXADataSource.getFreeConnection(StandardXADataSource.java:392)
> >>>>>      at org.enhydra.jdbc.standard.StandardXAConnection.getConnection(StandardXAConnection.java:124)
> >>>>>      at org.enhydra.jdbc.pool.StandardPoolDataSource.getConnection(StandardPoolDataSource.java:186)
> >>>>>      at org.enhydra.jdbc.pool.StandardPoolDataSource.getConnection(StandardPoolDataSource.java:152)
> >>>>>      at com.mphasis.give.common.utilities.DatabaseUtil.getConnection(DatabaseUtil.java:46)
> >>>>>      at com.mphasis.give.payment.CartDAO.addToCart(CartDAO.java:161)>>>>>
>
> >>>>>We are using JOTM..............
>

You have not indicated what version of the JDBC driver you are using, but
the fact that it has org.postgresql.Connection indicates that it is from
the 7.2 series at the newest.  Try upgrading to a newer version from
http://jdbc.postgresql.org/download.html

Kris Jurka


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly

0
books
12/9/2003 9:07:45 PM
Reply: