This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes Need Help with UnsatisfiedLinkError: SQLAllocEnv  Error.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Need Help with UnsatisfiedLinkError: SQLAllocEnv  Error.." Watch "Need Help with UnsatisfiedLinkError: SQLAllocEnv  Error.." New topic
Author

Need Help with UnsatisfiedLinkError: SQLAllocEnv Error..

Devesh H Rao
Ranch Hand

Joined: Feb 09, 2002
Posts: 687

Hi all..
The specifications of the Application i am working on is as follows.
Appserver : websphere v4.01
Database : DB2 v7.2
OS : AIX server running on unix.
I encounter the following error when i try to get a connection from the Appserver.
ERROR:
Class: javax.security.auth.login.LoginException: java.lang.UnsatisfiedLinkError: SQLAllocEnv at COM.ibm.db2.jdbc.DB2BaseDataSource.loadDLL(DB2BaseDataSource.java:312) at COM.ibm.db2.jdbc.DB2ConnectionPoolDataSource.getPooledConnection(DB2ConnectionPoolDataSource.java:102) at com.ibm.ejs.cm.pool.JDBC1xConnectionFactory.createConnection(JDBC1xConnectionFactory.java:42) at com.ibm.ejs.cm.pool.ConnectionPool.createConnection(ConnectionPool.java:914) at com.ibm.ejs.cm.pool.ConnectionPool.createOrWaitForConnection(ConnectionPool.java:846) at com.ibm.ejs.cm.pool.ConnectionPool.findFreeConnection(ConnectionPool.java:764) at com.ibm.ejs.cm.pool.ConnectionPool.findConnectionForTx(ConnectionPool.java:676) at com.ibm.ejs.cm.pool.ConnectionPool.allocateConnection(ConnectionPool.java:610) at com.ibm.ejs.cm.pool.ConnectionPool.getConnection(ConnectionPool.java:274) at com.ibm.ejs.cm.pool.ConnectionPool.getConnection(ConnectionPool.java:269) at com.ibm.ejs.cm.DataSourceImpl.getConnection(DataSourceImpl.java:99) at com.mst.common.helper.ServerUtility.getSecurityConnection(ServerUtility.java:71) at com.mst.security.domain.MSTLoginModule.checkLogin(MSTLoginModule.java:163) at com.mst.security.domain.MSTLoginModule.login(MSTLoginModule.java:66) at java.lang.reflect.Method.invoke(Native Method) at javax.security.auth.login.LoginContext.invoke

Can anybody please help me out with this ...
i need to know if i have any patch missing or is my server configuration is at fault for me not getting connection from the pool.
Thanks in advance...
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Need Help with UnsatisfiedLinkError: SQLAllocEnv Error..