openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "francisco treacy" <francisco.tre...@gmail.com>
Subject Re: DelegatingResultList.subList not implemented?
Date Fri, 21 Mar 2008 01:16:51 GMT
jacques,

imho no relation to commons-lang.

given openjpaList and the start/end indexes, you should try grabbing
the list provided by openjpa, and doing this:

List sublist = new ArrayList(openjpaList).subList(fromIndex, toIndex);

hth,

francisco

On Thu, Mar 20, 2008 at 1:37 PM, Jacques Belissent <jbelisml@gmail.com> wrote:
> Hi Rajeev,
>
>  I get the same behavior with both 2.3 and 2.4.
>
>  Jacques
>
>
>
>
>
>  On Thu, Mar 20, 2008 at 12:46 AM, Rajeev Jha <jha.rajeev@gmail.com> wrote:
>
>  > can you try with latest version of apache common-lang? what is your
>  > current version of comman-lang?
>  >
>  > On Thu, Mar 20, 2008 at 11:52 AM, Jacques Belissent <jbelisml@gmail.com>
>  > wrote:
>  > > Hi,
>  > >
>  > >  I am getting the following exception when using OpenJPA 1.0.2.
>  > >
>  > >  Looks like subList is not implemented.  Is this expected?  Is there a
>  > >  workaround?
>  > >
>  > >  java.lang.UnsupportedOperationException
>  > >         at org.apache.openjpa.lib.rop.AbstractResultList.subList(
>  > >  AbstractResultList.java:84)
>  > >         at org.apache.openjpa.kernel.DelegatingResultList.subList(
>  > >  DelegatingResultList.java:308)
>  > >         ...
>  > >
>  > >  Thanks.
>  > >  Jacques
>  > >
>  >
>

Mime
View raw message