Lorsque que SAS utilise java vous pouvez être confronté à l'erreur suivante :
Pour déboguer ce problème, vous pouvez utiliser l'option ci-dessous pour activer le mode trace :
Puis soumettre une proc javainfo :
ce qui peux donner, par exemple, le résultat suivant :
On remarque immédiatement l'erreur :
Dans ce cas, vous pouvez (et devez) vérifier votre variable d'environnement LD_LIBRARY_PATH, en soumettant le code ci-dessous :
et vérifier la présence de la JRE SAS
1
2
3
4
5
2
3
4
5
ERROR: semop() failed in Java extension: rc -1 errno 22.
ERROR: The Java child process terminated unexpectedly: status 127.
ERROR: WIFSIGNALED 0 WIFEXITED 0 WEXITSTATUS 0 WTERMSIG 127.
ERROR: Error allocating environment: Unable to load extension: (tkjava)
ERROR: Error in the LIBNAME statement.
ERROR: The Java child process terminated unexpectedly: status 127.
ERROR: WIFSIGNALED 0 WIFEXITED 0 WEXITSTATUS 0 WTERMSIG 127.
ERROR: Error allocating environment: Unable to load extension: (tkjava)
ERROR: Error in the LIBNAME statement.
1
options set=TKJNI_OPT_TRACE='y' ;
1
proc javainfo all; run ;
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
SAS encoding: ISO8859_15, rc = 0.
Java encoding option: -Dfile.encoding=ISO8859_15.
SAS LOCALE: FRENCH_FRANCE, rc = 0.
Java locale options: -Duser.country=FR -Duser.language=fr.
jecreatjvm skCreateJavaVM: bufL 116 strSize 1 proxyData->dftBufSz 2124
jecreatjvm skCreateJavaVM: extHandle 7fa5580d4a60 argc 16 argv 7fa5580d20a0
bufT 7fa53bdbe490 trace 1 timeout 60 dftBufSz 2124
jecreatjvm initProxy: extHandle 7fa5580d4a60
TKPOSjniipc createIPC_ ipc channel p 0x7fa5580d2180 (sem 0x9e8011 memory
0x158001 m 0x7fa565b82000) bufsz 2124
jecreatjvm initProxy: m->bufsz 2124
jecreatjvm skCreateJavaVM: proxyData m->bufsz 2124
jecreatjvm skCreateJavaVM: m 7fa565b82000 m->flags 81
client: send slot 0x7fa5580d2180 routine 200 len 1008
client: send signals 0x9e8011 state 0
client: send now find 0x9e8011 state 1
client: receiveTO ipcID 0x7fa5580d2180 state 0
client:...rtn 200 rc (jlong)0x0, len 1008
ERROR: The Java proxy is not responding.
jejvm stopProxy p 7fa55809c1e0
jeipc jipcTerm: extHandle 7fa5580d4a60
jeipc jipcTerm: exiting
ERROR: Proc javainfo did not run correctly.
/mnt/install/SAS/SASHOME/SASFoundation/9.4/utilities/bin/jproxy:
error while loading shared libraries: libjvm.so: cannot open shared object
file: No such file or directory
ERROR: The Java child process terminated unexpectedly: status 127.
ERROR: WIFSIGNALED 0 WIFEXITED 0 WEXITSTATUS 0 WTERMSIG 127.
jeipc jipcSuspend: extHandle 7fa5580d4a60
jeipc jipcSuspend: exiting
NOTE: PROCEDURE JAVAINFO used (Total process time):
real time 1.00 seconds
cpu time 0.01 seconds
Java encoding option: -Dfile.encoding=ISO8859_15.
SAS LOCALE: FRENCH_FRANCE, rc = 0.
Java locale options: -Duser.country=FR -Duser.language=fr.
jecreatjvm skCreateJavaVM: bufL 116 strSize 1 proxyData->dftBufSz 2124
jecreatjvm skCreateJavaVM: extHandle 7fa5580d4a60 argc 16 argv 7fa5580d20a0
bufT 7fa53bdbe490 trace 1 timeout 60 dftBufSz 2124
jecreatjvm initProxy: extHandle 7fa5580d4a60
TKPOSjniipc createIPC_ ipc channel p 0x7fa5580d2180 (sem 0x9e8011 memory
0x158001 m 0x7fa565b82000) bufsz 2124
jecreatjvm initProxy: m->bufsz 2124
jecreatjvm skCreateJavaVM: proxyData m->bufsz 2124
jecreatjvm skCreateJavaVM: m 7fa565b82000 m->flags 81
client: send slot 0x7fa5580d2180 routine 200 len 1008
client: send signals 0x9e8011 state 0
client: send now find 0x9e8011 state 1
client: receiveTO ipcID 0x7fa5580d2180 state 0
client:...rtn 200 rc (jlong)0x0, len 1008
ERROR: The Java proxy is not responding.
jejvm stopProxy p 7fa55809c1e0
jeipc jipcTerm: extHandle 7fa5580d4a60
jeipc jipcTerm: exiting
ERROR: Proc javainfo did not run correctly.
/mnt/install/SAS/SASHOME/SASFoundation/9.4/utilities/bin/jproxy:
error while loading shared libraries: libjvm.so: cannot open shared object
file: No such file or directory
ERROR: The Java child process terminated unexpectedly: status 127.
ERROR: WIFSIGNALED 0 WIFEXITED 0 WEXITSTATUS 0 WTERMSIG 127.
jeipc jipcSuspend: extHandle 7fa5580d4a60
jeipc jipcSuspend: exiting
NOTE: PROCEDURE JAVAINFO used (Total process time):
real time 1.00 seconds
cpu time 0.01 seconds
1
2
3
4
2
3
4
ERROR: Proc javainfo did not run correctly.
/mnt/install/SAS/SASHOME/SASFoundation/9.4/utilities/bin/jproxy:
error while loading shared libraries: libjvm.so: cannot open shared object
file: No such file or directory
/mnt/install/SAS/SASHOME/SASFoundation/9.4/utilities/bin/jproxy:
error while loading shared libraries: libjvm.so: cannot open shared object
file: No such file or directory
1
%put LD_LIBRARY_PATH: %sysget(LD_LIBRARY_PATH);







