EOQualifier bad pattern for qualifier

2008-04-02 Thread Lachlan Deck
Hi there, If I have: searchString = '*' + input + '*'; new EOKeyValueQualifier( anAttribute, EOQualifier.QualifierOperatorCaseInsensitiveLike, searchString ); And someone puts in some strange characters (e.g., "find[me"), I get the following exception. java.lang.IllegalArgumentException:

Re: Accessing Session

2008-04-02 Thread Guido Neitzer
On 02.04.2008, at 21:25, Eleni Manou wrote: I am just copying some lines from my project in WO 5.3. There in Session.java I define public String userName; and then in a component I set this variable using ((Session)session()).userName = . This is not working in WOLips project, wher I g

Re: WO 5.4 Linux Deployment

2008-04-02 Thread Joe Little
wonder sources. Works great for Apache 2 and 2.2 On Tue, Apr 1, 2008 at 11:58 PM, Aleksey Novicov <[EMAIL PROTECTED]> wrote: > Which source do you recommend using? The source that is distributed with > Xcode and is in /Developer/Examples/WebObjects/Source/Adaptors? Or the > source in Project Wonde

Re: Accessing Session

2008-04-02 Thread David LeBer
Please keep questions on the list. On 2-Apr-08, at 11:19 PM, Eleni Manou wrote: Hi David I am just copying some lines from my project in WO 5.3. There in Session.java I define public String userName; and then in a component I set this variable using ((Session)session()).userName = .

Re: [OT] Limiting File Upload Sizes

2008-04-02 Thread james o
i've successfully implemented the SWFUpload with WO. unfortunately i didn't know how to play nice with all the javascript SWFUpload and WO stuff so i placed the PHP upload feature (which is quite nice with smooth ajax interface) in an inline frame and send the results to a DA for processing

Re: The sky is falling! The world is ending! WebObjects is Dead!

2008-04-02 Thread Pascal Robert
They can't do WO sessions, almost all the great speakers of the community are speaking at WOWODC :-) WWDC sessions are out and there are no WO sessions!It is the end! WebObjects is dead! Dead, dead I say! http://developer.apple.com/wwdc/sessions/ Was I first this year? Was I? Someone

Re: The sky is falling! The world is ending! WebObjects is Dead!

2008-04-02 Thread Alan Ward
I can't wait for the annual noob fest where they all jump in with... "I'm not gonna spend my time learning this if Apple is EOL'ing it". I look forward to that *every* year :-) Alan On Apr 2, 2008, at 5:03 PM, David Holt wrote: Darn, you beat me to it! David :-) On 2-Apr-08, at 3:57 PM,

Re: The sky is falling! The world is ending! WebObjects is Dead!

2008-04-02 Thread Owen McKerrow
On 03/04/2008, at 10:03 AM, David Holt wrote: Darn, you beat me to it! David :-) +1 ___ 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 S

Re: The sky is falling! The world is ending! WebObjects is Dead!

2008-04-02 Thread David Holt
Darn, you beat me to it! David :-) On 2-Apr-08, at 3:57 PM, Chuck Hill wrote: WWDC sessions are out and there are no WO sessions!It is the end! WebObjects is dead! Dead, dead I say! http://developer.apple.com/wwdc/sessions/ Was I first this year? Was I? Someone was going to start th

The sky is falling! The world is ending! WebObjects is Dead!

2008-04-02 Thread Chuck Hill
WWDC sessions are out and there are no WO sessions!It is the end! WebObjects is dead! Dead, dead I say! http://developer.apple.com/wwdc/sessions/ Was I first this year? Was I? Someone was going to start the panic. It was my turn. For anyone new to WO: the WO sessions get announced

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread Chuck Hill
On Apr 2, 2008, at 3:27 PM, Lachlan Deck wrote: On 03/04/2008, at 9:11 AM, Chuck Hill wrote: On Apr 2, 2008, at 2:57 PM, Lachlan Deck wrote: On 03/04/2008, at 4:55 AM, Chuck Hill wrote: On Apr 2, 2008, at 10:38 AM, David Avendasora wrote: If the SELECT ... FOR LOCK can't find any rows th

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread Lachlan Deck
On 03/04/2008, at 9:11 AM, Chuck Hill wrote: On Apr 2, 2008, at 2:57 PM, Lachlan Deck wrote: On 03/04/2008, at 4:55 AM, Chuck Hill wrote: On Apr 2, 2008, at 10:38 AM, David Avendasora wrote: If the SELECT ... FOR LOCK can't find any rows that have fields with values that match exactly wit

Re: Why no 1to1 relationships?

2008-04-02 Thread Jeff Schmitz
On Apr 2, 2008, at 4:19 PM, Chuck Hill wrote: On Apr 2, 2008, at 1:09 PM, netBrackets wrote: Thanks for the great comments. And 1:1, owned/mandatory data etc. is what I want. I perhaps have an unusual case in that for a small minority of days I experience bursts very heavy activity, wi

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread Chuck Hill
On Apr 2, 2008, at 2:57 PM, Lachlan Deck wrote: On 03/04/2008, at 4:55 AM, Chuck Hill wrote: On Apr 2, 2008, at 10:38 AM, David Avendasora wrote: If the SELECT ... FOR LOCK can't find any rows that have fields with values that match exactly with what the DB has, then it wouldn't get any

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread Lachlan Deck
On 03/04/2008, at 4:55 AM, Chuck Hill wrote: On Apr 2, 2008, at 10:38 AM, David Avendasora wrote: If the SELECT ... FOR LOCK can't find any rows that have fields with values that match exactly with what the DB has, then it wouldn't get any rows either. No? Yes, but... SELECT ... FOR LOCK

Re: stateless component

2008-04-02 Thread Chuck Hill
On Apr 2, 2008, at 2:37 PM, Archibald Singleton wrote: Hello, From the WO API docs: "For extra efficiency, you can create stateless components: components that can be shared between sessions. Stateless components aren't replicated each time they're needed; rather, a single shared instanc

stateless component

2008-04-02 Thread Archibald Singleton
Hello, From the WO API docs: "For extra efficiency, you can create stateless components: components that can be shared between sessions. Stateless components aren't replicated each time they're needed; rather, a single shared instance is referenced each time the component is used." But lo

Re: WO 5.4 Linux Deployment

2008-04-02 Thread Lachlan Deck
Hi there, On 02/04/2008, at 5:37 PM, Aleksey Novicov wrote: I tried this and found that the latest Eclipse/WOLips tools are very complete in packaging up woapps for servlet deployment. However, there were a couple of caveats worth mentioning: 1. Starting with a WOnder Application template t

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread Chuck Hill
On Apr 2, 2008, at 2:18 PM, Art Isbell wrote: On Apr 2, 2008, at 7:38 AM, David Avendasora wrote: Couldn't this be the same problem though? If the SELECT ... FOR LOCK can't find any rows that have fields with values that match exactly with what the DB has, then it wouldn't get any rows ei

Re: WO 5.4 Linux Deployment

2008-04-02 Thread Mike Schrag
This does not cause any problems ... It's an obnoxious error that isn't really an error. It's been a couple months since I tracked down what exactly was going on, but I _believe_ it's trying to lookup the jdbc datasource in your tomcat server config, and if it's not there, it displays this

Re: Why no 1to1 relationships?

2008-04-02 Thread Chuck Hill
On Apr 2, 2008, at 1:09 PM, netBrackets wrote: Thanks for the great comments. And 1:1, owned/mandatory data etc. is what I want. I perhaps have an unusual case in that for a small minority of days I experience bursts very heavy activity, with changes occurring on only a small subset of

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread Art Isbell
On Apr 2, 2008, at 7:38 AM, David Avendasora wrote: Couldn't this be the same problem though? If the SELECT ... FOR LOCK can't find any rows that have fields with values that match exactly with what the DB has, then it wouldn't get any rows either. No? Maybe, but I think Chuck's point is

Re: Adaptor problems in Eclipse. No Instance Available

2008-04-02 Thread Chuck Hill
Have their been any network changes? Have you made the WOHost changes here: http://wiki.objectstyle.org/confluence/display/WO/Development+Tools-Running+Through+Apache On Apr 2, 2008, at 12:56 PM, Helmut Schottmüller wrote: Hi Group, since a few hours my WO httpd adaptor seems to be broke

Re: WO 5.4 Linux Deployment

2008-04-02 Thread Jeff Smith
FWIW, I'm getting the "java name not found in context" as well and I haven't figure out a way around getting the messages either including specifying my data source in the web.xml. Doesn't seem to hurt anything but it does clog up the log file. On Apr 2, 2008, at 10:34 AM, Aleksey Novicov

Re: Adaptor problems in Eclipse. No Instance Available

