Welcome to dbFreaks.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Stored procedure error ....

 
   Database Help (Home) -> Java RSS
Next:  jdo api datastore  
Author Message
Raquel

External


Since: Jun 09, 2004
Posts: 3



(Msg. 1) Posted: Wed Jun 09, 2004 5:14 am
Post subject: Stored procedure error ....
Archived from groups: comp>lang>java>databases (more info?)

Trying to use the "DB2 Development Center" on UDB V8 on my Windows XP. I am
new to java stored procedures.

The stored procedure code I am using is at:
<a style='text-decoration: underline;' href="https://www6.software.ibm.com/dw/education/dm/db2spdc/sp.java" target="_blank">https://www6.software.ibm.com/dw/education/dm/db2spdc/sp.java</a>

I was able to successfully 'build' the stored procedure that I created
using Development Center, however, at run time it is showing the following
error:

A database manager error occurred.[IBM][CLI Driver][DB2/NT] SQL4302N
Java stored procedure or user-defined function
"DB2ADMIN.CHECKRETAILERCREDIT", specific name "SQL040608143836354"
aborted with an exception "". SQLSTATE=38501

Following is the output from db2diag.log:

/Output-start/

2004-06-09-09.48.39.030000 Instance:DB2 Node:000
PID:2512(db2fmp.exe) TID:1884 Appid:none
BSU Java support sqlejCallJavaRoutine_dll Probe:315

Exception thrown during routine invocation:

0x0012F2EC : 0x00E9D060 `...

2004-06-09-09.48.39.186000 Instance:DB2 Node:000
PID:2512(db2fmp.exe) TID:1884 Appid:none
BSU Java support sqlejLogException Probe:10

ADM10000W A Java exception has been caught. The Java stack traceback
has been
written to the db2diag.log.

2004-06-09-09.48.39.186001 Instance:DB2 Node:000
PID:2512(db2fmp.exe) TID:1884 Appid:none
BSU Java support sqlejLogException Probe:10

java.lang.NullPointerException
  at CheckRetailerCredit.checkRetailerCredit(CheckRetailerCredit.java:42)

0x0012F13C : 0x00000000 ....

2004-06-09-09.48.39.201000 Instance:DB2 Node:000
PID:2512(db2fmp.exe) TID:1884 Appid:none
routine_infrastructure sqlerJavaCallRoutine Probe:30

Error from DB2ER CallUDF. RC:

0x0012F3F8 : 0xFFFFEF32 2...

/Output-end/

Guess, it can be surmised that it is a NullPointerException. Any ideas
why it could be so?

TIA
Raquel.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Stored procedure error .... 
Back to top
Login to vote
Raquel

External


Since: Jun 09, 2004
Posts: 3



(Msg. 2) Posted: Wed Jun 09, 2004 8:39 am
Post subject: Re: Stored procedure error .... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ok, looking more closely at the Stored procedure code in
https://www6.software.ibm.com/dw/education/dm/db2spdc/sp.java , it has the
following piece of code:

while (rs1.next())
{.....}

How is rs1 being populated?? I don't see it in the code. Should there not
have been something along these lines in the code:

rs1 = stmt.getResultSet();

Is the above piece of code missing and is this the reason why the code is
throwing a NullPointerException?

TIA
Raquel.

 >> Stay informed about: Stored procedure error .... 
Back to top
Login to vote
jim caprioli1

External


Since: Jun 10, 2004
Posts: 1



(Msg. 3) Posted: Thu Jun 10, 2004 3:54 am
Post subject: Re: Stored procedure error .... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

stmt.getResultSet(); ????????????????????????????????????????
LOL

On Wed, 09 Jun 2004 05:39:45 -0400, Raquel <raquel DeleteThis @nospam.com> wrote:

 > ok, looking more closely at the Stored procedure code in
 > <a style='text-decoration: underline;' href="https://www6.software.ibm.com/dw/education/dm/db2spdc/sp.java" target="_blank">https://www6.software.ibm.com/dw/education/dm/db2spdc/sp.java</a> , it has
 > the
 > following piece of code:
 >
 > while (rs1.next())
 > {.....}
 >
 > How is rs1 being populated?? I don't see it in the code. Should there not
 > have been something along these lines in the code:
 >
 > rs1 = stmt.getResultSet();
 >
 > Is the above piece of code missing and is this the reason why the code is
 > throwing a NullPointerException?
 >
 > TIA
 > Raquel.
 >
 >



--
<a style='text-decoration: underline;' href="http://NiLOSTEP.com/" target="_blank">http://NiLOSTEP.com/</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Stored procedure error .... 
Back to top
Login to vote
Raquel

External


Since: Jun 09, 2004
Posts: 3



(Msg. 4) Posted: Thu Jun 10, 2004 4:05 am
Post subject: Re: Stored procedure error .... [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ok Jim, I did not get the pun. Are you suggesting that "rs1 =
stmt.getResultSet();" should HAVE been there in the stored procedure code
or are you suggesting that it is redundant.

TIA
Raquel.
 >> Stay informed about: Stored procedure error .... 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Error returning REF CURSOR - Hello, I'm trying to invoke a PLSQL function returning a REF CURSOR I'm using OracleCallableStatement .... and this is the code: =================CODE======================= Connection conn = null; OracleCallableStatement..

SQLServer 2000 Driver for JDBC behaviour on SQL Server res.. - 1) My java code properly connects to the SQL Server DB via the SQL Server 2000 JDBC driver. 2) During one of our stress tests, we restarted the SQL Server to see how the code handles it. 3) My code doesn't really recognize that the SQL server is up and m...

Displaying contents from database in an applet - I have created a connection to an MSAccess database, but I am unable to display the results in an webbrowser. My question is therefore how do I retrieve and displaty the records of my database on a webpage? Kind regards Johan Reimers

Hibernate and log4j config under Tomcat. - "Under Tomcat 3.x and 4.x, you should place the log4j.properties under the WEB-INF/classes directory of your web-applications. Log4j will find the properties file and initialize itself. This is easy to do and it works." "The XML configu...

Java &amp; MySQL show table status command - Hi, I am using java to retrieve a resultset with "show table status" mysql command. I am having problem reading the [name] and [engine] column. In the metadata object it is showing as VARCHAR but when I do getString() it is returning me the o...
   Database Help (Home) -> Java All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]