Exception thrown in entity bean client

Discussions

EJB programming & troubleshooting: Exception thrown in entity bean client

  1. Exception thrown in entity bean client (1 messages)

    The following exception is thrown when trying retieve data from the Access DB.

    Exception in thread "main" java.rmi.UnexpectedException: Unexpected exception in AddressBean.getLastName():
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access 97 Driver]Driver not capable
            at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:4089)
            at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:4246)
            at sun.jdbc.odbc.JdbcOdbc.SQLSetConnectOption(JdbcOdbc.java:2990)
            at sun.jdbc.odbc.JdbcOdbcConnection.setTransactionIsolation(JdbcOdbcConnection.java:671)
            at weblogic.jdbcbase.jts.Connection.setTransactionIsolation(Connection.java:396)
            at weblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connection.java:628)
            at weblogic.jdbcbase.jts.Connection.prepareStatement(Connection.java:135)
            at AddressPSWebLogic_CMP_RDBMS.refresh(AddressPSWebLogic_CMP_RDBMS.java:220)
            at AddressPSWebLogic_CMP_RDBMS.load(AddressPSWebLogic_CMP_RDBMS.java:201)
            at weblogic.ejb.internal.EntityEJBContext.load(EntityEJBContext.java:151)
            at weblogic.ejb.internal.EntityEJBContext.afterBegin(EntityEJBContext.java:212)
            at weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulEJBObject.java:162)
            at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:421)
            at AddressBeanEOImpl.getLastName(AddressBeanEOImpl.java:147)
            at AddressBeanEOImpl_WLSkel.invoke(AddressBeanEOImpl_WLSkel.java:83)
            at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java, Compiled Co
    e)
            at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:69)
            at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:15)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
    ; nested exception is:
            java.sql.SQLException: [Microsoft][ODBC Microsoft Access 97 Driver]Driver not capable
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access 97 Driver]Driver not capable
            <

    Thanks
  2. Exception thrown in entity bean client[ Go to top ]

    i don't think you can connect to Microsoft Access using EJB/weblogic. There is no driver for that.