Re: ideas to dupe an EO
could there be something wrong here: ERXCopyable.copyLogger.debug(Removing objects in to-many relationship + relationshipName); for (ERXCopyable relatedObject : relatedObjects) { destination.removeObjectFromBothSidesOfRelationshipWithKey(relatedObject, relationshipName); if (relatedObject.isNewObject()) { editingContext.deleteObject(relatedObject); } } at this point in the process I get: I do not understand the code that starts the for loop. from what to what? java.util.NoSuchElementException at com.webobjects.foundation.NSMutableArray$Itr.next(NSMutableArray.java:656) at er.extensions.eof.ERXCopyable$Utility.cleanRelationships(ERXCopyable.java:442) at er.extensions.eof.ERXCopyable$Utility.newInstance(ERXCopyable.java:856) at com.as.Model.ProjectWorkOrder.duplicate(ProjectWorkOrder.java:59) at com.as.Model.ProjectWorkOrder.duplicate(ProjectWorkOrder.java:1) at er.extensions.eof.ERXCopyable$DefaultImplementation.copy(ERXCopyable.java:309) at com.as.Model.ProjectWorkOrder.copy(ProjectWorkOrder.java:51) at com.as.Model.ProjectWorkOrder.copy(ProjectWorkOrder.java:45) at com.as.Model.ProjectWorkOrder.copy(ProjectWorkOrder.java:1) at Components.TPMODInspectPage.dupeAction(TPMODInspectPage.java:121) 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 com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636) 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.WOComponent.valueForBinding(WOComponent.java:731) at com.webobjects.appserver._private.WOBindingNameAssociation.valueInComponent(WOBindingNameAssociation.java:44) at com.webobjects.appserver.WOComponent.valueForBinding(WOComponent.java:731) at com.webobjects.appserver._private.WOBindingNameAssociation.valueInComponent(WOBindingNameAssociation.java:44) at com.webobjects.appserver.WOComponent.valueForBinding(WOComponent.java:731) at com.webobjects.appserver._private.WOBindingNameAssociation.valueInComponent(WOBindingNameAssociation.java:44) at com.webobjects.appserver._private.WOGenericElement.invokeAction(WOGenericElement.java:137) 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:168) at er.extensions.components.ERXNonSynchronizingComponent.invokeAction(ERXNonSynchronizingComponent.java:66) at er.coolcomponents.CCSubmitLink.invokeAction(CCSubmitLink.java:63) 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.WOComponent.invokeAction(WOComponent.java:1079) at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:168) at er.extensions.components.ERXNonSynchronizingComponent.invokeAction(ERXNonSynchronizingComponent.java:66) at com.webobjects.appserver._private.WOComponentReference.invokeAction(WOComponentReference.java:127) at com.webobjects.appserver._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:105) at
patch for wonders NSArray implementation
Hi all During upgrading the wonder frameworks to the 6.0 versions we noticed a changed behaviour in NSArray. In the NSArray_findObjectInArray function, if identical is set to false, the orginial version does not return an earlier equal object (as the wonder version does) but the first object matching the same object. Please consider to include the attached patch, if you need further information do not hesitate to contact me. Best regards Oliver @@ -510,10 +510,12 @@ public class NSArrayE implements Cloneable, Serializable, NSCoding, NSKeyValue if (objects[i] == object) { return i; } - if (!identical object.equals(objects[i])) { + } + if(!identical) + for (int i = index; i = maxIndex; i++) { + if (object.equals(objects[i])) { return i; } - } } -- -- oliver egger ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WORepetition, ERXWORepetition and ERXEC RR-Loop issue
Hi List,I would like to know why when I am using Theses components (WORepetition and ERXWORepetition), I have this warning in my log :WARN er.extensions.eof.ERXEC - Unlocking context that wasn't unlocked in RR-Loop!: er.extensions.eof.ERXEC@xxI use try{ec.lock} catch{} finally{ec.unlock} when fetching eos and theses arguments in my properties file : er.extensions.ERXEC.safeLocking=trueer.extensions.ERXEC.traceOpenLocks=trueer.extensions.ERXEC.useUnlocker=trueer.extensions.ERXEC.markOpenLocks=falseer.extensions.ERXEC.defaultAutomaticLockUnlock=trueer.extensions.ERXEC.useSharedEditingContext=falseer.extensions.ERXEC.defaultCoalesceAutoLocks=false but nothing to do?Thanks for your help Envoyé depuis iCloud ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
WOWODC 2013 Keynote Theme
Is everyone using the same keynote theme again this year? If so, is the 2013 one ready yet? Thanks, Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: WOWODC 2013 Keynote Theme
Wrong mailing list? :-) Is everyone using the same keynote theme again this year? If so, is the 2013 one ready yet? Thanks, Ramsey ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/probert%40macti.ca This email sent to prob...@macti.ca ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
REST PUT request creating related objects rather than just updating them
Hi all, I'm using RestKit and ERRest to access services provided from a web app in WO to a OS X app. I'm doing a PUT to update an object that has several one-to-one relationships. The request sent by RestKit is something like this: { attrib1: attrib1 value, attrib2: attrib2 value, object1: { id: 2, name: some name }, id: 1, object2: { id: 1, name: some other name, description: some description } } On the WO side the object attributes are updated but also both object1 and object2 are created rather than just updating the relationship to those objects. The filter I'm using in the update includes all the attributes to the object being updated and also the 2 relationship objects and corresponding attributes. Shouldn't the WO side recognize the objects in the relationships, fetch them and traverse the relationships and update the already existing objects? Thanks in advance. Best regards, Catarina ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: REST PUT request creating related objects rather than just updating them
yes. On Feb 18, 2013, at 12:06 PM, Catarina Simões velou...@velouria.org wrote: Hi all, I'm using RestKit and ERRest to access services provided from a web app in WO to a OS X app. I'm doing a PUT to update an object that has several one-to-one relationships. The request sent by RestKit is something like this: { attrib1: attrib1 value, attrib2: attrib2 value, object1: { id: 2, name: some name }, id: 1, object2: { id: 1, name: some other name, description: some description } } On the WO side the object attributes are updated but also both object1 and object2 are created rather than just updating the relationship to those objects. The filter I'm using in the update includes all the attributes to the object being updated and also the 2 relationship objects and corresponding attributes. Shouldn't the WO side recognize the objects in the relationships, fetch them and traverse the relationships and update the already existing objects? Thanks in advance. Best regards, Catarina ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: REST PUT request creating related objects rather than just updating them
Whoops. Update, yes. Create? No. You need to create objects separately and create each related object one at a time - not like transaction w/rollback Make sense? On Feb 18, 2013, at 12:14 PM, Jesse Tayler jtay...@oeinc.com wrote: yes. On Feb 18, 2013, at 12:06 PM, Catarina Simões velou...@velouria.org wrote: Hi all, I'm using RestKit and ERRest to access services provided from a web app in WO to a OS X app. I'm doing a PUT to update an object that has several one-to-one relationships. The request sent by RestKit is something like this: { attrib1: attrib1 value, attrib2: attrib2 value, object1: { id: 2, name: some name }, id: 1, object2: { id: 1, name: some other name, description: some description } } On the WO side the object attributes are updated but also both object1 and object2 are created rather than just updating the relationship to those objects. The filter I'm using in the update includes all the attributes to the object being updated and also the 2 relationship objects and corresponding attributes. Shouldn't the WO side recognize the objects in the relationships, fetch them and traverse the relationships and update the already existing objects? Thanks in advance. Best regards, Catarina ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com This email sent to jtay...@oeinc.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ideas to dupe an EO
On 2013-02-18, at 5:53 AM, Theodore Petrosky wrote: could there be something wrong here: ERXCopyable.copyLogger.debug(Removing objects in to-many relationship + relationshipName); for (ERXCopyable relatedObject : relatedObjects) { destination.removeObjectFromBothSidesOfRelationshipWithKey(relatedObject, relationshipName); if (relatedObject.isNewObject()) { editingContext.deleteObject(relatedObject); } } It looks like someone updated the for loop and broke it. relatedObjects needs to be a copy of the relationship, not a reference to it. Chuck at this point in the process I get: I do not understand the code that starts the for loop. from what to what? java.util.NoSuchElementException at com.webobjects.foundation.NSMutableArray$Itr.next(NSMutableArray.java:656) at er.extensions.eof.ERXCopyable$Utility.cleanRelationships(ERXCopyable.java:442) at er.extensions.eof.ERXCopyable$Utility.newInstance(ERXCopyable.java:856) at com.as.Model.ProjectWorkOrder.duplicate(ProjectWorkOrder.java:59) at com.as.Model.ProjectWorkOrder.duplicate(ProjectWorkOrder.java:1) at er.extensions.eof.ERXCopyable$DefaultImplementation.copy(ERXCopyable.java:309) at com.as.Model.ProjectWorkOrder.copy(ProjectWorkOrder.java:51) at com.as.Model.ProjectWorkOrder.copy(ProjectWorkOrder.java:45) at com.as.Model.ProjectWorkOrder.copy(ProjectWorkOrder.java:1) at Components.TPMODInspectPage.dupeAction(TPMODInspectPage.java:121) 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 com.webobjects.foundation.NSKeyValueCoding$ValueAccessor$1.methodValue(NSKeyValueCoding.java:636) 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.WOComponent.valueForBinding(WOComponent.java:731) at com.webobjects.appserver._private.WOBindingNameAssociation.valueInComponent(WOBindingNameAssociation.java:44) at com.webobjects.appserver.WOComponent.valueForBinding(WOComponent.java:731) at com.webobjects.appserver._private.WOBindingNameAssociation.valueInComponent(WOBindingNameAssociation.java:44) at com.webobjects.appserver.WOComponent.valueForBinding(WOComponent.java:731) at com.webobjects.appserver._private.WOBindingNameAssociation.valueInComponent(WOBindingNameAssociation.java:44) at com.webobjects.appserver._private.WOGenericElement.invokeAction(WOGenericElement.java:137) 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:168) at er.extensions.components.ERXNonSynchronizingComponent.invokeAction(ERXNonSynchronizingComponent.java:66) at er.coolcomponents.CCSubmitLink.invokeAction(CCSubmitLink.java:63) 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.WOComponent.invokeAction(WOComponent.java:1079) at er.extensions.components.ERXComponent.invokeAction(ERXComponent.java:168) at er.extensions.components.ERXNonSynchronizingComponent.invokeAction(ERXNonSynchronizingComponent.java:66) at
Problems installing WOLips into 4.2.1
Hi WO-men and WO-girls … ;) I am trying to install WOLips from http://jenkins.wocommunity.org/job/WOLips37Stable/lastSuccessfulBuild/artifact/temp/dist/ (for 4.2) into a Version: 4.2.1 Build id: M20120914-1800 but I get: Cannot complete the install because one or more required items could not be found. Software being installed: WOLips 3.7.20130127.39 (org.objectstyle.wolips.feature.feature.group 3.7.20130127.39) Missing requirement: WOLips 3.7.20130127.39 (org.objectstyle.wolips.feature.feature.group 3.7.20130127.39) requires 'org.eclipse.update.ui 0.0.0' but it could not be found What I am missing? Or is this just a temporarily hick-up? cheers, Lars ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Problems installing WOLips into 4.2.1
Wrong site for 4.2 http://jenkins.wocommunity.org/job/WOLips42/lastSuccessfulBuild/artifact/temp/dist/ Ramsey On Feb 18, 2013, at 4:59 PM, Lars Sonchocky-Helldorf wrote: Hi WO-men and WO-girls … ;) I am trying to install WOLips from http://jenkins.wocommunity.org/job/WOLips37Stable/lastSuccessfulBuild/artifact/temp/dist/ (for 4.2) into a Version: 4.2.1 Build id: M20120914-1800 but I get: Cannot complete the install because one or more required items could not be found. Software being installed: WOLips 3.7.20130127.39 (org.objectstyle.wolips.feature.feature.group 3.7.20130127.39) Missing requirement: WOLips 3.7.20130127.39 (org.objectstyle.wolips.feature.feature.group 3.7.20130127.39) requires 'org.eclipse.update.ui 0.0.0' but it could not be found What I am missing? Or is this just a temporarily hick-up? cheers, Lars ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com This email sent to rgur...@smarthealth.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com