473,503 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

sqlj.install_jar problem on both Solaris and Linux

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 method
ZipFile.open. Any help would be greatly apreciated. Thaks for your
attention!

AL
Nov 12 '05 #1
8 2965

"Xela" <ab***@yahoo.com> wrote in message
news:cg**********@apollon.grec.isp.9tel.net...
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 method
ZipFile.open. Any help would be greatly apreciated. Thaks for your
attention!

Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?

If that's not the problem, what SQLCODE are you getting? The SQLSTATE is not
nearly as useful as the SQLCODE for most problems....

Rhino

Nov 12 '05 #2

"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
news:vq********************@news20.bellglobal.com. ..

"Xela" <ab***@yahoo.com> wrote in message
news:cg**********@apollon.grec.isp.9tel.net...
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 method
ZipFile.open. Any help would be greatly apreciated. Thaks for your
attention!

Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?
If that's not the problem, what SQLCODE are you getting? The SQLSTATE is

not nearly as useful as the SQLCODE for most problems....

Rhino

Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?


Yes I think have. Indeed, when the directory (schema name) )is created by
db2, its rights are "drwxrwxr-x".
It belongs to the instance login whose group has sysadm authority. I tried
to change the rigths to "drwxrwxrwx" and it is all the same. I have also
tried to connect to the db with alternate users. I tried to change the
primary group of the users, but without success.

The SQLCODE is SQL4302N . -4302/38501/[IBM][CLI

The stack log is :

2004-08-26-09.21.07.670993 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejCallJavaRoutine_dll Probe:315

Exception thrown during routine invocation:

0xFFBEDB78 : 0x001322C0 ..".

2004-08-26-09.21.07.717752 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

ADM10000W A Java exception has been caught. The Java stack traceback has
been
written to the db2diag.log.

2004-08-26-09.21.07.744692 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:72)
at COM.ibm.db2.app.sqlejProcs.sqlejReadJar(sqlejProcs .java:76)

0xFFBEDA3C : 0x00000000 ....

2004-08-26-09.21.07.749982 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
routine_infrastructure sqlerJavaCallRoutine Probe:30

Error from DB2ER CallUDF. RC:

0xFFBEDF04 : 0xFFFFEF32 ...2

Many thanks for your attention
AL


Nov 12 '05 #3
Probably one of the paths leading up to the jar directory does not have
read authority to other. When doing an install jar, db2 makes a fenced
stored procedure call to read out the list of classes & methods. To make
this call, the owner of the sqllib/adm/.fenced file must have read
access to the jar file.

Xela wrote:
"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
news:vq********************@news20.bellglobal.com. ..
"Xela" <ab***@yahoo.com> wrote in message
news:cg**********@apollon.grec.isp.9tel.net...
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 method
ZipFile.open. Any help would be greatly apreciated. Thaks for your
attention!


Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?
If that's not the problem, what SQLCODE are you getting? The SQLSTATE is


not
nearly as useful as the SQLCODE for most problems....

Rhino

Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?

Yes I think have. Indeed, when the directory (schema name) )is created by
db2, its rights are "drwxrwxr-x".
It belongs to the instance login whose group has sysadm authority. I tried
to change the rigths to "drwxrwxrwx" and it is all the same. I have also
tried to connect to the db with alternate users. I tried to change the
primary group of the users, but without success.

The SQLCODE is SQL4302N . -4302/38501/[IBM][CLI

The stack log is :

2004-08-26-09.21.07.670993 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejCallJavaRoutine_dll Probe:315

Exception thrown during routine invocation:

0xFFBEDB78 : 0x001322C0 ..".

2004-08-26-09.21.07.717752 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

ADM10000W A Java exception has been caught. The Java stack traceback has
been
written to the db2diag.log.

2004-08-26-09.21.07.744692 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:72)
at COM.ibm.db2.app.sqlejProcs.sqlejReadJar(sqlejProcs .java:76)

0xFFBEDA3C : 0x00000000 ....

2004-08-26-09.21.07.749982 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
routine_infrastructure sqlerJavaCallRoutine Probe:30

Error from DB2ER CallUDF. RC:

0xFFBEDF04 : 0xFFFFEF32 ...2

Many thanks for your attention
AL

Nov 12 '05 #4
Well, evrething seems ok for the file accesses rights. Is the jar written in
a temporary place before to be copied into function/jar/<schema>. Indeed, I
a a very simple use case that does not work. After a fresh install under
RedHat 3, I create a Java proc via the Developpement Center, and it exhibit
the problem I described you. I try to use an IBM jdk131 to do that. Any
clue?

