tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Lien (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (OPENEJB-2137) FinderError returning more than 256 entites from ejb2 finder
Date Tue, 11 Sep 2018 16:23:00 GMT

     [ 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)

Mime
View raw message