Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Setting entity's cache type to none throws StackOverflowError
Setting entity's cache type to none throws StackOverflowError [message #389441] Wed, 10 June 2009 12:24 Go to next message
Torben Putkonen is currently offline Torben Putkonen
Messages: 34
Registered: July 2009
Member
I have two entity classes looking like the following (I changed the field
names, hope I didn't mess it up):

public class Table {
@Id
private String name;
@OneToMany(mappedBy = "field", fetch = FetchType.EAGER, cascade =
CascadeType.ALL)
@OrderBy("priority")
private List<Tablevalues> values = new ArrayList<Tablevalues>();
}

public class Tablevalues {
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator =
"TABLEVALUESID_SEQ")
private Long id;
@ManyToOne
@JoinColumn(name="valuename")
private Table field;
@Column(nullable = false)
private int field2;
private String field3;
}

This entities work fine when I use ElementManager.find(). However, if I
add annotation

@Cache(type = CacheType.NONE)

To these entities and use find() method, I get the following exception:

Jun 10, 2009 3:01:09 PM oracle.j2ee.rmi.RMIMessages
EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
WARNING: Exception returned by remote server: {0}
javax.ejb.EJBException: java.lang.StackOverflowError; nested exception is:
javax.ejb.TransactionRolledbackLocalException:
java.lang.StackOverflowError; CausedByException is:
java.lang.StackOverflowError; nested exception is:
javax.ejb.TransactionRolledbackLocalException:
java.lang.StackOverflowError
at
com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils .java:365)
at
com.evermind.server.ejb.EJBUtils.createEJBException(EJBUtils .java:356)
at
com.evermind.server.ejb.AbstractEJBObject.OC4J_handleUncheck edException(AbstractEJBObject.java:396)
at MyCode_RemoteProxy_1d98pf4.update(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java :53)
at
com.evermind.util.ReleasableResourcePooledExecutor$MyWorker. run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.transaction.TransactionRolledbackException:
java.lang.StackOverflowError; nested exception is:
javax.ejb.TransactionRolledbackLocalException:
java.lang.StackOverflowError
at
com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.j ava:338)
at
com.evermind.server.ejb.interceptor.system.AbstractTxInterce ptor.convertAndHandleMethodException(AbstractTxInterceptor.j ava:75)
at
com.evermind.server.ejb.interceptor.system.TxBeanManagedInte rceptor.invoke(TxBeanManagedInterceptor.java:55)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.DMSInterceptor.in voke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.InvocationContextPool.invoke(Invocat ionContextPool.java:55)
at
com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invok eMethod(StatelessSessionEJBObject.java:87)
... 8 more
Caused by: javax.ejb.TransactionRolledbackLocalException:
java.lang.StackOverflowError
at
com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUt ils.java:309)
at
com.evermind.server.ejb.interceptor.system.AbstractTxInterce ptor.convertAndHandleMethodException(AbstractTxInterceptor.j ava:73)
at
com.evermind.server.ejb.interceptor.system.TxRequiredInterce ptor.invoke(TxRequiredInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.DMSInterceptor.in voke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.InvocationContextPool.invoke(Invocat ionContextPool.java:55)
at
com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invok eMethod(StatelessSessionEJBObject.java:87)
at PropertyStore_LocalProxy_3mpdf91.getValue(Unknown Source)
at com.mycode.getTableValue(MyBean.java:1100)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointIm pl.invoke(EJBJoinPointImpl.java:35)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.SetContextActionI nterceptor.invoke(SetContextActionInterceptor.java:44)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.DMSInterceptor.in voke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.TxRequiredInterce ptor.invoke(TxRequiredInterceptor.java:50)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.DMSInterceptor.in voke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.InvocationContextPool.invoke(Invocat ionContextPool.java:55)
at
com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invok eMethod(StatelessSessionEJBObject.java:87)
at
HUSConfigBean_LocalProxy_3mpdf91.getCodeserverWebservicesVer sions(Unknown
Source)
at com.mycode.launch(LaunchBean.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointIm pl.invoke(EJBJoinPointImpl.java:35)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.SetContextActionI nterceptor.invoke(SetContextActionInterceptor.java:44)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.DMSInterceptor.in voke(DMSInterceptor.java:52)
at
com.evermind.server.ejb.interceptor.InvocationContextImpl.pr oceed(InvocationContextImpl.java:119)
at
com.evermind.server.ejb.interceptor.system.TxBeanManagedInte rceptor.invoke(TxBeanManagedInterceptor.java:53)
... 13 more
Caused by: java.lang.StackOverflowError
at java.util.HashSet.<init>(HashSet.java:85)
at
oracle.oc4j.sql.spi.ConnectionHandle$DeferredOperationHashSe t. <init>(ConnectionHandle.java:785)
at
oracle.oc4j.sql.spi.ConnectionHandle$DeferredOperationHashSe t. <init>(ConnectionHandle.java:785)
at
oracle.oc4j.sql.spi.ConnectionHandle.createListenerSet(Conne ctionHandle.java:763)
at
oracle.oc4j.sql.spi.ConnectionHandle.clone(ConnectionHandle. java:774)
at
oracle.oc4j.sql.proxy.SQLBCELProxyBuilder.cloneProxy(SQLBCEL ProxyBuilder.java:280)
at
oracle.j2ee.connector.proxy.BCELProxyFactory.getProxy(BCELPr oxyFactory.java:148)
at
oracle.oc4j.sql.proxy.SQLBCELProxyFactory.getProxy(SQLBCELPr oxyFactory.java:47)
at
oracle.oc4j.sql.spi.ConnectionHandle.getConnectionHandle(Con nectionHandle.java:728)
at
oracle.oc4j.sql.spi.ManagedConnectionImpl.getConnectionHandl e(ManagedConnectionImpl.java:273)
at
oracle.oc4j.sql.spi.ManagedConnectionImpl.getConnection(Mana gedConnectionImpl.java:255)
at
com.evermind.server.connector.ApplicationConnectionManager.c reateConnectionHandle(ApplicationConnectionManager.java:1786 )
at
com.evermind.server.connector.ApplicationConnectionManager.a llocateConnection(ApplicationConnectionManager.java:1472)
at
oracle.j2ee.connector.OracleConnectionManager.unprivileged_a llocateConnection(OracleConnectionManager.java:238)
at
oracle.j2ee.connector.OracleConnectionManager.allocateConnec tion(OracleConnectionManager.java:192)
at
oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataS ource.java:272)
at
oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataS ource.java:200)
at
oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataS ource.java:142)
at
oracle.oc4j.sql.ManagedDataSource.getConnection(ManagedDataS ource.java:127)
at
org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIC onnector.java:133)
at
org.eclipse.persistence.sessions.JNDIConnector.connect(JNDIC onnector.java:94)
at
org.eclipse.persistence.sessions.DatasourceLogin.connectToDa tasource(DatasourceLogin.java:162)
at
org.eclipse.persistence.internal.databaseaccess.DatasourceAc cessor.connectInternal(DatasourceAccessor.java:324)
at
org.eclipse.persistence.internal.databaseaccess.DatabaseAcce ssor.connectInternal(DatabaseAccessor.java:265)
at
org.eclipse.persistence.internal.databaseaccess.DatasourceAc cessor.reconnect(DatasourceAccessor.java:546)
at
org.eclipse.persistence.internal.databaseaccess.DatabaseAcce ssor.reconnect(DatabaseAccessor.java:1386)
at
org.eclipse.persistence.internal.databaseaccess.DatasourceAc cessor.incrementCallCount(DatasourceAccessor.java:300)
at
org.eclipse.persistence.internal.databaseaccess.DatabaseAcce ssor.basicExecuteCall(DatabaseAccessor.java:545)
at
org.eclipse.persistence.internal.databaseaccess.DatabaseAcce ssor.executeCall(DatabaseAccessor.java:501)
at
org.eclipse.persistence.sessions.server.ServerSession.execut eCall(ServerSession.java:536)
at
org.eclipse.persistence.internal.queries.DatasourceCallQuery Mechanism.executeCall(DatasourceCallQueryMechanism.java:205)
at
org.eclipse.persistence.internal.queries.DatasourceCallQuery Mechanism.executeCall(DatasourceCallQueryMechanism.java:191)
at
org.eclipse.persistence.internal.queries.DatasourceCallQuery Mechanism.executeSelectCall(DatasourceCallQueryMechanism.jav a:262)
at
org.eclipse.persistence.internal.queries.DatasourceCallQuery Mechanism.selectAllRows(DatasourceCallQueryMechanism.java:59 9)
at
org.eclipse.persistence.internal.queries.ExpressionQueryMech anism.selectAllRowsFromTable(ExpressionQueryMechanism.java:2 520)
at
org.eclipse.persistence.internal.queries.ExpressionQueryMech anism.selectAllRows(ExpressionQueryMechanism.java:2478)
at
org.eclipse.persistence.queries.ReadAllQuery.executeObjectLe velReadQuery(ReadAllQuery.java:481)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute DatabaseQuery(ObjectLevelReadQuery.java:928)
at
org.eclipse.persistence.queries.DatabaseQuery.execute(Databa seQuery.java:664)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute (ObjectLevelReadQuery.java:889)
at
org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAll Query.java:458)
at
org.eclipse.persistence.internal.sessions.AbstractSession.in ternalExecuteQuery(AbstractSession.java:2243)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1181)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1165)
at
org.eclipse.persistence.internal.indirection.NoIndirectionPo licy.valueFromQuery(NoIndirectionPolicy.java:299)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRowInternal(ForeignReferenceMapping.java:1473)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRow(ForeignReferenceMapping.java:1402)
at
org.eclipse.persistence.mappings.DatabaseMapping.readFromRow IntoObject(DatabaseMapping.java:1136)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildAttributesIntoObject(ObjectBuilder.java:325)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:652)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:487)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:437)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.buildOb ject(ObjectLevelReadQuery.java:569)
at
org.eclipse.persistence.queries.ReadObjectQuery.executeObjec tLevelReadQuery(ReadObjectQuery.java:439)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute DatabaseQuery(ObjectLevelReadQuery.java:928)
at
org.eclipse.persistence.queries.DatabaseQuery.execute(Databa seQuery.java:664)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute (ObjectLevelReadQuery.java:889)
at
org.eclipse.persistence.queries.ReadObjectQuery.execute(Read ObjectQuery.java:397)
at
org.eclipse.persistence.internal.sessions.AbstractSession.in ternalExecuteQuery(AbstractSession.java:2243)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1181)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1165)
at
org.eclipse.persistence.internal.indirection.NoIndirectionPo licy.valueFromQuery(NoIndirectionPolicy.java:299)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRowInternal(ForeignReferenceMapping.java:1473)
at
org.eclipse.persistence.mappings.OneToOneMapping.valueFromRo wInternal(OneToOneMapping.java:1039)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRow(ForeignReferenceMapping.java:1402)
at
org.eclipse.persistence.mappings.DatabaseMapping.readFromRow IntoObject(DatabaseMapping.java:1136)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildAttributesIntoObject(ObjectBuilder.java:325)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:652)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:487)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObjectsInto(ObjectBuilder.java:824)
at
org.eclipse.persistence.queries.ReadAllQuery.executeObjectLe velReadQuery(ReadAllQuery.java:493)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute DatabaseQuery(ObjectLevelReadQuery.java:928)
at
org.eclipse.persistence.queries.DatabaseQuery.execute(Databa seQuery.java:664)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute (ObjectLevelReadQuery.java:889)
at
org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAll Query.java:458)
at
org.eclipse.persistence.internal.sessions.AbstractSession.in ternalExecuteQuery(AbstractSession.java:2243)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1181)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1165)
at
org.eclipse.persistence.internal.indirection.NoIndirectionPo licy.valueFromQuery(NoIndirectionPolicy.java:299)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRowInternal(ForeignReferenceMapping.java:1473)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRow(ForeignReferenceMapping.java:1402)
at
org.eclipse.persistence.mappings.DatabaseMapping.readFromRow IntoObject(DatabaseMapping.java:1136)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildAttributesIntoObject(ObjectBuilder.java:325)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:652)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:487)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:437)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.buildOb ject(ObjectLevelReadQuery.java:569)
at
org.eclipse.persistence.queries.ReadObjectQuery.executeObjec tLevelReadQuery(ReadObjectQuery.java:439)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute DatabaseQuery(ObjectLevelReadQuery.java:928)
at
org.eclipse.persistence.queries.DatabaseQuery.execute(Databa seQuery.java:664)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute (ObjectLevelReadQuery.java:889)
at
org.eclipse.persistence.queries.ReadObjectQuery.execute(Read ObjectQuery.java:397)
at
org.eclipse.persistence.internal.sessions.AbstractSession.in ternalExecuteQuery(AbstractSession.java:2243)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1181)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1165)
at
org.eclipse.persistence.internal.indirection.NoIndirectionPo licy.valueFromQuery(NoIndirectionPolicy.java:299)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRowInternal(ForeignReferenceMapping.java:1473)
at
org.eclipse.persistence.mappings.OneToOneMapping.valueFromRo wInternal(OneToOneMapping.java:1039)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRow(ForeignReferenceMapping.java:1402)
at
org.eclipse.persistence.mappings.DatabaseMapping.readFromRow IntoObject(DatabaseMapping.java:1136)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildAttributesIntoObject(ObjectBuilder.java:325)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:652)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:487)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObjectsInto(ObjectBuilder.java:824)
at
org.eclipse.persistence.queries.ReadAllQuery.executeObjectLe velReadQuery(ReadAllQuery.java:493)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute DatabaseQuery(ObjectLevelReadQuery.java:928)
at
org.eclipse.persistence.queries.DatabaseQuery.execute(Databa seQuery.java:664)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute (ObjectLevelReadQuery.java:889)
at
org.eclipse.persistence.queries.ReadAllQuery.execute(ReadAll Query.java:458)
at
org.eclipse.persistence.internal.sessions.AbstractSession.in ternalExecuteQuery(AbstractSession.java:2243)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1181)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1165)
at
org.eclipse.persistence.internal.indirection.NoIndirectionPo licy.valueFromQuery(NoIndirectionPolicy.java:299)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRowInternal(ForeignReferenceMapping.java:1473)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRow(ForeignReferenceMapping.java:1402)
at
org.eclipse.persistence.mappings.DatabaseMapping.readFromRow IntoObject(DatabaseMapping.java:1136)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildAttributesIntoObject(ObjectBuilder.java:325)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:652)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:487)
at
org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:437)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.buildOb ject(ObjectLevelReadQuery.java:569)
at
org.eclipse.persistence.queries.ReadObjectQuery.executeObjec tLevelReadQuery(ReadObjectQuery.java:439)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute DatabaseQuery(ObjectLevelReadQuery.java:928)
at
org.eclipse.persistence.queries.DatabaseQuery.execute(Databa seQuery.java:664)
at
org.eclipse.persistence.queries.ObjectLevelReadQuery.execute (ObjectLevelReadQuery.java:889)
at
org.eclipse.persistence.queries.ReadObjectQuery.execute(Read ObjectQuery.java:397)
at
org.eclipse.persistence.internal.sessions.AbstractSession.in ternalExecuteQuery(AbstractSession.java:2243)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1181)
at
org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1165)
at
org.eclipse.persistence.internal.indirection.NoIndirectionPo licy.valueFromQuery(NoIndirectionPolicy.java:299)
at
org.eclipse.persistence.mappings.ForeignReferenceMapping.val ueFromRowInternal(ForeignReferenceMapping.java:1473)
at
org.eclipse.persistence.mappings.OneToOneMapping.valueFromRo wInternal(OneToOneMapping.java:1039)

...

and so on.
Re: Setting entity's cache type to none throws StackOverflowError [message #389452 is a reply to message #389441] Wed, 10 June 2009 13:29 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

In general you should never set the cache type to none. The issue is you
have a bidirectional relationship and use EAGER on both sides, so without
caching, this is guaranteed to get into an infinite loop, that is one of
the reasons for caching. The None caching option should normally not be
used, if used, it should only be used for objects without relationships.

If you do not want a shared cache you should set shared=false not
type=None. This is the correct method to disable the shared cache.

---
James
http://www.nabble.com/EclipseLink---Users-f26658.html


James : Wiki : Book : Blog : Twitter
Previous Topic:Trying to persist @Lob field throws NullPointerException
Next Topic:Eclipselink with Java Web Start
Goto Forum:
  


Current Time: Tue Oct 21 05:39:56 GMT 2014

Powered by FUDForum. Page generated in 0.13259 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software