Thanks.

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
Probably one of the paths leading up to the jar directory does not have
read authority to other. When doing an install jar, db2 makes a fenced
stored procedure call to read out the list of classes & methods. To make
this call, the owner of the sqllib/adm/.fenced file must have read
access to the jar file.

Xela wrote:
"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
news:vq********************@news20.bellglobal.com. ..
"Xela" <ab***@yahoo.com> wrote in message
news:cg**********@apollon.grec.isp.9tel.net...

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 aWindows 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 method
ZipFile.open. Any help would be greatly apreciated. Thaks for your
attention!
Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?
If that's not the problem, what SQLCODE are you getting? The SQLSTATE is


not
nearly as useful as the SQLCODE for most problems....

Rhino

Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?

Yes I think have. Indeed, when the directory (schema name) )is created by db2, its rights are "drwxrwxr-x".
It belongs to the instance login whose group has sysadm authority. I tried to change the rigths to "drwxrwxrwx" and it is all the same. I have also
tried to connect to the db with alternate users. I tried to change the
primary group of the users, but without success.

The SQLCODE is SQL4302N . -4302/38501/[IBM][CLI

The stack log is :

2004-08-26-09.21.07.670993 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejCallJavaRoutine_dll Probe:315

Exception thrown during routine invocation:

0xFFBEDB78 : 0x001322C0 ..".

2004-08-26-09.21.07.717752 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

ADM10000W A Java exception has been caught. The Java stack traceback has been
written to the db2diag.log.

2004-08-26-09.21.07.744692 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:72)
at COM.ibm.db2.app.sqlejProcs.sqlejReadJar(sqlejProcs .java:76)

0xFFBEDA3C : 0x00000000 ....

2004-08-26-09.21.07.749982 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
routine_infrastructure sqlerJavaCallRoutine Probe:30

Error from DB2ER CallUDF. RC:

0xFFBEDF04 : 0xFFFFEF32 ...2

Many thanks for your attention
AL

Nov 12 '05 #5
The best way to see where your directory problem is would be to su to
the id that runs fenced routines, and then work your way backwards from
the jar file directory (try cating a file at each directory on the path).

I just tried this on a local RH box, and was able to install my jar...

Xela wrote:
Well, evrething seems ok for the file accesses rights. Is the jar written in
a temporary place before to be copied into function/jar/<schema>. Indeed, I
a a very simple use case that does not work. After a fresh install under
RedHat 3, I create a Java proc via the Developpement Center, and it exhibit
the problem I described you. I try to use an IBM jdk131 to do that. Any
clue?

Thanks.

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
Probably one of the paths leading up to the jar directory does not have
read authority to other. When doing an install jar, db2 makes a fenced
stored procedure call to read out the list of classes & methods. To make
this call, the owner of the sqllib/adm/.fenced file must have read
access to the jar file.

Xela wrote:
"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
news:vq********************@news20.bellglobal.c om...
"Xela" <ab***@yahoo.com> wrote in message
news:cg**********@apollon.grec.isp.9tel.net. ..
> 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 method
>ZipFile.open. Any help would be greatly apreciated. Thaks for your
>attention!
>

Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?
If that's not the problem, what SQLCODE are you getting? The SQLSTATE is

not
nearly as useful as the SQLCODE for most problems....

Rhino


Check your file permissions for the directory containing the jar: do you
have write authority to that file in the file system?
Yes I think have. Indeed, when the directory (schema name) )is created
by
db2, its rights are "drwxrwxr-x".
It belongs to the instance login whose group has sysadm authority. I
tried
to change the rigths to "drwxrwxrwx" and it is all the same. I have also
tried to connect to the db with alternate users. I tried to change the
primary group of the users, but without success.

The SQLCODE is SQL4302N . -4302/38501/[IBM][CLI

The stack log is :

2004-08-26-09.21.07.670993 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejCallJavaRoutine_dll Probe:315

Exception thrown during routine invocation:

0xFFBEDB78 : 0x001322C0 ..".

2004-08-26-09.21.07.717752 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

ADM10000W A Java exception has been caught. The Java stack traceback
has
been
written to the db2diag.log.

2004-08-26-09.21.07.744692 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:72)
at COM.ibm.db2.app.sqlejProcs.sqlejReadJar(sqlejProcs .java:76)

0xFFBEDA3C : 0x00000000 ....

2004-08-26-09.21.07.749982 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
routine_infrastructure sqlerJavaCallRoutine Probe:30

Error from DB2ER CallUDF. RC:

