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/11 16:23:00 UTC

[jira] [Resolved] (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 resolved OPENEJB-2137.
----------------------------------
    Resolution: Invalid

> 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 entities. The second finder (LittleFinder) returns just 1 entity. If BigFinder returns more than 256 entities, the second finder (LittleFinder) will return BigFinder objects instead of the LittleFinder 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)