tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: CMP2 enitity get is making update query in Linux environment
Date Thu, 23 Feb 2017 15:11:47 GMT
do you launch it the same way? openejb-javaagent is there in all cases?


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2017-02-23 16:00 GMT+01:00 seenu.atluri <seenu.atluri@gmail.com>:

> Yes Romain.
>
> Not only this we are seeing one more issue. In windows "fetch=EAGER" on
> one-to-many is working fine. When the same is deployed in Unix/Linux we are
> getting below exception. I googled it, there are posts discussing about
> Eager fetch is not supported when
> "openjpa.RuntimeUnenhancedClasses=supported". Looks like TomEE set it to
> supported by default, but wondering why we are not seeing this issue in
> windows.
>
> You had helped us a lot during this migration process. We tested
> application
> in Windows locally,but when it is being tested in integration environment
> on
> linux we are seeing all these issues. your help in this regard is highly
> appreciated.
>
>
> Caused by:
> org.apache.openejb.core.transaction.TransactionRolledbackException: The
> transaction has been marked rollback only because the bean encountered a
> non-application exception
> :org.apache.openjpa.persistence.PersistenceException : null
>         at
> org.apache.openejb.core.transaction.EjbTransactionUtil.
> handleSystemException(EjbTransactionUtil.java:151)
> [openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.cmp.CmpContainer.findEJBObject(
> CmpContainer.java:750)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at org.apache.openejb.core.cmp.CmpContainer.invoke(
> CmpContainer.java:271)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.entity.EntityEjbHomeHandler.
> findX(EntityEjbHomeHandler.java:65)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.ivm.EjbHomeProxyHandler._invoke(
> EjbHomeProxyHandler.java:199)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         ... 68 more
> Caused by: org.apache.openjpa.persistence.PersistenceException
>         at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:1029)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:928)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(
> JDBCStoreManager.java:1032)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.jdbc.sql.AbstractResult.load(
> AbstractResult.java:280)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.jdbc.sql.SelectImpl$SelectResult.load(
> SelectImpl.java:2382)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.jdbc.sql.AbstractResult.load(
> AbstractResult.java:274)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider.
> getResultObject(InstanceResultObjectProvider.java:59)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.lib.rop.EagerResultList.<init>(EagerResultList.java:35)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.QueryImpl.toResult(QueryImpl.
> java:1257)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.
> java:1013)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:869)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:800)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.kernel.DelegatingQuery.execute(
> DelegatingQuery.java:541)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.persistence.QueryImpl.execute(
> QueryImpl.java:274)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:290)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openejb.core.cmp.jpa.JpaCmpEngine.executeSelectQuery(
> JpaCmpEngine.java:280)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.cmp.jpa.JpaCmpEngine.queryBeans(
> JpaCmpEngine.java:234)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.cmp.CmpContainer.findEJBObject(
> CmpContainer.java:702)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at org.apache.openejb.core.cmp.CmpContainer.invoke(
> CmpContainer.java:271)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.entity.EntityEjbHomeHandler.
> findX(EntityEjbHomeHandler.java:65)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.ivm.EjbHomeProxyHandler._invoke(
> EjbHomeProxyHandler.java:199)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         ... 68 more
> Caused by: java.lang.NullPointerException
>         at
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.setInverseRelation(
> JDBCStoreManager.java:452)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.initializeState(
> JDBCStoreManager.java:412)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.
> initialize(JDBCStoreManager.java:305)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.kernel.DelegatingStoreManager.initialize(
> DelegatingStoreManager.java:112)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.kernel.ROPStoreManager.initialize(
> ROPStoreManager.java:57)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.BrokerImpl.initialize(
> BrokerImpl.java:1048)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:1006)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.BrokerImpl.find(BrokerImpl.java:928)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.load(
> JDBCStoreManager.java:1032)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.jdbc.sql.AbstractResult.load(
> AbstractResult.java:280)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.jdbc.sql.SelectImpl$SelectResult.load(
> SelectImpl.java:2382)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.jdbc.sql.AbstractResult.load(
> AbstractResult.java:274)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.jdbc.kernel.InstanceResultObjectProvider.
> getResultObject(InstanceResultObjectProvider.java:59)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.lib.rop.EagerResultList.<init>(EagerResultList.java:35)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.QueryImpl.toResult(QueryImpl.
> java:1257)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.
> java:1013)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:869)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.kernel.QueryImpl.execute(QueryImpl.java:800)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.kernel.DelegatingQuery.execute(
> DelegatingQuery.java:541)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at org.apache.openjpa.persistence.QueryImpl.execute(
> QueryImpl.java:274)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openjpa.persistence.QueryImpl.getResultList(QueryImpl.java:290)
> ~[openjpa-2.4.1.jar:2.4.1]
>         at
> org.apache.openejb.core.cmp.jpa.JpaCmpEngine.executeSelectQuery(
> JpaCmpEngine.java:280)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.cmp.jpa.JpaCmpEngine.queryBeans(
> JpaCmpEngine.java:234)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.cmp.CmpContainer.findEJBObject(
> CmpContainer.java:702)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at org.apache.openejb.core.cmp.CmpContainer.invoke(
> CmpContainer.java:271)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.entity.EntityEjbHomeHandler.
> findX(EntityEjbHomeHandler.java:65)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         at
> org.apache.openejb.core.ivm.EjbHomeProxyHandler._invoke(
> EjbHomeProxyHandler.java:199)
> ~[openejb-core-7.0.1.jar:7.0.1]
>         ... 68 more
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/CMP2-enitity-get-is-making-update-query-in-
> Linux-environment-tp4681136p4681143.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message