0xFFBEDF04 : 0xFFFFEF32 ...2

Many thanks for your attention
AL


Nov 12 '05 #6
I tried this. Some directories had the sticky bit, but were still readable.
Now the path is comptletely rwx for all, but I still have the same problem.
I have installed DB2 using db2setup, with the workaround proposed by ibm
(using a link to an ibm jdk141. Can this be the issue? I also tried to make
links to jalibs in /usr/lib, as I had read this in ibm support site. I must
admit that I am quite desesperate right now. Thanks for your attention

AL

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
The best way to see where your directory problem is would be to su to
the id that runs fenced routines, and then work your way backwards from
the jar file directory (try cating a file at each directory on the path).

I just tried this on a local RH box, and was able to install my jar...

Xela wrote:
Well, evrething seems ok for the file accesses rights. Is the jar written in a temporary place before to be copied into function/jar/<schema>. Indeed, I a a very simple use case that does not work. After a fresh install under
RedHat 3, I create a Java proc via the Developpement Center, and it exhibit the problem I described you. I try to use an IBM jdk131 to do that. Any
clue?

Thanks.

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
Probably one of the paths leading up to the jar directory does not have
read authority to other. When doing an install jar, db2 makes a fenced
stored procedure call to read out the list of classes & methods. To make
this call, the owner of the sqllib/adm/.fenced file must have read
access to the jar file.

Xela wrote:

"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
news:vq********************@news20.bellglobal.c om...
>"Xela" <ab***@yahoo.com> wrote in message
>news:cg**********@apollon.grec.isp.9tel.net. ..
>
>
>> 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 method
>>ZipFile.open. Any help would be greatly apreciated. Thaks for your
>>attention!
>>
>
>Check your file permissions for the directory containing the jar: do you>have write authority to that file in the file system?
>If that's not the problem, what SQLCODE are you getting? The SQLSTATE is
not
>nearly as useful as the SQLCODE for most problems....
>
>Rhino
>

>Check your file permissions for the directory containing the jar: do you>have write authority to that file in the file system?
Yes I think have. Indeed, when the directory (schema name) )is created


by
db2, its rights are "drwxrwxr-x".
It belongs to the instance login whose group has sysadm authority. I


tried
to change the rigths to "drwxrwxrwx" and it is all the same. I have alsotried to connect to the db with alternate users. I tried to change the
primary group of the users, but without success.

The SQLCODE is SQL4302N . -4302/38501/[IBM][CLI

The stack log is :

2004-08-26-09.21.07.670993 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejCallJavaRoutine_dll Probe:315

Exception thrown during routine invocation:

0xFFBEDB78 : 0x001322C0 ..".

2004-08-26-09.21.07.717752 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

ADM10000W A Java exception has been caught. The Java stack traceback


has
been
written to the db2diag.log.

2004-08-26-09.21.07.744692 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
BSU Java support sqlejLogException Probe:10

java.util.zip.ZipException: Permission denied
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:112)
at java.util.zip.ZipFile.<init>(ZipFile.java:72)
at COM.ibm.db2.app.sqlejProcs.sqlejReadJar(sqlejProcs .java:76)

0xFFBEDA3C : 0x00000000 ....

2004-08-26-09.21.07.749982 Instance:db2inst1 Node:000
PID:17997(db2fmp (16865) 0) TID:1 Appid:none
routine_infrastructure sqlerJavaCallRoutine Probe:30

Error from DB2ER CallUDF. RC:

0xFFBEDF04 : 0xFFFFEF32 ...2

Many thanks for your attention
AL


Nov 12 '05 #7
I'm asking around...I'll post any other info I can turn up...

