Re: NullPointerExceptions using CallableStatement
- From: "joeNOSPAM@xxxxxxx" <joe.weinstein@xxxxxxxxx>
- Date: 21 Jul 2006 07:09:18 -0700
davidgodf@xxxxxxxxx wrote:
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!!
Show us the JDBC code that declares the statement, sets the parameters,
and executes it. Also indicate the exact line of code that produces an
NPE.
GetResultSet() is allowed to return null. I think I know how to help
you....
Joe Weinstein at BEA Systems
.
- Follow-Ups:
- Re: NullPointerExceptions using CallableStatement
- From: davidgodf
- Re: NullPointerExceptions using CallableStatement
- References:
- NullPointerExceptions using CallableStatement
- From: davidgodf
- NullPointerExceptions using CallableStatement
- Prev by Date: NullPointerExceptions using CallableStatement
- Next by Date: Re: NullPointerExceptions using CallableStatement
- Previous by thread: NullPointerExceptions using CallableStatement
- Next by thread: Re: NullPointerExceptions using CallableStatement
- Index(es):
Relevant Pages
|
Loading