473,769 Members | 5,173 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

development center build fails


I have DB2 8.1 FP7, when I try to build a Java stored procedure it fails
during a call to DB2_REPLACE_JAR . Even the build folder "bld10965539707 03"
is not there - it has a different name,

regards,
Hubert

DB2ADMIN.PROCED URE2 - Build started.
DROP SPECIFIC PROCEDURE DB2ADMIN.SQL030 805133228210
DB2ADMIN.PROCED URE2 - Drop stored procedure completed.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\javac -classpath
".;C:\PROGRA~1\ IBM\SQLLIB\java \db2java.zip;C: \PROGRA~1\IBM\S QLLIB\java\runt ime.zip;C:\PROG RA~1\IBM\SQLLIB \java\sqlj.zip" ;"c:\jt400.j ar"
procedure22.jav a
DB2ADMIN.PROCED URE2 - Javac completed.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\jar cf SQL307050132170 30.jar
procedure22.cla ss
DB2ADMIN.PROCED URE2 - Jar file created.
Call SQLJ.DB2_REPLAC E_JAR (<<C:\Document s and
Settings\db2adm in\Application
Data\IBM\DB2\DC \Projects\bld10 96553970703\SQL 30705013217030. jar>>,
'DB2ADMIN.SQL30 705013217030')
[IBM][CLI Driver][DB2/NT] SQL0444N Routine "SQLJ.DB2_REPLA CE_JAR"
(specific name "") is implemented with code in library or path "",
function "" which cannot be accessed. Reason code: "". SQLSTATE=42724

DB2ADMIN.PROCED URE2 - Build failed.
DB2ADMIN.PROCED URE2 - Roll back completed successfully.

Nov 12 '05 #1
2 3605
The stored procedure builder and related tools were rebuilt in V82 to
use the Java JCC driver instead of the old JDBC. Due to some
limitations of JCC, DB2 had to implement some cataloged versions of the
SQLJ-schema functions (install_jar, replace_jar) that took BLOB objects
as parameters instead of filenames. Here's a sample java program that
uses them - very basic, it just demonstrates their use:

import java.sql.*;
import java.lang.*;
import java.io.*;

