You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by VRB007 <vi...@yahoo.com> on 2012/05/23 17:59:23 UTC
java.lang.StackOverflowError at SelectImpl.aliasSize
Hi
I just upgraded openJPA from 1.2.2 to 2.0.1
I have a test case which was running fine before now throws exception as
below
"java.lang.StackOverflowError
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2134)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
at org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectIm.............
...........
at
org.apache.openjpa.jdbc.sql.SelectImpl.getTableIndex(SelectImpl.java:2025)
at org.apache.openjpa.jdbc.sql.SelectImpl.access$900(SelectImpl.java:73)
at
org.apache.openjpa.jdbc.sql.SelectImpl$SelectJoins.join(SelectImpl.java:2892)
at
org.apache.openjpa.jdbc.sql.SelectImpl$SelectJoins.joinRelation(SelectImpl.java:2830)
at
org.apache.openjpa.jdbc.meta.strats.RelationToManyInverseKeyFieldStrategy.join(RelationToManyInverseKeyFieldStrategy.java:103)
at
org.apache.openjpa.jdbc.meta.strats.RelationCollectionInverseKeyFieldStrategy.join(RelationCollectionInverseKeyFieldStrategy.java:80)
at
org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEager(StoreCollectionFieldStrategy.java:212)
at
org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEagerParallel(StoreCollectionFieldStrategy.java:154)
at
org.apache.openjpa.jdbc.meta.FieldMapping.selectEagerParallel(FieldMapping.java:840)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.selectBaseMappings(JDBCStoreManager.java:1355)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreManager.select(JDBCStoreManager.java:1161)
at org.apache.openjpa.jdbc.sql.SelectImpl.select(SelectImpl.java:953)
at
org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.select(LogicalUnion.java:626)
at
org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.selectIdentifier(LogicalUnion.java:648)
at
org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.select(SelectConstructor.java:328)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.populateSelect(JDBCStoreQuery.java:289)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.access$100(JDBCStoreQuery.java:83)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreQuery$1.select(JDBCStoreQuery.java:261)
at org.apache.openjpa.jdbc.sql.LogicalUnion.select(LogicalUnion.java:297)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.populateUnion(JDBCStoreQuery.java:259)
at
org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.executeQuery(JDBCStoreQuery.java:205)
at
org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeQuery(ExpressionStoreQuery.java:753)
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:1003)
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:861)
at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:792)
at
org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:542)
at org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:288)
at
org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at
org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:310)"
Any Idea about this error ?
Please let me know if you want me to provide more information.
Thanks
--
View this message in context: http://openjpa.208410.n2.nabble.com/java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by Kevin Sutter <kw...@gmail.com>.
Good to hear!
On Thu, May 24, 2012 at 7:59 AM, VRB007 <vi...@yahoo.com> wrote:
> Thank You all the fix works
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Subquery-problem-java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688p7575043.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by VRB007 <vi...@yahoo.com>.
Thank You all the fix works
--
View this message in context: http://openjpa.208410.n2.nabble.com/Subquery-problem-java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688p7575043.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by Kevin Sutter <kw...@gmail.com>.
I think if you try the 2.0.x nightly from this evening, you should have the
fix. Good luck!
On Wed, May 23, 2012 at 3:43 PM, VRB007 <vi...@yahoo.com> wrote:
> Thanks for the info
> I would like to 2.2.x or 2.3.x but at for now I have limited to 2.0.x
> because we are still on java 5.
> When will be the release for 2.0.x available ?
>
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Subquery-problem-java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688p7574141.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by VRB007 <vi...@yahoo.com>.
Thanks for the info
I would like to 2.2.x or 2.3.x but at for now I have limited to 2.0.x
because we are still on java 5.
When will be the release for 2.0.x available ?
--
View this message in context: http://openjpa.208410.n2.nabble.com/Subquery-problem-java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688p7574141.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by Kevin Sutter <kw...@gmail.com>.
It looks like Heath just ported to the 2.0.x branch earlier this morning,
so your nightly snapshot didn't have the fix yet... The 2.1.x service
branch had the change integrated on 05/21... Or, of course, you could try
the 2.2.x branch or trunk (2.3.x) since they already contained the fix...
On Wed, May 23, 2012 at 12:40 PM, VRB007 <vi...@yahoo.com> wrote:
> Hi Rick
> I used this snapshot
> "apache-openjpa-2.0.2-20120523.034754-50", I still get the same error
>
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/Subquery-problem-java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688p7573890.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by VRB007 <vi...@yahoo.com>.
Hi Rick
I used this snapshot
"apache-openjpa-2.0.2-20120523.034754-50", I still get the same error
--
View this message in context: http://openjpa.208410.n2.nabble.com/Subquery-problem-java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688p7573890.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by VRB007 <vi...@yahoo.com>.
Thanks Rick
I will try the nightly build from 2.0.x
--
View this message in context: http://openjpa.208410.n2.nabble.com/Subquery-problem-java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688p7573748.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by VRB007 <vi...@yahoo.com>.
Sorry for the basic / novice question " Where is the location or how should I
get this nightly build for 2.0.x?"
--
View this message in context: http://openjpa.208410.n2.nabble.com/Subquery-problem-java-lang-StackOverflowError-at-SelectImpl-aliasSize-tp7573688p7573780.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by Rick Curtis <cu...@gmail.com>.
Now that I say that, it appears that Heath just merged those changes to
2.0.x and 2.1.x this week.... so the fix isn't in a part of a release yet.
You could always grab the nightly 2.0 build.
Thanks,
Rick
On Wed, May 23, 2012 at 12:16 PM, Rick Curtis <cu...@gmail.com> wrote:
> It appears that this has already been fixed. Can you try a newer version
> of OpenJPA?
>
> Thanks,
> Rick
>
> [1] https://issues.apache.org/jira/browse/OPENJPA-1974
>
>
> On Wed, May 23, 2012 at 11:59 AM, VRB007 <vi...@yahoo.com> wrote:
>
>> Hi
>> I just upgraded openJPA from 1.2.2 to 2.0.1
>> I have a test case which was running fine before now throws exception as
>> below
>>
>> "java.lang.StackOverflowError
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2134)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectIm.............
>> ...........
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.getTableIndex(SelectImpl.java:2025)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.access$900(SelectImpl.java:73)
>> at
>>
>> org.apache.openjpa.jdbc.sql.SelectImpl$SelectJoins.join(SelectImpl.java:2892)
>> at
>>
>> org.apache.openjpa.jdbc.sql.SelectImpl$SelectJoins.joinRelation(SelectImpl.java:2830)
>> at
>>
>> org.apache.openjpa.jdbc.meta.strats.RelationToManyInverseKeyFieldStrategy.join(RelationToManyInverseKeyFieldStrategy.java:103)
>> at
>>
>> org.apache.openjpa.jdbc.meta.strats.RelationCollectionInverseKeyFieldStrategy.join(RelationCollectionInverseKeyFieldStrategy.java:80)
>> at
>>
>> org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEager(StoreCollectionFieldStrategy.java:212)
>> at
>>
>> org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEagerParallel(StoreCollectionFieldStrategy.java:154)
>> at
>>
>> org.apache.openjpa.jdbc.meta.FieldMapping.selectEagerParallel(FieldMapping.java:840)
>> at
>>
>> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.selectBaseMappings(JDBCStoreManager.java:1355)
>> at
>>
>> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.select(JDBCStoreManager.java:1161)
>> at
>> org.apache.openjpa.jdbc.sql.SelectImpl.select(SelectImpl.java:953)
>> at
>>
>> org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.select(LogicalUnion.java:626)
>> at
>>
>> org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.selectIdentifier(LogicalUnion.java:648)
>> at
>>
>> org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.select(SelectConstructor.java:328)
>> at
>>
>> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.populateSelect(JDBCStoreQuery.java:289)
>> at
>>
>> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.access$100(JDBCStoreQuery.java:83)
>> at
>>
>> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery$1.select(JDBCStoreQuery.java:261)
>> at
>> org.apache.openjpa.jdbc.sql.LogicalUnion.select(LogicalUnion.java:297)
>> at
>>
>> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.populateUnion(JDBCStoreQuery.java:259)
>> at
>>
>> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.executeQuery(JDBCStoreQuery.java:205)
>> at
>>
>> org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeQuery(ExpressionStoreQuery.java:753)
>> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:1003)
>> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:861)
>> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:792)
>> at
>>
>> org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:542)
>> at
>> org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:288)
>> at
>> org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:302)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
>> at
>>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:618)
>> at
>>
>> org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:310)"
>>
>> Any Idea about this error ?
>>
>> Please let me know if you want me to provide more information.
>>
>> Thanks
>>
>>
>
> --
> *Rick Curtis*
>
>
--
*Rick Curtis*
Re: java.lang.StackOverflowError at SelectImpl.aliasSize
Posted by Rick Curtis <cu...@gmail.com>.
It appears that this has already been fixed. Can you try a newer version of
OpenJPA?
Thanks,
Rick
[1] https://issues.apache.org/jira/browse/OPENJPA-1974
On Wed, May 23, 2012 at 11:59 AM, VRB007 <vi...@yahoo.com> wrote:
> Hi
> I just upgraded openJPA from 1.2.2 to 2.0.1
> I have a test case which was running fine before now throws exception as
> below
>
> "java.lang.StackOverflowError
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2134)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2132)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectImpl.java:2140)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.aliasSize(SelectIm.............
> ...........
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.getTableIndex(SelectImpl.java:2025)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.access$900(SelectImpl.java:73)
> at
>
> org.apache.openjpa.jdbc.sql.SelectImpl$SelectJoins.join(SelectImpl.java:2892)
> at
>
> org.apache.openjpa.jdbc.sql.SelectImpl$SelectJoins.joinRelation(SelectImpl.java:2830)
> at
>
> org.apache.openjpa.jdbc.meta.strats.RelationToManyInverseKeyFieldStrategy.join(RelationToManyInverseKeyFieldStrategy.java:103)
> at
>
> org.apache.openjpa.jdbc.meta.strats.RelationCollectionInverseKeyFieldStrategy.join(RelationCollectionInverseKeyFieldStrategy.java:80)
> at
>
> org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEager(StoreCollectionFieldStrategy.java:212)
> at
>
> org.apache.openjpa.jdbc.meta.strats.StoreCollectionFieldStrategy.selectEagerParallel(StoreCollectionFieldStrategy.java:154)
> at
>
> org.apache.openjpa.jdbc.meta.FieldMapping.selectEagerParallel(FieldMapping.java:840)
> at
>
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.selectBaseMappings(JDBCStoreManager.java:1355)
> at
>
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.select(JDBCStoreManager.java:1161)
> at
> org.apache.openjpa.jdbc.sql.SelectImpl.select(SelectImpl.java:953)
> at
>
> org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.select(LogicalUnion.java:626)
> at
>
> org.apache.openjpa.jdbc.sql.LogicalUnion$UnionSelect.selectIdentifier(LogicalUnion.java:648)
> at
>
> org.apache.openjpa.jdbc.kernel.exps.SelectConstructor.select(SelectConstructor.java:328)
> at
>
> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.populateSelect(JDBCStoreQuery.java:289)
> at
>
> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.access$100(JDBCStoreQuery.java:83)
> at
>
> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery$1.select(JDBCStoreQuery.java:261)
> at
> org.apache.openjpa.jdbc.sql.LogicalUnion.select(LogicalUnion.java:297)
> at
>
> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.populateUnion(JDBCStoreQuery.java:259)
> at
>
> org.apache.openjpa.jdbc.kernel.JDBCStoreQuery.executeQuery(JDBCStoreQuery.java:205)
> at
>
> org.apache.openjpa.kernel.ExpressionStoreQuery$DataStoreExecutor.executeQuery(ExpressionStoreQuery.java:753)
> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:1003)
> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:861)
> at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:792)
> at
> org.apache.openjpa.kernel.DelegatingQuery.execute(DelegatingQuery.java:542)
> at
> org.apache.openjpa.persistence.QueryImpl.execute(QueryImpl.java:288)
> at
> org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:302)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:618)
> at
>
> org.springframework.orm.jpa.SharedEntityManagerCreator$DeferredQueryInvocationHandler.invoke(SharedEntityManagerCreator.java:310)"
>
> Any Idea about this error ?
>
> Please let me know if you want me to provide more information.
>
> Thanks
>
>
--
*Rick Curtis*