using value conversion/factory to encode objects in blobs

2017-02-25 Thread o...@ocs.cz
Hi there, this must be WebObjects 101 and I must be blind as a bat, but ... how on earth does one use the value conversion/factory model support to represent e.g., an attribute containing an NSDictionary (or another custom data object) by a BLOB containing archived data? Far as I understand

Re: using value conversion/factory to encode objects in blobs

2017-02-25 Thread o...@ocs.cz
the best, OC > On 25. 2. 2017, at 6:32 PM, George Domurot <g...@knuckleheads.net> wrote: > > Use the Prototype of blodDictionary or mutableDictionary to do the heavy > lifting for you. > > -G > > >> On Feb 25, 2017, at 8:19 AM, o...@ocs.cz wrote: >> >&

Re: using value conversion/factory to encode objects in blobs

2017-02-25 Thread o...@ocs.cz
D'oh. Thanks a lot! OC > On 25. 2. 2017, at 7:01 PM, Fabian Peters <lists.fab...@e-lumo.com> wrote: > > Try "blobDictionary"… ;-) > >> Am 25.02.2017 um 17:56 schrieb o...@ocs.cz: >> >> Thanks! But... sorry for me being stupid, but where do I find

delete deny rule ignored?

2016-10-07 Thread o...@ocs.cz
Hello there, is that normal that for a :N relationship *which is not a class property* EOF ignores EODeleteRuleDeny and deletes the object, happily leaving dangling foreign keys in the other table? (Making the relationship a class property helps. Nevertheless, since the only purpose of the

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-21 Thread o...@ocs.cz
ataBlock/all other EO classes based on model contents. In my personal opinion, this approach (conceptually copied down from Core Data) is much cleaner and considerably less error-prone than generated sources. Should not be relevant to this problem, I think. > > From: OC <o

EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread o...@ocs.cz
Hello there, I have a pretty common setup: entities User and DataBlock, an M:N relationship represented by an intermediate entity containing just the two keys, flattened on both sides. At both sides the relationships are appropriately flattened. Set to own destination+delete rule cascade. The

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread o...@ocs.cz
or years and lots of M:N's, and this is the first time I have bumped into this kind of problems. Can you see what to check next? Thanks a very big lot, OC > > Also, this is 100% consistent, right? This is not a concurrency issue? > > Chuck > > > From: <webobjects-d

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-20 Thread o...@ocs.cz
Just a quick followup -- sorry, forgot to copy/paste the 2nd part of the log, though I fear it would not help much — it just confirms the user's snapshot does not get changed either: > On 21. 9. 2016, at 2:40 AM, o...@ocs.cz wrote: > > Chuck, > >> On 20. 9. 2016, at 10:48

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-21 Thread o...@ocs.cz
Chuck, > On 21. 9. 2016, at 6:10 AM, Chuck Hill wrote: > I bet Alice was a developer too. Beware the EOF, my son! The jaws that bite, the claws that catch! Looks like I have found the culprit — seems it was the very log of the committed snapshot. It looks like that if one

Re: EOF inserts already existing M:N relationships/empty snapshot?!?

2016-09-21 Thread o...@ocs.cz
h could be used to determine whether at the place and moment and particular eo it is safe to call committedSnapshotForObject or not? Thanks and all the best, OC > From: "o...@ocs.cz" <o...@ocs.cz> > Date: Wednesday, September 21, 2016 at 1:42 PM > To: Chuck Hill <ch...@gevityinc

Re: derived attribute to sum a relationship?

2016-08-23 Thread o...@ocs.cz
ly create and run the SQL expression programmatically? Thanks, OC > From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behalf > of OC <o...@ocs.cz> > Date: Monday, August 22, 2016 at 6:36 AM > To: WebObjects-Dev Mailing List <webobjects-dev@lists.apple.com&

Re: log4j bug causes deadlock?!? (was: which sort of application bugs hang wotaskd?)

2016-10-25 Thread o...@ocs.cz
Hmmm, looks like we are not the only one who got bit by that thing in tender parts: http://stackoverflow.com/a/7397857 > On 25. 10. 2016, at 10:59 PM, OC <o...@ocs.cz> wrote: > > Chuck, > > On 24. 10. 2016, at 18:23, Chuck Hill <ch...@gevityinc.com> wrote: &g

Re: which sort of application bugs hang wotaskd?

2016-10-24 Thread o...@ocs.cz
em like a likely culprit. > Running “sudo jstack –F ” should dump a trace of all threads. > Should… Thanks a lot, I'll ask the site admit to try, if the darned this happens again. All the best, OC > From: <webobjects-dev-bounces+chill=gevityinc@lists.apple.com> on behal

subEntityForEntity never called?

2016-10-30 Thread o...@ocs.cz
Hello there, I must be missing something darn obvious, for my subEntityForEntity delegate method never gets called. My code looks like this: === class ModelGroupDelegate { EOEntity subEntityForEntity(EOEntity entity,NSDictionary dic) { println "&& fetching '$entity' $dic"

direct action URL without a session

2016-10-28 Thread o...@ocs.cz
Hello there, the subject says it all — is there a decent way to construct a direct action URL from a code which has no session (and thus no context)? Note I need a full URL, not a relative one (it is to be used in diverse ways like “sent to client by an e-mail” etc.) At the moment, I use

ERXExistsQualifier blocks *all coordinators* even before a SELECT?!?

2016-10-13 Thread o...@ocs.cz
Hello there, just the very now, I have bumped into a weird problem. I run some DB-intensive background tasks. So as they do not block the whole application, I set up er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators > 1, and my code (a) gives one of the coordinators to all sessions

WORedirect with a known MIME type?

2016-10-09 Thread o...@ocs.cz
Hello there, at the moment, my application can return a file to the user through === WOResponse downloadFile(String mimeType, File path) { WOResponse wor=new WOResponse() wor.setHeader("$mimeType; name=\"$path.name\"","content-type")

Raw row fetch returns NSData instead of String for a derived attribute through a relationship?!?

2016-12-02 Thread o...@ocs.cz
Hi there, I am fetching raw rows. Most time, it works well, but I have bumped into a pretty weird behaviour with a derived attribute. The attribute is defined like this: === { className = NSString; definition = "CAST(C_AUCTION_SEQ as VARCHAR(18))"; externalType =

Re: SSL and port fun

2017-04-07 Thread o...@ocs.cz
rt (not speaking of x-webobjects-server-port) and assume the access to application was SSL-protected, right? Thanks again a big lot, OC > On 2017-04-07, 9:31 AM, "Webobjects-dev on behalf of OC" > <webobjects-dev-bounces+chill=gevityinc....@lists.apple.com on behalf of > o...@ocs.c

Shared EC woes (was: Flattened one-side M:N fails wildly with SharedEC)

2018-09-28 Thread o...@ocs.cz
? Seems pretty weird to me, but as always, I > might be overlooking something of importance. Or should that work even with > the flattened relationship, and the problems mean I must have done something > wrong elsewhere? > > Thanks and all the best, > OC > > __

handleQueryWithUnboundKey override for 3rd party objects?

2018-09-25 Thread o...@ocs.cz
Hi there, is there any hook WO- or WOnder-side, which would allow me to catch handleQueryWithUnboundKey for 3rd party objects? Something like to be able to set up a (presumably static) method with a signature (Object object,String key), which would get called by the framework whenever an