Xela wrote:
I tried this. Some directories had the sticky bit, but were still readable.
Now the path is comptletely rwx for all, but I still have the same problem.
I have installed DB2 using db2setup, with the workaround proposed by ibm
(using a link to an ibm jdk141. Can this be the issue? I also tried to make
links to jalibs in /usr/lib, as I had read this in ibm support site. I must
admit that I am quite desesperate right now. Thanks for your attention

AL

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
The best way to see where your directory problem is would be to su to
the id that runs fenced routines, and then work your way backwards from
the jar file directory (try cating a file at each directory on the path).

I just tried this on a local RH box, and was able to install my jar...

Xela wrote:

Well, evrething seems ok for the file accesses rights. Is the jar
written in
a temporary place before to be copied into function/jar/<schema>.
Indeed, I
a a very simple use case that does not work. After a fresh install under
RedHat 3, I create a Java proc via the Developpement Center, and it
exhibit
the problem I described you. I try to use an IBM jdk131 to do that. Any
clue?

Thanks.

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
Probably one of the paths leading up to the jar directory does not have
read authority to other. When doing an install jar, db2 makes a fenced
stored procedure call to read out the list of classes & methods. To make
this call, the owner of the sqllib/adm/.fenced file must have read
access to the jar file.

Xela wrote:
>"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
>news:vq********************@news20.bellglobal .com...
>
>
>
>>"Xela" <ab***@yahoo.com> wrote in message
>>news:cg**********@apollon.grec.isp.9tel.net. ..
>>
>>
>>
>>> 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 method
>>>ZipFile.open. Any help would be greatly apreciated. Thaks for your
>>>attention!
>>>
>>
>>Check your file permissions for the directory containing the jar: do
you
have write authority to that file in the file system?
>>If that's not the problem, what SQLCODE are you getting? The SQLSTATE
is
not
>
>
>
>>nearly as useful as the SQLCODE for most problems....
>>
>>Rhino
>>
>
>
>
>>Check your file permissions for the directory containing the jar: do
you
have write authority to that file in the file system?
>
>
>Yes I think have. Indeed, when the directory (schema name) )is created

by
>db2, its rights are "drwxrwxr-x".
>It belongs to the instance login whose group has sysadm authority. I

tried
>to change the rigths to "drwxrwxrwx" and it is all the same. I have
also
tried to connect to the db with alternate users. I tried to change the
>primary group of the users, but without success.
>
>The SQLCODE is SQL4302N . -4302/38501/[IBM][CLI
>
>The stack log is :
>
>2004-08-26-09.21.07.670993 Instance:db2inst1 Node:000
>PID:17997(db2fmp (16865) 0) TID:1 Appid:none
>BSU Java support sqlejCallJavaRoutine_dll Probe:315
>
>Exception thrown during routine invocation:
>
>0xFFBEDB78 : 0x001322C0 ..".
>
>2004-08-26-09.21.07.717752 Instance:db2inst1 Node:000
>PID:17997(db2fmp (16865) 0) TID:1 Appid:none
>BSU Java support sqlejLogException Probe:10
>
>ADM10000W A Java exception has been caught. The Java stack traceback

has
>been
>written to the db2diag.log.
>
>2004-08-26-09.21.07.744692 Instance:db2inst1 Node:000
>PID:17997(db2fmp (16865) 0) TID:1 Appid:none
>BSU Java support sqlejLogException Probe:10
>
>java.util.zip.ZipException: Permission denied
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:112)
> at java.util.zip.ZipFile.<init>(ZipFile.java:72)
> at COM.ibm.db2.app.sqlejProcs.sqlejReadJar(sqlejProcs .java:76)
>
>0xFFBEDA3C : 0x00000000 ....
>
>2004-08-26-09.21.07.749982 Instance:db2inst1 Node:000
>PID:17997(db2fmp (16865) 0) TID:1 Appid:none
>routine_infrastructure sqlerJavaCallRoutine Probe:30
>
>Error from DB2ER CallUDF. RC:
>
>0xFFBEDF04 : 0xFFFFEF32 ...2
>
>Many thanks for your attention
>AL
>
>
>
>


Nov 12 '05 #8
Thanks for your attention.
Well, it seems tha tfinally I found the solution for Linux (I haven't try
again for solaris). The problem seemed to originate from a bad integration
of db2 with the JDK. After having setted some symbolic links to jdk's dll
and setted some env variables to jdk's dir, I get it work. It was quite a
hard job! Hope this is the end of db2's installation trouble and that it is
also the solution for the Solaris platform. Thanks again.

AL

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
I'm asking around...I'll post any other info I can turn up...

