is there a trick to know that a property of EO did change?

2020-05-24 Thread ocs--- via Webobjects-dev
Hi there, I'd need to get a notification whenever a property of my EO changes, be it directly through a setter, or through an inverse-relationship being maintained, or through an object of an M:N deleted, whatever way. Something like class MyEO extends ERXGenericRecord { void propertyDidChang

Re: is there a trick to know that a property of EO did change?

2020-05-25 Thread ocs--- via Webobjects-dev
model wide. > > It might also be worth looking at the audit trail implementation in > ERCoreBusinessLogic for ideas on a configurable observer/notifier. > > Sharpy. > > > >> On 25 May 2020, at 10:40 am, ocs--- via Webobjects-dev >> wrote: >> >> Hi

Re: EC locking/shared snapshots/old data saved

2020-05-29 Thread ocs--- via Webobjects-dev
Jesse, > On 29. 5. 2020, at 3:15 PM, Jesse Tayler wrote: > Well, I don’t know but I think the fact you’d be having this problem points > to another problem. Perhaps it does, but frankly, I can't see that. > I don’t know your traffic or architecture, but you really should not have > that probl

Entity/attribute/relationship terrible toString?

2020-06-01 Thread ocs--- via Webobjects-dev
Hi there, occasionally, I need to put entities/attributes/relationships into complex nested property lists. Occasionally for debug, I need to print out these property lists. Alas, entities/attributes/relationships normally print out their complete contents in their toStrings, which makes the l

Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread ocs--- via Webobjects-dev
fect the >> entities/attributes/relationships toStrings? I can't find anything like that >> in my WO documentation. Seems it might be the right solution... if I knew >> what it is :) >> >> Thanks! >> OC >> >>> >>>>> On 2 Jun 202

Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread ocs--- via Webobjects-dev
]'s and hell-knows-what just to tame an idio... well, ahem, not-too-reasonably implemented toString of three classes seems just a bit at the rube-goldbergish side to me :/ Thanks anyway! OC >> On Jun 2, 2020, at 1:36 PM, ocs--- via Webobjects-dev >> mailto:webobjects-dev@lists.

data source for “static” objects?

2020-06-07 Thread ocs--- via Webobjects-dev
Hi there, let me please ask another weird question. For the context, thing is, one of our applications supports “predefined” EOs -- things like static lists and similar. In our case, they are completely defined in the Java code -- the number of them, all their attributes, whatever. Then, runtim

Re: data source for “static” objects?

2020-06-07 Thread ocs--- via Webobjects-dev
t; POJOs and make them EOs which you have to change via SQL migrations instead >> of twiddling java classes. That would be the path of least resistance. Since >> they are pretty much read only, you could consider making them shared Eos >> but it’s not mandatory to do so. >> A

Looks like an OSC must be disposed manually?!? (was: background tasks locked, workers run all right)

2020-06-29 Thread ocs--- via Webobjects-dev
Hi there, it seems finally I succeeded to find the culprit of the problem described below. Far as my testing shows, it seems an ObjectStoreCoordinator is never garbage collected (presumed it has been used at least once for a fetch). Since the OSC opens a socket to the database, this leads to th

Re: Looks like an OSC must be disposed manually?!? (was: background tasks locked, workers run all right)

2020-06-29 Thread ocs--- via Webobjects-dev
round and used for any new editing context you make where you don’t > specifically give it a new OSC. > AARON ROSENZWEIG / Chat 'n Bike <http://www.chatnbike.com/> > e: aa...@chatnbike.com <mailto:aa...@chatnbike.com> t: (301) 956-2319 > > >> On Jun 2

Is it normal that ulimit hangs a thread instead of raising an exception or something like that?

2020-06-29 Thread ocs--- via Webobjects-dev
eted frame) - er.extensions.concurrency.ERXLongResponseTask$WorkerThread.run() @bci=1, line=64 (Interpreted frame) === Thanks for any insight, OC > On 29. 6. 2020, at 4:12 PM, ocs--- via Webobjects-dev > wrote: > > Hi there, > > it seems finally I succeeded to find the culprit of the problem described > bel

macOS deployment?

2021-04-30 Thread ocs--- via Webobjects-dev
Hi there, for my own local testing purposes, I would need to deploy a couple of WO apps locally on a macOS, Catalina or Big Sur. The traditional deployment approach bumps into lots of problems, starting with /System being very R/O, new Apache, etc. I've tried to find a page explaining howto, b

Re: macOS deployment?

2021-04-30 Thread ocs--- via Webobjects-dev
similar things for Tomcat and Azure and whatsnot, there's even a “docker-webobjects-wotaskd” on github without seemingly any documentation... perhaps self-evident for people who understand Docker, but I've no idea :/ ) Thanks a lot, OC > >> On Apr 30, 2021, at 9:49 AM, ocs--- vi

