EJB error

Discussions

EJB programming & troubleshooting: EJB error

  1. EJB error (1 messages)

    hi,
      i m facing the following error. i m able to insert the data (create method working properly). But when i use the find by primarykey method, i m getting the following error.

    MyCMPBean.getDescription, returns string and i m using it correctly.

    what will be the error.

    Regards
    sundar



    Exception in thread "main" java.rmi.UnexpectedException: Unexpected exception i
     MyCMPBean.getDescription():
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optional featur
     not implemented
            at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)
            at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
            at sun.jdbc.odbc.JdbcOdbc.SQLSetConnectOption(JdbcOdbc.java:4458)
            at sun.jdbc.odbc.JdbcOdbcConnection.setTransactionIsolation(JdbcOdbcCon
    ection.java:933)
            at weblogic.jdbcbase.jts.Connection.setTransactionIsolation(Connection.
    ava:396)
            at weblogic.jdbcbase.jts.Connection.openConnectionIfNecessary(Connectio
    .java:628)
            at weblogic.jdbcbase.jts.Connection.prepareStatement(Connection.java:13
    )
            at MyCMPPSWebLogic_CMP_RDBMS.refresh(MyCMPPSWebLogic_CMP_RDBMS.java:223

            at MyCMPPSWebLogic_CMP_RDBMS.load(MyCMPPSWebLogic_CMP_RDBMS.java:204)
            at weblogic.ejb.internal.EntityEJBContext.load(EntityEJBContext.java:15
    )
            at weblogic.ejb.internal.EntityEJBContext.afterBegin(EntityEJBContext.j
    va:212)
            at weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(Stateful
    JBObject.java:162)
            at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:421

            at MyCMPBeanEOImpl.getDescription(MyCMPBeanEOImpl.java:273)
            at MyCMPBeanEOImpl_WLSkel.invoke(MyCMPBeanEOImpl_WLSkel.java:83)
            at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerO
    jectAdapter.java:338)
            at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicReque
    tHandler.java:69)
            at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteReques
    .java:15)
            at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    ; nested exception is:
            java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optiona
     feature not implemented
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver]Optional featur
     not implemented
            <<no stack trace available>>

    Threaded Messages (1)

  2. EJB error[ Go to top ]

    hi,
    I think you should check the sytax of your program!
    zhou