2008-04-02 Thread Art Isbell
On Apr 2, 2008, at 9:56 AM, Helmut Schottmüller wrote: since a few hours my WO httpd adaptor seems to be broken. I'm getting getting constant "No Instance Available" messages when I am trying to run my projects with webserver connect from Eclipse. If a "No instance available" response occu

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread David Avendasora
Couldn't this be the same problem though? If the SELECT ... FOR LOCK can't find any rows that have fields with values that match exactly with what the DB has, then it wouldn't get any rows either. No? Maybe log the SQL and then compare what WO is looking for with what is actually in the DB?

Re: Why no 1to1 relationships?

2008-04-02 Thread Art Isbell
On Apr 2, 2008, at 9:52 AM, Sacha Michel Mallais wrote: It is definitely possible to have an optional to-one, just not one where the FK is also the PK. But if the FK isn't the PK, then the FK isn't guaranteed to be unique. But it must be unique because it joins with the PK of another o

Re: Locking Session.defaultEditingContext() Question

2008-04-02 Thread Art Isbell
On Apr 2, 2008, at 9:10 AM, Chuck Hill wrote: What the LockScreamingEditingContext won't tell you is when you are using the EC but it is NOT locked. Unless you are doing the locking using ERXEC and friends or the MultiECLockManager (whatever its real name is), there is a very good chance

Re: Why no 1to1 relationships?

2008-04-02 Thread netBrackets
Thanks for the great comments. And 1:1, owned/mandatory data etc. is what I want. I perhaps have an unusual case in that for a small minority of days I experience bursts very heavy activity, with changes occurring on only a small subset of my data during this period and furthermore, changes t

Adaptor problems in Eclipse. No Instance Available

2008-04-02 Thread Helmut Schottmüller
Hi Group, since a few hours my WO httpd adaptor seems to be broken. I'm getting getting constant "No Instance Available" messages when I am trying to run my projects with webserver connect from Eclipse. I already checked the adaptor log file (enabled it with Debug in the .conf file) but not

Re: Why no 1to1 relationships?

2008-04-02 Thread Sacha Michel Mallais
On Apr 2, 2008, at 12:02 PM, Art Isbell wrote: I think that this agrees with relational database theory; i.e., all one-to-one relationships must be 1:1, not 1:0. A 1:0 relationship is just a special case of a 1:many relationship. It is definitely possible to have an optional to-one, just

Re: Locking Session.defaultEditingContext() Question

2008-04-02 Thread Chuck Hill
On Apr 2, 2008, at 12:04 PM, Dov Rosenberg wrote: Anywhere we created a new EOEditingContext - we replaced it with the LockScreamingEditingContext so we can track lock and unlocks properly. All of our locks and unlocks are in TRY/FINALLY methods. Not a perfect solution but it certainly hel

Re: Locking Session.defaultEditingContext() Question

2008-04-02 Thread Dov Rosenberg
Anywhere we created a new EOEditingContext - we replaced it with the LockScreamingEditingContext so we can track lock and unlocks properly. All of our locks and unlocks are in TRY/FINALLY methods. Not a perfect solution but it certainly helped clean up our stability issues. I removed the lock we w

Re: Why no 1to1 relationships?

2008-04-02 Thread Art Isbell
On Apr 2, 2008, at 8:45 AM, Robert Walker wrote: Yes, it is possible to create one-to-one relationships, joined on the primary keys. One side of the relationship will need "Propagates primary key," as has been mentioned. I just wanted to add one caveat to this configuration: The relations

Re: Why no 1to1 relationships?

2008-04-02 Thread Robert Walker
Yes, it is possible to create one-to-one relationships, joined on the primary keys. One side of the relationship will need "Propagates primary key," as has been mentioned. I just wanted to add one caveat to this configuration: The relationship will always be 1-to-1 and will never be 1-to-0.

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread David Avendasora
Yes, but... SELECT ... FOR LOCK is _pessimistic_ locking and EOF should be using optimistic locking. If EOF is issuing pessimistic locking SQL, then something has gone wrong. Ah. I see. Who cares why it isn't returning rows. It shouldn't be doing this in the first place. Maybe log t

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread Chuck Hill
On Apr 2, 2008, at 10:38 AM, David Avendasora wrote: Couldn't this be the same problem though? No. :-) If the SELECT ... FOR LOCK can't find any rows that have fields with values that match exactly with what the DB has, then it wouldn't get any rows either. No? Yes, but... SELECT ..

Re: Why no 1to1 relationships?