Re: macOS deployment?

2021-04-30 Thread ocs--- via Webobjects-dev
s for Tomcat and Azure and whatsnot, there's >> even a “docker-webobjects-wotaskd” on github without seemingly any >> documentation... perhaps self-evident for people who understand Docker, but >> I've no idea :/ ) >> >> Thanks a lot, >> OC &g

Re: again, merge on unlock did not happen :/

2021-10-14 Thread ocs--- via Webobjects-dev
Samuel, thanks for a reply! > This is probably a bug in the change propagation Indeed. I am seeking for its source and for a work-around to render the bloody thing harmless :) > Do you use EOEditingContext with long life span I do. As I wrote, mostly (and far as this particular problem goes,

session/logged-in user valid for a specific component only?

2022-01-09 Thread ocs--- via Webobjects-dev
Hi there, I've got a pretty old application, the standard structure: there's Session which (among others) contains a property currentUser containing the user who has logged in and in whose account changes are performed. There is an OCSComponent extends ERXComponent with generic component servic

Wrong SQL when joining in an OR-part of the qualifier

2022-02-13 Thread ocs--- via Webobjects-dev
Hi there, lately, I am encountering wrong fetches (with FrontBase, if important). I log out my qualifier and SQL, and the gist of the problem is a join in the OR-part of the qualifier. I want to fetch rows where there's an empty attribute, OR when there's a specific join: 06:52:06.510 DEBUG ->

deletion of objects in relationships?

2022-02-25 Thread ocs--- via Webobjects-dev
Hi there, lately, I was for the first time in a quarter of century of working with WO/EOF bitten in my tender parts by the following scenario: - there's a 1:N relationship - one of its objects is deleted using the plainest “eo.editingContext().deleteObject(eo)” approach - which deletes the obje

Re: deletion of objects in relationships?

2022-02-26 Thread ocs--- via Webobjects-dev
rules. Sounds like you just forgot to properly > set delete rules on the relationship > >> On Feb 25, 2022, at 2:50 PM, ocs--- via Webobjects-dev >> wrote: >> >> Hi there, >> >> lately, I was for the first time in a quarter of century of working with

model validations

2022-03-13 Thread ocs--- via Webobjects-dev
Hi there, for once, I am not here with a problem... well not with a problem in my WO application :) Thing is, I am just implementing model validations, and I would be grateful if anyone of you would check my list below and let me know if you can see any other reasonable validation which I shou

Duplicated PK

2022-07-26 Thread ocs--- via Webobjects-dev
Hi there, again I've bumped into a pretty darn weird behaviour. All my PKs are INTs, all generated by EOF (occasionally through rawPrimaryKeyInTransaction, most times — and unless I am overlooking something, *all the times* in the problem described below, the most usual way, simply as a side-e

JSConfirmPanel vs file download?

