wood burning stoves 2.0*
The moose likes Websphere and the fly likes AbstractMethodError on websphere 5.0.2.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "AbstractMethodError on websphere 5.0.2.3" Watch "AbstractMethodError on websphere 5.0.2.3" New topic
Author

AbstractMethodError on websphere 5.0.2.3

Subashini Ramakrishnan
Greenhorn

Joined: Apr 19, 2004
Posts: 7
Hi all,
I have an EAR which runs successfully on WSAD 5.1. However when I deploy the same EAR on WAS 5.0.2.3, I get an AbstractMethodError exception as follows inside a session bean where I am calling getSessionContext().getRollbackOnly().
[4/19/04 20:45:57:194 GMT] 54c72c SystemErr R java.lang.AbstractMethodError
[4/19/04 20:45:57:195 GMT] 54c72c SystemErr R at com.ibm.ejs.container.EJSContainer.getCurrentTx(EJSContainer.java:1
633)
[4/19/04 20:45:57:195 GMT] 54c72c SystemErr R at com.ibm.ejs.container.CMStatelessBeanO.getRollbackOnly(CMStatelessB
eanO.java:98)
Any pointers as to why this occurs would be very helpful.
Thanks.
Roland Barcia
author
Ranch Hand

Joined: Apr 15, 2004
Posts: 181
Try re-generating the deployed code. You can do this during the deploy process by selecting deploy EJB.
The deploy code generator in 5.1 probably changed.


Roland Barcia: IBM Distinguished Engineer, CTO Mobile for Lab Services
Subashini Ramakrishnan
Greenhorn

Joined: Apr 19, 2004
Posts: 7
I did that. I deleted all the old deployed code and the class files and generated deploy code afresh. The problem still persists.
Roland Barcia
author
Ranch Hand

Joined: Apr 15, 2004
Posts: 181
You re-generated the code using the EJBdeploy.bat of the 5.0.2.3 server?
Subashini Ramakrishnan
Greenhorn

Joined: Apr 19, 2004
Posts: 7
No. I am building the EAR on WSAD. I am re-generating deploy code by right clicking on the EJB project and going to Generate --> Deployment and RMIC Code.
Roland Barcia
author
Ranch Hand

Joined: Apr 15, 2004
Posts: 181
Are you deploying to a WebSphere instance server somewhere or are you testing with 2 different test servers within WSAD?
Subashini Ramakrishnan
Greenhorn

Joined: Apr 19, 2004
Posts: 7
I am testing on a separate WAS instance on a unix box.
Roland Barcia
author
Ranch Hand

Joined: Apr 15, 2004
Posts: 181
When you install the EAR, explicitly select deploy EJB button in the install wizard. This will generate the deploy code using the EJBDeploy.Bat of the server.
Subashini Ramakrishnan
Greenhorn

Joined: Apr 19, 2004
Posts: 7
Hi Roland,
I did that while deploying the EAR and tried. It still gives the same AbstractMethodError exception :-(
Subashini Ramakrishnan
Greenhorn

Joined: Apr 19, 2004
Posts: 7
Is it something to do with the JDBC driver ? We are using DB2 Legacy CLI-based Type 2 JDBC Driver(XA) and COM.ibm.db2.jdbc.DB2XADataSource as the implementation class.
Any pointers ?
 
jQuery in Action, 2nd edition
 
subject: AbstractMethodError on websphere 5.0.2.3