If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Java Stored Procedure Build Fails

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-20-03, 18:35
jtang jtang is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Exclamation DB2 Java Stored Procedure Build Fails

Hi,

This is my first post so hopefully it follows the guidelines.

I'm having problems building/compiling a java stored procedure using the Stored Procedure Builder in DB2. I followed the instructions at the following IBM tutorial:

https://www6.software.ibm.com/reg/de...92&S_CMP=DB2DD

Workstation: Windows 2000 sp4
Database Server: Linux Redhat 8.0 3.2-7 (I think)
Database on Server: V8.1.0
- Running DB2 Application Development Client v8 on the workstation
- When I select the java stored procedure to build I get the following message:

***********************************
DB2INST1.checkRetailerCredit - Build started.
C:\SQLLIB\java\jdk\bin\javac -classpath ".;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runti me.zip;C:\SQLLIB\java\sqlj.zip" "CheckRetailerCredit.java"
DB2INST1.checkRetailerCredit - Javac completed.
C:\SQLLIB\java\jdk\bin\jar cf SQL30920013425760.jar CheckRetailerCredit.class
DB2INST1.checkRetailerCredit - Jar file created.
Call sqlj.install_jar ('file:///C|/temp/bld1066682094285/SQL30920013425760.jar', '"DB2INST1".SQL30920013425760', 0)
[IBM][CLI Driver][DB2/LINUX] SQL1042C An unexpected system error occurred. SQLSTATE=58004


DB2INST1.checkRetailerCredit - Build failed.
DB2INST1.checkRetailerCredit - Roll back completed successfully.
**********************************

It seems as though the code is getting compiled and a .jar file is created (all on my local workstation). However, when it goes to try and register it in the actual database (which is on the Linux server) using the Call sqlj.install_jar function it fails at that point.

Is it a configuration problem somewhere? Or is there a service pack out there that will fix this?

Jadie
Attached Files
File Type: txt checkretailercredit.txt (3.3 KB, 76 views)
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On