Xela wrote:
I tried this. Some directories had the sticky bit, but were still readable. Now the path is comptletely rwx for all, but I still have the same problem. I have installed DB2 using db2setup, with the workaround proposed by ibm
(using a link to an ibm jdk141. Can this be the issue? I also tried to make links to jalibs in /usr/lib, as I had read this in ibm support site. I must admit that I am quite desesperate right now. Thanks for your attention

AL

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
The best way to see where your directory problem is would be to su to
the id that runs fenced routines, and then work your way backwards from
the jar file directory (try cating a file at each directory on the path).
I just tried this on a local RH box, and was able to install my jar...

Xela wrote:
Well, evrething seems ok for the file accesses rights. Is the jar


written in
a temporary place before to be copied into function/jar/<schema>.


Indeed, I
a a very simple use case that does not work. After a fresh install underRedHat 3, I create a Java proc via the Developpement Center, and it


exhibit
the problem I described you. I try to use an IBM jdk131 to do that. Any
clue?

Thanks.

"Sean McKeough" <mc******@nospam.ibm.com> wrote in message
news:41********@news3.prserv.net...
>Probably one of the paths leading up to the jar directory does not have>read authority to other. When doing an install jar, db2 makes a fenced
>stored procedure call to read out the list of classes & methods. To make>this call, the owner of the sqllib/adm/.fenced file must have read
>access to the jar file.
>
>Xela wrote:
>
>
>>"Rhino" <rh****@NOSPAM.sympatico.ca> wrote in message
>>news:vq********************@news20.bellglobal .com...
>>
>>
>>
>>>"Xela" <ab***@yahoo.com> wrote in message
>>>news:cg**********@apollon.grec.isp.9tel.net. ..
>>>
>>>
>>>
>>>> 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 method>>>>ZipFile.open. Any help would be greatly apreciated. Thaks for your
>>>>attention!
>>>>
>>>
>>>Check your file permissions for the directory containing the jar: do


you
>>>have write authority to that file in the file system?
>>>If that's not the problem, what SQLCODE are you getting? The SQLSTATE

is
>>not
>>
>>
>>
>>>nearly as useful as the SQLCODE for most problems....
>>>
>>>Rhino
>>>
>>
>>
>>
>>>Check your file permissions for the directory containing the jar: do


you
>>>have write authority to that file in the file system?
>>
>>
>>Yes I think have. Indeed, when the directory (schema name) )is

created
by
>>db2, its rights are "drwxrwxr-x".
>>It belongs to the instance login whose group has sysadm authority. I

tried
>>to change the rigths to "drwxrwxrwx" and it is all the same. I have


also
>>tried to connect to the db with alternate users. I tried to change the>>primary group of the users, but without success.
>>
>>The SQLCODE is SQL4302N . -4302/38501/[IBM][CLI
>>
>>The stack log is :
>>
>>2004-08-26-09.21.07.670993 Instance:db2inst1 Node:000
>>PID:17997(db2fmp (16865) 0) TID:1 Appid:none
>>BSU Java support sqlejCallJavaRoutine_dll Probe:315
>>
>>Exception thrown during routine invocation:
>>
>>0xFFBEDB78 : 0x001322C0 ..".
>>
>>2004-08-26-09.21.07.717752 Instance:db2inst1 Node:000
>>PID:17997(db2fmp (16865) 0) TID:1 Appid:none
>>BSU Java support sqlejLogException Probe:10
>>
>>ADM10000W A Java exception has been caught. The Java stack traceback
has
>>been
>>written to the db2diag.log.
>>
>>2004-08-26-09.21.07.744692 Instance:db2inst1 Node:000
>>PID:17997(db2fmp (16865) 0) TID:1 Appid:none
>>BSU Java support sqlejLogException Probe:10
>>
>>java.util.zip.ZipException: Permission denied
>> at java.util.zip.ZipFile.open(Native Method)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:112)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:72)
>> at COM.ibm.db2.app.sqlejProcs.sqlejReadJar(sqlejProcs .java:76)
>>
>>0xFFBEDA3C : 0x00000000 ....
>>
>>2004-08-26-09.21.07.749982 Instance:db2inst1 Node:000
>>PID:17997(db2fmp (16865) 0) TID:1 Appid:none
>>routine_infrastructure sqlerJavaCallRoutine Probe:30
>>
>>Error from DB2ER CallUDF. RC:
>>
>>0xFFBEDF04 : 0xFFFFEF32 ...2
>>
>>Many thanks for your attention
>>AL
>>
>>
>>
>>


Nov 12 '05 #9

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

Similar topics

4
5039
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...
1
3122
by: chaos | last post by:
Hello, i have problems using sqlj in the following environment. I use type 4 driver com.ibm.db2.jcc.DB2Driver and connect succesful to 8.1. db2-Database(DRDA)(Informational tokens are "DB2...
1
3273
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
4511
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
2
2442
by: Cam Chapman | last post by:
Does anyone have any experience migrating a DB2 database off UDB 6.1 (Solaris) to 7.2 (Linux)? The database does not already exist on the Linux box. Have created a DB2 instance fine. DB2...
12
5298
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
2327
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...
4
2484
by: tomtailor | last post by:
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...
3
3289
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...
0
7203
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
7281
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,...
0
7334
jinu1996
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...
1
6993
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
4675
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...
0
3168
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
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 ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.