Unsatisfied link error for oracle database connection
Hi all,
I am tryin to establing connection to the oracle database through weblogic 6.1.
the connection starts normally and then it gives me an error stating that weblogicoci37
is not found in the java library path. I tried to find it out in the weblogic
directory but managed to find out some files with ...oci36. Am doing something
weird!!
I am sure i downloaded the correct driver. My OS is NT and webserver 6.1 and the
jdriver is ocirel510sp11 package for oracle. Would be great to have some suggestions!
i have listed the error below.
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.UnsatisfiedLinkError:
no we
blogicoci37 in java.library.path
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:146)
at utils.dbping.main(dbping.java:167)
found the error, i forgot to add the oci817_8 folder from the weblogic bin directory
in the path.
"arif" <[email protected]> wrote:
>
Hi all,
I am tryin to establing connection to the oracle database through weblogic
6.1.
the connection starts normally and then it gives me an error stating
that weblogicoci37
is not found in the java library path. I tried to find it out in the
weblogic
directory but managed to find out some files with ...oci36. Am doing
something
weird!!
I am sure i downloaded the correct driver. My OS is NT and webserver
6.1 and the
jdriver is ocirel510sp11 package for oracle. Would be great to have
some suggestions!
i have listed the error below.
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary(weblogicoci37) threw java.lang.UnsatisfiedLinkError:
no we
blogicoci37 in java.library.path
at weblogic.jdbc.oci.Driver.loadLibraryIfNeeded(Driver.java:226)
at weblogic.jdbc.oci.Driver.connect(Driver.java:76)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:146)
at utils.dbping.main(dbping.java:167)
Similar Messages
-
Problem in Oracle Database Connectivity in JSP
I am having big problem such as Oracle Database connectivity problem
Following code i am used for database connection. but it throw an exception call class not found exception.
Pls any one can help me. With a sample code for Oracle Database connection in JSP
Class.forName ("oracle.jdbc.driver.OracleDriver");
String url="jdbc:oracle:thin:@172.25.44.54:1521:bbo";
con = DriverManager.getConnection(url,"user", "user123");
Thank youWell i've never used oracle or their drivers before but i'm presuming that you'd go to oracle.com or something and look for downloads. Otherwise you could goodle for Oracle JDBC drivers. Then just follow the instructions.
Again i've never used JSP but if you have a manifest file somewhere you'll need to put a class-path: entry in their referecning the jar file with the driver so that it is availble at run-time.
Wes -
Database Link Error: From Oracle to SQL Servre
Hi,
I am trying to create a database link from my Oracle database to SQL Server. Oacle is 11gR2 on windows 2012 64-Bit same is the OS for SQL Server.
When i execute the query using link, this is the error what i get:
*ORA-28545: error diagnosed by Net8 when connecting to an agent*
*Unable to retrieve text of NETWORK/NCR message 65535*
*ORA-02063: preceding 2 lines from PMS2KPI*
When i look for this error in *listener.ora* file, this is what i found
30-OCT-2014 09:51:48 * (CONNECT_DATA=(SID=pms2kpi)(CID=(PROGRAM=)(HOST=GARMCO\GRBHORDB01)(USER=GARMCO\PMS2Admin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=fe80::54d2:d482:edf0:8543%12)(PORT=52016)) * establish * pms2kpi * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
64-bit Windows Error: 2: No such file or directory
30-OCT-2014 09:51:48 * (CONNECT_DATA=(SID=pms2kpi)(CID=(PROGRAM=)(HOST=GARMCO\GRBHORDB01)(USER=GARMCO\PMS2Admin))) * (ADDRESS=(PROTOCOL=tcp)(HOST=10.107.145.26)(PORT=52017)) * establish * pms2kpi * 12518
TNS-12518: TNS:listener could not hand off client connection
TNS-12560: TNS:protocol adapter error
TNS-00530: Protocol adapter error
64-bit Windows Error: 2: No such file or directory
Thu Oct 30 09:52:58 201
When I look for the details in *alert.log* file, i find this
HS: Unable to establish RPC connection to HS Agent...
HS: ... Agent SID = (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(COMMUNITY=tcp.world)(PROTOCOL=TCP)(Host=GRBHORDB01.garmco.local)(Port=1521)))(CONNECT_DATA=(SID=pms2kpi))),
NCR error = 65535 Unable to retrieve text of NETWORK/NCR message 65535
Thu Oct 30 09:52:25 2014
My configuration seems to be ok....
*initpms2kpi.ora file*
#HS_FDS_CONNECT_INFO=[GRBHSQDB01.garmco.local]/KPI
HS_FDS_CONNECT_INFO="SERVER=GRBHSQDB01;DATABASE=KPI"
HS_FDS_TRACE_LEVEL=OFF
HS_FDS_RECOVERY_ACCOUNT=HS_RECOVERY
HS_FDS_RECOVERY_PWD=********
HS_FDS_TRANSACTION_LOG=HS_TRANSACTION_LOG
HS_FDS_TRANSACTION_MODEL=COMMIT_CONFIRM
HS_COMMIT_POINT_STRENGTH=0
*Listener.ora file*
(SID_DESC =
(SID_NAME = pms2kpi)
(ORACLE_HOME = C:\App\Oracle\product\11.2.0\dbhome_1)
(program = tg4msql)
*tnsnames.ora file*
pms2kpi =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (COMMUNITY = tcp.world) (PROTOCOL = TCP)(Host = GRBHORDB01.garmco.local)(Port = 1521))
(CONNECT_DATA =
(SID = pms2kpi)
(HS=OK)
How can I check if some firewall is blocking the connection, or its a port issue... or maybe something wrong in the configuration, but chances are very less for this.
Kindly help if you have gone thru such an error.
Regards, ImranHi,
In the listener.ora you have -
(program = tg4msql)
but with 11g gateways the executable name has been changed and you should change the entry to -
(program = dg4msql)
then stop and start the listener.
If you installed the gateway into an existing ORACLE_HOME then the gateway version must be the same version as the software already installed.
For example, if the existing software was 11.2.0.4 and you installed 11.2.0.1 gateway this will give you problems and most likely the gateway executable will be 0 (zero) in size.
Regards,
Mike -
Unsatisfied Link Error when using Oracle OCI (Type II) driver
Using Oracle OCI (Type II) driver on HPUX with Oracle 9.2.0.4.
If when creating a connection pool via the console, using the Oracle OCI (Type
II) driver, you get the error "Unsatisfied link error with library libocijdbc9.sl
or format error" then check that the library included in the SHLIB_PATH is pointing
at the $ORACLE_HOME/lib32 directory and not just the $ORACL_HOME/libWe do not offer a JDBC driver for Linux in version 5.1. In version 6.0,we
do offer a type 4 driver for Linux.
In version 5.1, I suggest trying the platform independent type 4 JDBC driver
available for free from Oracle. It is supported (as is any JDBC driver)
with WebLogic Server. To download it:
Go to http://www.oracle.com and select the "Download" option.
From the resulting page, use the "Select Utility or Driver" dropdown to
select Oracle JDBC drivers
From the resulting page, scroll down a little (since SQLJ stuff appears at
the top).
Or, to go directly there:
http://technet.oracle.com/software/tech/java/sqlj_jdbc/software_index.htm
Thanks,
Michael
Michael Girdley, BEA Systems Inc
Learning WebLogic? Buy the book.
http://www.learnweblogic.com/
"Michael W. Warren, Sr." <[email protected]> wrote in message
news:[email protected]..
I have installed WebLogic 6.0 on Solaris platform and verified that the
server comes up
and that I can connect to it via Netscape. Next step was to verify
installation of WebLogic
jDriver for Oracle. When I run the following:
java utils.dbping ORACLE scott tiger
I get the following error:
Starting Loading jDriver/Oracle .....
Error encountered:
java.sql.SQLException: System.loadLibrary threw
java.lang.UnsatisfiedLinkError
with the message
'/ldatae/bea/wlserver6.0/lib/solaris/oci816_8/libweblogicoci37.so:
ld.so.1: /ldatae/bea/jdk130/jre/bin/../bin/sparc/native_threads/java:
fatal: libgen.so.1: open failed: No such file or directory'.
at
weblogic.jdbcbase.oci.Driver.loadLibraryIfNeeded(Driver.java:202)
at weblogic.jdbcbase.oci.Driver.connect(Driver.java:57)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:146)
at utils.dbping.main(dbping.java:182)
Anyone seen this? Help!!!
Thanks in advance
Mike Warren, Sr.
[email protected] -
"Error while accessing porting layer for ORACLE database via getSessionId()
Hi,
My ejb3.0 Entity is created from Emp table in scott/tiger schema of an Oracle 10g database. I am guessing I made some mistake creating the datasource or uploading the driver, because when I run my application, I get a long exception stack trace. The bottom-most entry in the stack trace is:
Caused by: com.sap.sql.log.OpenSQLException: Error while accessing porting layer for ORACLE database via getSessionId().
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:148)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.createPooledConnection(DirectConnectionFactory.java:527)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.createDirectPooledConnection(DirectConnectionFactory.java:158)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.createDirectPooledConnection(DirectConnectionFactory.java:118)
at com.sap.sql.connect.factory.PooledConnectionFactory.createPooledConnection(PooledConnectionFactory.java:119)
at com.sap.sql.connect.factory.DriverPooledConnectionFactory.getPooledConnection(DriverPooledConnectionFactory.java:38)
at com.sap.sql.connect.datasource.DBDataSourceImpl.createPooledConnection(DBDataSourceImpl.java:685)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.matchPool(DBDataSourcePoolImpl.java:1081)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.matchPooledConnection(DBDataSourcePoolImpl.java:919)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.getConnection(DBDataSourcePoolImpl.java:67)
at com.sap.engine.core.database.impl.DatabaseDataSourceImpl.getConnection(DatabaseDataSourceImpl.java:36)
at com.sap.engine.services.dbpool.spi.ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:123)
... 90 moreActually, now (after the GRANT described in my reply before) the Exception has changed to:
Caused by: com.sap.sql.log.OpenSQLException: Error while
accessing porting layer for ORACLE database via
<b>getDatabaseHost</b>().
at com.sap.sql.log.Syslog.createAndLogOpenSQLException
(Syslog.java:148)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.
createPooledConnection(DirectConnectionFactory.java:527)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.
createDirectPooledConnection(DirectConnectionFactory.java:158)
at com.sap.sql.jdbc.direct.DirectConnectionFactory.
createDirectPooledConnection(DirectConnectionFactory.java:118)
at com.sap.sql.connect.factory.PooledConnectionFactory.
createPooledConnection(PooledConnectionFactory.java:119)
at com.sap.sql.connect.factory.DriverPooledConnectionFactory.
getPooledConnection(DriverPooledConnectionFactory.java:38)
at com.sap.sql.connect.datasource.DBDataSourceImpl.
createPooledConnection(DBDataSourceImpl.java:685)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
matchPool(DBDataSourcePoolImpl.java:1081)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
matchPooledConnection(DBDataSourcePoolImpl.java:919)
at com.sap.sql.connect.datasource.DBDataSourcePoolImpl.
getConnection(DBDataSourcePoolImpl.java:67)
at com.sap.engine.core.database.impl.DatabaseDataSourceImpl.
getConnection(DatabaseDataSourceImpl.java:36)
at com.sap.engine.services.dbpool.spi.
ManagedConnectionFactoryImpl.createManagedConnection(ManagedConnectionFactoryImpl.java:123)
... 90 more -
Linking error while trying to connect to 10 g oracle db through OCCI
Hello experts,
Iam getting a linking error while trying to connect to 10 g through OCCI.I've tried both available Instant client versions,But no luck.now, I am using instant client 11.2.0.2 with visual studio 2005 and oracle 10 g on 32 bit XP. I get "*The procedure entry point OCILobSetContentType could not be located in the dynamic link library OCI.dll*" linking error
How can i fix this error
Thanks in advance..
Regards,
SrihariHello,
Please ensure that you are using correct PATH and ORACLE_HOME settings - for example if IC 11202 is installed in
c:\oracle\11202\instantclient_112
execute on commandline
ORACLE_HOME=c:\oracle\11202\instantclient_112
PATH=%ORACLE_HOME%;%ORACLE_HOME%\bin;%PATH%
before starting VS2005 from commandline - or generate a commandscript
Inside VS2005 please ensure that you are picking up the libraries from
%ORACLE_HOM%\oci\lib\msvc\v8\*
furtheron, copy the
%ORACLE_HOM%\oci\lib\msvc\v8\*.dll
to %ORACLE_HOME% - otherwise by default the v9 ar picked up (copied during installation)
When this has been done, build the code and test - should work
regards,
Frank
Edited by: fscherie on 11.01.2012 12:41 -
Download link for Oracle Database 10g Documentation seems to be broken.
Hi,
I am trying to download the documentation for Oracle Database 10g but the zip archive seems to be corrupt. The md5 checksum for the file I have downloaded is:
$> md5 Downloads/B19306_01.zip
MD5 (Downloads/B19306_01.zip) = 75551f2bb5cfeecedcd08e2e6ac71bf7
and the unzip output is:
$> unzip Downloads/B19306_01.zip
Archive: Downloads/B19306_01.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
unzip: cannot find zipfile directory in one of Downloads/B19306_01.zip or
Downloads/B19306_01.zip.zip, and cannot find Downloads/B19306_01.zip.ZIP, period.
Also, the file size of my downloaded file is 443.4 MB but the size mentioned on the download page is 445.8 MB
I have twice tried to download the file but both times I get the same corrupt zip error. Can any one confirm the status of the file.
Oracle Database 10g Documentation Download page:
http://www.oracle.com/technetwork/database/database10g/documentation/database10gr2-087366.htmlit worked for me
1239489356 461527463 63% 20200 files
bcm@bcm-laptop:~/Downloads/V10_docs$ ls
B19306_01.zip
bcm@bcm-laptop:~/Downloads/V10_docs$ ls -l
total 454056
-rw-r--r-- 1 bcm dba 464948533 2011-01-08 16:46 B19306_01.zip -
Pro Oracle Spatial for Oracle Database 11g - Book now available
Pro Oracle Spatial for Oracle Database 11g
Pro Oracle Spatial for Oracle Database 11g shows how to take advantage of Oracle Databases built-in feature set for working with location-based data. A great deal of the information used in business today is associated with location in some way, and analysis of that data is becoming ever more important in todays mobile and highly connected world. In Pro Oracle Spatial for Oracle Database 11g, authors Ravi Kothuri and Albert Godfrind address
* The special nature of spatial data and its role in professional and consumer applications
* Issues in spatial data management such as modeling, storing, accessing, and analyzing spatial data
* The Oracle Spatial solution and the integration of spatial data into enterprise databases
* How spatial information is used to understand business and support decisions, to manage customer relations, and to better serve private and corporate users
When you read Pro Oracle Spatial for Oracle Database 11g, you’re learning from the very best. Ravi Kothuri is a key member of Oracle’s Spatial development team. Albert Godfrind consults widely with Oracle clients on the implementation of Oracle Spatial, develops training courses, and presents frequently at conferences. Together they have crafted a technically sound and authoritative fountain of information on working with Spatial data in Oracle...
Goto http://www.apress.com/book/view/1590598997 or Amazon.comThank you very much.....got it.
I know it isn't your gig, so I am not asking for a solution, just looking to know where I might have to go to get one. If buying SR's on meta link is going to solve this for me, then I am all for it, just let me know where the expertise can be found, I have been battling this overall set up now for too long, I need someone who really knows this stuff so I can get on with making use of it in industry....thanks....
Can you steer me in the right direction to access some solid support on the installation issues I am having? See below;
From oc4j on an attempted stand-alone install;
07/11/22 20:23:39 INFO [oracle.lbs.mapserver.core.MapperConfig] using default config file: /opt/mv10131/mv10131_qs/oc4j/j2ee/home/applications/mapviewer/web/WEB-INF/conf/mapViewerConfig.xml
07/11/22 20:23:39 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL mapmaker instances.
07/11/22 20:23:39 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
07/11/22 20:23:39 INFO [oracle.lbs.mapserver.core.MapperConfig] Map Recycling thread started.
07/11/22 20:23:39 INFO [oracle.lbs.mapserver.oms] *** Oracle MapViewer started. ***
07/11/22 20:23:40 INFO [oracle.lbs.mapcache.mcservlet] *** Oracle MapCacheServer started. ***
07/11/22 20:23:40 Thu Nov 22 20:23:40 EST 2007 INFO [oracle.lbs.mapserver.core.MapRecycleThread, ,#Thread-19] cleansing old maps
user induced ctl-c....program jams
07/11/22 20:23:51 Shutting down OC4J...
07/11/22 20:23:54 ERROR [oracle.lbs.mapcache.mcservlet] !!! Oracle MapCacheServer destroyed. !!!
07/11/22 20:23:54 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL mapmaker instances.
07/11/22 20:23:54 WARN [oracle.lbs.mapserver.oms] Oracle MapViewer shut down
From a full AppServer Install Attempt (10.1.3 from e-delivery pack) , despite proper TMP/TMPDIR variables, more than ample space via df -k /tmp (300G) and chmod a+rwx /tmp settings;
[root@bluesky1 Disk1]# ./runInstaller
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-2.1, redhat-3, redhat-4, SuSE-9 or UnitedLinux-1.0
Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2007-11-22_07-58-50PM. Please wait ...
Error in writing to directory /tmp/OraInstall2007-11-22_07-58-50PM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
: Success
The people in the forums have been trying to help, and they have all been great, but noone seems able to solve....I am asking you because I am hoping you will know who the guru's are, and what I can do to access some of their wisdom to get up and running.? -
NW 7.3 Installation - Oracle Database connection issue.
Dear SDN,
I am trying to install the SAP NW 7.3 but fail due the connection to oracle database. (My System details : Windows 7, 64 bit, 4gb ram - copyied NW7.3 server for 64 bit)
I hvae installed the Oracle database and client. I have checked and stated the services, updated the host file, started the database with SQL editor, checked the Oracle Enterprise Manager, all looks fine.
When I run the Sapinst, it finds the database but unable to process next due to connection error. error message looks like :
Cannot connect to jaiswal
Error(s) returned:
SQL Server does not exist or access denied.
SOLUTION: Check that you specified the correct name for the database server, that the server is running and you are authorized to log on to it.
Please advice on the issue.
Best Regards
Arun JaiswalDear Vincent
I am using the Oracle as database. When I extract the part-1-5 folder for Oracle database and started the run the sapinst under extracted folder > data units > _MSS.
Best Regards
Arun Jaiswal -
Unsatisfied link error in mac osx 10.2.3
Hi,
unsatisfied link error in mac osx 10.2.3
can you solve the problem why the error is occuring when i am trying to set port for printer .after seting port in the application then the swiping takes place. as the application is running but unable to communicate to wireless printer through bluetooth. as everything is fine (files like cu.dev and tty.dev are created in mac and i selected that file and saved it.swiping is not done through wireless ). the error i got is
ERROR LOADING linuxSerialParallel:java.lang.unsatisfiedLinkError: no linux serialparallel in java library.path
java.lang.unsatisfiedlinkerror:is session active
please respond immediately regarding this issue
thanking you,
babuYour problem is definitely not related to 'Community Feedback and Suggestions'. And I cannot see any relationship to Oracle (at least according to the given informations).
Werner -
How do I fix a "Unsatisfied link error"?
ProQuest provides a Java application for auto parts. It did function on my system [10.3.9 with all updates]. After logging in on a web site, a "jnlp" file is loaded to the desktop. Double clicking this file causes another download to load the auto parts database.
But now a, JAVA error Exception reads:
java.lang.Unsatisfied Link Error: no hpwin32 in java.library.path
However a similar file "hpwin32.dll" is in: user/Library/caches/JavaWeb Start/cache/http/Depe.startekinfo.com /... /RN client-native.jar/hpwin32.dll
I deleted the "Depe.startekinfo.com " folder, but it reappeared after logging into their site.
Security is set to accept all cookies and using Safari and Firefox produces same result.
Suggestions are appreciated.
Bob
Quicksilver G4 w 2 HDs, LaCie 22 Mac OS X (10.3.9)The default VISA timeout is 2 seconds, so your program is missing a byte and timing out. You might want to log your serial port traffic to see the actual data coming through. Portmon is a fantastic tool for debugging serial applications: http://technet.microsoft.com/en-us/sysinternals/bb896644.aspx
Regards,
Jeremy_B
Applications Engineer
National Instruments -
Hello All:
I have some java code that calls a C function in a dll. I have succesfully used the javah utility to generate the header file for my jni native implementation code and have build both the client java code as well as the dll using g++3.0 using Bloodshed Dev C++ (an open source IDE). When I go to execute the java code I get an unsatisfied link error saying my function is not recognized by the jvm. Does anyone have any suggestions on this issue?? I am using Win2k and jdk 1.4.1
Here is what I've already tried:
1) Have added the directory where the java class file as well as the dll to my PATH variable, I have even put the dll files in the jdk bin directory
2) My dll loads three other dll's and calls a function in one of those dll's, I am using the loadLibrary function to load these dll's and am using function pointers to reference the actual function in the dll
I was wondering if its a problem if I use g++ to build my dll, does the virtual machine assume by default that gcc is used, please let me know.
Any help is much appreciated
ThanksI've looked through the various postings on this issue and have tried some or all of the suggestions that were made relevant to my problem but I still keep getting this error. As a result I am attaching some code here:
Listed below is my java code
public class DecoderAdapter
//instance vars
private static DecoderAdapter decoderAdapObj;
private String serNum="43543534654";
private Hashtable decodeInfo;
private final int DEC_SNTYPE_UNKNOWN=0;
private final int DEC_SNTYPE_ADOBE_1A=10;
private final int DEC_SNTYPE_ADOBE_1B=20;
private final int DEC_SNTYPE_ADOBE_2A=30;
private final int DEC_SNTYPE_ADOBE_2B=40;
private int serNumType;
static
System.loadLibrary("javaWrapperProj");
public DecoderAdapter() throws UnsatisfiedLinkError
/** accessor for decodeInfo
public Hashtable getDecodeInfoHash()
return decodeInfo;
/** mutator for decodeInfo
public void setDecodeInfoHash()
initializeHash();
/** accessor for serial number type
public int getSerNumType()
return serNumType;
/** mutator for serial number type
public void setSerNumType(int serNumberType)
serNumType = serNumberType;
/** accessor for serial number
public String getSerNum()
return serNum;
/** mutator for serial number type
public void setSerNum(String serNumber)
serNum = serNumber;
public static void main(String[] args)
//local vars
try
decoderAdapObj = new DecoderAdapter();
int snType=decoderAdapObj.DEC_SNTYPE_UNKNOWN;
String serialNum=decoderAdapObj.getSerNum();
decoderAdapObj.setDecodeInfoHash();
Hashtable myHash = decoderAdapObj.getDecodeInfoHash();
decoderAdapObj.setSerNumType(decoderAdapObj.DEC_SNTYPE_UNKNOWN);
int responseCode=decodeSerNum(snType,serialNum,myHash);
System.out.println("The response from decoding the serial number is "+responseCode);
System.out.println("About to call the hashtable retrieval function");
System.out.println("The media code returned="+decoderAdapObj.decodeInfo.get("mediaCode"));
//getHashResults();
catch (UnsatisfiedLinkError un)
System.out.println("Caught an unsatisfied link exception with the message="+un.getMessage());
System.out.println("The stack trace of this error is="+un.getStackTrace());
/** This method is used
to fill up the contents
of the hashtable
public void initializeHash()
decodeInfo = new Hashtable();
decodeInfo.put("errorCode",new Integer(0));
decodeInfo.put("mediaCode",new String("temp"));
//declaration of native method
private static native int decodeSerNum(int snType,
String serialNumberStr,
Hashtable decodeInfoHash);
The following is what gets generated by the javah utility:
/* Header for class DecoderAdapter */
#ifndef IncludedDecoderAdapter
#define IncludedDecoderAdapter
#ifdef __cplusplus
extern "C" {
#endif
/* Inaccessible static: decoderAdapObj */
* Class: DecoderAdapter
* Method: decodeSerNum
* Signature: (ILjava/lang/String;Ljava/util/Hashtable;)I
JNIEXPORT jint JNICALL Java_DecoderAdapter_decodeSerNum
(JNIEnv *, jobject, jint, jstring, jobject);
#ifdef __cplusplus
#endif
#endif
And finally the following is my C implementation file:
Date: 07/11/02 11:56
Copyright:
#include <jni.h>
#include "Decoder.h"
#include "DecoderAdapter.h"
#include <iostream.h>
#include <stdio.h>
#include <windows.h>
#include <conio.h>
typedef int (WINAPI*cfunc)(int,char *,DecodeInfo *);
JNIEXPORT jint JNICALL Java_DecoderAdapter_decodeSerNum
(JNIEnv * env, jclass currentObj, jint serialNumberType, jstring serialNumber, jobject decodeInfoHash)
HINSTANCE hLib=LoadLibrary("WCDSNDecoder.DLL");
//HINSTANCE hLib1=LoadLibrary("Kernel32.DLL");
//HINSTANCE hLib2=LoadLibrary("msvcrt.DLL");
if(hLib==NULL) {
cout << "Unable to load library!" << endl;
getch();
return 0;
//load the dll at run time
cfunc decodeSerialNumberPtr=(cfunc)GetProcAddress((HMODULE)hLib, "decodeSerialNumber");
DecodeInfo result;
//call decode serial number here
//and pass in the serial number type
//the serial number and the empty
//struct containing the serial number info
char * actualSerialNumber = const_cast<char *> (env->GetStringUTFChars(serialNumber,0));
int serType = serialNumberType;
int finalResult=decodeSerialNumberPtr(serType,actualSerialNumber,&result);
//set the results from the Decode Info struct
//int decodeSerialNumber(int serialNumberType,
// char *serialNumberFrmtd,
// DecodeInfo *serialNumInformation);
//first return the Java class object that is the type of the
//java object
jclass decoder_class = env->GetObjectClass(currentObj);
jclass decoder_hash_class = env->GetObjectClass(decodeInfoHash);
//call the put method from the native code
//on the hashtable object and pass it the necessary
//arguements
jmethodID putMethod = env->GetMethodID(decoder_hash_class,"put","(S,O)V");
jstring key = env->NewStringUTF("mediaCode");
jstring value = env->NewStringUTF(result.mediaCode);
//now do the actual call to the method
env->CallVoidMethod(decodeInfoHash,putMethod,key,value);
//release memory here
FreeLibrary((HMODULE)hLib);
env->ReleaseStringUTFChars(serialNumber,actualSerialNumber);
return finalResult;
The exact error is shown below:
Caught an unsatisfied link exception with the message=decodeSerNum
My path variable's contents is shown below:
PATH=C:\XEmacs\XEmacs-21.4.8\i586-pc-win32;C:\oracle\ora81\bin;C:\oracle\ora81\Apache\Perl\5.00503\bin\mswin32-x86;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Perl\bin\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Perforce;C:\JRE\1.1\bin;c:\webObjectsCode\dev\LocalDeveloper\Executables;C:\djdev\bin;C:\emacs-20.7\bin;C:\jakarta-ant-1.4.1\bin;C:\J2SDK1~1.1\bin;C:\Apple\Library\Executables;C:\Apple\bin;C:\Apple\Library\JDK\bin;C:\j2sdk1.4.1\include;C:\j2sdk1.4.1\include\winnt;C:\webObjectsCode\devWO5\sn_decoder\javaWrapperWork;C:\Program Files\Common Files\Microsoft Shared\VSA\7.0\VsaEnv
Please note that I am successfully able to build a dll file.
Any help would be appreciated... -
Oracle Database Connection ISSUE
Folks,
I Installed Oracle 8.1.7 database on a RH AS Linux server. Installation is smooth. I am able to start the server and listerner without any errors. I am able to connect through SQL Plus and JDBC Clients. After sometime(10-12 mins) something happens on the server and I am NOT able to connect to the server through JDBC client. But still I am able to connect through SQL Plus from remote machines.
Does this ring any bells to you guys ? Let me know.
thx.
Rajesh.Dear Vincent
I am using the Oracle as database. When I extract the part-1-5 folder for Oracle database and started the run the sapinst under extracted folder > data units > _MSS.
Best Regards
Arun Jaiswal -
Unsatisfied Link Error : no jsafe in java.library.path
Hi,
When I try to connect to the server securily through a java program (t3s://localhost:7002),I
get the Unsatisfied Link Error: no jsafe in java.library.path(the stack trace
is at the end of this post). I've included all the weblogic jar files(including
lib\weblogicaux.jar) in the classpath at runtime with -classpath command line
option.I've also tried to run the program with
"-Djava.library.path=D:\weblogic\lib\weblogicaux.jar" commandline option to no
avail.Is there something I'm missing?
Any suggestion or help would be appreciated.Hoping for a speedy reply
Regards,
Sreedhar
"here is the stack trace"
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at weblogic.security.RSAMDSignature.verify(RSAMDSignature.java:87)
at weblogic.security.X509.verifySignature(X509.java:223)
at weblogic.security.X509.verify(X509.java:152)
at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:128)
at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:107)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:343)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:217)
at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:170)
at weblogic.socket.JVMSocketT3S.newSocket(JVMSocketT3S.java:29)
at weblogic.socket.JVMSocketT3.newSocketWithRetry(JVMSocketT3.java:275)
at weblogic.socket.JVMSocketT3.connect(JVMSocketT3.java:59)
at weblogic.socket.JVMAbbrevSocket.connect(JVMAbbrevSocket.java:160)
at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:294)
at
weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:91
8)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
at
weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:248)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:219)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at
com.cbmx.test.ClientTreeModel.getInitialContext(ClientTreeModel.java:169)
at com.cbmx.test.ClientTreeModel.<init>(ClientTreeModel.java:36)
at com.cbmx.test.Frame1.<init>(Frame1.java:13)
at com.cbmx.test.Application1.<init>(Application1.java:11)
at com.cbmx.test.Application1.main(Application1.java:42)I assume your are running on a Unix platform? If so, it looks like you don't
have the native implementation file from the vendor (usually a shared
library file with a ".so" extension) in your LD_LIBRARY_PATH environment
variable.
Giri
"sirigiri sreedhar" <[email protected]> wrote in message
news:[email protected]...
>
Hi,
When I try to connect to the server securily through a java program(t3s://localhost:7002),I
get the Unsatisfied Link Error: no jsafe in java.library.path(the stacktrace
is at the end of this post). I've included all the weblogic jarfiles(including
lib\weblogicaux.jar) in the classpath at runtime with -classpath commandline
option.I've also tried to run the program with
"-Djava.library.path=D:\weblogic\lib\weblogicaux.jar" commandline optionto no
avail.Is there something I'm missing?
Any suggestion or help would be appreciated.Hoping for a speedy reply
Regards,
Sreedhar
"here is the stack trace"
java.lang.UnsatisfiedLinkError: no jsafe in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at
COM.rsa.jsafe.JSAFE_DeviceBuilderNative.buildObjects(JSAFE_DeviceBuilderNati
ve.java)
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at
COM.rsa.jsafe.JSAFE_AsymmetricCipher.getInstance(JSAFE_AsymmetricCipher.java
at weblogic.security.RSA.performOPJSafe(RSA.java:178)
at weblogic.security.RSA.performOp(RSA.java:104)
at weblogic.security.RSApkcs1.decrypt(RSApkcs1.java:153)
at weblogic.security.RSAMDSignature.verify(RSAMDSignature.java:87)
at weblogic.security.X509.verifySignature(X509.java:223)
at weblogic.security.X509.verify(X509.java:152)
at weblogic.security.SSL.SSLCertificate.verify(SSLCertificate.java:128)
at weblogic.security.SSL.SSLCertificate.input(SSLCertificate.java:107)
at weblogic.security.SSL.Handshake.input(Handshake.java:109)
at weblogic.security.SSL.SSLSocket.getHandshake(SSLSocket.java:928)
at weblogic.security.SSL.SSLSocket.clientInit(SSLSocket.java:343)
at weblogic.security.SSL.SSLSocket.initialize(SSLSocket.java:217)
at weblogic.security.SSL.SSLSocket.<init>(SSLSocket.java:170)
at weblogic.socket.JVMSocketT3S.newSocket(JVMSocketT3S.java:29)
at weblogic.socket.JVMSocketT3.newSocketWithRetry(JVMSocketT3.java:275)
at weblogic.socket.JVMSocketT3.connect(JVMSocketT3.java:59)
at weblogic.socket.JVMAbbrevSocket.connect(JVMAbbrevSocket.java:160)
at weblogic.socket.JVMSocketManager.create(JVMSocketManager.java:294)
at
weblogic.rjvm.ConnectionManager.findOrCreateSocket(ConnectionManager.java:91
8)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:339)
at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:306)
at
weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:248)
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:219)
at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:186)
at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:155)
at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:200)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:195)
at
weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialCon
textFactoryDelegate.java:148)
at
weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFact
ory.java:123)
atjavax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at
com.cbmx.test.ClientTreeModel.getInitialContext(ClientTreeModel.java:169)
at com.cbmx.test.ClientTreeModel.<init>(ClientTreeModel.java:36)
at com.cbmx.test.Frame1.<init>(Frame1.java:13)
at com.cbmx.test.Application1.<init>(Application1.java:11)
at com.cbmx.test.Application1.main(Application1.java:42) -
OIM 9.1.0 install connector for "Oracle Database 10g"
Hello,
Is anybody here who succeeded to install the connector for Oracle Database 10g into OIM 9.1.0?
If yes please give me a hint
Have a nice day!Thanks guys for the quick responses.
But I have tried both the options for putting the jar in Third Party and also by uploading using the OOTB utility UploadJar.sh.
But it is giving the same error.
I have tired rebouncing the server and also Purge cached, but no success.
Just to mention again, I have tried with all the last 3 postgres JDBC4 driver available on the site (u mentioned).
So, any other clue?
Thanks in advance.
Maybe you are looking for
-
Home sharing only available for a few minutes
Hello everyone, So I have a strange problem and I'll do my best to explain everything I've tried and my current setup. Origonal setup (Was working then just completely stopped) Windows Server 2008 (non R2) on an old computer (Currently offline)
-
How to archive billing docs in PDF format on the application server?
Hi, I want to archive billing docs in PDF format on the application server. Formerly on our SAP system, Archivelink was set up to archive these documents to an HTTP content server. Since we no longer have this server, I want to adapt it to simply out
-
Featured News counter & description location
Can the location of the description and counter/arrows be changed for each image in featured news composition widget? For example, I'd like the description to be aligned with the left side of each image and below it. If the images are different sizes
-
Hello, is there any way to change the subpartitions of an index from logging to nologging without creating the index again? Thanks Eva
-
Hi All, I have a requirement to print the ASCII character like (1,0,I,J,O,G). wanna pass this values to the sapscript with barcode.. So, i really want to know how to i get the those ASCII characters into SAP. Please give me the ans .. i