Page 2 of 2 FirstFirst 12
Results 21 to 27 of 27
  1. #21
    ampossible is offline Member
    Join Date
    Jan 2012
    Posts
    12
    Rep Power
    0

    Default Re: Quaere - Out of bounds exception

    But I will need to use loops which is not resource efficient, I believe!?!

  2. #22
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,321
    Rep Power
    25

    Default Re: Quaere - Out of bounds exception

    loops which is not resource efficient,
    How are you measuring resources?
    What would be more efficient than a loop?

  3. #23
    ampossible is offline Member
    Join Date
    Jan 2012
    Posts
    12
    Rep Power
    0

    Default Re: Quaere - Out of bounds exception

    The reason I decided to use Quaere is for avoiding using loops and running out of memory space.

  4. #24
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,321
    Rep Power
    25

    Default Re: Quaere - Out of bounds exception

    How much space do you have?
    Does a loop use more space then an iterator?
    Do you know how much space Quaere uses?

    Where is the download for the Quaere package?

  5. #25
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

    Default Re: Quaere - Out of bounds exception

    Quote Originally Posted by ampossible View Post
    Thank you for your help guys.

    As I have mentioned above the error occurs in this piece of code (simulator.Algorithm.SemanticSuperNodeAlgorithm.fi ndConceptsSupportedSuperNodes(SemanticSuperNodeAlg o rithm.java:1479)):

    from("supportedconcept").in(listSupportedConcepts) .
    join("concept").in(s.getConcepts()).on("supportedc oncept.id").
    equals("concept.id").select("supportedconcept").it erator());


    I am trying to retrieve the common elements of the two arraylists.

    The first arraylist (listSupportedConcepts) has 20 elements and the second (s.getConcepts()) has 9.
    That can't be the code causing the problem since the next part of the stack trace is this call:
    at org.quaere.dsl.QueryExpressionBuilderImpl.iterator (QueryExpressionBuilderImpl.java:94)
    which is not in the bit of code you posted. There is no call to iterator() there at all.

  6. #26
    ampossible is offline Member
    Join Date
    Jan 2012
    Posts
    12
    Rep Power
    0

    Default Re: Quaere - Out of bounds exception

    There is a call to iterator() at the last line of the code:

    from("supportedconcept").in(listSupportedConcepts) .
    join("concept").in(s.getConcepts()).on("supportedc oncept.id").
    equals("concept.id").select("supportedconcept").iterator();

  7. #27
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    11,949
    Rep Power
    19

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Out of bounds exception
    By MetalR0 in forum New To Java
    Replies: 9
    Last Post: 07-31-2011, 07:08 PM
  2. Out of Bounds Exception
    By johnwy8 in forum Java Applets
    Replies: 1
    Last Post: 12-08-2010, 08:19 PM
  3. array Index out of Bounds exception== 0
    By Allgorythm in forum New To Java
    Replies: 6
    Last Post: 02-11-2010, 04:02 PM
  4. Array out of bounds exception 20.
    By dropt in forum New To Java
    Replies: 4
    Last Post: 09-21-2009, 10:32 PM
  5. [SOLVED] out of bounds exception help
    By soxfan714 in forum New To Java
    Replies: 21
    Last Post: 11-11-2008, 08:16 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •