Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1974

StackOverflowError when performing multiple subquery in collection field with eager fetch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0, 2.2.0
    • 2.2.0
    • jdbc
    • None
    • Windows, x86, JDK 1.6.0_22

    Description

      When I run a JPQL with multiple subquery in @OneToMany annotated collection property with eager fetch configuration, StackOverflowError is thrown.

      java.lang.StackOverflowError
      at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2166)
      at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2160)
      at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2168)
      at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2160)
      at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2168)
      at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2160)
      at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2168)
      ...

      Attachments

        1. OPENJPA-1974.trunk.patch
          5 kB
          Richard G. Curtis
        2. subQueryBug.zip
          16 kB
          Takeshi Nishizawa

        Activity

          People

            curtisr7 Richard G. Curtis
            takeshi.nishizawa Takeshi Nishizawa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: