Re: Prototype mutableArray savechanges error
On May 27, 2009, at 3:12 PM, Anjo Krank wrote: Am 27.05.2009 um 23:49 schrieb Mike Schrag: I'm not really for changing it to ERXArray in the meantime... As it turns out i don't ACTUALLY care about this class, so this works out quite nicely ... Likewise :) And I understood that Chuck wanted to do something about this pressing matter... Cheers, Anjo It was the man trap / mutable prototype in ERPrototypes that I was grumbling about. Shall I delete it? :-P Chuck -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
Am 27.05.2009 um 23:49 schrieb Mike Schrag: I'm not really for changing it to ERXArray in the meantime... As it turns out i don't ACTUALLY care about this class, so this works out quite nicely ... Likewise :) And I understood that Chuck wanted to do something about this pressing matter... Cheers, Anjo ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
I'm not really for changing it to ERXArray in the meantime... As it turns out i don't ACTUALLY care about this class, so this works out quite nicely ... ms ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
Am 27.05.2009 um 23:00 schrieb Mike Schrag: why don't we kill ERXMutableArray and just make ERXArray that you construct with another NSArray... make mutableClone on it just return NSMutableArray, so you can't mess up. The only reason ERXMutableArray exists is that is can be used as an attribute (previously it was also the only List implementation present, which is mutable and thus must inherit NSMutableArray) which is done by the normal EOAttribute serialization. If one could "change" this to use an actual factory, we wouldn't have that problem and it could be deleted (give or take a deprecation or two). I'm not really for changing it to ERXArray in the meantime... Cheers, Anjo ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 2:00 PM, Mike Schrag wrote: why don't we kill ERXMutableArray and just make ERXArray that you construct with another NSArray... make mutableClone on it just return NSMutableArray, so you can't mess up. Not quite following that, but I did notice this in the ERXMutableArray docs: it is best if you use only List-methods when * extending List-methods and NSArray methods in other cases. Otherwise you will * most likely get into stack overflows. Which might explain Frank's original problem. Chuck On May 27, 2009, at 4:42 PM, Chuck Hill wrote: On May 27, 2009, at 12:49 PM, Anjo Krank wrote: Am 27.05.2009 um 21:40 schrieb Chuck Hill: Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. Huh? Me? What? You scolded me last time I said to not use mutable attributes and grumbled about the mutable prototype in Wonder being dangerous. Some non-sense like: But apart from that, as most have said by now: using ERXMutableArray as an attribute value is totally ok, only using the mutable part of the API of the array is not. I.e. don't use addObject(), create a clone, add to that and setFoo() it. What is the point of making a mutable attribute if you can't use it as a mutable value? It just positively BEGS to be misused. This whole thread is evidence of that. There is no additional complication that I can see in using an immutable array: public void addBar(Bar bar) { setFoo(foo().mutableClone().addObject(bar)); } public void addBar(Bar bar) { setFoo(foo().arrayByAddingObject(bar)); } But you had some reason for wanting it to be a mutable instance. Some performance concern perhaps? Chuck No idea where the stack overflow comes from. Setting an exception breakpoint may or may not help... Cheers, Anjo -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
why don't we kill ERXMutableArray and just make ERXArray that you construct with another NSArray... make mutableClone on it just return NSMutableArray, so you can't mess up. ms On May 27, 2009, at 4:42 PM, Chuck Hill wrote: On May 27, 2009, at 12:49 PM, Anjo Krank wrote: Am 27.05.2009 um 21:40 schrieb Chuck Hill: Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. Huh? Me? What? You scolded me last time I said to not use mutable attributes and grumbled about the mutable prototype in Wonder being dangerous. Some non-sense like: But apart from that, as most have said by now: using ERXMutableArray as an attribute value is totally ok, only using the mutable part of the API of the array is not. I.e. don't use addObject(), create a clone, add to that and setFoo() it. What is the point of making a mutable attribute if you can't use it as a mutable value? It just positively BEGS to be misused. This whole thread is evidence of that. There is no additional complication that I can see in using an immutable array: public void addBar(Bar bar) { setFoo(foo().mutableClone().addObject(bar)); } public void addBar(Bar bar) { setFoo(foo().arrayByAddingObject(bar)); } But you had some reason for wanting it to be a mutable instance. Some performance concern perhaps? Chuck No idea where the stack overflow comes from. Setting an exception breakpoint may or may not help... Cheers, Anjo -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40mdimension.com This email sent to msch...@mdimension.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:49 PM, Anjo Krank wrote: Am 27.05.2009 um 21:40 schrieb Chuck Hill: Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. Huh? Me? What? You scolded me last time I said to not use mutable attributes and grumbled about the mutable prototype in Wonder being dangerous. Some non-sense like: But apart from that, as most have said by now: using ERXMutableArray as an attribute value is totally ok, only using the mutable part of the API of the array is not. I.e. don't use addObject(), create a clone, add to that and setFoo() it. What is the point of making a mutable attribute if you can't use it as a mutable value? It just positively BEGS to be misused. This whole thread is evidence of that. There is no additional complication that I can see in using an immutable array: public void addBar(Bar bar) { setFoo(foo().mutableClone().addObject(bar)); } public void addBar(Bar bar) { setFoo(foo().arrayByAddingObject(bar)); } But you had some reason for wanting it to be a mutable instance. Some performance concern perhaps? Chuck No idea where the stack overflow comes from. Setting an exception breakpoint may or may not help... Cheers, Anjo -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
Am 27.05.2009 um 21:40 schrieb Chuck Hill: Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. Huh? Me? What? But apart from that, as most have said by now: using ERXMutableArray as an attribute value is totally ok, only using the mutable part of the API of the array is not. I.e. don't use addObject(), create a clone, add to that and setFoo() it. No idea where the stack overflow comes from. Setting an exception breakpoint may or may not help... Cheers, Anjo ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:36 PM, Frank Stock wrote: I don't get it Chuck. If I go in the Entity modeler then I can slect in Prototype - mutableArray, my external type is BLOB and the value class is ERXMutableArray. What has that to do with a to-many relationship? I only do this as an easy way to save some numbers. Just because you CAN select it does not make it safe to use. Anjo had some way of using this safely, but you need to be aware that EOF is NOT expecting the contents of that array to change. None of this explains the StackOverflow. I think you have two problems. 1: Using a mutable attribute. 2: Something causing the stackoverflow. They are probably not connected. Chuck Frank Op 27-mei-09, om 21:29 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:26 PM, Frank Stock wrote: Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey("ordernummers"); } Is ordernummers an attribute or a to-many relationship? If it is a to-many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. Chuck public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { if (_Paklijst.LOG.isDebugEnabled()) { _Paklijst.LOG.debug( "updating ordernummers from " + ordernummers() + " to " + value); } takeStoredValueForKey(value, "ordernummers"); } If I do aPaklijst.setOrdernummers(arORderNrs.immutableClone()); then I get an error saying it should be an ERXMutableArray How can I change that? Frank Op 27-mei-09, om 21:13 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by "setting a ERXMutableArray to a ERXGenericRecord"? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:43) WARN NSLog - : Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess .EODatabaseContext.performChanges(EODatabaseContext.java:6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java: 3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent .uitprintenPacklijst(VerzendingComponent.java:76) 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) Thanks Frank Stock ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing lis
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:32 PM, Mike Schrag wrote: Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey("ordernummers"); } Is ordernummers an attribute or a to-many relationship? If it is a to-many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. having a mutable value isn't bad, though -- it's MUTATING that's bad, right? as long as he's doing a mutableClone of it every time he makes a change and calls setOrdernummers each time, it should be fine ... super tedious, but i would expect fine Yes. But I have never seen someone not start mutating it. :-) Possible, but not practical. :-P Maybe the template should enforce that? public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { takeStoredValueForKey(value.immutableClone(), "ordernummers"); } Chuck -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
I don't get it Chuck. If I go in the Entity modeler then I can slect in Prototype - mutableArray, my external type is BLOB and the value class is ERXMutableArray. What has that to do with a to-many relationship? I only do this as an easy way to save some numbers. Frank Op 27-mei-09, om 21:29 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:26 PM, Frank Stock wrote: Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey("ordernummers"); } Is ordernummers an attribute or a to-many relationship? If it is a to-many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. Chuck public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { if (_Paklijst.LOG.isDebugEnabled()) { _Paklijst.LOG.debug( "updating ordernummers from " + ordernummers() + " to " + value); } takeStoredValueForKey(value, "ordernummers"); } If I do aPaklijst.setOrdernummers(arORderNrs.immutableClone()); then I get an error saying it should be an ERXMutableArray How can I change that? Frank Op 27-mei-09, om 21:13 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by "setting a ERXMutableArray to a ERXGenericRecord"? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 43) WARN NSLog - : Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess .EODatabaseContext.performChanges(EODatabaseContext.java:6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java: 3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent .uitprintenPacklijst(VerzendingComponent.java:76) 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) Thanks Frank Stock ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in
Re: Prototype mutableArray savechanges error
Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey("ordernummers"); } Is ordernummers an attribute or a to-many relationship? If it is a to-many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. having a mutable value isn't bad, though -- it's MUTATING that's bad, right? as long as he's doing a mutableClone of it every time he makes a change and calls setOrdernummers each time, it should be fine ... super tedious, but i would expect fine ms ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:26 PM, Frank Stock wrote: Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey("ordernummers"); } Is ordernummers an attribute or a to-many relationship? If it is a to- many relationship, this is normal. If this is an attribute, you have a problem. The generator just generates what you have modeled. If you model bad things, it will happily generate them. Chuck public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { if (_Paklijst.LOG.isDebugEnabled()) { _Paklijst.LOG.debug( "updating ordernummers from " + ordernummers() + " to " + value); } takeStoredValueForKey(value, "ordernummers"); } If I do aPaklijst.setOrdernummers(arORderNrs.immutableClone()); then I get an error saying it should be an ERXMutableArray How can I change that? Frank Op 27-mei-09, om 21:13 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by "setting a ERXMutableArray to a ERXGenericRecord"? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 43) WARN NSLog - : Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess .EODatabaseContext.performChanges(EODatabaseContext.java:6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java: 3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent .uitprintenPacklijst(VerzendingComponent.java:76) 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) Thanks Frank Stock ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing li
Re: Prototype mutableArray savechanges error
Ok, but why does the generator creates the following: public er.extensions.foundation.ERXMutableArray ordernummers() { return (er.extensions.foundation.ERXMutableArray) storedValueForKey("ordernummers"); } public void setOrdernummers(er.extensions.foundation.ERXMutableArray value) { if (_Paklijst.LOG.isDebugEnabled()) { _Paklijst.LOG.debug( "updating ordernummers from " + ordernummers() + " to " + value); } takeStoredValueForKey(value, "ordernummers"); } If I do aPaklijst.setOrdernummers(arORderNrs.immutableClone()); then I get an error saying it should be an ERXMutableArray How can I change that? Frank Op 27-mei-09, om 21:13 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by "setting a ERXMutableArray to a ERXGenericRecord"? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java:160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 43) WARN NSLog - : Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java: 6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent.uitprintenPacklijst(VerzendingComponent.java: 76) 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) Thanks Frank Stock ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 12:02 PM, Frank Stock wrote: Hi, In my Entity, one of my Attributes has mutableArray as prototype. See Commandment 7: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-The+EOF+Commandments See page 32 of Practical WebObjects. You want to be really, really sure you know what you are doing if you use mutable values. Get it wrong, and EOF will have its revenge. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Check for changes in ERXGenericRecord. Maybe something created an infinte loop if you use mutable values: 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java: 160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null Chuck Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by "setting a ERXMutableArray to a ERXGenericRecord"? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java: 160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java: 43) WARN NSLog - : Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java: 6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent.uitprintenPacklijst(VerzendingComponent.java: 76) 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) Thanks Frank Stock ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
Hi, In my Entity, one of my Attributes has mutableArray as prototype. So if is set that Attribute and do saveChanges, the I get the error. It was working in the past, so I think it might have something to do with an update (nightly wolips?, wonder?) I really don't now where to look. Frank Op 27-mei-09, om 19:51 heeft Chuck Hill het volgende geschreven: On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by "setting a ERXMutableArray to a ERXGenericRecord"? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java: 160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:43) WARN NSLog - : Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java: 6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent.uitprintenPacklijst(VerzendingComponent.java:76) 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) Thanks Frank Stock ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Prototype mutableArray savechanges error
On May 27, 2009, at 9:15 AM, Frank Stock wrote: Hi, When setting a ERXMutableArray to a ERXGenericRecord, What do you mean by "setting a ERXMutableArray to a ERXGenericRecord"? Chuck I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java: 160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:43) WARN NSLog - : Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded (EODatabaseContext.java:4685) at com .webobjects .eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java: 6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent.uitprintenPacklijst(VerzendingComponent.java:76) 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) Thanks Frank Stock ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development Come to WOWODC'09 in San Fran this June! http://www.wocommunity.org/wowodc09/ ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Prototype mutableArray savechanges error
Hi, When setting a ERXMutableArray to a ERXGenericRecord, I suddenly get the following error: Where can I find what is going wrong, it used to work. 27 18:08:08 chemlabVerkoop[53722] (ERXDatabaseContextDelegate.java: 160) INFO er.transaction.adaptor.Exceptions - Database Exception occured: com.webobjects.foundation.NSForwardException [java.lang.StackOverflowError] null mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Rollback Internal Transaction mei 27 18:08:08 chemlabVerkoop[53722] (ERXNSLogLog4jBridge.java:43) WARN NSLog - : Exception occurred while handling request: com.webobjects.eoaccess.EOGeneralAdaptorException [2009-05-27 18:08:08 CEST] com.webobjects.eoaccess.EOGeneralAdaptorException at com .webobjects .eoaccess .EODatabaseContext ._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java: 4685) at com .webobjects .eoaccess.EODatabaseContext.performChanges(EODatabaseContext.java:6393) at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:415) at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226) at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:981) at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:903) at pdf.PDF_paklijst.maak_pdf(PDF_paklijst.java:371) at Component .VerzendingComponent.uitprintenPacklijst(VerzendingComponent.java:76) 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) Thanks Frank Stock ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com