Try to use addData(Serializable object) instead of addData(Object object)
Tibo.
-----Original Message-----
From: Sachin Mallapurkar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 12:40 PM
To: [EMAIL PROTECTED]
Subject: Scroll Bar functionality: Deploy Time EJB Error
Hello,
I have defined a stateful session bean as follows: NameBean, NameHome,
Name.
Functionality Description: We are tring to simulate the scroll bar
functionality through the session bean. Meaning, if the user enters
some piece of information on the screen, that information is stored as
an object in the session bean. Additional rows of information entered
through the screen are added as objects to the linked list structure in
the session bean. If the user needs to retreive the rows of information
just entered, he/she clicks on the UP/DOWN button on the screen. This
will fetch the objects one by one from the session bean and these will
be displayed on the screen.
The methods defined and implemented in this bean are:
public Object addData (Object obj);
public Object downdata ();
public Object upData ();
addData: adds the object to a linked list in the session bean.
downData: returns the object from the next position in the linked list
structure.
upData: returns the object from the previous position in the linked
list structure.
Compilation of the bean classes was successful. When we try to deploy
the bean, we get the following error message:
addData method was found, but does not have a valid RMI-IIOP method
parameter.
addData method was found, but business method has illegal parameter
values. Business method argument types must be legal type for RMI-IIOP.
To call the bean, we have the following servlet code:
Name name;
NameHome nameHome;
ssmCustomersMainBean ssmCMB = new ssmCustomersMainBean() ;
InitialContext ctx =new InitialContext();
Object objref = ctx.lookup("names");
namehome = (NameHome)PortableRemoteObject.narrow(objref,
NameHome.class);
ssmCMB=getFormData(HttpServletRequest req); // getFormData collects
input data from form and converts it into an object
ssmCMB=(ssmCustomersMainBean)name.addData(ssmCMB);
The EJB is instantiated and called from a servlet. We are deploying the
application under the J2EE reference implementation.
Can anyone please help? Thanks
Sachin
===========================================================================
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".
=========================================================================
Ce message et toutes les pi�ces jointes sont propri�t� de VALTECH et
susceptibles de contenir des informations confidentielles � l'intention
exclusive de ses destinataires. Si vous avez re�u ce message par erreur
ou si celui ci vous est parvenu incomplet ou alt�r�, merci d'en avertir
l'exp�diteur par retour.Toute utilisation, diffusion ou publication non
express�ment autoris�e par nous par �crit est strictement interdite.
--------------------------------------------------------------------------
This message and any attachments are Valtech property and may contain
iconfidential information intended solely for the addressees. If your are
not the intended recipient of this message or if you have received it
uncomplete or altered, please notify the author by replying to his e-mail
immediately. Any unauthorised use, diffusion or dissemination not
expressly authorised by us in writing is strictly prohibited.
=========================================================================
Copyright Valtech 2000
===========================================================================
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".