• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED] ERJGroupsSynchronization Exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] ERJGroupsSynchronization Exception


  • Subject: Re: [SOLVED] ERJGroupsSynchronization Exception
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 24 Oct 2008 14:00:07 -0700


On Oct 24, 2008, at 1:55 PM, Saad Laassel wrote:

We finally figured out what was "wrong":

There's a call to EODatabaseContext._EOAssertSafeMultiThreadedAccess(); on line 528 of ERXObjectStoreCoordinatorSynchronizer.java that call results in the "*** EODatabaseContext: access without lock" message being logged.

The good news is that EODatabaseContext in question ends up being locked right after that...

Code snippet from ERXObjectStoreCoordinatorSynchronizer.processRemoteChange();

EODatabaseContext dbc = ERXEOAccessUtilities.databaseContextForEntityNamed(osc, gid.entityName());
EODatabase database = dbc.database();
EODatabaseContext._EOAssertSafeMultiThreadedAccess(dbc);
dbc.lock();


I supposed all that needs to be done here is to lock the EODatabaseContext before calling _EOAssertSafeMultiThreadedAccess(); How would one go about submitting a patch?

Good catch!

See http://wiki.objectstyle.org/confluence/display/WONDER/Creating+and+Submitting+an+Acceptable+Patch

Chuck




On Oct 23, 2008, at 6:32 PM, Chuck Hill wrote:


On Oct 23, 2008, at 2:55 PM, Saad Laassel wrote:

This is a follow on to this issue, we are deploying as a servlet using WO 5.4.3 we modified our Database Context Delegate so it now extends ERXDatabaseContextDelegate, we are initializing the remote synchronizer manually by calling:

ERXObjectStoreCoordinatorSynchronizer .synchronizer().initializeRemoteSynchronizer();

this is happening very early on in our application.java right after we receive "ModelAddedNotification", everything seems to behave as it should e.g. cached objects are being refreshed on different instances except we are getting the following exception on a frequent basis:

[Thread-2] DEBUG NSLog  - *** EODatabaseContext: access without lock

Our application is usually deployed in a multi-server, multi- instance environment we just want to make sure this is not going to create any locking issues... any help is greatly appreciated ...


I'd take that warning very seriously. If that is not a bogus message, it is a serious problem.


Chuck



On Oct 22, 2008, at 10:56 AM, Dov Rosenberg wrote:

We converted over to Project Wonder to use the EJGroupsSynchronizer – everything looks like it is working OK except I see this exception throughout the log file

[Thread-2] DEBUG NSLog - *** EODatabaseContext: access without lock!

I did a thread dump to see what was executing when this was occurring – it looks like the problem is in the ERXObjectStoreCoordinatorSynchronizer.


"Thread-2" prio=6 tid=0x62d92780 nid=0x40c in Object.wait() [0x6339f000..0x6339fd9c]
at java.lang.Object.wait(Native Method)
- waiting on <0x0d132540> (a java.util.LinkedList)
at java.lang.Object.wait(Unknown Source)
at er.extensions.eof.ERXObjectStoreCoordinatorSynchronizer $ ProcessChangesQueue .run(ERXObjectStoreCoordinatorSynchronizer.java:572)
- locked <0x0d132540> (a java.util.LinkedList)
at java.lang.Thread.run(Unknown Source)


Any thoughts on this? I am a little nervous about adding lock() statements into the Wonder code.

Thanks in advance for any feedback.

Dov Rosenberg
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects







_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >ERJGroupsSynchronization Exception (From: Dov Rosenberg <email@hidden>)
 >Re: ERJGroupsSynchronization Exception (From: Saad Laassel <email@hidden>)
 >Re: ERJGroupsSynchronization Exception (From: Chuck Hill <email@hidden>)
 >[SOLVED] ERJGroupsSynchronization Exception (From: Saad Laassel <email@hidden>)

  • Prev by Date: [SOLVED] ERJGroupsSynchronization Exception
  • Next by Date: Re: /Library/WebObjects/Extensions
  • Previous by thread: [SOLVED] ERJGroupsSynchronization Exception
  • Next by thread: Running tests from ant on a continuous integration server
  • Index(es):
    • Date
    • Thread