Home > Archive > SQL Server JDBC > March 2006 > RE: NullPointerException in CallableStatement of Sql server 2005 d









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: NullPointerException in CallableStatement of Sql server 2005 d
Kotha

2006-03-21, 8:23 pm

Herlani,

Thanks for the reply. But our SP accepts 31 params and I am trying to
retrieve 30th one. Even if I am trying to retrieve an out of bound param,
driver code should not crash, it should give some error code with valid
explanation.

Also we are getting null pointer exceptions for many of our stored
procedures, but the stack trace is different from last one. (Actual code was
like call.getInt(2))

java.lang. NullPointerException

com.microsoft.sqlserver.jdbc.StreamRetValue.deserialize(Unknown Source)
com.microsoft.sqlserver.jdbc. SQLServerCallableSta
tement. indexOutParams(Unkno
wn Source)
com.microsoft.sqlserver.jdbc. SQLServerCallableSta
tement. getOutParameters(Unk
nown Source)
com.microsoft.sqlserver.jdbc. SQLServerCallableSta
tement. getterGetParam(Unkno
wn Source)
com.microsoft.sqlserver.jdbc. SQLServerCallableSta
tement.getInt(Unknown Source)
com.ibm.ws.rsadapter.jdbc. WSJdbcCallableStatem
ent. getInt(WSJdbcCallabl
eStatement.java:390)
com.xyz.SecurityDAO.logon(SecurityDAO.java:153)

Thanks,
Kotha.
"HERLANI JUNIOR" wrote:
[color=darkred]
> Kotha,
>
> Are you sure, that the call are you doing has 30 output parameters ?
>
> Look the exception:
> com.microsoft.sqlserver.jdbc. SQLServerCallableSta
tement.indexOutParams
>
> Rgds,
>
>
>
> "Kotha" wrote:
>
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com