Skip to main content



      Home
Home » Eclipse Projects » EclipseLink » DistributedSession cause NPE in InstanceVariableAttributeAccessor
DistributedSession cause NPE in InstanceVariableAttributeAccessor [message #894883] Tue, 10 July 2012 18:08 Go to next message
Eclipse UserFriend
Method DistributedSession.getDescriptor(Class) cause NPE in InstanceVariableAttributeAccessor.getAttributeValueFromObject(Object) line 80:return this.attributeField.get(anObject);

public ClassDescriptor getDescriptor(Class domainClass) {
ClassDescriptor descriptor = getDescriptors().get(domainClass);

// If the descriptor is null then this means that descriptor must now be read from the server.
if (descriptor == null) {
descriptor = getRemoteConnection().getDescriptor(domainClass);
if (descriptor == null) {
return null;
}
getDescriptors().put(domainClass, descriptor);
descriptor.remoteInitialization(this);
}

return descriptor;
}

This method put class descriptor in a map before it is remotely initialized. Using that descriptor in a other thread gives NPE in InstanceVariableAttributeAccessor. Field InstanceVariableAttributeAccessor.attributeField is initialized in a method ClassDescriptor.remoteInitialization()
Re: DistributedSession cause NPE in InstanceVariableAttributeAccessor [message #899628 is a reply to message #894883] Wed, 01 August 2012 11:50 Go to previous message
Eclipse UserFriend
Please log a bug, but in general usage of RemoteSession's are rare, and a RemoteSession is intended for a single client, not multiple threads.
Previous Topic:Eclipselink JPA named query not ignoring white spaces.
Next Topic:(no subject)
Goto Forum:
  


Current Time: Fri Jul 04 10:45:05 EDT 2025

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

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

Back to the top