You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Thomas Lien (JIRA)" <ji...@apache.org> on 2018/09/07 19:12:00 UTC

[jira] [Updated] (OPENEJB-2137) FinderError returning more than 256 entites from ejb2 finder

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

Thomas Lien updated OPENEJB-2137:
---------------------------------
    Attachment: sourcecode.zip

> FinderError returning more than 256 entites from ejb2 finder
> ------------------------------------------------------------
>
>                 Key: OPENEJB-2137
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-2137
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: general
>         Environment: Windows 10 64 bit
>            Reporter: Thomas Lien
>            Priority: Major
>         Attachments: sourcecode.zip, ztest.ear.zip
>
>
> Running into a situation where calling a BMP finder method that returns more than 256 entities causes subsequent finders to fail. The scenario goes like this.
> An EJB2 session bean (FinderTest) calls two finder methods for BMPs. The first finder (BigFinder) returns multiple records. The second finder (LittleFinder) returns just 1 record. If BigFinder returns more than 256 records, the second finder (LittleFinder) will return BigFinder remote objects instead of the LittleFinder remote objects that it should! If BigFinder returns 256 entities or less everything works like it should.
> I can replicate this 100% of the time by deploying the attached ztest.ear application and running the FinderTestBean.main function. I have tried this on TomEE versions 1.7.3 and 7.0.5 and they both have the error.
> The error output of my test is as follows
> 09-07 12:25:13 [SEVERE] EjbTransactionUtil.handleSystemException: Failed with 257 records. LittleFinder Remote is actually com.sun.proxy.$Proxy142 Implemented interfaces [interface ztest.BigFinder, interface java.io.Serializable, interface org.apache.openejb.core.ivm.IntraVmProxy] Primary key value is 1



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