473,387 Members | 1,493 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,387 software developers and data experts.

Java Stored procedure

Uma
DB2I.PROCEDURE1 - 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"
"PROCEDURE1.java"
DB2I.PROCEDURE1 - Javac completed.
C:\SQLLIB\java\jdk\bin\jar cf SQL40620024042610.jar PROCEDURE1.class
DB2I.PROCEDURE1 - Jar file created.
Call sqlj.install_jar ('file:///C|/Documents and
Settings/Utalasila/Application
Data/IBM/DB2/DC/Projects/bld1090352445660/SQL40620024042610.jar',
'"DB2I".SQL40620024042610', 0)
[IBM][CLI Driver][DB2/NT] SQL4301N Java interpreter startup or
communication failed, reason code "-4301". SQLSTATE=58004

DB2I.PROCEDURE1 - Build failed.
DB2I.PROCEDURE1 - Roll back completed successfully.
Iam getting this error , when I tried to compile Java stored
procedure..

[IBM][CLI Driver][DB2/NT] SQL4301N Java interpreter startup or
communication failed, reason code "-4301". SQLSTATE=58004


I am using DB2 UDB8.1 Fixpack 6 on windows 2000
Thanks
Uma
Nov 12 '05 #1
1 6580
aka
just a guess, but possibly this helps:

E:\sqllib\BIN>db2 ? sql4301n
SQL4301N Java or .NET interpreter startup or communication
failed, reason code "<reason-code>".

Explanation:

An error occurred while attempting to start or communicate with a
Java interpreter. The reason codes are:
1 Java environment variables or Java database configuration
parameters are invalid.

2 A Java Native Interface call to the Java interpreter failed.

3 The "db2java.zip" file may be corrupt or missing.

4 The Java interpreter has terminated itself and cannot be
restarted.

5 Unable to load a dependent .NET library.

6 A call to the .NET interpreter failed.

User Response:

For Java, ensure that the Java database configuration parameters
(jdk_path and java_heap_sz) are correctly set. Ensure that a
supported Java runtime environment is installed. Ensure that
internal DB2 classes (COM.ibm.db2) are not overridden by user
classes.

For .NET, ensure that the DB2 instance is configured correctly
to run a .NET procedure or function (mscoree.dll must be present
in the system PATH). Ensure that db2clr.dll is present in the
sqllib/bin directory, and that IBM.Data.DB2 is installed in the
global assembly cache.

sqlcode : -4301

sqlstate : 58004
As I assume from your output you probably didn't set up PATH and CLASSPATH
variables, and because of that the db2 java stored procedure
sqlj.install_jar fails due to lack of jre...
"Uma" <ta******@hotmail.com> schrieb im Newsbeitrag
news:fd**************************@posting.google.c om...
DB2I.PROCEDURE1 - 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" "PROCEDURE1.java"
DB2I.PROCEDURE1 - Javac completed.
C:\SQLLIB\java\jdk\bin\jar cf SQL40620024042610.jar PROCEDURE1.class
DB2I.PROCEDURE1 - Jar file created.
Call sqlj.install_jar ('file:///C|/Documents and
Settings/Utalasila/Application
Data/IBM/DB2/DC/Projects/bld1090352445660/SQL40620024042610.jar',
'"DB2I".SQL40620024042610', 0)
[IBM][CLI Driver][DB2/NT] SQL4301N Java interpreter startup or
communication failed, reason code "-4301". SQLSTATE=58004

DB2I.PROCEDURE1 - Build failed.
DB2I.PROCEDURE1 - Roll back completed successfully.
Iam getting this error , when I tried to compile Java stored
procedure..

[IBM][CLI Driver][DB2/NT] SQL4301N Java interpreter startup or
communication failed, reason code "-4301". SQLSTATE=58004


I am using DB2 UDB8.1 Fixpack 6 on windows 2000
Thanks
Uma

Nov 12 '05 #2

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

Similar topics

3
by: dinesh prasad | last post by:
I'm trying to use a servlet to process a form, then send that data to an SQL server stored procedure. I'm using the WebLogic 8 App. server. I am able to retrieve database information, so I know my...
7
by: Alex | last post by:
Hi all, I am trying to install a java stored procedure via the windows development centre. The linux box is running 8.1 FP4 as is the windoze platform. If I am on the linux box i can install...
3
by: Rhino | last post by:
I've spent the last couple of hours trying to figure out how to debug a Java stored procedure and am just going in circles. The last straw came when I got "Cannot open input stream for default"...
4
by: Rhino | last post by:
Is it possible for a Java Stored Procedure in DB2 V7.2 (Windows) to pass a Throwable back to the calling program as an OUT parameter? If yes, what datatype should I use when registering the...
1
by: Kumar | last post by:
Hi I am trying to recreate a database under the following environments : From: Solaris with DB2UDB version 7.2 with FP 9 To: Linux with DB2UDB version 7.2 with FP 9 It will be of really a...
2
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
3
by: satish mullapudi | last post by:
Hi, I am using DB2 v8.2 & jdk 1.5. I have written a Hello World program in java. Now is it possible to call the HelloWorld program from a stored procedure ? If so, how? I want to catch the result...
1
by: amgupta8 | last post by:
Note: This problem occurred when I updated the JDK from 1.3.1 to 1.4.1 or 1.4.2. Nothing else was changed in the code, other than updating the JDK on the database server (dbm cfg parm jdk_path) and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.