Michael Brung wrote:
> 
> I'm using Jonas 1.5 and I have the following problem while trying to
> compile the Session Bean example (see below).
> I run it on a Sun Ultra5 with Solaris 2.6 and JDK 1.2
> 
> Do you have any idea how to solve this problem?
> 
> Thanks in advance,
> Michael
> 
> smde-2% make
> /home/fi/fi96/brung/Middleware/Jonas/jonas_jdk1.2/bin/GenDD -d . Op.txt
> /home/fi/fi96/brung/Middleware/Jonas/jonas_jdk1.2/bin/GenIC -d
> ../../classes  ./Op.ser
> ../../classes/sb/JOnASOpBeanOp_Stub.java:71: Wrong number of arguments in
> method.
>                 this.invoke(this, $method_buy_0, new java.lang.Object[]
> {new java.lang.Integer($param_
> int_1)}, 3914631774102765454L);
>                            ^
> ../../classes/sb/JOnASOpBeanOp_Stub.java:98: Wrong number of arguments in
> method.


hello,
Can you rebuild your sb example with 
GENICFLAGS = -verbose -keepgenerated
an verify your traces are the following :


+ /usr/java1.2/bin/javac -d ../../classes Op.java OpBean.java
OpHome.java
ClientOp.java 
/u/joanin/jonas_pkg/jonas_jdk1.2/bin/GenDD -d . Op.txt
/u/joanin/jonas_pkg/jonas_jdk1.2/bin/GenIC -d ../../classes
-keepgenerated
-verbose ./Op.ser
GenIC: Treatement of the Serialized Deployment Descriptor './Op.ser'.
GenIC: The Implementation Remote Class is successfully generated in
../../classes/sb/JOnASOpBeanOp.java file.
GenIC: The Implementation Home Class is successfully generated in
../../classes/sb/JOnASOpBeanOpHome.java file.
GenIC: Running 'javac -d ../../classes 
../../classes/sb/JOnASOpBeanOp.java
../../classes/sb/JOnASOpBeanOpHome.java'
GenIC: The Implementation Remote and Home Classes are successfully
compiled via
javac.
GenIC: Running 'rmic  -keepgenerated  -v1.1 -d ../../classes 
-keepgenerated
sb.JOnASOpBeanOp sb.JOnASOpBeanOpHome'
GenIC: The Implementation Remote and Home Classes are successfully
compiled via
rmic .
GenIC: Modifying the '../../classes/sb/JOnASOpBeanOp_Skel.java' RMI file
GenIC: Modifying the '../../classes/sb/JOnASOpBeanOp_Stub.java' RMI file
GenIC: Modifying the '../../classes/sb/JOnASOpBeanOpHome_Skel.java' RMI
file
GenIC: Modifying the '../../classes/sb/JOnASOpBeanOpHome_Stub.java' RMI
file
GenIC: Running 'javac -d ../../classes 
../../classes/sb/JOnASOpBeanOp_Skel.java
../../classes/sb/JOnASOpBeanOp_Stub.java
../../classes/sb/JOnASOpBeanOpHome_Skel.java
../../classes/sb/JOnASOpBeanOpHome_Stub.java'
GenIC: The RMI Skel. and Stub. Classes are successfully modified.
>../../classes/sb/Op.genic_output


The important thing to check is :
GenIC: Running 'rmic  -keepgenerated  -v1.1 

It seems that in your case GenIC has tried to modify rmi 1.2 stubs 
instead of rmi 1.1.
For the moment with JDK 1.2 we need use the rmic compiler with the -v1.1
option.

Hope it helps,
Regards,
-- 
        Philippe

Philippe Coq  Groupe Bull/BullSoft/OpenMaster   Phone: (33) 04 76 29 78 49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]  http://www-frec.bull.com
Download our EJBServer at http://www.bullsoft.com/ejb

Reply via email to