Hi all,
I am trying to run a simple statefull session bean within WebLogic 4.5.1 but I
get exceptions rased during the activation / passivation process. Is this a
WebLogic internal error as I can't see what is wrong with by EJB ?
ava.rmi.RemoteException: Exception raised while activating:
java.io.WriteAbortedException: Writing aborted by exception;
java.io.NotSerializableException: weblogic.ejb.internal.SessionEJBContext
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at java.io.IOException.<init>(Compiled Code)
at java.io.ObjectStreamException.<init>(ObjectStreamException.java:30)
at java.io.WriteAbortedException.<init>(WriteAbortedException.java:38)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.defaultReadObject(Compiled Code)
at java.io.ObjectInputStream.inputObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at java.io.ObjectInputStream.readObject(Compiled Code)
at weblogic.ejb.pstore.nonTxPSFile.retrieve(nonTxPSFile.java:187)
at
weblogic.ejb.internal.SessionEJBContext.activate(SessionEJBContext.java:122)
at
weblogic.ejb.internal.SessionEJBContext.afterBegin(SessionEJBContext.java:189)
at
weblogic.ejb.internal.StatefulEJBObject.getContextForInvoke(StatefulEJBObject.java:115)
at weblogic.ejb.internal.BaseEJBObject.preInvoke(BaseEJBObject.java:174)
at
co.uk.perksr.roman.session.CountBeanEOImpl.count(CountBeanEOImpl.java:82)
at
co.uk.perksr.roman.session.CountBeanEOImpl_WLSkel.invoke(CountBeanEOImpl_WLSkel.java:84)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled Code)
at
weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(Compiled
Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
The bean code is as follows:
package co.uk.perksr.session;
import javax.ejb.*;
public class CountBean implements SessionBean, Count {
public int counter;
private SessionContext context;
public void ejbCreate(int start) {
counter = start;
}
public int count() {
return ++counter;
}
public void ejbRemove() {
System.out.println("ejbRemove");
}
public void ejbActivate() {
System.out.println("ejbActivate");
}
public void ejbPassivate() {
System.out.println("ejbPassivate");
}
public void setSessionContext(SessionContext xt) {}
public void remove() {
System.out.println("remove");
}
}
Cheers,
Rich
----------------------------------------------------------------------
Richard Perks
Technical Architect
Acuma Soliutions Ltd
1 Victoria Square, Birmingham, West Midlands, B1 1BN
Tel: 0121 632 5677 Fax: 0121 643 3758 Mobile: 0385 925902
Email: [EMAIL PROTECTED]
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".