2008-04-02 Thread Jacky Gagnon
Hi Jeff, I've decided to fully EOize my app to replace my current use of flat files, mainly to better deal with concurrency issues. In creating my analogous tables, I found that there's no way to specify a "1 to 1" relationship between tables using the Entity Modeler tool. Is there a sp

Re: Locking Session.defaultEditingContext() Question

2008-04-02 Thread Chuck Hill
On Apr 1, 2008, at 8:17 AM, Dov Rosenberg wrote: I have been tracking down a strange error in our app. java.lang.IllegalStateException: There is no database snapshot available for the object In a lot of places we use a new EditingContext instead of the default Editing Context for the sess

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread Chuck Hill
On Apr 2, 2008, at 4:30 AM, David Avendasora wrote: The fact that Chuck didn't come up with this makes me doubt my memory, but... It seems that when I've run into this in my applications, it usually means that between the time the EO was read out of the database, and the time it is writt

Re: WO 5.4 Linux Deployment

2008-04-02 Thread Aleksey Novicov
Yes, I will post what I've learned on the WO wiki as soon as I think I have everything worked out. Aleksey On Apr 2, 2008, at 2:05 AM, Andrew Lindesay wrote: Hello Aleksey; It would be really great if you could write-up your experiences an tips in the WO wiki for others to read about.

Re: [OT] Postgresql capital accentuated characters problem

2008-04-02 Thread Miguel Arroz
Hi! I see... I specially like this quote: "The drawback of using locales other than C or POSIX in PostgreSQL is its performance impact. It slows character handling and prevents ordinary indexes from being used by LIKE. For this reason use locales only if you actually need them." In

Re: WO 5.4 Linux Deployment

2008-04-02 Thread Oliver Scheel
> See: the "Data Source for Model Database Configuration" section of > http://wiki.objectstyle.org/confluence/display/WO/Web+Applications-Deployment- > Tomcat+Deployment#WebApplications-Deployment-TomcatDeployment-DataSourceforMod > elDatabaseConfiguration btw: I have deployed a Wonder App as a S

Re: WO 5.4 Linux Deployment

2008-04-02 Thread David Avendasora
Hey Aleksey, You are right Tomcat has it's own DB connection stuff, which can be a pain in the a** at times. I ran into this and it actually was a show- stopper when I had two (or more) EOModels. See: the "Data Source for Model Database Configuration" section of http://wiki.objectstyle.org/c

Re: [OT] Postgresql capital accentuated characters problem

2008-04-02 Thread Ralf Schuchardt
Hi Miguel, I think you must initialize your database cluster with the correct locale, to get this working (see http://www.postgresql.org/docs/8.3/ interactive/locale.html). Ralf Schuchardt Am 02.04.2008 um 03:34 schrieb Miguel Arroz: I created an UNIQUE INDEX using the lower() function t

Re: an interesting lockRowComparingAttributes:

2008-04-02 Thread David Avendasora
The fact that Chuck didn't come up with this makes me doubt my memory, but... It seems that when I've run into this in my applications, it usually means that between the time the EO was read out of the database, and the time it is written back in, something in one of the locking fields ch

Re: Locking Session.defaultEditingContext() Question

2008-04-02 Thread Juergen Lorenz Simon
Hi, I'm not entirely sure the problem is related to locking the editing context. This exception can be produced by objects, which are disconnected from their editing context but keep hovering about. Could it be your application holds onto an object, which has been deleted (in the EO sense)

Re: WO 5.4 Linux Deployment

2008-04-02 Thread Andrew Lindesay
Hello Aleksey; It would be really great if you could write-up your experiences an tips in the WO wiki for others to read about. http://wiki.objectstyle.org/confluence/display/WO/Home 4. For the static resources to be served correctly via port 80 of the Apache web server (as opposed

D2WS: Can't obtain rules because of protected access!

2008-04-02 Thread Juergen Lorenz Simon
Hi, I posted this message to the WOLips list at first. But since this seems to be more of a WebObjects isue, I'll cross post it here. I'm trying to develop a D2WS application on Eclipse with WOLips. Starting the web service assistant and connecting to the application fails. The error mess

Re: Multiple EOModels

2008-04-02 Thread David Griffith
Thanks for that, obviously frameworks are the way to go, I haven't really needed to make my own up to now but clearly I should have :-) Back to the bookshelf then :-) Regards, David. On 27 Mar 2008, at 18:52, Chuck Hill wrote: On Mar 27, 2008, at 1:57 AM, David Griffith wrote: Hi all,