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 3 3349
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
<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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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,
|
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...
|
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')
|
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,...
| |
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...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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...
|
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...
|
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();...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |