Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EmbeddedObjects - fields not populated correctly(EmbeddedObjects - incorrect use of org.eclipse.persistence.internal.descriptors.PersistenceObjectAtt)
EmbeddedObjects - fields not populated correctly [message #670009] Thu, 12 May 2011 12:08 Go to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
We have just moved over from toplink to eclipselink, and none of our embedded objects are being correctly populated on calls to em.find() (maybe others to). When debugging I can see that the correctly populated object has been returned from the db (and is in a cache?), but when building / copying/ cloning that object to return to the caller of em.find() it is failing to pull the value out of that object into the returned object. It appears that in here

(org.eclipse.persistence.internal.descriptors.PersistenceObjectAttributeAccessor.getAttributeValueFromObject(Object) ):

    public Object getAttributeValueFromObject(Object object) {
        return ((PersistenceObject)object)._persistence_get(this.attributeName);
    }


the object passed in is the object containing the embedded object, yet this.attributeName is name of the field in the embedded object - in this case 'value' and returns null as there is no attribute named 'value' in the object passed in. I can only see that it would work if the embedded object itself was passed in, or if the attribute name was name of the embedded object.

in the calling method next down the stack frame the direct to field mapping is org.eclipse.persistence.mappings.DirectToFieldMapping[value- - >WSSDBA.WBR_USER.ACHOLLOOKUPONLY].

Something is not quite right with the weaving or something elseewhere, has anyone seen anything similar ?

Eclipselink 2.2.0.

I am trying to reproduce this is a standalone app/ ear but not having much look reproducing in such a scenario.

Thanks

this	PersistenceObjectAttributeAccessor	PersistenceObjectAttributeAccessor  (id=4134)	PersistenceObjectAttributeAccessor	4134	
	attributeField	Field	Field  (id=4156)	Field	4156	
	attributeName	String	"value" (id=4096)	String	4096	
	isReadOnly	boolean	false	boolean	
	isWriteOnly	boolean	false	boolean	



object	Object	User  (id=3760)	User	3760	
	_persistence_fetchGroup	FetchGroup	null	null	
	_persistence_inLiquidityGroup_vh	WeavedAttributeValueHolderInterface	ValueHolder  (id=3822)	ValueHolder	3822	
	_persistence_listener	PropertyChangeListener	null	null	
	_persistence_portfolio_vh	WeavedAttributeValueHolderInterface	ValueHolder  (id=3851)	ValueHolder	3851	
	_persistence_primaryKey	Object	"WSS" (id=3852)	String	3852	
	_persistence_session	Session	null	null	
	_persistence_shouldRefreshFetchGroup	boolean	false	boolean	
	acHolLookupOnly	JpaBoolean	JpaBoolean  (id=3853)	JpaBoolean	3853	
		_persistence_listener	PropertyChangeListener	null	null	
		value	String	"0" (id=4172)	String	4172	
	areaUnit	String	"0058" (id=3854)	String	3854	
	aspClientId	int	0	int	
	bankManager	JpaBoolean	JpaBoolean  (id=3855)	JpaBoolean	3855	
	city	String	"ZAOPS" (id=3856)	String	3856	
	cityUnit	String	"0054" (id=3857)	String	3857	
	cmAllowCpwAdjustments	JpaBoolean	JpaBoolean  (id=3858)	JpaBoolean	3858	
	cmAllowOverrideExtBals	JpaBoolean	JpaBoolean  (id=3859)	JpaBoolean	3859	
	cmAllowOverrideWssBals	JpaBoolean	JpaBoolean  (id=3860)	JpaBoolean	3860	
	cmCashAdjusmentsToBeReviewed	JpaBoolean	JpaBoolean  (id=3861)	JpaBoolean	3861	
	cmTargetBalancingToBeReviewed	JpaBoolean	JpaBoolean  (id=3862)
Daemon Thread [p: thread-pool-1; w: 93] (Suspended (breakpoint at line 30 in PersistenceObjectAttributeAccessor))	
	PersistenceObjectAttributeAccessor.getAttributeValueFromObject(Object) line: 30	
	DirectToFieldMapping(DatabaseMapping).getAttributeValueFromObject(Object) line: 523	
	DirectToFieldMapping(AbstractDirectMapping).valueFromRow(AbstractRecord, JoinedAttributeManager, ObjectBuildingQuery, CacheKey, AbstractSession, boolean) line: 1273	
	DirectToFieldMapping(DatabaseMapping).readFromRowIntoObject(AbstractRecord, JoinedAttributeManager, Object, CacheKey, ObjectBuildingQuery, AbstractSession, boolean) line: 1325	
	ObjectBuilder.buildAttributesIntoObject(Object, CacheKey, AbstractRecord, ObjectBuildingQuery, JoinedAttributeManager, boolean, AbstractSession) line: 344	
	AggregateObjectMapping.buildAggregateFromRow(AbstractRecord, Object, CacheKey, JoinedAttributeManager, ObjectBuildingQuery, boolean, AbstractSession, boolean) line: 362	
	AggregateObjectMapping.readFromRowIntoObject(AbstractRecord, JoinedAttributeManager, Object, CacheKey, ObjectBuildingQuery, AbstractSession, boolean) line: 1415	
	ObjectBuilder.buildAttributesIntoObject(Object, CacheKey, AbstractRecord, ObjectBuildingQuery, JoinedAttributeManager, boolean, AbstractSession) line: 344	
	ObjectBuilder.buildProtectedObject(boolean, ObjectBuildingQuery, AbstractRecord, AbstractSession, Object, ClassDescriptor, JoinedAttributeManager) line: 821	
	ObjectBuilder.buildObject(boolean, ObjectBuildingQuery, AbstractRecord, AbstractSession, Object, ClassDescriptor, JoinedAttributeManager) line: 657	
	ObjectBuilder.buildWorkingCopyCloneNormally(ObjectBuildingQuery, AbstractRecord, UnitOfWorkImpl, Object, ClassDescriptor, JoinedAttributeManager) line: 612	
	ObjectBuilder.buildObjectInUnitOfWork(ObjectBuildingQuery, JoinedAttributeManager, AbstractRecord, UnitOfWorkImpl, Object, ClassDescriptor) line: 565	
	ObjectBuilder.buildObject(ObjectBuildingQuery, AbstractRecord, JoinedAttributeManager) line: 497	
	ObjectBuilder.buildObject(ObjectLevelReadQuery, AbstractRecord) line: 456	
	ReadObjectQuery(ObjectLevelReadQuery).buildObject(AbstractRecord) line: 723	
	ReadObjectQuery.registerResultInUnitOfWork(Object, UnitOfWorkImpl, AbstractRecord, boolean) line: 766	
	ReadObjectQuery.executeObjectLevelReadQuery() line: 451	
	ReadObjectQuery(ObjectLevelReadQuery).executeDatabaseQuery() line: 1080	
	ReadObjectQuery(DatabaseQuery).execute(AbstractSession, AbstractRecord) line: 808	
	ReadObjectQuery(ObjectLevelReadQuery).execute(AbstractSession, AbstractRecord) line: 1040	
	ReadObjectQuery.execute(AbstractSession, AbstractRecord) line: 412	
	ReadObjectQuery(ObjectLevelReadQuery).executeInUnitOfWork(UnitOfWorkImpl, AbstractRecord) line: 1126	
	RepeatableWriteUnitOfWork(UnitOfWorkImpl).internalExecuteQuery(DatabaseQuery, AbstractRecord) line: 2842	
	RepeatableWriteUnitOfWork(AbstractSession).executeQuery(DatabaseQuery, AbstractRecord, int) line: 1521	
	RepeatableWriteUnitOfWork(AbstractSession).executeQuery(DatabaseQuery, AbstractRecord) line: 1503	
	RepeatableWriteUnitOfWork(AbstractSession).executeQuery(DatabaseQuery) line: 1463	
	EntityManagerImpl.executeQuery(ReadObjectQuery, LockModeType, AbstractSession) line: 781	
	EntityManagerImpl.findInternal(ClassDescriptor, AbstractSession, Object, LockModeType, Map<String,Object>) line: 725	
	EntityManagerImpl.find(Class<T>, Object, LockModeType, Map<String,Object>) line: 619	
	EntityManagerImpl.find(Class<T>, Object) line: 498	
	EntityManagerWrapper.find(Class<T>, Object) line: 291	
	UserServiceEJB.getUserFullWithLazyProps(String, EnumSet<EnumUserLazyProps>) line: 104	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]	
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25	
	Method.invoke(Object, Object...) line: 597	
	EJBSecurityManager.runMethod(Method, Object, Object[]) line: 1011	
	SecurityUtil.invoke(Method, Invocation, Object, Object[], Container, SecurityManager) line: 175	
	StatelessSessionContainer(BaseContainer).invokeTargetBeanMethod(Method, Invocation, Object, Object[], SecurityManager) line: 2929	
	StatelessSessionContainer(BaseContainer).intercept(Invocation) line: 4020	
	EJBObjectInvocationHandler.invoke(Class, Method, Object[]) line: 203	
	EJBObjectInvocationHandlerDelegate.invoke(Object, Method, Object[]) line: 77	
	$Proxy1079.getUserFullWithLazyProps(String, EnumSet) line: not available	
	NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]	
	NativeMethodAccessorImpl.invoke(Object, Object[]) line: 39	
	DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25	
	Method.invoke(Object, Object...) line: 597	
	ReflectiveTie._invoke(String, InputStream, ResponseHandler) line: 154	
	CorbaServerRequestDispatcherImpl.dispatchToServant(Object, CorbaMessageMediator, byte[], ObjectAdapter) line: 687	
	CorbaServerRequestDispatcherImpl.dispatch(MessageMediator) line: 227	
	CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediator) line: 1846	
	CorbaMessageMediatorImpl.handleRequest(RequestMessage, CorbaMessageMediator) line: 1706	
	CorbaMessageMediatorImpl.handleInput(RequestMessage_1_2) line: 1088	
	RequestMessage_1_2.callback(MessageHandler) line: 223	
	CorbaMessageMediatorImpl.handleRequest(MessageMediator) line: 806	
	CorbaMessageMediatorImpl.dispatch() line: 563	
	CorbaMessageMediatorImpl.doWork() line: 2567	
	ThreadPoolImpl$WorkerThread.run() line: 555	
index.php/fa/2724/0/index.php/fa/2724/0/
  • Attachment: el_vars.JPG
    (Size: 290.48KB, Downloaded 451 times)
Re: EmbeddedObjects - fields not populated correctly [message #670010 is a reply to message #670009] Thu, 12 May 2011 12:11 Go to previous messageGo to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
the resulting object from em.find() is as below - where the embedded object has a value field of null instead of "0" as in the object shown above
user	User	User  (id=5028)	User	5028	
	_persistence_fetchGroup	FetchGroup	null	null	
	_persistence_inLiquidityGroup_vh	WeavedAttributeValueHolderInterface	UnitOfWorkQueryValueHolder  (id=5033)	UnitOfWorkQueryValueHolder	5033	
	_persistence_listener	PropertyChangeListener	AttributeChangeListener  (id=5037)	AttributeChangeListener	5037	
	_persistence_portfolio_vh	WeavedAttributeValueHolderInterface	UnitOfWorkQueryValueHolder  (id=5040)	UnitOfWorkQueryValueHolder	5040	
	_persistence_primaryKey	Object	"WSS" (id=3852)	String	3852	
	_persistence_session	Session	null	null	
	_persistence_shouldRefreshFetchGroup	boolean	false	boolean	
	acHolLookupOnly	JpaBoolean	JpaBoolean  (id=5042)	JpaBoolean	5042	
		_persistence_listener	PropertyChangeListener	AggregateAttributeChangeListener  (id=5052)	AggregateAttributeChangeListener	5052	
		value	String	null	null	
	areaUnit	String	"0058" (id=3854)	String	3854	
	aspClientId	int	0	int	
	bankManager	JpaBoolean	JpaBoolean  (id=5043)	JpaBoolean	5043	
	city	String	"ZAOPS" (id=3856)	String	3856	
	
Re: EmbeddedObjects - fields not populated correctly [message #670056 is a reply to message #670010] Thu, 12 May 2011 14:12 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Can you include how you have mapped one of the classes that is not working.

Can you try disabling weaving, or just disabling internal weaving and confirm if the errors still occurs.
Also try the latest 2.3 build to see if the issue may have been resolved.

"eclipselink.weaving"="false"
or,
"eclipselink.internal.weaving"="false"


James : Wiki : Book : Blog : Twitter
Re: EmbeddedObjects - fields not populated correctly [message #670064 is a reply to message #670056] Thu, 12 May 2011 14:50 Go to previous messageGo to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
I'll try without the weaving / newer version of eclipselink in while, prob next week...

in the meantime :

the mapped superclass at the top of the heirarchy
@MappedSuperclass
public class UserTahoe extends TahoeEntity implements CloneAccessor,  Serializable{

    private static final long serialVersionUID = 3875580327768987028L;	

    @Transient
    private String oprIDTransient;
etc
    private String areaUnit = " ";

    @ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="PORTFOLIO",insertable=false,updatable=false)
    private Portfolio portfolio;	
    @Column(name="PORTFOLIO")
    private String portfolioId ;

etc

    @Embedded
    @AttributeOverride(name="value", column=@Column(name="ACHOLLOOKUPONLY"))
    private JpaBoolean acHolLookupOnly = new JpaBoolean(false) ;

    @Embedded
    @AttributeOverride(name="value", column=@Column(name="SUPERVISOR"))
    private JpaBoolean supervisor = new JpaBoolean(false) ;
    @Embedded
    @AttributeOverride(name="value", column=@Column(name="BANKMANAGER"))
    private JpaBoolean bankManager = new JpaBoolean(false) ;


the @Entity itself
@Entity
@Table(name="WBR_USER")
public class User extends UserTahoe implements  Serializable,   LiveFieldAccess, StatusFieldAccess {
etc


the embedded object
@Embeddable
public class JpaBoolean   implements Serializable  {


    private static final long serialVersionUID = -8018836031372234990L ;


    /** Value for use in query parameters to match true */
    public static final String TRUE = "1";
    /** Value for use in query parameters to match false */
    public static final String FALSE = "0";

    private String value;

Re: EmbeddedObjects - fields not populated correctly [message #671030 is a reply to message #670064] Mon, 16 May 2011 15:15 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

If you can isolate a test, and it fails in the latest version please log a bug.

Note, that you could just use Boolean instead of JpaBoolean, and use a Converter to map it to a string, (or even use JpaBoolean through a converter instead of embeddable).


James : Wiki : Book : Blog : Twitter
Re: EmbeddedObjects - fields not populated correctly [message #671510 is a reply to message #671030] Wed, 18 May 2011 07:29 Go to previous messageGo to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
we could do, but we wrapped it in an embedded object some time ago to make it a bit easier to deal with different jpa providers/ databases. NB, it's not just this embeddable that is failing but all embeddables... Anyway I'm back on this today so will crack on and see what I can get....
Re: EmbeddedObjects - fields not populated correctly [message #671556 is a reply to message #671510] Wed, 18 May 2011 10:01 Go to previous messageGo to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
Ok - still on 2.2 at moment - same behavour with static/dynamic weaving- with weaving turned off altogether though an exception is thrown as below. Now to try latest eclipselink

[#|2011-05-18T09:56:39.237+0000|WARNING|sun-appserver2 .1|org.eclipse.persistence.session.file:/rndvm/java/domainRN DVM/applications/j2ee-apps/Bedrock-ot-norcp-gf211-el220-DEV- r000000-20110518-102934/Bedrock.server.services.local_jar/_W SSJPA|_ThreadID=14;_ThreadName=p: thread-pool-1; w: 5;_RequestID=e97976eb-5cce-4f64-be0d-be09047da258;|
Local Exception Stack:
Exception [EclipseLink-26] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Trying to get value for instance variable [value] of type [java.lang.String] from the object [biz.wss.interfaces.entities.user.User].  The specified object is not an instance of the class or interface declaring the underlying field.
Internal Exception: java.lang.IllegalArgumentException: Can not set java.lang.String field biz.wss.interfaces.entities.jpa.JpaBoolean.value to biz.wss.interfaces.entities.user.User
Mapping:  org.eclipse.persistence.mappings.DirectToFieldMapping[value- - >WSSDBA.WBR_USER.ACHOLLOOKUPONLY]
Descriptor:  RelationalDescriptor(biz.wss.interfaces.entities.jpa.JpaBool ean --> [DatabaseTable(WSSDBA.WBR_USER)])
        at  org.eclipse.persistence.exceptions.DescriptorException.illeg alArgumentWhileGettingValueThruInstanceVariableAccessor(Desc riptorException.java:645)
        at  org.eclipse.persistence.internal.descriptors.InstanceVariabl eAttributeAccessor.getAttributeValueFromObject(InstanceVaria bleAttributeAccessor.java:79)
        at  org.eclipse.persistence.mappings.DatabaseMapping.getAttribut eValueFromObject(DatabaseMapping.java:523)
        at  org.eclipse.persistence.mappings.foundation.AbstractDirectMa pping.valueFromRow(AbstractDirectMapping.java:1273)
        at  org.eclipse.persistence.mappings.DatabaseMapping.readFromRow IntoObject(DatabaseMapping.java:1325)
        at  org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildAttributesIntoObject(ObjectBuilder.java:344)
        at  org.eclipse.persistence.mappings.AggregateObjectMapping.buil dAggregateFromRow(AggregateObjectMapping.java:362)
        at  org.eclipse.persistence.mappings.AggregateObjectMapping.read FromRowIntoObject(AggregateObjectMapping.java:1415)
        at  org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildAttributesIntoObject(ObjectBuilder.java:344)
        at  org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildProtectedObject(ObjectBuilder.java:821)
        at  org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:657)
        at  org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildWorkingCopyCloneNormally(ObjectBuilder.java:612)
        at  org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObjectInUnitOfWork(ObjectBuilder.java:565)
        at  org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:497)
        at  org.eclipse.persistence.internal.descriptors.ObjectBuilder.b uildObject(ObjectBuilder.java:456)
        at  org.eclipse.persistence.queries.ObjectLevelReadQuery.buildOb ject(ObjectLevelReadQuery.java:723)
        at  org.eclipse.persistence.queries.ReadObjectQuery.registerResu ltInUnitOfWork(ReadObjectQuery.java:766)
        at  org.eclipse.persistence.queries.ReadObjectQuery.executeObjec tLevelReadQuery(ReadObjectQuery.java:451)
        at  org.eclipse.persistence.queries.ObjectLevelReadQuery.execute DatabaseQuery(ObjectLevelReadQuery.java:1080)
        at  org.eclipse.persistence.queries.DatabaseQuery.execute(Databa seQuery.java:808)
        at  org.eclipse.persistence.queries.ObjectLevelReadQuery.execute (ObjectLevelReadQuery.java:1040)
        at  org.eclipse.persistence.queries.ReadObjectQuery.execute(Read ObjectQuery.java:412)
        at  org.eclipse.persistence.queries.ObjectLevelReadQuery.execute InUnitOfWork(ObjectLevelReadQuery.java:1126)
        at  org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.int ernalExecuteQuery(UnitOfWorkImpl.java:2842)
        at  org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1521)
        at  org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1503)
        at  org.eclipse.persistence.internal.sessions.AbstractSession.ex ecuteQuery(AbstractSession.java:1463)
        at  org.eclipse.persistence.internal.jpa.EntityManagerImpl.execu teQuery(EntityManagerImpl.java:781)
        at  org.eclipse.persistence.internal.jpa.EntityManagerImpl.findI nternal(EntityManagerImpl.java:725)
        at  org.eclipse.persistence.internal.jpa.EntityManagerImpl.find( EntityManagerImpl.java:619)
        at  org.eclipse.persistence.internal.jpa.EntityManagerImpl.find( EntityManagerImpl.java:498)
        at  com.sun.enterprise.util.EntityManagerWrapper.find(EntityMana gerWrapper.java:291)
        at  biz.wss.server.services.local.user.UserServiceEJB.getUserFul lWithLazyProps(UserServiceEJB.java:104)
        

[Updated on: Wed, 18 May 2011 10:23]

Report message to a moderator

Re: EmbeddedObjects - fields not populated correctly [message #671630 is a reply to message #671556] Wed, 18 May 2011 14:21 Go to previous messageGo to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
cant replicate in separate project at moment - guess I have to make effort and move all 800 or so entities from real project into the test one, will take some time though so no one hold their breath....
Re: EmbeddedObjects - fields not populated correctly [message #671684 is a reply to message #671630] Wed, 18 May 2011 16:56 Go to previous messageGo to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
still no luck - could it be be down to transactions (inside/ outside of) or caching in some way ?
Re: EmbeddedObjects - fields not populated correctly [message #671940 is a reply to message #671684] Thu, 19 May 2011 11:59 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

My guess is it is probably related to caching or your usage of your objects in your persistence context.

You could try disabling caching by setting shared to false, to see if that is related.

Also ensure you are not reusing the same aggregate for many owners, and ensure you are not mixing managed and detached objects in the same transaction.



James : Wiki : Book : Blog : Twitter
Re: EmbeddedObjects - fields not populated correctly [message #673603 is a reply to message #671940] Tue, 24 May 2011 08:36 Go to previous messageGo to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
Yeap - this is down to caching somehow - if I comment out all eclipselink.cache.shared.entityName=false properties in the persistence.xml then all is well, if I put the property back in for an entity that has no embedded objects in then it is still ok, as soon as I put the property back for an entity with an embedded object referenced somewhere in that class/ superclass/ referenced class then it fails for everything that also has a reference to that same type of embedded object. BUT cant reproduce in a standalone ear no matter how hard i try...... same occurs in 2.2.0-rc3, 2.2.0, 2.3.0-rc1. The exact same thing under toplink has no issues. We must have some odd config somewhere
Re: EmbeddedObjects - fields not populated correctly [message #673747 is a reply to message #673603] Tue, 24 May 2011 15:45 Go to previous messageGo to next message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Are you mixing shared and none shared cached objects? i.e. do you have a reference from a shared cache object to a shared=false object?

This could be an issue with our new protected cache support in 2.2. Please log a bug for the issue with as much details as you have.

Can you try the 2.1 release, does it work in that version?

Does it work with the shared cache off for everything?




James : Wiki : Book : Blog : Twitter
Re: EmbeddedObjects - fields not populated correctly [message #673999 is a reply to message #673747] Wed, 25 May 2011 13:32 Go to previous messageGo to next message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
yeap - that's it - if I have just
<property name="eclipselink.cache.shared.Country" value="false"/>
then it fails , if I have
<property name="eclipselink.cache.shared.default" value="false"/>
<property name="eclipselink.cache.shared.Country" value="false"/> <--- redundant
then'its ok - ie the same as if no eclipselink.cache.shared.EntityName=false entries

will try with the different versions and file a bug report with a matrix on how it behaves...
Re: EmbeddedObjects - fields not populated correctly [message #674026 is a reply to message #673999] Wed, 25 May 2011 14:55 Go to previous message
TimM  is currently offline TimM Friend
Messages: 19
Registered: May 2011
Junior Member
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=347168
Previous Topic:Passing parameters to be used in Customizer
Next Topic:Eclipselink cache coordination throwing NoClassDefFoundError
Goto Forum:
  


Current Time: Fri Apr 19 11:22:04 GMT 2024

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

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

Back to the top