求救:weblogic9+sql2000+CMP实现数据插入时的java.lang.AbstractMethodError错误

06-09-14 jerye

晕好几天了,SessionBean+CMP+weblogic9+sqlserver2000实现数据存储时出现以下错误,为什么?????:

javax.ejb.TransactionRolledbackLocalException: EJB Exception:: java.lang.AbstractMethodError: weblogic.jdbc.wrapper.JTSConnection_com_microsoft_jdbc_sqlserver_S

QLServerConnection.prepareStatement(Ljava/lang/String;I)Ljava/sql/PreparedStatem

ent;

at entitydemo.ejb.BookInfo_n3me0y__WebLogic_CMP_RDBMS.__WL_create(BookIn

fo_n3me0y__WebLogic_CMP_RDBMS.java:3823)

at entitydemo.ejb.BookInfo_n3me0y__WebLogic_CMP_RDBMS.ejbPostCreate(Book

Info_n3me0y__WebLogic_CMP_RDBMS.java:3715)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.

java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces

sorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:585)

at weblogic.ejb.container.manager.DBManager.create(DBManager.java:1428)

at weblogic.ejb.container.manager.DBManager.localCreate(DBManager.java:1

354)

at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLo

calHome.java:205)

at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLo

calHome.java:179)

at entitydemo.ejb.BookInfo_n3me0y_LocalHomeImpl.create(BookInfo_n3me0y_L

ocalHomeImpl.java:84)

at entitydemo.ejb.facade.BookInfoFacadeBean.createBookInfo(BookInfoFacad

eBean.java:53)

at entitydemo.ejb.facade.BookInfoFacade_42vj9q_EOImpl.createBookInfo(Boo

kInfoFacade_42vj9q_EOImpl.java:358)

at entitydemo.ejb.facade.BookInfoFacade_42vj9q_EOImpl_CBV.createBookInfo

(Unknown Source)

at entitydemo.web.BookServlet.process(BookServlet.java:58)

at entitydemo.web.BookServlet.doGet(BookServlet.java:31)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run

(StubSecurityHelper.java:225)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri

tyHelper.java:127)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav

a:283)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav

a:175)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio

n.run(WebAppServletContext.java:3214)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate

dSubject.java:321)

at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:

121)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppS

ervletContext.java:1983)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletC

ontext.java:1890)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.j

ava:1344)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

at weblogic.ejb.container.internal.EJBRuntimeUtils.throwTransactionRolle

dbackLocal(EJBRuntimeUtils.java:235)

at weblogic.ejb.container.internal.BaseLocalObject.handleSystemException

(BaseLocalObject.java:671)

at weblogic.ejb.container.internal.BaseEJBLocalHome.handleSystemExceptio

n(BaseEJBLocalHome.java:150)

at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLo

calHome.java:217)

at weblogic.ejb.container.internal.EntityEJBLocalHome.create(EntityEJBLo

calHome.java:179)

at entitydemo.ejb.BookInfo_n3me0y_LocalHomeImpl.create(BookInfo_n3me0y_L

ocalHomeImpl.java:84)

at entitydemo.ejb.facade.BookInfoFacadeBean.createBookInfo(BookInfoFacad

eBean.java:53)

at entitydemo.ejb.facade.BookInfoFacade_42vj9q_EOImpl.createBookInfo(Boo

kInfoFacade_42vj9q_EOImpl.java:358)

at entitydemo.ejb.facade.BookInfoFacade_42vj9q_EOImpl_CBV.createBookInfo

(Unknown Source)

at entitydemo.web.BookServlet.process(BookServlet.java:58)

at entitydemo.web.BookServlet.doGet(BookServlet.java:31)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run

(StubSecurityHelper.java:225)

at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri

tyHelper.java:127)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav

a:283)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav

a:175)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio

n.run(WebAppServletContext.java:3214)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate

dSubject.java:321)

banq
2006-09-22 09:22

>Ljava/lang/String;I)Ljava/sql/PreparedStatem

一般和你的SQL JDBC版本有问题,版本不对,比如程序用的是3.0,而服务器用的JDBC驱动是2.0,就有问题。