Hello Pedro,

Please report suspected bugs to [EMAIL PROTECTED] In this case I'm
forwarding the mail there, but please use that address next time. Suspected
bugs are more important than the regular Orion discussion on orion-interest
and if you send a bug report to the list it will probably not get noticed
and fixed as fast as with a bugs@ mail. Also, when following up, it's much
easier for us to check that all bugs are fixed if they are sent to bugs@. If
we get suspected bugs reported to many different places it's harder for us
to find the reports.

You will receive a response to your report shortly.

Regards,
Karl Avedal

Pedro Garcia Lopez wrote:

> Hi,
>
> I think I have found a bug with CMP in Orion.
>
> The error is simple and you can test it.
> I have a Entity Bean with a field called users--type Collection--.
> My entity have simple methos like addUser, removeUser, getUsers.
>
> Without specifying   public static final Class users_type =
> java.lang.String.class; in my EJB all works nice.
> I have a test application that works without problems.
>
> If I specify this line ( public static final Class users_type =
> java.lang.String.class;) the test applications fails.
> ---------------
> System/communication error: java.lang.ArrayIndexOutOfBoundsException;
> nested exc
> eption is:
>         java.lang.ArrayIndexOutOfBoundsException
> --------------
> and the client code:
>
> -----------
>  Place thePlace = (Place)home.findByPrimaryKey("pedro");
>    thePlace.join();
>
>   String users[] = thePlace.getUsers();
>
>    for (int i =0;i<users.length;i++)
>        System.out.println(users[i]);
>
> -----------------------
> In the server side the problem arises when obtaining the users, in the
> getUsers method.
>
> If any Orion guy is interested in fixing this problem I can send you the
> source code.
> Regards.


Reply via email to