NullPointerExceptions using CallableStatement
- From: davidgodf@xxxxxxxxx
- Date: 21 Jul 2006 06:53:19 -0700
Hi,
I have come across the following problem using the SQLServer 2000 JDBC
drivers. We need to execute a stored proc on SQLServer, from within a
J2SE app (Java 1.4). We are using a CallableStatement to execute the
stored proc, however, unless we turn on implicit transactions within
the SQL of the stored procedure, when I call
CallableStatement.getResultSet, a null pointer exception is thrown. If
I refactor the code to use a Statement class, and simply execute an SQL
string as if I were executing the stored proc from query analyzer, it
works without requiring implicit transactions.
Any suggestions? The reason for not wanting to have implicit
transactions turned on if that MSDTC seems to be failing often, which
is a seperate problem we're looking at!!
.
- Follow-Ups:
- Re: NullPointerExceptions using CallableStatement
- From: joeNOSPAM@xxxxxxx
- Re: NullPointerExceptions using CallableStatement
- Prev by Date: Integrating w/ 3rd party TransactionManager?
- Next by Date: Re: NullPointerExceptions using CallableStatement
- Previous by thread: Integrating w/ 3rd party TransactionManager?
- Next by thread: Re: NullPointerExceptions using CallableStatement
- Index(es):
Relevant Pages
|
Loading