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

StackOverflowError when performing multiple subquery in collection field with eager fetch

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0, 2.2.0
    • Fix Version/s: 2.2.0
    • Component/s: jdbc
    • Labels:
      None
    • Environment:
      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
          Rick Curtis
        2. subQueryBug.zip
          16 kB
          Takeshi Nishizawa

          Activity

            People

            • Assignee:
              curtisr7 Rick Curtis
              Reporter:
              takeshi.nishizawa Takeshi Nishizawa
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: