WebObjects application instances hanging - Deadlocks occurring
WebObjects application instances hanging - Deadlocks occurring
- Subject: WebObjects application instances hanging - Deadlocks occurring
- From: Raghavender Bokka <email@hidden>
- Date: Thu, 20 Nov 2014 19:53:06 +0530
Hi Team,
The following are the exceptions generating in the log files when we enable the ERX logging, and we do not have any code in the Session.sleep method. And some of our WebObjects application instances are hanging when some user load (around 1000 users) are testing, when we look into the java process thread dump there are deadlocks occurring.
-----------------------------------------------------------------------
-----------------------------------------------------------------------
Exception
at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
at com.webobjects.eocontrol.EOEditingContext._sendOrEnqueueNotification(EOEditingContext.java:4721)
at com.webobjects.eocontrol.EOEditingContext._objectsChangedInStore(EOEditingContext.java:3562)
at er.extensions.eof.ERXEC._objectsChangedInStore(ERXEC.java:1285)
... skipped 7 stack elements
at com.webobjects.eocontrol.EOObjectStoreCoordinator._objectsChangedInSubStore(EOObjectStoreCoordinator.java:693)
... skipped 16 stack elements
at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:386)
at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981)
at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903)
at TestTakingMode$StudentTestSessionMode.testSubmitted(TestTakingMode.java:648)
at ReviewTestResponsePage.submitTest(ReviewTestResponsePage.java:99)
... skipped 4 stack elements
at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
... skipped 46 stack elements
at Application.dispatchRequest(Application.java:670)
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXSession - Will terminate, sessionId is FkDsWpsOxKy1TDaligNLDg
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory - _incrementReferenceCounterForKey() - count = 26, key = IE.7.0.4.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No Gecko"; }
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After popping: [er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - unlocked er.extensions.eof.ERXEC@13cd5b5
Exception
at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:849)
at com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
at er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
... skipped 6 stack elements
at Application.dispatchRequest(Application.java:670)
... skipped 3 stack elements
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - locked er.extensions.eof.ERXEC@13cd5b5
Exception
at er.extensions.eof.ERXEC.lock(ERXEC.java:483)
at com.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java:1116)
at com.webobjects.eocontrol.EOEditingContext.dispose(EOEditingContext.java:1111)
at er.extensions.eof.ERXEC.dispose(ERXEC.java:610)
at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:854)
at com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
at er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
... skipped 6 stack elements
at Application.dispatchRequest(Application.java:670)
... skipped 3 stack elements
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After pushing: [er.extensions.eof.ERXEC@dd151f, er.extensions.eof.ERXEC@13cd5b5]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After popping: [er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - unlocked er.extensions.eof.ERXEC@13cd5b5
Exception
at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
at com.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java:1218)
at com.webobjects.eocontrol.EOEditingContext.dispose(EOEditingContext.java:1111)
at er.extensions.eof.ERXEC.dispose(ERXEC.java:610)
at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:854)
at com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
at er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
... skipped 6 stack elements
at Application.dispatchRequest(Application.java:670)
... skipped 3 stack elements
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After pushing: [er.extensions.eof.ERXEC@dd151f, er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After popping: [er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory - _decrementReferenceCounterForKey() - count = 25, key = IE.7.0.4.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No Gecko"; }
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory - _decrementReferenceCounterForKey() - count = 15, key = IE.9.0.5.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No Gecko"; }
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - Unlock remaining: [er.extensions.eof.ERXEC@dd151f]
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - Unlocking autolocked editing context: er.extensions.eof.ERXEC@dd151f
Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory - _decrementReferenceCounterForKey() - count = 24, key = IE.7.0.4.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No Gecko"; }
-----------------------------------------------------------------------
-----------------------------------------------------------------------
Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - locked er.extensions.eof.ERXEC@13cd5b5
Exception
at er.extensions.eof.ERXEC.lock(ERXEC.java:483)
at com.webobjects.appserver.WOSession._awakeInContext(WOSession.java:835)
at com.webobjects.appserver.WOApplication.restoreSessionWithID(WOApplication.java:1917)
at er.extensions.appserver.ERXApplication.restoreSessionWithID(ERXApplication.java:2093)
... skipped 6 stack elements
at Application.dispatchRequest(Application.java:670)
... skipped 3 stack elements
Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.eof.ERXEC - After pushing: [er.extensions.eof.ERXEC@13cd5b5]
Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.eof.ERXEC$DefaultFactory - Setting default delegate on editing context: er.extensions.eof.ERXEC@1a3b17a allows validation: true
Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.eof.ERXEC - setting delegate to er.extensions.eof.ERXDefaultEditingContextDelegate@e93999
Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.eof.ERXEC - s.java:375)
at er.extensions.eof.ERXEC.setDelegate(ERXEC.java:1312)
at er.extensions.eof.ERXEC$DefaultFactory.setDefaultDelegateOnEditingContext(ERXEC.java:1408)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1463)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1434)
at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1540)
at GenericComponent.localEditingContext(GenericComponent.java:75)
at SelectTestPage.fetchTests(SelectTestPage.java:71)
at SelectTestPage.selectNonDOETests(SelectTestPage.java:146)
at ToolsHelperFrame.selectTestPageFrame(ToolsHelperFrame.java:29)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
at com.webobjects.appserver._private.WOHTMLURLValuedElement.invokeAction(WOHTMLURLValuedElement.java:138)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
at Session.invokeAction(Session.java:191)
at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
at er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:50)
at er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1687)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
at Application.dispatchRequest(Application.java:670)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:619)
Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC$DefaultFactory - Setting default delegate on editing context: er.extensions.eof.ERXEC@13cd5b5 allows validation: true
Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC - setting delegate to er.extensions.eof.ERXDefaultEditingContextDelegate@e93999
Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC - s.java:375)
at er.extensions.eof.ERXEC.setDelegate(ERXEC.java:1312)
at er.extensions.eof.ERXEC$DefaultFactory.setDefaultDelegateOnEditingContext(ERXEC.java:1408)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1463)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1434)
at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1540)
at er.extensions.appserver.ERXSession.defaultEditingContext(ERXSession.java:353)
at Session.setLoginUser(Session.java:106)
at Main.login(Main.java:185)
at Main.login(Main.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
at com.webobjects.appserver._private.WOSubmitButton.invokeAction(WOSubmitButton.java:70)
at er.extensions.foundation.ERXPatcher$DynamicElementsPatches$SubmitButton.invokeAction(ERXPatcher.java:214)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at er.extensions.components._private.ERXWOForm.invokeAction(ERXWOForm.java:180)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:86)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at com.webobjects.appserver._private.WOHTMLURLValuedElement.invokeAction(WOHTMLURLValuedElement.java:149)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:92)
at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:86)
at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:92)
at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
at Session.invokeAction(Session.java:191)
at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
at er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:50)
at er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1687)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
at Application.dispatchRequest(Application.java:653)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
at java.lang.Thread.run(Thread.java:619)
Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - locked er.extensions.eof.ERXEC@13cd5b5
Exception
at er.extensions.eof.ERXEC.lock(ERXEC.java:483)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1465)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1434)
at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1540)
at er.extensions.appserver.ERXSession.defaultEditingContext(ERXSession.java:353)
at Session.setLoginUser(Session.java:106)
at Main.login(Main.java:185)
at Main.login(Main.java:120)
... skipped 4 stack elements
at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
... skipped 46 stack elements
at Application.dispatchRequest(Application.java:653)
... skipped 3 stack elements
Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC - After pushing: [er.extensions.eof.ERXEC@5971c3, er.extensions.eof.ERXEC@13cd5b5]
Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC - After popping: [er.extensions.eof.ERXEC@5971c3]
Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - unlocked er.extensions.eof.ERXEC@13cd5b5
Exception
at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1467)
at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1434)
at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1540)
at er.extensions.appserver.ERXSession.defaultEditingContext(ERXSession.java:353)
at Session.setLoginUser(Session.java:106)
at Main.login(Main.java:185)
at Main.login(Main.java:120)
... skipped 4 stack elements
at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
... skipped 46 stack elements
at Application.dispatchRequest(Application.java:653)
... skipped 3 stack elements
-----------------------------------------------------------------------
-----------------------------------------------------------------------
Any help would be appreciated.
Regards,
Raghu.
On 18-Nov-2014, at 5:08 PM, email@hidden wrote:
> Send Webobjects-dev mailing list submissions to
> email@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://lists.apple.com/mailman/listinfo/webobjects-dev
> or, via email, send a message with subject or body 'help' to
> email@hidden
>
> You can reach the person managing the list at
> email@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Webobjects-dev digest..."
>
>
> Today's Topics:
>
> 1. Re: Ponder docs or examples (Ramsey Gurley)
> 2. Re: We need Watson! (Ramsey Gurley)
> 3. Re: Own and Propagate (James Cicenia)
> 4. Re: WebObjects application instances hanging - Deadlocks
> occurring (Raghavender Bokka)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 17 Nov 2014 13:36:39 -0700
> From: Ramsey Gurley <email@hidden>
> To: Flavio Donadio <email@hidden>
> Cc: WebObjects-Dev Mailing List List <email@hidden>
> Subject: Re: Ponder docs or examples
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="windows-1252"
>
> I’ve never had any problems with creating a model in project and then getting things to run, but then, I haven’t done that very often. If you want to control the order migrations run, there is a property for that. I think
>
> er.migration.modelNames
>
> will do what you want, but you have to list all the models you will migrate in the correct order.
>
> Alternately, if you just want to see it working, don’t create a custom User subclass at all. All the user management stuff works with the ERUser class just the same.
>
> On Nov 17, 2014, at 12:42 PM, Flavio Donadio <email@hidden> wrote:
>
>> Ramsey,
>>
>>
>> Is there a way to do it without having to create a framework for the model?
>>
>> I mean, there's just one table in my model, it seems overkill... I just wanted to teste the user management part of R2D2W...
>>
>>
>> Cheers,
>> Flavio
>>
>> On 17/11/2014, at 17:02, Flavio Donadio <email@hidden> wrote:
>>
>>> Ramsey,
>>>
>>>
>>> I'm just doing a quick test. No model framework yet. Just a minimal model file, just to check how things work.
>>>
>>>
>>> Cheers,
>>> Flavio
>>>
>>> On 17/11/2014, at 16:55, Ramsey Gurley <email@hidden> wrote:
>>>
>>>> You need to ensure the ERCoreBL framework finishes loading before your model loads. If you have your model in a framework which is the recommended way to do things, the way to do this is add a ERXFrameworkPrincipal subclass to it and add a REQUIRES constant to that subclass. Look at ERCoreBL.java for an example. Don’t forget to set your framework principal class in your build properties.
>>>>
>>>> http://wiki.wocommunity.org/display/documentation/Creating+a+ERXFrameworkPrincipal+subclass?src=search
>>>>
>>>>
>>>> On Nov 17, 2014, at 11:48 AM, Flavio Donadio <email@hidden> wrote:
>>>>
>>>>> Ramsey,
>>>>>
>>>>>
>>>>> Got it... Some weeks ago, when I first tried ERAttachment, I created a wrong relationship, just like you said: a two-way relationship. Don't ask me how, but the ERAttachment project's EOModel was changed and saved... I think I need to pay more attention to dialog boxes!
>>>>>
>>>>> I just deleted the relationship now and it's going a bit further... Now I get:
>>>>>
>>>>>> er.extensions.migration.ERXMigrationFailedException: Migration failed.
>>>>>> at er.extensions.migration.ERXMigrator$ERXMigrationAction.doPerform(ERXMigrator.java:493)
>>>>>> at er.extensions.eof.ERXEOAccessUtilities$ChannelAction.perform(ERXEOAccessUtilities.java:1586)
>>>>>> at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:201)
>>>>>> at er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:1315)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>>>>> at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>>>>> at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>>>>> at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>>>>> at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
>>>>>> at com.webobjects.appserver.WOApplication.run(WOApplication.java:1229)
>>>>>> at er.extensions.appserver.ERXApplication.run(ERXApplication.java:1432)
>>>>>> at com.webobjects.appserver.WOApplication.main(WOApplication.java:548)
>>>>>> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:866)
>>>>>> at br.com.codeprint.Suporte.Application.main(Application.java:24)
>>>>>> Caused by: java.lang.RuntimeException: Failed to execute 'ALTER TABLE Users ADD CONSTRAINT Users_mailAddressID_id_FK FOREIGN KEY (mailAddressID) REFERENCES ERCMailAddress (id)'.
>>>>>> at er.extensions.jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java:670)
>>>>>> at er.extensions.jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java:624)
>>>>>> at er.extensions.migration.ERXMigrationTable.addForeignKey(ERXMigrationTable.java:1395)
>>>>>> at er.extensions.migration.ERXMigrationTable.addForeignKey(ERXMigrationTable.java:1380)
>>>>>> at er.extensions.migration.ERXMigrationTable.addForeignKey(ERXMigrationTable.java:1357)
>>>>>> at er.extensions.migration.ERXMigrationTable.addForeignKey(ERXMigrationTable.java:1335)
>>>>>> at br.com.codeprint.Suporte.migrations.SuporteModel0.upgrade(SuporteModel0.java:37)
>>>>>> at er.extensions.migration.ERXMigrationDatabase$Migration.upgrade(ERXMigrationDatabase.java:440)
>>>>>> at er.extensions.migration.ERXMigrator$ERXMigrationAction.doPerform(ERXMigrator.java:476)
>>>>>> ... 16 more
>>>>>> Caused by: org.h2.jdbc.JdbcSQLException: Table "ERCMAILADDRESS" not found; SQL statement:
>>>>>> ALTER TABLE Users ADD CONSTRAINT Users_mailAddressID_id_FK FOREIGN KEY (mailAddressID) REFERENCES ERCMailAddress (id) [42102-168]
>>>>>> at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
>>>>>> at org.h2.message.DbException.get(DbException.java:169)
>>>>>> at org.h2.message.DbException.get(DbException.java:146)
>>>>>> at org.h2.schema.Schema.getTableOrView(Schema.java:413)
>>>>>> at org.h2.command.ddl.AlterTableAddConstraint.tryUpdate(AlterTableAddConstraint.java:175)
>>>>>> at org.h2.command.ddl.AlterTableAddConstraint.update(AlterTableAddConstraint.java:68)
>>>>>> at org.h2.command.CommandContainer.update(CommandContainer.java:75)
>>>>>> at org.h2.command.Command.executeUpdate(Command.java:230)
>>>>>> at org.h2.jdbc.JdbcStatement.executeUpdateInternal(JdbcStatement.java:125)
>>>>>> at org.h2.jdbc.JdbcStatement.executeUpdate(JdbcStatement.java:110)
>>>>>> at er.extensions.jdbc.ERXJDBCUtilities.executeUpdateScript(ERXJDBCUtilities.java:666)
>>>>>> ... 24 more
>>>>>
>>>>>
>>>>> Do I need to have er.migration.modelNames in the properties file?
>>>>>
>>>>>
>>>>> Cheers,
>>>>> Flavio
>>>>>
>>>>> On 17/11/2014, at 16:06, Ramsey Gurley <email@hidden> wrote:
>>>>>
>>>>>> It sounds like you created an entity named Image in your model, modeled a to-one relationship to ERAttachment, but forgot to uncheck the reverse relationship from ERAttachment to Image. You should only make that a one way relationship
>>>>>>
>>>>>> Image -> ERAttachment
>>>>>>
>>>>>> not
>>>>>>
>>>>>> Image <<-> ERAttachment
>>>>>>
>>>>>> ERAttachment can’t find Image because it doesn’t import your framework with the Image entity.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Nov 17, 2014, at 10:59 AM, Flavio Donadio <email@hidden> wrote:
>>>>>>
>>>>>>> Ramsey,
>>>>>>>
>>>>>>>
>>>>>>> I am trying R2D2W...
>>>>>>>
>>>>>>> Just followed your instructions (way below) and, then, created an EOModel in the project. When I created the model, though, there were a bunch of messages in a window titled "EOModel Verification Failures", one of them being:
>>>>>>>
>>>>>>> ERAttachment: Missing entity named 'Image'.
>>>>>>>
>>>>>>> I ignored those and created an entity called User, setting its parent as "ERUser".
>>>>>>>
>>>>>>> Then, in the user.d2wmodel, I created a rule like this:
>>>>>>>
>>>>>>> 100 : *true* => userEntity = “User" [com.webobjects.directtoweb.EntityAssignment]
>>>>>>>
>>>>>>> When I tried to run the app, I got this:
>>>>>>>
>>>>>>>> java.lang.IllegalArgumentException: EORelationship(): cannot find entity named Image for destination of relationship images in entity ERAttachment.
>>>>>>>> at com.webobjects.eoaccess.EORelationship.<init>(EORelationship.java:773)
>>>>>>>> at com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:1055)
>>>>>>>> at er.extensions.eof.ERXEntityClassDescription$Factory.checkForeignKeys(ERXEntityClassDescription.java:491)
>>>>>>>> at er.extensions.eof.ERXEntityClassDescription$Factory.processModelGroup(ERXEntityClassDescription.java:318)
>>>>>>>> at er.extensions.eof.ERXEntityClassDescription$Factory.modelGroupWasAdded(ERXEntityClassDescription.java:287)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>>>>>>> at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>>>>>>> at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>>>>>>> at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>>>>>>> at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
>>>>>>>> at er.extensions.eof.ERXModelGroup.loadModelsFromLoadedBundles(ERXModelGroup.java:267)
>>>>>>>> at er.extensions.ERXExtensions.defaultModelGroup(ERXExtensions.java:148)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>>>>>>> at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>>>>>>> at com.webobjects.foundation._NSDelegate._perform(_NSDelegate.java:223)
>>>>>>>> at com.webobjects.foundation._NSDelegate.perform(_NSDelegate.java:155)
>>>>>>>> at com.webobjects.eoaccess.EOModelGroup.defaultGroup(EOModelGroup.java:328)
>>>>>>>> at er.extensions.migration.ERXMigrator.migrateToLatest(ERXMigrator.java:169)
>>>>>>>> at er.extensions.appserver.ERXApplication.finishInitialization(ERXApplication.java:1315)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>>>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>> at java.lang.reflect.Method.invoke(Method.java:601)
>>>>>>>> at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:122)
>>>>>>>> at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNotificationCenter.java:588)
>>>>>>>> at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:532)
>>>>>>>> at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotificationCenter.java:546)
>>>>>>>> at com.webobjects.appserver.WOApplication.run(WOApplication.java:1229)
>>>>>>>> at er.extensions.appserver.ERXApplication.run(ERXApplication.java:1432)
>>>>>>>> at com.webobjects.appserver.WOApplication.main(WOApplication.java:548)
>>>>>>>> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:866)
>>>>>>>> at br.com.codeprint.Suporte.Application.main(Application.java:24)
>>>>>>>
>>>>>>> What did I do wrong?
>>>>>>>
>>>>>>>
>>>>>>> Cheers,
>>>>>>> Flavio
>>>>>>>
>>>>>>> On 24/02/2014, at 21:48, Ramsey Gurley <email@hidden> wrote:
>>>>>>>
>>>>>>>> A basic getting started would be,
>>>>>>>>
>>>>>>>> 1. Clone ponder using eGit
>>>>>>>> 2. Import ponder frameworks into workspace
>>>>>>>> 3. Copy '$repo/ponder/* Application Template' directories into ~/Library/Application Support/WOLips/Project Templates/
>>>>>>>> 3. Eclipse->File->New->Other->WOLips->WOProject from Template, click Next> Select R2D2W Application, etc
>>>>>>>> 4. Add Login and Logout to your Navigation.plist root children.
>>>>>>>> 5. Set up your javamail properly in the Properties file
>>>>>>>>
>>>>>>>> That would give you a basic D2W app with user management.
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.apple.com/archives/webobjects-dev/attachments/20141117/779c6787/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 17 Nov 2014 13:43:35 -0700
> From: Ramsey Gurley <email@hidden>
> To: James Cicenia <email@hidden>
> Cc: WebObjects-Dev <email@hidden>
> Subject: Re: We need Watson!
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset=windows-1252
>
> There was a D2WComponentTour app in wonder long ago. Probably still there. Probably still works. But probably doesn’t show off stuff like R2 or ERModern.
>
> If you want to list a to-many with the option to add, inline relationship components are nice. ERModern has nice ajax refreshes. R2 avoids javascript, but does add support for creating specific subclasses.
>
> I think what you really want is D2WAssistant. That hasn’t worked for years AFAIK.
>
> On Nov 15, 2014, at 9:51 AM, James Cicenia <email@hidden> wrote:
>
>> After taking a break from D2W / WO. Man oh man are there a lot of components. LOL
>>
>> I need a siri / watson link to just answer my questions. Though Chuck / Ramsay are pretty darn close!
>>
>> Example:
>>
>> Q: “Siri, I have a D2W setup and I have and edit task, what is the best component to use to list related records and allow one to add new ones there?”
>>
>> A: “James, may I suggest the new and improved WD2WListRelatedRecordsWithOptionToAddANewButton. You can find it in the WonderSquared FutureAjaxEmberJQueryframework”
>>
>> Cheers
>> _______________________________________________
>> 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
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Mon, 17 Nov 2014 16:58:48 -0600
> From: James Cicenia <email@hidden>
> To: Chuck Hill <email@hidden>
> Cc: WebObjects-Dev <email@hidden>
> Subject: Re: Own and Propagate
> Message-ID: <email@hidden>
> Content-Type: text/plain; charset="windows-1252"
>
>
> I Punted. Managed it explicitly myself.
>
>
>
>> On Nov 17, 2014, at 1:23 PM, Chuck Hill <email@hidden> wrote:
>>
>> And Propogate Primary Key set on the App? To-one, mandatory relationship?
>>
>>
>> On 2014-11-17, 11:17 AM, "James Cicenia" wrote:
>>
>> I was. Took that out of the init, and I still get the same error on save.
>>
>> I do the basic
>> App newApp = (App)EOUtilities.createAndInsertInstance(ec, "App");
>>
>> Then I do a basic save without touching the owned relationship
>>
>> app.editingContext().saveChanges();
>>
>> And I get the SQL error about no appID being set.
>> I have appID set as mandatory in the config table.
>>
>>
>>> On Nov 17, 2014, at 1:08 PM, Chuck Hill <email@hidden <mailto:email@hidden>> wrote:
>>>
>>> Are you creating a Config in your code? EOF will create it for you. If you create it in code, you end up with two, one of which is disconnected.
>>>
>>> Chuck
>>>
>>>
>>> On 2014-11-17, 11:00 AM, "James Cicenia" wrote:
>>>
>>> I am trying to use the own and propagate attributes on my model.
>>>
>>> I have a relationship modeled that way.
>>>
>>> App — Config
>>>
>>> App: primaryKey is set as ‘id'
>>> Config: primaryKey is set as ‘appID'
>>>
>>> However, when I save my context I get a SQL error where it is trying to insert/save the Config without an appID ?
>>>
>>> It doesn’t seem to propagate the key in SQL.
>>>
>>> Thanks
>>>
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Webobjects-dev mailing list (email@hidden <mailto:email@hidden>)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden <mailto:email@hidden>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.apple.com/archives/webobjects-dev/attachments/20141117/cdcbcb11/attachment.html>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 18 Nov 2014 17:09:40 +0530
> From: Raghavender Bokka <email@hidden>
> To: Ralf Schuchardt <email@hidden>, Development WebObjects
> <email@hidden>
> Cc: Sudhakar Madala <email@hidden>, "Mr. Ernie
> Satterwhite" <email@hidden>, "Vicky C. Miller"
> <email@hidden>
> Subject: Re: WebObjects application instances hanging - Deadlocks
> occurring
> Message-ID:
> <email@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> Hi Ralf,
>
> The following are the exceptions generating in the log files when we enable the ERX logging, and we do not have any code in the Session.sleep method:
>
> -----------------------------------------------------------------------
> -----------------------------------------------------------------------
> Exception
> at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
> at com.webobjects.eocontrol.EOEditingContext._sendOrEnqueueNotification(EOEditingContext.java:4721)
> at com.webobjects.eocontrol.EOEditingContext._objectsChangedInStore(EOEditingContext.java:3562)
> at er.extensions.eof.ERXEC._objectsChangedInStore(ERXEC.java:1285)
> ... skipped 7 stack elements
> at com.webobjects.eocontrol.EOObjectStoreCoordinator._objectsChangedInSubStore(EOObjectStoreCoordinator.java:693)
> ... skipped 16 stack elements
> at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:386)
> at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
> at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981)
> at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903)
> at TestTakingMode$StudentTestSessionMode.testSubmitted(TestTakingMode.java:648)
> at ReviewTestResponsePage.submitTest(ReviewTestResponsePage.java:99)
> ... skipped 4 stack elements
> at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
> ... skipped 46 stack elements
> at Application.dispatchRequest(Application.java:670)
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXSession - Will terminate, sessionId is FkDsWpsOxKy1TDaligNLDg
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory - _incrementReferenceCounterForKey() - count = 26, key = IE.7.0.4.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No Gecko"; }
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After popping: [er.extensions.eof.ERXEC@dd151f]
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - unlocked er.extensions.eof.ERXEC@13cd5b5
> Exception
> at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
> at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:849)
> at com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
> at er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
> ... skipped 6 stack elements
> at Application.dispatchRequest(Application.java:670)
> ... skipped 3 stack elements
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - locked er.extensions.eof.ERXEC@13cd5b5
> Exception
> at er.extensions.eof.ERXEC.lock(ERXEC.java:483)
> at com.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java:1116)
> at com.webobjects.eocontrol.EOEditingContext.dispose(EOEditingContext.java:1111)
> at er.extensions.eof.ERXEC.dispose(ERXEC.java:610)
> at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:854)
> at com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
> at er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
> ... skipped 6 stack elements
> at Application.dispatchRequest(Application.java:670)
> ... skipped 3 stack elements
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After pushing: [er.extensions.eof.ERXEC@dd151f, er.extensions.eof.ERXEC@13cd5b5]
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After popping: [er.extensions.eof.ERXEC@dd151f]
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - unlocked er.extensions.eof.ERXEC@13cd5b5
> Exception
> at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
> at com.webobjects.eocontrol.EOEditingContext._dispose(EOEditingContext.java:1218)
> at com.webobjects.eocontrol.EOEditingContext.dispose(EOEditingContext.java:1111)
> at er.extensions.eof.ERXEC.dispose(ERXEC.java:610)
> at com.webobjects.appserver.WOSession._sleepInContext(WOSession.java:854)
> at com.webobjects.appserver.WOApplication.saveSessionForContext(WOApplication.java:1883)
> at er.extensions.appserver.ERXApplication.saveSessionForContext(ERXApplication.java:2075)
> ... skipped 6 stack elements
> at Application.dispatchRequest(Application.java:670)
> ... skipped 3 stack elements
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After pushing: [er.extensions.eof.ERXEC@dd151f, er.extensions.eof.ERXEC@dd151f]
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - After popping: [er.extensions.eof.ERXEC@dd151f]
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory - _decrementReferenceCounterForKey() - count = 25, key = IE.7.0.4.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No Gecko"; }
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory - _decrementReferenceCounterForKey() - count = 15, key = IE.9.0.5.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No Gecko"; }
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - Unlock remaining: [er.extensions.eof.ERXEC@dd151f]
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.eof.ERXEC - Unlocking autolocked editing context: er.extensions.eof.ERXEC@dd151f
> Nov 17 22:22:01 Solar[6009] DEBUG er.extensions.appserver.ERXBrowserFactory - _decrementReferenceCounterForKey() - count = 24, key = IE.7.0.4.0.Windows.{cpu = "Unknown CPU"; geckoRevision = "No Gecko"; }
>
> -----------------------------------------------------------------------
> -----------------------------------------------------------------------
>
> Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - locked er.extensions.eof.ERXEC@13cd5b5
> Exception
> at er.extensions.eof.ERXEC.lock(ERXEC.java:483)
> at com.webobjects.appserver.WOSession._awakeInContext(WOSession.java:835)
> at com.webobjects.appserver.WOApplication.restoreSessionWithID(WOApplication.java:1917)
> at er.extensions.appserver.ERXApplication.restoreSessionWithID(ERXApplication.java:2093)
> ... skipped 6 stack elements
> at Application.dispatchRequest(Application.java:670)
> ... skipped 3 stack elements
> Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.eof.ERXEC - After pushing: [er.extensions.eof.ERXEC@13cd5b5]
> Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.eof.ERXEC$DefaultFactory - Setting default delegate on editing context: er.extensions.eof.ERXEC@1a3b17a allows validation: true
> Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.eof.ERXEC - setting delegate to er.extensions.eof.ERXDefaultEditingContextDelegate@e93999
> Nov 17 22:20:58 Solar[6009] DEBUG er.extensions.eof.ERXEC - s.java:375)
> at er.extensions.eof.ERXEC.setDelegate(ERXEC.java:1312)
> at er.extensions.eof.ERXEC$DefaultFactory.setDefaultDelegateOnEditingContext(ERXEC.java:1408)
> at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1463)
> at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1434)
> at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1540)
> at GenericComponent.localEditingContext(GenericComponent.java:75)
> at SelectTestPage.fetchTests(SelectTestPage.java:71)
> at SelectTestPage.selectNonDOETests(SelectTestPage.java:146)
> at ToolsHelperFrame.selectTestPageFrame(ToolsHelperFrame.java:29)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
> at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
> at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
> at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
> at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
> at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
> at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
> at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
> at com.webobjects.appserver._private.WOHTMLURLValuedElement.invokeAction(WOHTMLURLValuedElement.java:138)
> at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
> at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
> at Session.invokeAction(Session.java:191)
> at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
> at er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:50)
> at er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1687)
> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
> at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
> at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
> at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
> at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
> at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
> at Application.dispatchRequest(Application.java:670)
> at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
> at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
> at java.lang.Thread.run(Thread.java:619)
>
>
> Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC$DefaultFactory - Setting default delegate on editing context: er.extensions.eof.ERXEC@13cd5b5 allows validation: true
> Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC - setting delegate to er.extensions.eof.ERXDefaultEditingContextDelegate@e93999
> Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC - s.java:375)
> at er.extensions.eof.ERXEC.setDelegate(ERXEC.java:1312)
> at er.extensions.eof.ERXEC$DefaultFactory.setDefaultDelegateOnEditingContext(ERXEC.java:1408)
> at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1463)
> at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1434)
> at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1540)
> at er.extensions.appserver.ERXSession.defaultEditingContext(ERXSession.java:353)
> at Session.setLoginUser(Session.java:106)
> at Main.login(Main.java:185)
> at Main.login(Main.java:120)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
> at com.webobjects.foundation.NSKeyValueCoding$_MethodBinding.valueInObject(NSKeyValueCoding.java:1134)
> at com.webobjects.foundation.NSKeyValueCoding$DefaultImplementation.valueForKey(NSKeyValueCoding.java:1324)
> at com.webobjects.appserver.WOComponent.valueForKey(WOComponent.java:1736)
> at com.webobjects.foundation.NSKeyValueCoding$Utility.valueForKey(NSKeyValueCoding.java:447)
> at com.webobjects.foundation.NSKeyValueCodingAdditions$DefaultImplementation.valueForKeyPath(NSKeyValueCodingAdditions.java:212)
> at com.webobjects.appserver.WOComponent.valueForKeyPath(WOComponent.java:1804)
> at com.webobjects.appserver._private.WOKeyValueAssociation.valueInComponent(WOKeyValueAssociation.java:50)
> at com.webobjects.appserver._private.WOSubmitButton.invokeAction(WOSubmitButton.java:70)
> at er.extensions.foundation.ERXPatcher$DynamicElementsPatches$SubmitButton.invokeAction(ERXPatcher.java:214)
> at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> at er.extensions.components._private.ERXWOForm.invokeAction(ERXWOForm.java:180)
> at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> at com.webobjects.appserver._private.WOComponentContent.invokeAction(WOComponentContent.java:38)
> at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:86)
> at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> at com.webobjects.appserver._private.WOHTMLURLValuedElement.invokeAction(WOHTMLURLValuedElement.java:149)
> at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
> at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:92)
> at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127)
> at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> at com.webobjects.appserver._private.WOConditional.invokeAction(WOConditional.java:86)
> at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105)
> at com.webobjects.appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:115)
> at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java:1079)
> at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:92)
> at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1357)
> at Session.invokeAction(Session.java:191)
> at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java:1745)
> at er.extensions.appserver.ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:50)
> at er.extensions.appserver.ERXApplication.invokeAction(ERXApplication.java:1687)
> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedPage(WOComponentRequestHandler.java:206)
> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedSession(WOComponentRequestHandler.java:298)
> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:332)
> at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
> at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
> at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
> at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
> at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
> at Application.dispatchRequest(Application.java:653)
> at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
> at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
> at java.lang.Thread.run(Thread.java:619)
>
> Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - locked er.extensions.eof.ERXEC@13cd5b5
> Exception
> at er.extensions.eof.ERXEC.lock(ERXEC.java:483)
> at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1465)
> at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1434)
> at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1540)
> at er.extensions.appserver.ERXSession.defaultEditingContext(ERXSession.java:353)
> at Session.setLoginUser(Session.java:106)
> at Main.login(Main.java:185)
> at Main.login(Main.java:120)
> ... skipped 4 stack elements
> at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
> ... skipped 46 stack elements
> at Application.dispatchRequest(Application.java:653)
> ... skipped 3 stack elements
> Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC - After pushing: [er.extensions.eof.ERXEC@5971c3, er.extensions.eof.ERXEC@13cd5b5]
> Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.eof.ERXEC - After popping: [er.extensions.eof.ERXEC@5971c3]
> Nov 17 22:20:48 Solar[6009] DEBUG er.extensions.ERXEC.LockLogger - unlocked er.extensions.eof.ERXEC@13cd5b5
> Exception
> at er.extensions.eof.ERXEC.unlock(ERXEC.java:501)
> at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1467)
> at er.extensions.eof.ERXEC$DefaultFactory._newEditingContext(ERXEC.java:1434)
> at er.extensions.eof.ERXEC.newEditingContext(ERXEC.java:1540)
> at er.extensions.appserver.ERXSession.defaultEditingContext(ERXSession.java:353)
> at Session.setLoginUser(Session.java:106)
> at Main.login(Main.java:185)
> at Main.login(Main.java:120)
> ... skipped 4 stack elements
> at KeyValueCodingProtectedAccessor.methodValue(KeyValueCodingProtectedAccessor.java:60)
> ... skipped 46 stack elements
> at Application.dispatchRequest(Application.java:653)
> ... skipped 3 stack elements
> -----------------------------------------------------------------------
> -----------------------------------------------------------------------
>
> Any help would be appreciated.
>
> Regards,
> Raghu.
>
> On 17-Nov-2014, at 11:41 PM, email@hidden wrote:
>
>> Send Webobjects-dev mailing list submissions to
>> email@hidden
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> https://lists.apple.com/mailman/listinfo/webobjects-dev
>> or, via email, send a message with subject or body 'help' to
>> email@hidden
>>
>> You can reach the person managing the list at
>> email@hidden
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Webobjects-dev digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Re: WebObjects application instances hanging - Deadlocks
>> occurring (Ralf Schuchardt)
>> 2. Re: WOWODC 2015 - April 25, 26 and 27 2015
>> (CHRISTOPH WICK | i4innovation GmbH, Bonn)
>> 3. Re: WOCommunity maven repository down? (Henrique Prange)
>> 4. Re: WOWODC 2015 - April 25, 26 and 27 2015 (Klaus Berkling)
>> 5. Re: Ponder docs or examples (Flavio Donadio)
>> 6. Re: Ponder docs or examples (Ramsey Gurley)
>> 7. Re: Ponder and/or d2w (Ramsey Gurley)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 17 Nov 2014 15:03:44 +0100
>> From: Ralf Schuchardt <email@hidden>
>> To: Development WebObjects <email@hidden>
>> Subject: Re: WebObjects application instances hanging - Deadlocks
>> occurring
>> Message-ID: <email@hidden>
>> Content-Type: text/plain; charset=us-ascii
>>
>> Hi,
>>
>> Am 17.11.2014 um 13:33 schrieb Raghavender Bokka <email@hidden>:
>>
>>> Hi Team,
>>>
>>> Some of our WebObjects application instances are hanging when some user load (around 1000 users) are testing, when we look into the java process thread dump there are deadlocks occurring. The following is the thread dump:
>>
>> [...]
>>
>>> "WorkerThread24" prio=3 tid=0x00e42800 nid=0x31 waiting on condition [0xd49fe000]
>>> java.lang.Thread.State: WAITING (parking)
>>> at sun.misc.Unsafe.park(Native Method)
>>> - parking to wait for <0xdc3837c8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
>>> at java.util.concurrent.locks.LockSupport.park(LockSupport.java:158)
>>> at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:747)
>>> at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:778)
>>> at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1114)
>>> at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
>>> at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
>>> at com.webobjects.eocontrol.EOEditingContext.lock(EOEditingContext.java:4617)
>>> at er.extensions.eof.ERXEC.lock(ERXEC.java:480)
>>> at com.webobjects.appserver.WOSession._awakeInContext(WOSession.java:835)
>>> at com.webobjects.appserver.WOApplication.restoreSessionWithID(WOApplication.java:1917)
>>> at er.extensions.appserver.ERXApplication.restoreSessionWithID(ERXApplication.java:2093)
>>> at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWithPreparedApplication(WOComponentRequestHandler.java:324)
>>> at com.webobjects.appserver._private.WOComponentRequestHandler._handleRequest(WOComponentRequestHandler.java:369)
>>> at com.webobjects.appserver._private.WOComponentRequestHandler.handleRequest(WOComponentRequestHandler.java:442)
>>> - locked <0xdbc631d0> (a java.lang.Object)
>>> at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1687)
>>> at er.extensions.appserver.ERXApplication.dispatchRequestImmediately(ERXApplication.java:1802)
>>> at er.extensions.appserver.ERXApplication.dispatchRequest(ERXApplication.java:1767)
>>> at Application.dispatchRequest(Application.java:670)
>>> at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:144)
>>> at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:226)
>>> at java.lang.Thread.run(Thread.java:619)
>>
>> This stack trace seems to indicate, that the defaultEditingContext was not unlocked in the previous request. Do you see an exception prior to the deadlock?
>> If you have code in a Session.sleep() method, make sure to catch all exceptions there.
>>
>> Ralf
>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Webobjects-dev mailing list
> email@hidden
> https://lists.apple.com/mailman/listinfo/webobjects-dev
>
> End of Webobjects-dev Digest, Vol 11, Issue 572
> ***********************************************
_______________________________________________
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