Re: WO command line application

2007-11-27 Thread Art Isbell
On Nov 27, 2007, at 9:51 PM, Helmut Schottmüller wrote: I want to build a WO command line application to use EOF to fill up some databases. This application should be called by a cron job. I think I have to use EOClientApplicationSupport... Does anyone know where I could find code examples on

WO command line application

2007-11-27 Thread Helmut Schottmüller
Hi, I want to build a WO command line application to use EOF to fill up some databases. This application should be called by a cron job. I think I have to use EOClientApplicationSupport... Does anyone know where I could find code examples on how to build a command line application with WO?

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Mike Schrag
Let's just say that Mike and I had some fun some months ago when we (cough) were ironing out, err improving, Entity Modeler via team work ;-) I actually think there are still some open issues with validation and vertical inheritance in EM from all of that. I don't recall if that rule you m

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Lachlan Deck
On 28/11/2007, at 5:02 PM, Owen McKerrow wrote: On 28/11/2007, at 4:18 PM, Mike Schrag wrote: Now... about those partial entities. What funky stuff could be done with 'em? ;-) You know, when I was writing this stuff earlier today, I actually thought at one point "I'm going to wake up tomorr

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Owen McKerrow
On 28/11/2007, at 4:18 PM, Mike Schrag wrote: Now... about those partial entities. What funky stuff could be done with 'em? ;-) You know, when I was writing this stuff earlier today, I actually thought at one point "I'm going to wake up tomorrow and Lachlan's going to use partial entities

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Lachlan Deck
On 28/11/2007, at 4:18 PM, Mike Schrag wrote: Now... about those partial entities. What funky stuff could be done with 'em? ;-) You know, when I was writing this stuff earlier today, I actually thought at one point "I'm going to wake up tomorrow and Lachlan's going to use partial entities w

Re: JUnit for testing EOs

2007-11-27 Thread Paul Hoadley
On 28/11/2007, at 1:33 PM, Chuck Hill wrote: I don't think you should _need_ to do this as long as the bundles are correctly formed and on the classpath as they would be at app runtime. Presumably I'm failing at either or both of these. :-) I don't have this in my tests and I am using EOF

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Mike Schrag
Now... about those partial entities. What funky stuff could be done with 'em? ;-) You know, when I was writing this stuff earlier today, I actually thought at one point "I'm going to wake up tomorrow and Lachlan's going to use partial entities with vertical inheritance and I'm going to get

Re: Wonder AjaxInPlace within a WORepetition?

2007-11-27 Thread Mike Schrag
Is it possible to use AjaxInPlace within a WORepetition? Yes. 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://list

Re: Deadlock [Fixed - we think!]

2007-11-27 Thread Mike Schrag
However, you need to manually lock/unlock your ecs used in Long responses... and it's probably not a good idea using the session's ec in your long response. You can extend ERXWOLongResponsePage to get similar autolocking behavior that you would in a normal RR-loop, btw. And actually even i

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Chuck Hill
On Nov 27, 2007, at 8:46 PM, Lachlan Deck wrote: On 28/11/2007, at 1:35 PM, Chuck Hill wrote: On Nov 27, 2007, at 6:13 PM, Owen McKerrow wrote: On 28/11/2007, at 12:04 PM, Lachlan Deck wrote: On 28/11/2007, at 11:35 AM, Owen McKerrow wrote: Hmm nope we don't have any that are cache'd in mem

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Lachlan Deck
On 28/11/2007, at 1:35 PM, Chuck Hill wrote: On Nov 27, 2007, at 6:13 PM, Owen McKerrow wrote: On 28/11/2007, at 12:04 PM, Lachlan Deck wrote: On 28/11/2007, at 11:35 AM, Owen McKerrow wrote: Hmm nope we don't have any that are cache'd in memory. We do however have cross model relationshi

Re: WoResourceManager.stringForKey, slow app and out of memory errors

2007-11-27 Thread Anjo Krank
Am 27.11.2007 um 20:45 schrieb Chuck Hill: IIRC, there is a problem with UTF-8 in that it does not always detect UTF-8 properly and sometimes uses a western latin encoding for UTF-8 files. That is why people started to use UTF-16. Anjo should recall more. It sucked, so I converted the

Wonder AjaxInPlace within a WORepetition?

2007-11-27 Thread Les Vogel
Is it possible to use AjaxInPlace within a WORepetition? -- Les Vogel 808 870-0418 ___ 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 Subscrip

Re: JUnit for testing EOs

