Hi, dear all
I'm developing a Java application using WSAD 5.1.1 and DB2 7.1
I've made a connection to a datasource via jdbc 2 driver successfully. But I encountered java.lang.UnsatisfiedLinkError exception.
The source code
Connection conn = null;
PreparedStatement ps = null;
conn = ScaninSQLUtil.getConnection();
ps = conn.prepareStatement("select * from T_SYS_PARMS");
2004-12-15 15:32:40,344 com.pdc.gwisamhk.robot.common.Tracer ERROR - SQLAllocStmt
I've been searching for the solution for days, but couldn't make any progress.
Pinned topic java.lang.UnsatisfiedLinkError: SQLAllocStmt
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2004-12-15T11:59:21Z at 2004-12-15T11:59:21Z by ChrisBailey
ChrisBailey 120000HUQM190 Posts
Re: java.lang.UnsatisfiedLinkError: SQLAllocStmt2004-12-15T11:59:21ZThis is the accepted answer. This is the accepted answer.Hi:
This is really a DB2 JDBC problem, but...
The normal reason for an UnsatisfiedLinkError is that the Java code has called a native method for which the JVM has been unable to find the native implementation.
This is usually caused because the library that contains the symbol is not on the library search path for the process.
Hope this helps,