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] [Commented] (OPENJPA-1974) StackOverflowError when performing multiple subquery in collection field with eager fetch
Date Tue, 05 Apr 2011 16:39:05 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-1974?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016003#comment-13016003
] 

Rick Curtis commented on OPENJPA-1974:
--------------------------------------

Committed test / fix to trunk.

I ended up taking the SelectImpl.aliasSize( ... ) implementation from 1.2.x which was incorrectly
refactored in the 2.0.x time.

> 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