2007-11-27 Thread Chuck Hill
I don't think you should _need_ to do this as long as the bundles are correctly formed and on the classpath as they would be at app runtime. I don't have this in my tests and I am using EOF. What I do have is the usual prototype switching and connection dictionary changing code. You may

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Chuck Hill
On Nov 27, 2007, at 6:13 PM, Owen McKerrow wrote: On 28/11/2007, at 12:04 PM, Lachlan Deck wrote: Hi there, On 28/11/2007, at 11:35 AM, Owen McKerrow wrote: Hmm nope we don't have any that are cache'd in memory. We do however have cross model relationships that involved entities that u

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Owen McKerrow
On 28/11/2007, at 12:04 PM, Lachlan Deck wrote: Hi there, On 28/11/2007, at 11:35 AM, Owen McKerrow wrote: Hmm nope we don't have any that are cache'd in memory. We do however have cross model relationships that involved entities that use inheritance ( thanks for the tip Lachlan ). Yay!

Re: JUnit for testing EOs

2007-11-27 Thread Paul Hoadley
On 28/11/2007, at 11:49 AM, Sam Barnum wrote: I usually need to manually create the EOModel for test cases. Programatically load the model into the default ModelGroup, like so: Thanks Sam. That was the missing step for me. My trivial test class now works. -- Paul. w http://logicsquad.

Re: JUnit for testing EOs

2007-11-27 Thread Sam Barnum
I usually need to manually create the EOModel for test cases. Programatically load the model into the default ModelGroup, like so: static { try { EOModel model = new EOModel(new File("Web/Resources/ MyProject.eomodeld").toURI().toURL()); EOModelGroup.defaultGroup().ad

Re: Deadlock [Fixed - we think!]

2007-11-27 Thread Lachlan Deck
On 28/11/2007, at 7:24 AM, Simon McLean wrote: Are you using the MultiECLockManager ? If so are you using it with ERXEC ? And if so are you using it in conjunction with Wonder's auto-lock management, or do you have that switched off ? Before we started using Wonder we used MultiECLockManage

Re: Deadlock [Fixed - we think!]

2007-11-27 Thread Mr. Pierre Frisch
Do you have a thread dump? I am very interested in looking at it. Pierre -- Pierre Frisch [EMAIL PROTECTED] On Nov 27, 2007, at 10:42, Simon McLean wrote: Disappointingly the app did in fact lock up once more this afternoon. However the logs are plastered with the session termination screa

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Lachlan Deck
Hi there, On 28/11/2007, at 11:35 AM, Owen McKerrow wrote: Hmm nope we don't have any that are cache'd in memory. We do however have cross model relationships that involved entities that use inheritance ( thanks for the tip Lachlan ). Yay! So I have merged the models back into 1 ( was onl

WO54 Wonder Ajax - WOHyperlink possibly not getting replaced by ERXHyperlink

2007-11-27 Thread Les Vogel
So, I'm copying many of the example programs and converting to WO54 style bindings while I go. I got the message: com.webobjects.appserver.parser.woml.WOMLTemplateParserException: Test: 21:4: Could not generate an element named: WOHyperlink Could not generate an element named: WOHyperlink When I

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Owen McKerrow
Hmm nope we don't have any that are cache'd in memory. We do however have cross model relationships that involved entities that use inheritance ( thanks for the tip Lachlan ). So I have merged the models back into 1 ( was only for conceptual reasons they were two) and am going to do a patch

Re: Webservices and arrays deserializer and WO 5.4

2007-11-27 Thread Lachlan Deck
On 28/11/2007, at 2:22 AM, Fabrice Pipart wrote: I have a WebObjects application talking to some Objective C code via WebServices. I used to pass some arguments to the WO registered webservices as int[] like this : 1 2 3 4 5 It called a method like t

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Simon McLean
Hi Xavier - I think you might have solved our problem. We have recently introduced JGroupSynchronizer and the entities that are affected by the "Object with globalID could not be found" problem are indeed flagged as "cache in memory". Many thanks for the tip. Simon On 27 Nov 2007, at 14

Re: Unit testing logic / EOF

2007-11-27 Thread Chuck Hill
On Nov 27, 2007, at 1:59 PM, Jean-François Veillette wrote: Warning: I may have a somewhat heretical approach to testing. But it works well for me. I don't use WOUnitTest nor MockEditingContext. I use a real EOEditingContext and often fetch from and save to the database. This makes th

Re: WoResourceManager.stringForKey, slow app and out of memory errors

2007-11-27 Thread Miguel Arroz
Hi! True, I use UTF-16 (with no WO-related problems at all) because of that. I would love to go back to UTF-8, as Subversion is not the best friend of UTF-16... Yours Miguel Arroz On 2007/11/27, at 19:45, Chuck Hill wrote: IIRC, there is a problem with UTF-8 in that it does not alway

Re: Deadlock [Fixed - we think!]

2007-11-27 Thread Chuck Hill
On Nov 27, 2007, at 12:24 PM, Simon McLean wrote: Hi Chuck - Are you using the MultiECLockManager ? A version of it. If so are you using it with ERXEC ? No. I don't think you would want to use both. And if so are you using it in conjunction with Wonder's auto-lock management, or do

Re: Deadlock [Fixed - we think!]

2007-11-27 Thread Simon McLean
Hi Chuck - Are you using the MultiECLockManager ? If so are you using it with ERXEC ? And if so are you using it in conjunction with Wonder's auto- lock management, or do you have that switched off ? Before we started using Wonder we used MultiECLockManager, then we kind of used both, but

Re: WebObjects 5.4 examples

2007-11-27 Thread Daryl Lee
Did you run the installDatabases.sh script? As mentioned earlier, you'll need to set the derby.system.home property to the path to where the databases are installed (typically in ~/Library/Databases/[derby version]). On Nov 24, 2007, at 9:30 AM, David Holt wrote: Hello all, Has anyone

Re: WoResourceManager.stringForKey, slow app and out of memory errors

2007-11-27 Thread Chuck Hill
IIRC, there is a problem with UTF-8 in that it does not always detect UTF-8 properly and sometimes uses a western latin encoding for UTF-8 files. That is why people started to use UTF-16. Anjo should recall more. Chuck On Nov 27, 2007, at 11:42 AM, Daryl Lee wrote: Looks like this has

Re: WoResourceManager.stringForKey, slow app and out of memory errors

2007-11-27 Thread Daryl Lee
Looks like this has been a bug in WO for quite a while and not a regression in WO 5.4. Our Unicode/UTF-16 detection for .strings files is faulty. Until we fix this, UTF-8 is working great. Thanks for filing a bug Fabrice. On Nov 22, 2007, at 1:18 AM, Fabrice Pipart wrote: Hi dear list !

Re: WebObjects 5.4 examples

2007-11-27 Thread Chuck Hill
try http://lists.apple.com/archives/webobjects-dev/2007/Nov/ msg00521.html On Nov 24, 2007, at 9:30 AM, David Holt wrote: Hello all, Has anyone succeeded in getting the examples to work with the Derby databases included in /Developer/Examples/JavaWebObjects/Databases? This is on MacOSX 10

Re: Deadlock [Fixed - we think!]

2007-11-27 Thread Chuck Hill
On Nov 27, 2007, at 10:42 AM, Simon McLean wrote: Many thanks to everyone for their help with my recent deadlock issue. I think we may well have nailed it as we've managed 18 hours now without a blip. What was the problem? We use long response pages for connecting to supplier systems via

Re: Deadlock [Fixed - we think!]

2007-11-27 Thread Simon McLean
Many thanks to everyone for their help with my recent deadlock issue. I think we may well have nailed it as we've managed 18 hours now without a blip. What was the problem? We use long response pages for connecting to supplier systems via xml posted over http. We have pojo's that represen

Re: Deadlock [Fixed - we think!]

2007-11-27 Thread Chuck Hill
On Nov 27, 2007, at 4:34 AM, Simon McLean wrote: Hi All - Many thanks to everyone for their help with my recent deadlock issue. I think we may well have nailed it as we've managed 18 hours now without a blip. What was the problem? Particular thanks goes to the authors of the Screamin

Webservices and arrays deserializer and WO 5.4

2007-11-27 Thread Fabrice Pipart
Hi ! I have a WebObjects application talking to some Objective C code via WebServices. I used to pass some arguments to the WO registered webservices as int[] like this : 1 2 3 4 5 It called a method like this one : public static void mymethod(int[]

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Xavier Destombes
Hello Owen, I don't know if it helps, but we got the same behavior from time to time when we tried to both have "JGroupSynchronizer" and "cache in memory" checked in the eomodel. Do you have the same setup? Xavier Hi Anjo, On 27/11/2007, at 6:01 PM, Anjo Krank wrote: Am 27.11.2007 u

Deadlock [Fixed - we think!]

2007-11-27 Thread Simon McLean
Hi All - Many thanks to everyone for their help with my recent deadlock issue. I think we may well have nailed it as we've managed 18 hours now without a blip. Particular thanks goes to the authors of the ScreamingEditingContext whose logging has been our saviour. We do however have one i

Re: JUnit for testing EOs

2007-11-27 Thread Paul Hoadley
Hi Chuck, On 27/11/2007, at 5:04 PM, Chuck Hill wrote: Add it to User Entries. It also needs to go above the other entries in the class path. If the model (or any other resource) is in a framework, you also need to add the Resources/Java dir for that to User Entries above the default stu

Re: Object with globalID could not be found in the database, when it is there ??

2007-11-27 Thread Owen McKerrow
Hi Anjo, On 27/11/2007, at 6:01 PM, Anjo Krank wrote: Am 27.11.2007 um 00:39 schrieb Owen McKerrow: The object with globalID _EOIntegralKeyGlobalID[Person (java.lang.Long)8917] could not be found in the database. This could be result of a referential integrity problem with the database.