2022-08-31 Thread ocs--- via Webobjects-dev
Hi there, bumped into a weird problem. I allow users to download a file, pretty standard code === WOActionResults downloadListing() { WOResponse wor=new WOResponse() wor.setHeader("application/pdf; name=\"Listing\"","content-type") wor.set

Re: Java 17? Half or Full?

2022-12-10 Thread ocs--- via Webobjects-dev
Hi there, we are “Java 17 None At All”. For development, we use javas 1.8-11 (actually a couple years ago I've tried 12, bumped into some problems — can't recall details, too long ago — and from then up to now, I stick with 11 or lower). Deployment is mostly 1.8, but there's one ancient Xserve

choosing the submit for Enter in a textfield?

2023-03-26 Thread ocs--- via Webobjects-dev
Hi there, I've got a form (combined from more separate components) whose overall layout is ... lots of inputs incl. a number of textfields ... ... other inputs and textfields ... I would need that an Enter in the "bar" textfield triggers "barAction"; an Enter in any other tex

Re: choosing the submit for Enter in a textfield?

2023-03-28 Thread ocs--- via Webobjects-dev
think I can do that. Perhaps if I could add the “form” attribute to >> the form 2 inputs it might work; but far as I know, with standard WO/nder >> inputs and submits that is not possible (or is it?), and although I could >> write my own ones, well, it's still easier to

action in a sub-component?

2024-04-26 Thread ocs--- via Webobjects-dev
Hi there, I've got a sub-component which uses performParentAction; the appropriate binding is something like . Works perfectly. Purely for aesthetic reasons (and, well, for consistency), I would prefer if I could use the sub-component precisely same way one uses wo:hyperlink, i.e., like this:

Re: action in a sub-component?

2024-04-26 Thread ocs--- via Webobjects-dev
rong, this seems > to work without it. > > Cheers, > - hugi > > > >> On Apr 26, 2024, at 19:47, ocs--- via Webobjects-dev >> wrote: >> >> Hi there, >> >> I've got a sub-component which uses performParentAction; the appropriate

Re: re/store context somehow? (OCsite)

2024-05-18 Thread ocs--- via Webobjects-dev
Thanks a lot, also to all others! > On 18. 5. 2024, at 4:06, Paul Hoadley via Webobjects-dev > wrote: > On 18 May 2024, at 6:26 am, Amedeo Mantica via Webobjects-dev > mailto:webobjects-dev@lists.apple.com>> > wrote: >> I no longer use WO but I recall this framework in wonder: >> ERPersistent

Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2024-06-07 Thread ocs--- via Webobjects-dev
Hi there, again in about 2 years the $subject did happen: “Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext, object: [USER#1000175@EC:34ea315d/OSC:77b7ffa4], databaseContext: com.webobjects.eoaccess.EODatabaseContext@512d92b,

[POSSIBLY SOLVED]: Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext

2024-06-08 Thread ocs--- via Webobjects-dev
around the step 1). What would be the best fix/work-around? I can't see any simple one; and I would rather not override and re-implement the complete and rather non-trivial commitChanges method. Thanks and all the best, OC > On 8. 6. 2024, at 4:38, ocs--- via Webobjects-dev > wrote

awake-time long lags

2024-08-01 Thread ocs--- via Webobjects-dev
Hi there, we are encountering another weird problem: a (very) long lag awake-time. We happen to log the application-level awake and some of the component-level awakes. Normally, the latter happen just a couple milliseconds from the former. Nevertheless _sometimes_ when the load gets higher and

weird locks in faultWithPrimaryKeyValue

2024-08-16 Thread ocs--- via Webobjects-dev
Hi there, I've got a direct action, which sometimes needs to get an object with a known PK, for which I use faultWithPrimaryKeyValue. Works well for years, but lately the fetches went longer, so I decided to allow it to use a separate OSC not to clash with the normal database requests. The res

fetches too often (was: weird locks) in faultWithPrimaryKeyValue

2024-08-17 Thread ocs--- via Webobjects-dev
are no roundtrips at all. I would understand the first fetch in the separate OSC, but subsequently, it should just use snapshots like the default root store does, should it not? What am I missing? Thanks, OC > On 16. 8. 2024, at 18:14, ocs--- via Webobjects-dev > wrote: > > Hi ther

Re: fetches too often (was: weird locks) in faultWithPrimaryKeyValue

2024-08-18 Thread ocs--- via Webobjects-dev
e should be only the 1st one, while instead of the latter ones the fault should get fired quickly through snapshots of the OSC without a DB roundtrip. Thanks, OC >> Le 17 août 2024 à 08:48, ocs--- via Webobjects-dev >> a écrit : >> >> Hi there, >> >&

overlapping R/Rs in same session

2024-08-19 Thread ocs--- via Webobjects-dev
Hi there, looks like the main cause of those overlapping R/Rs which we ar clashing with lately is that some users just open their session in more windows or tabs, and work concurrently in those. Sigh. It's self-evident why it is a pretty bad idea from the technical POV, but I am afraid we can'

Re: FB JDBC version?

2024-08-23 Thread ocs--- via Webobjects-dev
Jesse, I might be wrong, but I understand this is not the driver version, but a JDBC compatibility level or something like that. Anyway, the FrontBase driver version is three-part (like 2.5.10), not just major.minor. Thanks! OC > On 22. 8. 2024, at 22:48, Jesse Tayler wrote: > > I happen to

Re: FB JDBC version?

2024-08-23 Thread ocs--- via Webobjects-dev
Ramsey, looks like you are again right. Meantime I've investigated, and it looks like - the bloody Java, despite having an explicit path to the proper driver on classpath (I've checked in runtime logs, it's OK), still ignores it and loads another driver from java.ext.dirs; - where, I believe, a

how to prevent locking of other ECs?

2024-10-26 Thread ocs--- via Webobjects-dev
Hi there, from inside of a R/R, I need to do something (essentially just log out some attributes; no changes) with some objects of other editing contexts. To prevent deadlocks, of course I cannot lock those other ECs. Since an attribute access does lock, I am using localInstanceIn, essentially

Re: qualifier-linked-to-EC woes

2024-09-20 Thread ocs--- via Webobjects-dev
Just a quick followup: currently I use ERXEOControlUtilities.localInstancesInQualifier to move the whole qualifier into the EC in which it is being evaluated. It works, but a truly EC-agnostic qualifier would be much better, for this leads to converting qualifiers pretty often :( Thanks! OC >

supported DB servers

2024-10-03 Thread ocs--- via Webobjects-dev
Hi there, is there somewhere a list of SQL databases which we can use with WO+Wonder today (perhaps with some howtos and gotchas, if known)? All I've found is https://en.wikibooks.org/wiki/WebObjects/EOF/Using_EOF/Database_Adaptors_and_Plugins which says it is outdated and offers a link to new

NScollections vs Java collections

2025-02-01 Thread ocs--- via Webobjects-dev
Hi there, did ever anybody tried some benchmarks to find whether it is better to use WO collections (NSArray, NSDictionary...) as widely as possible (ie essentially anywhere, unless one really needs to store nulls or can't do without ConcurrentHashMap or so), or whether it's better to use stand

Re: Does anyone use WOLips groovy support?

2024-12-18 Thread ocs--- via Webobjects-dev
Ramsey, > On 18. 12. 2024, at 11:37, Ramsey Gurley via Webobjects-dev > wrote: > ... > Which just leaves the WOLips groovy support. My question is again, does > anyone use this? The only mention I find of it is a short groovy.mov on the > wiki, and it appears that it is designed to do rapid t

Re: JavaMonitor DAs

2025-01-26 Thread ocs--- via Webobjects-dev
Amedeo, > On 25. 1. 2025, at 10:12, Amedeo Mantica wrote: > Take a look at source code Hmmm, I've tried, but it looks like AdminAction just uses MInstanc

Re: That pesky Amount read didn't match content-length ...

2025-02-13 Thread ocs--- via Webobjects-dev
tact CEBOIS:1 on (2004) >>>> Info: attempting to connect to 127.0.0.1 on port 2004 >>>> Info: CEBOIS:1 on (2004) connected [pooled: No] >>>> Debug: sendBuffers(): timed out >>>> Error: error sending request >>>> Error: Failed to send

That pesky Amount read didn't match content-length ...

2025-02-12 Thread ocs--- via Webobjects-dev
Hi there, is there a known cure for the darned “IOException: Connection reset by peer: Amount read didn't match content-length” exception upon a file upload? Started to happening to us lately. Smaller files upload all right, bigger ones (from about 2 MB up) trigger this error. Increasing the Ja

Re: That pesky Amount read didn't match content-length ...

2025-02-13 Thread ocs--- via Webobjects-dev
d >>> Warn: Marking 127.0.0.1:1 unresponsive >>> Debug: connectionAttempts = 1, retries = 0 >>> Info: Reading configuration from >>> http://localhost:1085/WebObjects/wotaskd.woa/wa/woconfig >>> Info: attempting to connect to localhost on port 1085 >>>

obtain a BLOB size without fetching the whole thing?

2025-06-24 Thread ocs--- via Webobjects-dev
Hi there, the subject says it all. I've got a FS which reads in some columns set up through setRawRowKeyPaths. The entity contains also a BLOB column which can be rather big. Is there a trick to get its size only in the result dictionaries, without actually fetching the data? If db-specific, w

Re: obtain a BLOB size without fetching the whole thing?

2025-06-24 Thread ocs--- via Webobjects-dev
... > (raw SQL) > > SELECT id, OCTET_LENGTH(blob_col) AS blob_size_bytes FROM my_table; > >> Il giorno 24 giu 2025, alle ore 21:27, ocs--- via Webobjects-dev >> ha scritto: >> >> Hi there, >> >> the subject says it all. I've got a FS which rea

Re: suspicious sessions and R/R loops created for a CSS font

2020-01-10 Thread ocs@ocs via Webobjects-dev
Chuck, thanks! > On 10 Jan 2020, at 7:23 AM, Chuck Hill wrote: > I am pretty sure it is the relative URLs in font-awesome.min.css. They get > evaluated as relative to the URL of your page not the URL of that CSS. That idea occurred to me too, but I think in that case it would not work (would

Re: suspicious sessions and R/R loops created for a CSS font

2020-01-10 Thread ocs@ocs via Webobjects-dev
P.S. Observing ApplicationWillDispatchRequestNotification, in all the cases (i.e., with relative "../fonts...", with absolute "/dms/css..." and even with "http://localhost:56005/dms/css ...") I am always getting the same URIs in the requests, they al

Re: suspicious sessions and R/R loops created for a CSS font

2020-01-10 Thread ocs@ocs via Webobjects-dev
P.P.S. > On 10 Jan 2020, at 2:54 PM, ocs@ocs via Webobjects-dev > wrote: > I must admit I can't see even what to try now :-O Got an idea to override and log out requestHandlerForKey, and the results are... interesting. I thought I'll get the ComponentRequestHandler for th