Hi Kristina,

I cannot reproduce your problem with our current beta version 2.0 of JOnAS.
The problem you describe, seems not to be a GenIC problem, but a rmi compiler
problem.
You could check that,
- by writing a remote class (instead of a bean), which extends
java.rmi.UnicastRemoteObject with a method returns a java.lang.Integer,
- and by compiling it with the rmi compiler.

Regards.
H�l�ne.


Kristina Straub wrote:
> 
> Hi,
> 
> I use JOnAS 1.6.1 and I tried to create a Bean with a get method, that
> returns an Integer. GenIC exits with an error without a message. GenIC
> with -nocompile and a manual compilation of the Stub shows, that the Stub
> causes a cast exception. The stub contains an extra .intValue() which
> causes the exception.
> 
> The generated stub looks like this:
> 
> public java.lang.Integer getPropertyXY
>   throws java.rmi.RemoteException {
>     try {
>         Object $result = ref.invoke(this,
>                 $method_getScoreClass_7, null, (long) 7);
>         return ((java.lang.Integer) $result).intValue();
>     } catch (RuntimeException e) {
>         ....
> 
> and it should not contain the .intValue() !!
> 
> The same problem occurrs with Float, Double, ...
> 
> Changing the return type to Number, if get no error, but I would like to
> use Integer...
> 
> To me this seems to be a bug in GenIC, or do you have an idea which
> could be the source of the problem?
> 
> Kind regards,
> Kristina
> 
> __________________________________________________
> Kristina Straub         harSYS GmbH
>                         Kranstr. 8
>                         70499   Stuttgart, Germany
>                         phone   +49 711 838981 10
>                         fax     +49 711 838981 29
>                         email   [EMAIL PROTECTED]
> 
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".

-- 
-=- H�l�ne JOANIN -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  mailto:[EMAIL PROTECTED]    http://www-frec.bull.com
  Phone: 33.4.76.29.73.53          Fax: 33.4.76.29.76.00
 Download our EJB Server JOnAS at http://www.bullsoft.com/ejb
_______________________________________________________________
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to