473,769 Members | 3,567 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SQLJ.install_ja r raises unexpected system error

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
sqllib/java/db2jcc.jar
sqllib/java/db2jcc_license_ cu.jar
sqllib/java/sqlj.zip

then with the DB2 interactive SQL I've launched

db2 => CALL SQLJ.INSTALL_JA R ('file:/something/else.jar', 'jjjjjj', 0)

but the result is

SQL1042C An unexpected system error occurred. SQLSTATE=58004

any idea?

Thanks,
Andrea

May 26 '06 #1
3 3348
Hi,
it's me again.
I (almost) solved my problem manually moving the JAR in the folder

/home/db2inst1/sqllib/function/jar/<DB NAME>

on the server but now I have a problem launching my stored procedure...
DB2 raises

SQL4301N Java or .NET interpreter startup or communication failed,
reason
code "0". SQLSTATE=58004
....
sqlcode : -4301

sqlstate : 58004

Maybe DB2 JVM can't find my jar file because I didn't use
SQLJ.install_ja r?
Any idea about my install_jar problem?

Thanks,
Andrea
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
sqllib/java/db2jcc.jar
sqllib/java/db2jcc_license_ cu.jar
sqllib/java/sqlj.zip

then with the DB2 interactive SQL I've launched

db2 => CALL SQLJ.INSTALL_JA R ('file:/something/else.jar', 'jjjjjj', 0)

but the result is

SQL1042C An unexpected system error occurred. SQLSTATE=58004

any idea?

Thanks,
Andrea


Jun 6 '06 #2

<to*****@iperbo le.bologna.it> wrote in message
news:11******** **************@ c74g2000cwc.goo glegroups.com.. .
Hi,
it's me again.
I (almost) solved my problem manually moving the JAR in the folder

/home/db2inst1/sqllib/function/jar/<DB NAME>

on the server but now I have a problem launching my stored procedure...
DB2 raises

SQL4301N Java or .NET interpreter startup or communication failed,
reason
code "0". SQLSTATE=58004
...
sqlcode : -4301

sqlstate : 58004

Maybe DB2 JVM can't find my jar file because I didn't use
SQLJ.install_ja r?
Any idea about my install_jar problem?
Are you sure you've copied the error information correctly? According to the
Information Center, there is no reason code 0 for SQL4301N, just reason
codes 1 through 6.

Also, according to the manuals, sqlj.install_ja r() should only have two
parameters but you've supplied THREE, according to your example. The example
in the manual is:

CALL sqlj.install_ja r( 'file:/home/bob/bobsjar.jar', 'MYJAR' )
Maybe the solution is as simple as removing your last parameter?--Rhino
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
sqllib/java/db2jcc.jar
sqllib/java/db2jcc_license_ cu.jar
sqllib/java/sqlj.zip

then with the DB2 interactive SQL I've launched

db2 => CALL SQLJ.INSTALL_JA R ('file:/something/else.jar', 'jjjjjj', 0)

but the result is

SQL1042C An unexpected system error occurred. SQLSTATE=58004

any idea?

Thanks,
Andrea

Jun 6 '06 #3
Hi!
Are you sure you've copied the error information correctly? According to the
Information Center, there is no reason code 0 for SQL4301N, just reason
codes 1 through 6. Yes the error information was just copied & pasted, this reason code is
also explained in

http://www-128.ibm.com/developerwork...commonproblems

I checked my configuration according to the article (JDK_PATH, ...) but
everything seems fine...
Also, according to the manuals, sqlj.install_ja r() should only have two
parameters but you've supplied THREE, according to your example. The example
in the manual is:
CALL sqlj.install_ja r( 'file:/home/bob/bobsjar.jar', 'MYJAR' )
Maybe the solution is as simple as removing your last parameter?--Rhino

Same error even with two parameters.
I used the three params syntax because I made my first "experiment s"
with iSeries and I found that syntax in the documentation:

http://publib.boulder.ibm.com/infoce...jnkmstr132.htm

Errata corrige about the error I get with install_jar: I've corrected
the CLASSPATH (db2java.zip and other jars were not included) and
now I get the error about the JVM:
SQL4301N Java or .NET interpreter startup or communication failed,
reason code "0". SQLSTATE=58004
....
sqlcode : -4301
sqlstate : 58004

:-(

Any idea?
Thanks,
Andrea

Jun 7 '06 #4

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

Similar topics

4
5081
by: Paul Reddin | last post by:
Hi, (V8.1 FP2) Trying to run SQLJ.INSTALL_JAR, we get the following error SQL1131N DARI (Stored Procedure) process has been terminated abnormally. SQLSTATE=38503 Not sure why this has started failing now (we did upgrade to fp2 fairly
1
3299
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 fresh DB2 install and the first jar file I've tried to install on this system. This is one the command I am issuing: call sqlj.install_jar('file:/home/db2inst1/jaf-1.0.2/activation.jar','ACTIVATION') This is running on: Linux RHEL AS 3 update 1,
8
3006
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 RH, the call of sqlj.install_jar fails. It correctly create a directiory with the correct schema name, but the jar is not copied in it. The error is "Permission Denied" SQLSTATE 38501 and in the log, we can see that calling sqlejReadJar fails in...
7
2355
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 8.2 FP9): db2 connect to sample db2 call sqlj.DB2_UPDATEJARINFO ('JMARC.JMB','JMB','file:JMB.sqlj')
0
9579
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
9416
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10199
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
8862
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6662
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
5436
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3948
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
3551
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2810
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.