Re: How to get the failing EO when a unique constraint violation occurs?

2010-01-11 Thread Chuck Hill
On Jan 11, 2010, at 10:26 PM, Amiel Montecillo wrote: Hi Chuck, I'm not sure if I got you correctly (english is not my natural language). Seems pretty good to me! :-) But this what I am doing: 1. Determine the unique constraint violation exception 2. Get the table and constraint name

Re: How to get the failing EO when a unique constraint violation occurs?

2010-01-11 Thread Amiel Montecillo
Hi Chuck, I'm not sure if I got you correctly (english is not my natural language). But this what I am doing: 1. Determine the unique constraint violation exception 2. Get the table and constraint name Next exception:SQL State:23000 -- error code: 1 -- msg: ORA-1: unique constraint (*WATCHL

Re: How to get the failing EO when a unique constraint violation occurs?

2010-01-11 Thread Chuck Hill
Hi Amiel, You can only get it if you are not using deferred constraints. If you are using deferred constraints, the exception is only thrown at the end of the transaction and EOF has no way of knowing which EO caused the error. The best solution that I have found is to parse out the tab

How to get the failing EO when a unique constraint violation occurs?

2010-01-11 Thread Amiel Montecillo
Hi Everyone, Is it possible to get the failed EO instance when an unique constraint violation occurs? I have been digging in EOGeneralAdaptorException but I couldn't figure out how to get the instance of the EO that has failed. Rgds, Amiel -- socket error: unable to connect to 127.0.0.1 __

[Success]: from JFreeChart (BufferedImage_) to NSData_

2010-01-11 Thread Baiss Eric Magnusson
Thanks to all. I'm nearly to the point of completing the transition from WO 5.3, XCode, deprecated Java, etc. to WO 5.4.3, WOLips, (and improvements) etc. for "pubescent TYF" ( demo now active): The Guest button will yield more than it currently does in t

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: WO 5.4.3 vs WO 5.3.3

2010-01-11 Thread Chuck Hill
FWIW, I have been using 5.4.3 since it came out. I don't have any reason to use 5.3. Chuck On Jan 11, 2010, at 10:04 AM, Kieran Kelleher wrote: Some of my actively supported projects are still WO 5.3.3. I have been "on the fence" about switching some of those to WO 5.4.3 since

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: WO 5.4.3 vs WO 5.3.3

2010-01-11 Thread Gaastra Dennis - WO Lists
We have been using WO 5.4.X since 2007 without any problems. Pierre has done some great cleanups and performance enhancements in the code since 5.3.x. We deploy all our apps with Java 1.5/64 bit, and are eagerly waiting for the newest WO 5.5+ versions from Apple to officially support Java 1.6.

Re: Oracle and Sorting Null Values - everyone thinks different - everyone is correct

2010-01-11 Thread arosenzweig
Thanks Dave, A property is cool so long as it has a default behavior that remains the status quo. Still, this is a tough nut to crack in the general case with a simple flag because you have to account for both: a) in-memory sorting - plus localization sorting issues b) db sorting I kind of t

Re: WO 5.4.3 vs WO 5.3.3

2010-01-11 Thread Kieran Kelleher
So what are you using yourself Mike for new projects? -Kieran On Jan 11, 2010, at 2:51 PM, Mike Schrag wrote: The only reason I would move up is to get rid of 5.3 support in Wonder, which will never happen unless Anjo also moves up, and neither of us is particularly compelled to do so ("ain

Re: Oracle and Sorting Null Values - everyone thinks different - everyone is correct

2010-01-11 Thread Ray Kiddy
On Jan 11, 2010, at 9:23 AM, David Avendasora wrote: Hi Aaron! On Jan 11, 2010, at 10:29 AM, arosenzw...@clinworx.com wrote: In summary, it doesn't matter if you "fix" the DB or you fix the in- memory sorting as we have done. What matters is that you realize there can be differences and yo

Re: WO 5.4.3 vs WO 5.3.3

2010-01-11 Thread Mike Schrag
The only reason I would move up is to get rid of 5.3 support in Wonder, which will never happen unless Anjo also moves up, and neither of us is particularly compelled to do so ("ain't broke" and all). ms On Jan 11, 2010, at 2:44 PM, Simon wrote: > excellent question kieran - we are in the exac

Re: WO 5.4.3 vs WO 5.3.3

2010-01-11 Thread Pascal Robert
Le 10-01-11 à 14:44, Simon a écrit : excellent question kieran - we are in the exact same position. each time we look at it we just can't find a compelling enough reason to upgrade, other than the fear of being left behind. Hum, we are already left behind :-) Simon 2010/1/11 Kieran Kell

Re: WO 5.4.3 vs WO 5.3.3

2010-01-11 Thread Simon
excellent question kieran - we are in the exact same position. each time we look at it we just can't find a compelling enough reason to upgrade, other than the fear of being left behind. Simon 2010/1/11 Kieran Kelleher > Some of my actively supported projects are still WO 5.3.3. > > I have been

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: WO 5.4.3 vs WO 5.3.3

2010-01-11 Thread Pascal Robert
Le 10-01-11 à 13:04, Kieran Kelleher a écrit : Some of my actively supported projects are still WO 5.3.3. I have been "on the fence" about switching some of those to WO 5.4.3 since - Wonder defaults to WO 5.3.3 - Anjo does not care about 5.4.3 ;-) Yet, 77% of pascal's surve

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

WO 5.4.3 vs WO 5.3.3

2010-01-11 Thread Kieran Kelleher
Some of my actively supported projects are still WO 5.3.3. I have been "on the fence" about switching some of those to WO 5.4.3 since - Wonder defaults to WO 5.3.3 - Anjo does not care about 5.4.3 ;-) Yet, 77% of pascal's survey orgs use 5.4.X, so for someone who uses Wonder

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: Oracle and Sorting Null Values - everyone thinks different - everyone is correct

2010-01-11 Thread David Avendasora
Hi Aaron! On Jan 11, 2010, at 10:29 AM, arosenzw...@clinworx.com wrote: > In summary, it doesn't matter if you "fix" the DB or you fix the in-memory > sorting as we have done. What matters is that you realize there can be > differences and you have full control over how you want sorting to work

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

Oracle and Sorting Null Values - everyone thinks different - everyone is correct

2010-01-11 Thread arosenzweig
Hi Dave, You asked if null should be universally "less than" non-null. No, everyone thinks differently. For us it is the opposite. We use Oracle and like the way it sorts. We want "null" to be greater than "non-null". That is because for our domain we want to see values that have something "in

[MEET] Toronto Cocoaheads / tacow - January 26

2010-01-11 Thread Karl Moskowski
The next meeting of tacow/Toronto CocoaHeads will be held on Tuesday, January 26 at 6:30 PM at Ryerson University. Note that this meeting is two weeks later than our regular date. Also, we'll be meeting in the Ryerson comp. sci. department's new location at Yonge & Dundas. Up-to-date agenda & d

Re: Wrong classpath generated (JavaWOExtensions.jar)

2010-01-11 Thread Gennady Kushnir
I am amazed... md5 on jar files are different. But file sizes and both plists (Info and version) are identical (except for that row I changed)... Both files are named in lowercase but the one on my development system is created 2/19/2008 and the one on deployment - 9/24/2007... which one is native

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: Wrong classpath generated (JavaWOExtensions.jar)

2010-01-11 Thread Mike Schrag
I really doubt you renamed the jar files (unless you specifically remember doing this, which then I would ask 'why?') ... Chuck's theory is WAY more plausible, that you are mixing your environment. I would md5 a known jar and compare, or just take the one you know to be right and put it everywhe

Re: Wrong classpath generated (JavaWOExtensions.jar)

2010-01-11 Thread Gennady Kushnir
I assume I substituted framework both on development and deployment environments. And renamed jar to lowercase afterwards. How could I identify them now? 2010/1/10 Mike Schrag : > i still think chuck is right ... you're mixing and matching frameworks ... > you should never have to do this. > > On

Re: Javaconverter where to find it?

2010-01-11 Thread Anjo Krank
IIRC, it's a part of WO 5.0/1. You need to get a disk of those, a mac from those times (TiBook?) and the corresponding OS. Also, it has several built-in sets of transformations, which you won't have on Andriod (like all the UI controls) and on top of that, you need to hand edit the source a