是不是weblogic中 DataSource 配置有问题,我用的是sun.jdbc.odbc.JdbcOdbcDriver;老是有同样的问提?

03-12-22 ljm

C:\bea\jdk131_03\bin\javaw -classpath "D:\temp\cmp\classes;C:\bea\weblogic700\server\lib\weblogic.jar;C:\bea\weblogic700\server\lib\webservices.jar;C:\bea\jdk131_03\jre\lib\i18n.jar;C:\bea\jdk131_03\jre\lib\jaws.jar;C:\bea\jdk131_03\jre\lib\rt.jar;C:\bea\jdk131_03\jre\lib\sunrsasign.jar;C:\bea\jdk131_03\lib\dt.jar;C:\bea\jdk131_03\lib\htmlconverter.jar;C:\bea\jdk131_03\lib\tools.jar" cmp.Xtm01TestClient1

-- Initializing bean access.

-- Succeeded initializing bean access through Home interface.

-- Execution time: 1484 ms.

-- Calling findByPrimaryKey(10002002)

-- Failed: findByPrimaryKey(10002002)javax.ejb.FinderException: Problem in findByPrimaryKey while preparing or executing statement: 'weblogic.jdbc.rmi.SerialPreparedStatement@7ed48f':

java.sql.SQLException: No data found

java.sql.SQLException: No data found

at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6207)

at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3261)

at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5393)

at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:321)

at weblogic.jdbc.jts.ResultSet.getString(ResultSet.java:84)

at weblogic.jdbc.rmi.internal.ResultSetImpl.getString(ResultSetImpl.java:178)

at weblogic.jdbc.rmi.internal.ResultSetStraightReader.getString(ResultSetStraightReader.java:37)

at weblogic.jdbc.rmi.SerialResultSet.getString(SerialResultSet.java:128)

at cmp.Xtm01Bean_1ei8pe__WebLogic_CMP_RDBMS.__WL_loadGroup0FromRS(Xtm01Bean_1ei8pe__WebLogic_CMP_RDBMS.java:511)

at cmp.Xtm01Bean_1ei8pe__WebLogic_CMP_RDBMS.ejbFindByPrimaryKey(Xtm01Bean_1ei8pe__WebLogic_CMP_RDBMS.java:364)

at java.lang.reflect.Method.invoke(Native Method)

at weblogic.ejb20.cmp.rdbms.RDBMSPersistenceManager.findByPrimaryKey(RDBMSPersistenceManager.java:189)

at weblogic.ejb20.manager.BaseEntityManager.findByPrimaryKey(BaseEntityManager.java:476)

at weblogic.ejb20.manager.BaseEntityManager.remoteFindByPrimaryKey(BaseEntityManager.java:420)

at weblogic.ejb20.internal.EntityEJBHome.findByPrimaryKey(EntityEJBHome.java:373)

at cmp.Xtm01Bean_1ei8pe_HomeImpl.findByPrimaryKey(Xtm01Bean_1ei8pe_HomeImpl.java:100)

at cmp.Xtm01Bean_1ei8pe_HomeImpl_WLSkel.invoke(Unknown Source)

at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:359)

at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:114)

at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)

at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:762)

at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:308)

at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)

at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)

at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

at weblogic.rmi.internal.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)

at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:262)

at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:229)

at cmp.Xtm01Bean_1ei8pe_HomeImpl_WLStub.findByPrimaryKey(Unknown Source)

at cmp.Xtm01TestClient1.findByPrimaryKey(Xtm01TestClient1.java:109)

at cmp.Xtm01TestClient1.main(Xtm01TestClient1.java:261)

-- Return value from findByPrimaryKey(10002002): null.

Error in getXtyhdm(): Remote interface reference is null. It must be created by calling one of the Home interface methods first.

Error in getXtyhmc(): Remote interface reference is null. It must be created by calling one of the Home interface methods first.