Re: Objects don't get initialized sometimes

2010-01-25 Thread Gennady Kushnir
It seems like these errors are finally gone! Yippee!! The last thing I have done was to retire nested editing context and stay in main one. In fact, during this operation I've mentioned one improper transfer of object between these contexts. But I decided to fulfill my plan to be sure. Thanks every

Re: Objects don't get initialized sometimes

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 7:36 PM, Ken Anderson wrote: One minor point... weight, which is a BigDecimal, is immutable. The 'setScale' method actually returns a new BigDecimal, so this code will not do what is intended. This has to be one of my biggest pet peeves... it is probably the worst

Re: Objects don't get initialized sometimes

2010-01-13 Thread Ken Anderson
One minor point... weight, which is a BigDecimal, is immutable. The 'setScale' method actually returns a new BigDecimal, so this code will not do what is intended. This has to be one of my biggest pet peeves... it is probably the worst named method in all of Java land. Ken On Jan 13,

Re: Objects don't get initialized sometimes

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 2:05 PM, Gennady Kushnir wrote: 2010/1/13 Chuck Hill : On Jan 13, 2010, at 4:04 AM, Gennady Kushnir wrote: may this be the reason? public void setWeight(BigDecimal aValue) { if(weight().compareTo(aValue) != 0) { if(weight().compareTo(BigDecimal.ZERO) ==

Re: Objects don't get initialized sometimes

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 3:45 PM, Neil MacLennan wrote: On 12 Jan 2010, at 01:07, Chuck Hill wrote: Scotch?!!? That is not very Irish of you! I thought that Scotch was what the Scottish drank because they knew not how to make Irish whiskey. *cough* Uh oh. I was afraid of that. :-P

Re: Objects don't get initialized sometimes

2010-01-13 Thread Neil MacLennan
On 12 Jan 2010, at 01:07, Chuck Hill wrote: > Scotch?!!? That is not very Irish of you! I thought that Scotch was what > the Scottish drank because they knew not how to make Irish whiskey. > *cough* String geoLocate() { String location = http://maps.google.co.uk/maps?f=q&geocode=&sll=55.9

Re: Objects don't get initialized sometimes

2010-01-13 Thread Gennady Kushnir
2010/1/13 Chuck Hill : > > On Jan 13, 2010, at 4:04 AM, Gennady Kushnir wrote: > >> may this be the reason? >> >>   public void setWeight(BigDecimal aValue) { >>      if(weight().compareTo(aValue) != 0) { >>           if(weight().compareTo(BigDecimal.ZERO) == 0 >>                           || aValu

Re: Objects don't get initialized sometimes

2010-01-13 Thread Chuck Hill
On Jan 13, 2010, at 4:04 AM, Gennady Kushnir wrote: may this be the reason? public void setWeight(BigDecimal aValue) { if(weight().compareTo(aValue) != 0) { if(weight().compareTo(BigDecimal.ZERO) == 0 || aValue.compareTo(BigDecimal.ZERO) == 0)

Re: Objects don't get initialized sometimes

2010-01-13 Thread Gennady Kushnir
may this be the reason? public void setWeight(BigDecimal aValue) { if(weight().compareTo(aValue) != 0) { if(weight().compareTo(BigDecimal.ZERO) == 0 || aValue.compareTo(BigDecimal.ZERO) == 0) _integralPresenter = null;

Re: OT: Scotch (was Re: Objects don't get initialized sometimes)

2010-01-12 Thread Stefan Klein
You should give Laphroaig a chance Stefan Daryl Thachuk schrieb: If you like em peaty you should check out : Ileach Cask Strength it tastes like someone took a chunk of peat and dissolved it in your glass. -d On Jan 12, 2010, at 9:19 AM, David Avendasora wrote: Favorites: 1) Ardbeg Ui

Re: Objects don't get initialized sometimes

2010-01-12 Thread Chuck Hill
On Jan 11, 2010, at 2:14 PM, Gennady Kushnir wrote: I am on MySQL 5.0.x I don't use change notification framework. Stack trace of exception says it is raised during ec.saveChanges(). May it be caused by using nested editing contexts? Maybe if you are using them incorrectly. Unfortunately

Re: OT: Scotch (was Re: Objects don't get initialized sometimes)

2010-01-12 Thread Chuck Hill
I think we have found a new section for the 2010 WebObjects Survey! On Jan 12, 2010, at 9:28 AM, Daryl Thachuk wrote: If you like em peaty you should check out : Ileach Cask Strength it tastes like someone took a chunk of peat and dissolved it in your glass. -d On Jan 12, 2010, at 9:19

Re: OT: Scotch (was Re: Objects don't get initialized sometimes)

2010-01-12 Thread Daryl Thachuk
If you like em peaty you should check out : Ileach Cask Strength it tastes like someone took a chunk of peat and dissolved it in your glass. -d On Jan 12, 2010, at 9:19 AM, David Avendasora wrote: > Favorites: > 1) Ardbeg Uigeadail > 2) McCallan 18-year > 3) Caol Ila 18-year > 4) Lagavulin 16

RE: Scotch (was Re: Objects don't get initialized sometimes)

2010-01-12 Thread Weide, Björn
To: Kieran Kelleher Cc: Development WebObjects Subject: OT: Scotch (was Re: Objects don't get initialized sometimes) Ahhh, now we're talking.  Very nice, indeed.  You might also like Lagavulin 16yr (my personal fav).  Talisker has a nice "flavour map" that you might find interest

Re: OT: Scotch (was Re: Objects don't get initialized sometimes)

2010-01-12 Thread David Avendasora
Favorites: 1) Ardbeg Uigeadail 2) McCallan 18-year 3) Caol Ila 18-year 4) Lagavulin 16-year Every-day (in no particular order) Laphroig 10-year Ardbeg 10-year Yes, I like them peaty. McCallan being the exception. Dave On Jan 12, 2010, at 10:20 AM, Patrick Robinson wrote: > Ahhh, now we're talk

Re: Objects don't get initialized sometimes

2010-01-12 Thread Pascal Robert
Le 10-01-11 à 20:45, Kieran Kelleher a écrit : On Jan 11, 2010, at 8:07 PM, Chuck Hill wrote: On Jan 11, 2010, at 5:04 PM, Kieran Kelleher wrote: Ha ha! Gennady, never mind Chuck - he is probably after a few glasses of scotch to help him get thru the cold weather :-P Scotch?!!? That i

OT: Scotch (was Re: Objects don't get initialized sometimes)

2010-01-12 Thread Patrick Robinson
Ahhh, now we're talking. Very nice, indeed. You might also like Lagavulin 16yr (my personal fav). Talisker has a nice "flavour map" that you might find interesting. - Patrick On Jan 11, 2010, at 8:45 PM, Kieran Kelleher wrote: On Jan 11, 2010, at 8:07 PM, Chuck Hill wrote: On Jan 11,

Re: Objects don't get initialized sometimes

2010-01-11 Thread Kieran Kelleher
On Jan 11, 2010, at 8:07 PM, Chuck Hill wrote: On Jan 11, 2010, at 5:04 PM, Kieran Kelleher wrote: Ha ha! Gennady, never mind Chuck - he is probably after a few glasses of scotch to help him get thru the cold weather :-P Scotch?!!? That is not very Irish of you! I thought that Scotch

Re: Objects don't get initialized sometimes

2010-01-11 Thread Pascal Robert
Le 10-01-11 à 20:35, Chuck Hill a écrit : On Jan 11, 2010, at 5:27 PM, Tim Worman wrote: On Jan 11, 2010, at 5:07 PM, Chuck Hill wrote: On Jan 11, 2010, at 5:04 PM, Kieran Kelleher wrote: Ha ha! Gennady, never mind Chuck - he is probably after a few glasses of scotch to help him get t

Re: Objects don't get initialized sometimes

2010-01-11 Thread Chuck Hill
On Jan 11, 2010, at 5:27 PM, Tim Worman wrote: On Jan 11, 2010, at 5:07 PM, Chuck Hill wrote: On Jan 11, 2010, at 5:04 PM, Kieran Kelleher wrote: Ha ha! Gennady, never mind Chuck - he is probably after a few glasses of scotch to help him get thru the cold weather :-P Scotch?!!? That i

Re: Objects don't get initialized sometimes

2010-01-11 Thread Tim Worman
On Jan 11, 2010, at 5:07 PM, Chuck Hill wrote: > > On Jan 11, 2010, at 5:04 PM, Kieran Kelleher wrote: > >> Ha ha! Gennady, never mind Chuck - he is probably after a few glasses of >> scotch to help him get thru the cold weather :-P > > Scotch?!!? That is not very Irish of you! I thought th

Re: Objects don't get initialized sometimes

2010-01-11 Thread Chuck Hill
On Jan 11, 2010, at 5:04 PM, Kieran Kelleher wrote: Ha ha! Gennady, never mind Chuck - he is probably after a few glasses of scotch to help him get thru the cold weather :-P Scotch?!!? That is not very Irish of you! I thought that Scotch was what the Scottish drank because they knew not

Re: Objects don't get initialized sometimes

2010-01-11 Thread Kieran Kelleher
Ha ha! Gennady, never mind Chuck - he is probably after a few glasses of scotch to help him get thru the cold weather :-P MySQL InnoDB is awesome and runs great on 64bit Snow Leopard too! Regards, Kieran On Jan 11, 2010, at 7:54 PM, Chuck Hill wrote: On Jan 11, 2010, at 4:47 PM, Kieran Kel

Re: Objects don't get initialized sometimes

2010-01-11 Thread Chuck Hill
On Jan 11, 2010, at 4:47 PM, Kieran Kelleher wrote: Even if my guess is wrong, I hope this will help some other WebObjects devs - DO NOT USE MySQL - it will cause you great pain and suffering!! Fixed it for you. :-P -- Chuck Hill Senior Consultant / VP Development Practi

Re: Objects don't get initialized sometimes

2010-01-11 Thread Kieran Kelleher
OK, I am going to make a guess here at the most common mistake when installing MySQL. Correct me if I am wrong, but did you configure MySQL before using it? If so, did you set InnoDB as the default database engine? If so, are all your developers using InnoDB? Using the *DEFAULT* MyISAM Engi

Re: Objects don't get initialized sometimes

2010-01-11 Thread Gennady Kushnir
I am on MySQL 5.0.x I don't use change notification framework. Stack trace of exception says it is raised during ec.saveChanges(). May it be caused by using nested editing contexts? Unfortunately I have no idea how to isolate a problem. I can not even reproduce it. Myself I have only seen it onc

Re: Objects don't get initialized sometimes

2010-01-11 Thread Kieran Kelleher
On Jan 11, 2010, at 1:59 PM, Chuck Hill wrote: On Jan 11, 2010, at 10:33 AM, Kieran Kelleher wrote: On Jan 11, 2010, at 1:03 PM, Chuck Hill wrote: On Jan 11, 2010, at 4:26 AM, Gennady Kushnir wrote: Hello again. I've got it that I was doing something wrong. I've found and removed several

Re: Objects don't get initialized sometimes

2010-01-11 Thread Chuck Hill
On Jan 11, 2010, at 10:33 AM, Kieran Kelleher wrote: On Jan 11, 2010, at 1:03 PM, Chuck Hill wrote: On Jan 11, 2010, at 4:26 AM, Gennady Kushnir wrote: Hello again. I've got it that I was doing something wrong. I've found and removed several commandments violations, employed MultiECLockManager

Re: Objects don't get initialized sometimes

2010-01-11 Thread Kieran Kelleher
On Jan 11, 2010, at 1:03 PM, Chuck Hill wrote: Hi Gennady, On Jan 11, 2010, at 4:26 AM, Gennady Kushnir wrote: Hello again. I've got it that I was doing something wrong. I've found and removed several commandments violations, employed MultiECLockManager for properly locking everything... bu

Re: Objects don't get initialized sometimes

2010-01-11 Thread Kieran Kelleher
On Jan 11, 2010, at 1:03 PM, Chuck Hill wrote: Hi Gennady, On Jan 11, 2010, at 4:26 AM, Gennady Kushnir wrote: Hello again. I've got it that I was doing something wrong. I've found and removed several commandments violations, employed MultiECLockManager for properly locking everything... bu

Re: Objects don't get initialized sometimes

2010-01-11 Thread Chuck Hill
Hi Gennady, On Jan 11, 2010, at 4:26 AM, Gennady Kushnir wrote: Hello again. I've got it that I was doing something wrong. I've found and removed several commandments violations, employed MultiECLockManager for properly locking everything... but I am still getting these errors! How could I tra

Re: Objects don't get initialized sometimes

2010-01-11 Thread Guido Neitzer
Are you using a change notification framework? Take care, Guido On 11. Jan. 2010, at 04:26 , Gennady Kushnir wrote: > Hello again. > I've got it that I was doing something wrong. I've found and removed > several commandments violations, employed MultiECLockManager for > properly locking everythi

Re: Objects don't get initialized sometimes

2010-01-11 Thread Gennady Kushnir
Hello again. I've got it that I was doing something wrong. I've found and removed several commandments violations, employed MultiECLockManager for properly locking everything... but I am still getting these errors! How could I track where is that violation hidden within over 5000 rows of code? The

Re: Objects don't get initialized sometimes

2009-11-03 Thread Chuck Hill
Start here: http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-Breaking+EOF Then http://www.google.com/search?q=llegalStateException+rowDiffsForAttributes+snapshot Chuck On Nov 3, 2009, at 2:02 AM, Gennady Kushnir wrote: Hello list! I have an occasionally occurring problem whic

Re: Objects don't get initialized sometimes

2009-11-03 Thread Gennady Kushnir
thank you for hints 2009/11/3 Chuck Hill : > Start here: > http://wiki.objectstyle.org/confluence/display/WO/EOF-Using+EOF-Breaking+EOF > > Then > http://www.google.com/search?q=llegalStateException+rowDiffsForAttributes+snapshot > > > Chuck > > > On Nov 3, 2009, at 2:02 AM, Gennady Kushnir wrote:

Objects don't get initialized sometimes

2009-11-03 Thread Gennady Kushnir
Hello list! I have an occasionally occurring problem which I can not reproduce but regularly meet in usage logs. Editing context fails to save changes and reports: java.lang.IllegalStateException: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation {_dbSnapshot = {}; ...