You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Christine Keim <c....@berlinger.cc> on 2003/01/31 12:25:29 UTC

as400 toolbox driver illegalaccessException

Hi,

i'm writing to both turbine-torque and turbine-user mailing list to find
someone who can help me with the following Problem.

I'm using TDK 2.1 and got it to run with DB2 on the DB2/AS400.
Tomcat runs remote on a Windows PC, and
to connect to the Database i use the Java Toolbox Driver
com.ibm.as400.access.AS400JDBCDriver
with the jdbc url: jdbc:as400://<serverip>/<libraryname>;errors=full
I included the jt400.jar in the lib-directory and all seemed to run
fine at first - but sometimes i get the recurrent exception below.

Do i miss a library? And why is the connection being dropped in the first place?
May it have something to do with the warning(s) i get in the turbine.log:
-- WARN -- A DBConnection was finalized, without being returned to the ConnectionPool it belonged to

tia,

Christine Keim


java.lang.IllegalAccessError: try to access class com.ibm.as400.access.ResourceBundleLoader from class com.ibm.as400.access.ConnectionDroppedException
        at com.ibm.as400.access.ConnectionDroppedException.<init>(ConnectionDroppedException.java:79)
        at com.ibm.as400.access.AS400ThreadedServer.forceDisconnect(AS400ThreadedServer.java:289)
        at com.ibm.as400.access.AS400ImplRemote.disconnectServer(AS400ImplRemote.java:403)
        at com.ibm.as400.access.AS400JDBCConnection.close(AS400JDBCConnection.java:494)
        at org.apache.turbine.util.db.pool.DBConnection.close(DBConnection.java:517)
        at org.apache.turbine.util.db.pool.ConnectionPool.popConnection(ConnectionPool.java:529)
        at org.apache.turbine.util.db.pool.ConnectionPool.getInternalPooledConnection(ConnectionPool.java:590)
        at org.apache.turbine.util.db.pool.ConnectionPool.getConnection(ConnectionPool.java:343)
        at org.apache.turbine.services.db.TurbinePoolBrokerService.getConnection(TurbinePoolBrokerService.java:171)
        at org.apache.turbine.services.db.TurbineDB.getConnection(TurbineDB.java:194)
        at org.apache.turbine.om.peer.BasePeer.executeQuery(E:/tdk/webapps/interim01/WEB-INF/src/java/org/apache/turbine/om/peer/BasePeer.java:1305)
        at org.apache.turbine.om.peer.BasePeer.doSelect(E:/tdk/webapps/interim01/WEB-INF/src/java/org/apache/turbine/om/peer/BasePeer.java:1182)
        at org.apache.turbine.om.security.peer.TurbineUserPeer.doSelect(TurbineUserPeer.java:369)
        at org.apache.turbine.om.security.peer.TurbineUserPeer.doSelect(TurbineUserPeer.java:332)
        at org.apache.turbine.services.security.db.DBUserManager.accountExists(DBUserManager.java:128)
        at org.apache.turbine.services.security.db.DBUserManager.accountExists(DBUserManager.java:107)
        at org.apache.turbine.services.security.db.DBUserManager.store(DBUserManager.java:264)
        at org.apache.turbine.services.security.BaseSecurityService.saveUser(E:/tdk/webapps/interim01/WEB-INF/src/java/org/apache/turbine/services/security/BaseSecurityService.java:379)
        at org.apache.turbine.services.security.TurbineSecurity.saveUser(TurbineSecurity.java:261)
        at org.apache.turbine.om.security.TurbineUser.valueUnbound(TurbineUser.java:649)
        at org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:953)
        at org.apache.catalina.session.StandardSession.expire(StandardSession.java:551)
        at org.apache.catalina.session.StandardManager.processExpires(StandardManager.java:744)
        at org.apache.catalina.session.StandardManager.run(StandardManager.java:815)
        at java.lang.Thread.run(Unknown Source)