openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rick Curtis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OPENJPA-1974) StackOverflowError when performing multiple subquery in collection field with eager fetch
Date Mon, 04 Apr 2011 21:47:05 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rick Curtis updated OPENJPA-1974:
---------------------------------

    Attachment: OPENJPA-1974.trunk.patch

Uploading a test case and test fix. All unit tests pass, but I want to sit on this change
over night...

I'm uncertain of whether or not a call to org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize()
can/will originate from a non "parent" SelectImpl.  This is important to my change as to calculate
the number of aliases I'm only looking at the SelectImpl object which aliasSize() was called
and all of it's sub selects. 

> StackOverflowError when performing multiple subquery in collection field with eager fetch
> -----------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1974
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1974
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: jdbc
>    Affects Versions: 2.1.0, 2.2.0
>         Environment: Windows, x86, JDK 1.6.0_22
>            Reporter: Takeshi Nishizawa
>            Assignee: Rick Curtis
>             Fix For: 2.2.0
>
>         Attachments: OPENJPA-1974.trunk.patch, subQueryBug.zip
>
>
> 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)
>         ...

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message