//argv[0] -- database connection string (JCC format)
//argv[1] -- username
//argv[2] -- password
//argv[3] -- first JAR file
//argv[4] -- second JAR file
public class testinstjar
{
public static void main(String[] argv) throws Exception
{
Class.forName(" com.ibm.db2.jcc .DB2Driver").ne wInstance();
Connection conn = DriverManager.g etConnection(ar gv[0], argv[1],
argv[2]);

CallableStateme nt stmt = conn.prepareCal l("CALL
SQLJ.DB2_INSTAL L_JAR(?, ?)");
FileInputStream jarFile = new FileInputStream (argv[3]);
stmt.setBinaryS tream(1, jarFile, jarFile.availab le());
stmt.setString( 2, "MYJARID");
stmt.execute();
System.out.prin tln("Installjar complete");

stmt.close();
stmt = conn.prepareCal l("CALL SQLJ.DB2_REPLAC E_JAR(?, ?)");
jarFile = new FileInputStream (argv[4]);
stmt.setBinaryS tream(1, jarFile, jarFile.availab le());
stmt.setString( 2, "MYJARID");
stmt.execute();
System.out.prin tln("replacejar complete");

stmt.close();
stmt = conn.prepareCal l("CALL SQLJ.REMOVE_JAR (?)");
stmt.setString( 1, "MYJARID");
stmt.execute();
System.out.prin tln("removejar complete");

stmt.close();
conn.close();
}
}

NOTE: at this time, these functions are not documented for a reason --
they are ONLY intended for use with the stored procedure builder.
However, they function exactly like the normal SQLJ-schema functions
that have filenames for parameters, except that instead of filenames, a
BLOB representing the file is given instead.

In this case, although I'm not sure why, it looks like the procedure
builder is passing the engine some bad data (in the form of a
non-existent file) and that's resulting in a funny error.

A -444 usually means that a library (or function on that library) could
not be found, but I don't think that's the case here. I would check the
engine's <install>\bin\r outine (<install> is typically c:\sqllib)
directory and ensure that a file called db2jarsp.dll is present
(assuming your server is on a Windows machine).

However, as you say, the file that is being installed simply does not
exist on your client. That would lead me to think that the problem is
starting on the procedure builder, which then calls the
SQLJ.DB2_REFRES H_JAR() procedure to update the JAR file with some bad
data, which somehow results in the rather unusual -444 error you are seeing.

It might be worthwhile to contact IBM DB2 support about this. It may be
nice for them if you could run the test JAVA program above just to
ensure that the DB2_REFRESH_JAR (and install and remove procedures) are
actually working in normal conditions on your system. Any simple JAR
files will do - so long as they are actual JAR files containing java
classes.

hubert_s wrote:
I have DB2 8.1 FP7, when I try to build a Java stored procedure it fails
during a call to DB2_REPLACE_JAR . Even the build folder "bld10965539707 03"
is not there - it has a different name,

regards,
Hubert

DB2ADMIN.PROCED URE2 - Build started.
DROP SPECIFIC PROCEDURE DB2ADMIN.SQL030 805133228210
DB2ADMIN.PROCED URE2 - Drop stored procedure completed.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\javac -classpath
".;C:\PROGRA~1\ IBM\SQLLIB\java \db2java.zip;C: \PROGRA~1\IBM\S QLLIB\java\runt ime.zip;C:\PROG RA~1\IBM\SQLLIB \java\sqlj.zip" ;"c:\jt400.j ar"
procedure22.jav a
DB2ADMIN.PROCED URE2 - Javac completed.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\jar cf SQL307050132170 30.jar
procedure22.cla ss
DB2ADMIN.PROCED URE2 - Jar file created.
Call SQLJ.DB2_REPLAC E_JAR (<<C:\Document s and
Settings\db2adm in\Application
Data\IBM\DB2\DC \Projects\bld10 96553970703\SQL 30705013217030. jar>>,
'DB2ADMIN.SQL30 705013217030')
[IBM][CLI Driver][DB2/NT] SQL0444N Routine "SQLJ.DB2_REPLA CE_JAR"
(specific name "") is implemented with code in library or path "",
function "" which cannot be accessed. Reason code: "". SQLSTATE=42724

DB2ADMIN.PROCED URE2 - Build failed.
DB2ADMIN.PROCED URE2 - Roll back completed successfully.

Nov 12 '05 #2
Actually... if you've updated from an earlier fixpak of DB2 V8, have you
run the "db2updv8" utility to update the function/procedure definitions
to include the new ones included to FP7?

hubert_s wrote:
I have DB2 8.1 FP7, when I try to build a Java stored procedure it fails
during a call to DB2_REPLACE_JAR . Even the build folder "bld10965539707 03"
is not there - it has a different name,

regards,
Hubert

DB2ADMIN.PROCED URE2 - Build started.
DROP SPECIFIC PROCEDURE DB2ADMIN.SQL030 805133228210
DB2ADMIN.PROCED URE2 - Drop stored procedure completed.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\javac -classpath
".;C:\PROGRA~1\ IBM\SQLLIB\java \db2java.zip;C: \PROGRA~1\IBM\S QLLIB\java\runt ime.zip;C:\PROG RA~1\IBM\SQLLIB \java\sqlj.zip" ;"c:\jt400.j ar"
procedure22.jav a
DB2ADMIN.PROCED URE2 - Javac completed.
C:\PROGRA~1\IBM \SQLLIB\java\jd k\bin\jar cf SQL307050132170 30.jar
procedure22.cla ss
DB2ADMIN.PROCED URE2 - Jar file created.
Call SQLJ.DB2_REPLAC E_JAR (<<C:\Document s and
Settings\db2adm in\Application
Data\IBM\DB2\DC \Projects\bld10 96553970703\SQL 30705013217030. jar>>,
'DB2ADMIN.SQL30 705013217030')
[IBM][CLI Driver][DB2/NT] SQL0444N Routine "SQLJ.DB2_REPLA CE_JAR"
(specific name "") is implemented with code in library or path "",
function "" which cannot be accessed. Reason code: "". SQLSTATE=42724

DB2ADMIN.PROCED URE2 - Build failed.
DB2ADMIN.PROCED URE2 - Roll back completed successfully.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1847
by: eric | last post by:
Hi, I would like to build the inParams SQLJ sample procedure from the Development Center. if I declare a #sql public iterator SpIterat, the Development Center complains this should be in a separate file. if I declare a #sql iterator SpIterat, the Development Center complains the statements #sql updateIterator are not Java ...
1
2158
by: blackpzh | last post by:
We moved our DB from one AIX to another AIX by using backup/restore, ...it’s a long story..., then when we buid a java stored procedure in development center, we got following message, and a SQL0444N exception occurred. ###################################################################### #### MYDB.EXPORTMSTDATA - Build started. javac -classpath .:/home/db2inst1/sqllib/java/db2java.zip:/home/db2inst1/sqllib/java/ru
3
1823
by: Henry Reardon | last post by:
Can someone remind me how to re-install the Development Center? I was playing with the Environment Settings a bit the other day and, ever since, it hasn't worked right. I can create a new Project but that's all I can do; the File and Edit menus are grayed out and I can't seem to find anything that will re-enable them. I upgraded from DB2 (LUW) Version 7.2 to Version 8.2 (FP7) on Friday and applied Fixpack 8 on Saturday. I'm running...
0
987
by: hubert_s | last post by:
Hi, I have DB2 8.2 on Win 2K. When I try to use some external *.jar files in a stored procedure I have to put them directly in "Properties->Build->Compile options" instead of just adding the jar to the Classpath. This is because the classpath used during compile has nothing to do with the enviromental variable. DB2ADMIN.START_REP - Build started.
1
1810
by: Henry Reardon | last post by:
I have been having problems with the Development Center for several days now. It seemed to be working fine when I initially installed DB2 (LUW) Version 8 (FP7) and upgraded to FP8, except that I kept getting SQL1131 whenever I tried to prepared a stored procedure. As a result, I completely deleted DB2 and reinstalled version 8 and upgraded to FP8. At that point, I experimented a bit with some of the Environment Settings, particularly the...
1
1848
by: VB | last post by:
iTechArt Group - Custom Software Development and Offshore outsourcing Company http://www.itechart.com/ Offshore custom software development company iTechArt - Web site and Content Management Solutions development, CMS consulting: Ektron, Drupal and DotNetNuke iTechArt Group provides high quality custom software development
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10216
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3965
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.