473,327 Members | 1,896 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

DB2 SQLJ.Install_jar(file:///user/shared/java/javamail.jar', 'MAIL') Error 58004

Hello!

I try to create a Java Procedure in DB2 running under SuSE 9.3. But the
install_jar command fails with:
Error 58004 Error starting the Java Interpeter.

a db2set -all command results in:
db2inst1@linux:/usr/share/java> db2set -all
[i] DB2COMM=tcpip
[i] DB2AUTOSTART=YES
[g] DB2SYSTEM=linux
[g] DB2ADMINSERVER=dasusr1

seems that there are some variables missing
my java is:
db2inst1@linux:/usr/share/java> java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)

How can I append some variables in db2set and witch one do i have to
define for Java UDF?

Tanks!

Christian Meier

Nov 12 '05 #1
4 2480
Hello.

Try
db2 update dbm cfg using JDK_PATH <your_jdk_dir>;
db2stop;
db2start;

Tip: you point to the directory that contains bin and lib
subdirectories.

Sincerely,
Mark B.

Nov 12 '05 #2
OK, now it's pointing to: /usr/lib/jvm/java-1.4.2-sun-1.4.2.08

I read in another Tread about some missing definitions in the
/etc/ld.so.conf
and I added there the entries:
/usr/lib/jvm/java-1.4.2-sun-1.4.2.08/bin
/usr/lib/jvm/java-1.4.2-sun-1.4.2.08/lib

I restared my DB2 but it still fails. The db2dia.log sais:
2005-08-11-07.30.46.489503+120 I305086G359 LEVEL: Error
PID : 9191 TID : 3064985280 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloJVMstart, probe:30
MESSAGE : sqloloadmodule failed. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFC2A4 : 0A00 0F86 ....

2005-08-11-07.30.46.490403+120 I305446G354 LEVEL: Error
PID : 9191 TID : 3064985280 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, oper system services, sqloJAttach, probe:5
MESSAGE : JVM startup failed. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFF4C0 : 34EF FFFF 4...

2005-08-11-07.30.46.490670+120 I305801G355 LEVEL: Error
PID : 9191 TID : 3064985280 PROC : db2fmp
INSTANCE: db2inst1 NODE : 000
FUNCTION: DB2 UDB, BSU Java support, sqlejAttach, probe:10
MESSAGE : Error from sqloJAttach. RC:
DATA #1 : Hexdump, 4 bytes
0xBFFFF4E4 : 34EF FFFF 4...

seems he can not open the JVM but why?

Nov 12 '05 #3
try
http://publib.boulder.ibm.com/infoce...d/t0004675.htm
and look at
"Setting up the Linux Java environment " topic

Sincerely,
Mark B.

Nov 12 '05 #4
THX!
Christian

Nov 12 '05 #5

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

Similar topics

1
by: Jack | last post by:
I am trying to get javamail running with DB2 and am running into a problem with the sqlj.install_jar. When I go to install the jar, I get a SQL1131 error message which is unhelpful. This is a...
0
by: Bernard Dhooghe | last post by:
DB2 UDB V8.1 Fixpak 4 AIX 5.1 CLASSPATH: /usr/opt/db2_08_01/java/db2jcc.jar:/usr/opt/db2_08_01/java/db2jcc_license_cu.jar:/usr/opt/db2_08_01/java/sqlj.zip:/usr/java131/jre/lib/rt.jar: Program:...
8
by: Xela | last post by:
Hi A have a very annoying problem. I have written java strored procedures for DB2 v8.1. Their deployement and usage is fine as long as the server is a Windows one. But under Solaris 8 and Linux...
12
by: Rhino | last post by:
I am having an odd problem: the sqlj command on my system doesn't work. I am running DB2 (LUW) V8 (FP8) on WinXP. I haven't done an sqlj program since Version 6 of DB2 (LUW) so I checked the...
7
by: Jean-Marc Blaise | last post by:
Hi, The dev center calls sqlj.DB2_UPDATEJARINFO ('JMARC.JMB','JMB','file:JMB.sqlj') to update the sqlj routine source. I tried in CLP from the directory containing jar and sqlj files (Windows...
0
by: bwa | last post by:
I have created a SQLJ file with RAD and have customized and binded the 4 packages (1 for each isolation level). But my DB2 monitor shows that the query is executed dynamlically. Why ? ...
3
by: tol7481 | last post by:
Hi, I'm trying to deploy a Java stored procedure on DB2 V8 on a Linux box, but I have some problems. I've added to the classpath the following JARs sqllib/java/db2java.zip...
1
by: sofy | last post by:
Hi all 'm facing a problem in translation/compilation of a .sqlj file.Eventhough the .sqlj file is modified , the translated java file still contains the previous errors.Also only .ser file is...
0
by: mzhang | last post by:
Hi, Can anyone help? I'm kind stuck. I have db2 workgroup 8.2 on RHEL 4.0, java 1.4.2. Here is the errors db2 " call sqlj.install_jar ('file:/home/int24/vap/phx/vap/storedProc.jar', ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.