You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Eric Shu (JIRA)" <ji...@apache.org> on 2018/02/07 01:31:00 UTC

[jira] [Commented] (GEODE-4573) Query execution within a transaction (JTA) produces a ClassCastException in version 1.4.0

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

Eric Shu commented on GEODE-4573:
---------------------------------

There is another workaround besides the setting property -Dgemfire.restoreSetOperationTransactionBehavior=true. One can do an operation (like a region.get() etc) in the JTA before doing the query to avoid this ClassCastException issue.

Fix will be ready in the next release.

> Query execution within a transaction (JTA) produces a ClassCastException in version 1.4.0
> -----------------------------------------------------------------------------------------
>
>                 Key: GEODE-4573
>                 URL: https://issues.apache.org/jira/browse/GEODE-4573
>             Project: Geode
>          Issue Type: Bug
>          Components: transactions
>    Affects Versions: 1.4.0
>            Reporter: Vadim Lotarev
>            Assignee: Eric Shu
>            Priority: Major
>
> The stack trace is like that:
> {code:java}
> Caused by: java.lang.ClassCastException: org.apache.geode.internal.cache.TXEntry cannot be cast to org.apache.geode.internal.cache.LocalRegion$NonTXEntry
> at org.apache.geode.internal.cache.EntriesSet$EntriesIterator.moveNext(EntriesSet.java:179)
> at org.apache.geode.internal.cache.EntriesSet$EntriesIterator.<init>(EntriesSet.java:118)
> at org.apache.geode.internal.cache.EntriesSet.iterator(EntriesSet.java:83)
> at org.apache.geode.cache.query.internal.ResultsCollectionWrapper.iterator(ResultsCollectionWrapper.java:184)
> at org.apache.geode.cache.query.internal.QRegion.iterator(QRegion.java:244)
> at org.apache.geode.cache.query.internal.CompiledSelect.doNestedIterations(CompiledSelect.java:834)
> at org.apache.geode.cache.query.internal.CompiledSelect.doIterationEvaluate(CompiledSelect.java:701)
> at org.apache.geode.cache.query.internal.CompiledSelect.evaluate(CompiledSelect.java:545)
> at org.apache.geode.cache.query.internal.CompiledSelect.evaluate(CompiledSelect.java:55)
> at org.apache.geode.cache.query.internal.DefaultQuery.executeUsingContext(DefaultQuery.java:557)
> at org.apache.geode.cache.query.internal.DefaultQuery.execute(DefaultQuery.java:384)
> {code}
> When property {{-Dgemfire.restoreSetOperationTransactionBehavior=true}} is set than everything works without errors.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)