[jboss-jira] [JBoss JIRA] (WFLY-11793) JPA EntityManager merge infinite loop - java.lang.StackOverflowError
Scott Marlow (Jira)
issues at jboss.org
Fri Mar 1 15:10:05 EST 2019
[ https://issues.jboss.org/browse/WFLY-11793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13702838#comment-13702838 ]
Scott Marlow commented on WFLY-11793:
-------------------------------------
[~brunomaioli] I assume that an infinite loop, is caused by something going wrong in Hibernate ORM code. Could you verify by taking a thread dump of the WildFly server after the infinite loop has been reached?
You can probably use the "jps -l" + "jstack ProcessID" invocations, after recreating the failure.
If the infinite loop is caused by code in Hibernate ORM, then a [https://hibernate.atlassian.net/projects/HHH] will need to be created instead of this jira.
Thanks for reporting this.
Scott
> JPA EntityManager merge infinite loop - java.lang.StackOverflowError
> --------------------------------------------------------------------
>
> Key: WFLY-11793
> URL: https://issues.jboss.org/browse/WFLY-11793
> Project: WildFly
> Issue Type: Bug
> Components: JPA / Hibernate
> Affects Versions: 15.0.1.Final
> Environment: MAC OS Mojave
> Java 11
> Wildfly 15.0.1-Final
> Data Base Postgresql
> Reporter: Bruno Maioli Martins
> Assignee: Scott Marlow
> Priority: Critical
> Attachments: teste.zip
>
>
> Dear,
> When executing the update of a record invoking getEntityManager().merge(obj) the application goes into infinite loop. This behavior only occurs when there is a OneToMany bidirectional mapping of the entity Papel -> PermissaoAtribuida.
> If the same code runs outside of the Wildfly server context its execution occurs normally.
> Apparently the call getEntityManager.().merge(obj) attempts infinite selects to sync the object with transaction context before doing the merge.
> Attach the source code of my test classes.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list