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

2020-01-09 Thread OCsite via Webobjects-dev
Gentlemen, my application does some R/R loops and creates some sessions/main components which I believe it should not. Lately, from a webdesigner, I have got some improvements of the look of my application, which essentially looks like in the html header. The CSS starts with === /*! * Fon

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

2020-01-10 Thread OCsite via Webobjects-dev
Hugi, thanks! > On 10 Jan 2020, at 20:19, Hugi Thordarson wrote: > Well, WOStaticResourceRequestHandler doesn't really "create a > request/response loop". A request is is sent to the application, the > application will then look at the URL and determine from that what request > handler should

More SharedEC woes: relationships into SEC not saved?!?

2020-01-10 Thread OCsite via Webobjects-dev
Hi there, this is weird. My EOs have some relationships into the SharedEC — of course, one-way without an inverse; I understand that relationships to SEC are all right, only those from it outside are forbidden. (Am I wrong perhaps? If those relationships were set up in the database without SEC,

Re: More SharedEC woes: relationships into SEC not saved?!?

2020-01-12 Thread OCsite via Webobjects-dev
I order them? I would need to reuse the standard default ordering which EODatabaseContext does normally; but it does not seem to be accessible anyhow, or am I overlooking something of importance here? Thanks and all the best, OC > On 11 Jan 2020, at 3:28, OCsite via Webobjects-dev > wr

Re: More SharedEC woes: relationships into SEC not saved?!?

2020-01-12 Thread OCsite via Webobjects-dev
P.S. > On 12 Jan 2020, at 14:55, OCsite via Webobjects-dev > wrote: > As for the fixing... well, I guess I can generate the proper AOs myself, but > the trick is, how do I order them? I would need to reuse the standard default > ordering which EODatabaseContext does normally;

Re: More SharedEC woes: relationships into SEC not saved?!?

2020-01-12 Thread OCsite via Webobjects-dev
r)”; but I somewhat fear there would be some subtle undocumented difference, which would raise its ugly head and bite me in tender parts the next month or the next year :/ Thanks and all the best, OC >> On Jan 12, 2020, at 7:00 AM, OCsite via Webobjects-dev >> mailto:webobjects-

Hopefully solved: More SharedEC woes: relationships into SEC not saved?!?

2020-01-12 Thread OCsite via Webobjects-dev
irection). Or do I just do something terribly wrong somewhere in my application, for this should work all right? Does anyone here use this setup (creating/updating EOs with one-way relationships into SEC), and does it work properly for you without all this hassle? Thanks, OC > On 11 Jan 2020

Definitely solved: More SharedEC woes: relationships into SEC not saved with more EOF stacks

2020-01-13 Thread OCsite via Webobjects-dev
t; On Jan 12, 2020, at 4:13 PM, OCsite via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>> >> wrote: >> >> I think I have probably solved the original problem (quoted below) all >> right, for the record, by doing essentially this in the >> databas

Re: Definitely solved: More SharedEC woes: relationships into SEC not saved with more EOF stacks

2020-01-14 Thread OCsite via Webobjects-dev
d betw. all sessions. Far as I understand, in-memory entities would cause each session to have its own full cache of all the „static“ objects, which might be a bit of a memory problem with more users working with the app at once. Perhaps it was a wrong decision and the memory waste would be a cost

Re: Failed Query

2020-01-14 Thread OCsite via Webobjects-dev
Gino, first thing I would try would be to log out the generated SQL and check its contents. Can you do that? Unless I am missing something, your quoted strings look like a plain ASCII, and thus they should not be affected by Unicode quirks. All the best, OC > On 14 Jan 2020, at 15:26, Gino Pa

JavaScripts generated programmatically and/or placed at the end

2020-01-26 Thread OCsite via Webobjects-dev
Hi there, for once, no deep mystery, but a plain API-related question :) I am just switching my old very hap-hazard and ugly way of loading javascripts as needed by components to the very neat ERXComponent's support of additionalJavascriptFiles. Mostly it works like a charm, but for two cases:

REDIRECTED to non-refusing instance

2020-02-03 Thread OCsite via Webobjects-dev
Hi there again, is there any known situation/bug, which would lead to the logs of kind DEBUG !!! Request will be REDIRECTED to non-refusing instance without having set either Refuse new session or graceful scheduling in the JM? I have found a debate in which Chuck asserts that WO might have lon

Re: SQL Error on fetch

2020-02-04 Thread OCsite via Webobjects-dev
Gino, I can be completely wrong, but it looks like two problem logs interspersed, which stinks by a threading issue, along with the fact it happens intermittently. If possible, I'd check race conditions and try to synchronize (or lock) where needed. Quite possibly someone other would give a m

background tasks locked, workers run all right

2020-05-21 Thread OCsite via Webobjects-dev
Hi there, bumped lately into another weird problem. We import some data into DB in background tasks. Up to yesterday, it worked normally; today six import tasks were launched, and each of them seemingly hang in its first DB operation. Restart did help; alas, the site admins did not try to ask J

Re: background tasks locked, workers run all right

2020-05-21 Thread OCsite via Webobjects-dev
your pool size. In which case, what's precisely the advantage of having a pool instead of creating a new OSC for each import thread (and releasing it when the import is done)? > Don’t forget to send him some Red Breast Whiskey. Aha! At least one thing which I do not need more de

dedlock report whenever app ends?

2020-05-21 Thread OCsite via Webobjects-dev
A propos of > alas, the site admins did not try to ask JVM to detect deadlocks when they > restarted the application might it perhaps to be possible to set something somewhere up so that each time a WO application is stopped by the JavaMonitor, the JVM always tries to detect and log out into t

EC locking/shared snapshots/old data saved

2020-05-29 Thread OCsite via Webobjects-dev
Hi there, just again, I've been bit in my tender parts by the well-known problem that 1. thread A locks its EC 2. thread B saves some change into DB 3. thread A saves its own changes (of different properties), which alas as a side-effect also reverts B's changes ... ... since A's EC still conta

Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread OCsite via Webobjects-dev
Markus, > On 2 Jun 2020, at 12:09, Markus Ruggiero wrote: > Why not simply override toString() in EOGenerate templates once and for all? What are “EOGenerate templates” and how they affect the entities/attributes/relationships toStrings? I can't find anything like that in my WO documentation.

GID for deleted objects

2020-06-15 Thread OCsite via Webobjects-dev
Hi there, I've just bumped into another problem which seems it should be pretty common, but I can't see a decent solution (due to my blindness quite probably). I am caching some information for EOs; the info is EC-independent, and therefore the cache is keyed by global IDs. When an EO is succe

Re: Creating a EOModel in code

2020-06-29 Thread OCsite via Webobjects-dev
Don, we do something remotely similar all the time (not creating a complete model, but adding attributes dynamically at launch to entities). Works without a glitch, I cannot recall any problem at all with this. Should work for you as well, I would be rather surprised if you encounter any probl

Re: Creating a EOModel in code

2020-06-29 Thread OCsite via Webobjects-dev
Don, > On 29 Jun 2020, at 17:16, Don Lindsay wrote: > Thanks for the information. This may be the path I will need to go down for > this specific project. Good luck! I have checked our sources and actually there were two small gotcha's we did bump into: (i) programmatically added attribut

given WOLips is being discussed...

2020-07-03 Thread OCsite via Webobjects-dev
... well, myself, I have found Eclipse next-to-unuseable (WOLips itself looked good, but it's, alas, Eclipse-based). In case there's more people similarly Eclipse-incompatible, let me just remind that the good ole XCode (with a couple of build scripts added) is considerably more convenient than

Re: [WO-DEV] old/invalid :1 relationship value, how the H. possible?!?

2021-06-16 Thread OCsite via Webobjects-dev
Some followup: I have analysed the R/R loops in details and found that - the user B saved changes at 11:00:25.220 - at this moment, there was a user A's R/R loop (which never touched the relevant data), running from 11:00:24.570 to 11:00:25.548 - the next user A's R/R loop started at 11:00:38.113

merging changes upon a save: what are “locally uncommitted changes”, too many snapshots?

2021-06-16 Thread OCsite via Webobjects-dev
Hi there, is the process of merging changes upon a save into other ECs, and all the kinds of snapshots available, documented somewhere in detail? My old EOEditingContextConcepts says just this: ... However, locally uncommitted changes to objects in the EOEditingContext are by default reapplied

again, merge on unlock did not happen :/

2021-10-07 Thread OCsite via Webobjects-dev
Hi there, I am again here with a mysterious bug; something like this happened before (with slightly different setup), now it happened again. This time the attributes involved were NSTimestamps; I (might be wrong, but I) believe the attribute type is irrelevant to the problem and I am re-writing

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

2022-01-09 Thread OCsite via Webobjects-dev
Markus, thanks! > On 9 Jan 2022, at 17:27, Markus Ruggiero wrote: > When you create your page inheriting from OCSComponent you inherit all the > methods including all managing your currentUser. Just override those. I would > think that solves your problem without too much of legwork. Alas, th

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

2022-01-09 Thread OCsite via Webobjects-dev
Aaron, thanks! Actually I could extend the user class easily, without a need to make a generic interface. Nevertheless I don't think either would help: in this particular case, the „canSeePage“ ability does not depend on the user, but only on whether the application has been connected to normal

target-page-based (instead of hyperlink-based) fragment?

2022-01-16 Thread OCsite via Webobjects-dev
Hi there, my client wants me to ensure that a page, when accessed/refreshed in any way, automatically scrolls to a specific place (which depends on previous usage of the thing). Is there some place/hook in WebObjects which would allow me to automatically add a fragment (whose value is set up e

Re: target-page-based (instead of hyperlink-based) fragment?

2022-01-16 Thread OCsite via Webobjects-dev
age-loaded event... might prove easier than somehow trying to stick the fragment to the URL... Thanks and all the best, OC >> On Jan 16, 2022, at 3:53 PM, OCsite via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>> >> wrote: >> >> Hi there, &

restart problems

2022-01-29 Thread OCsite via Webobjects-dev
Hi there, to keep at the safe side, we bounce our application once a day. The app happens to be somewhat specific in the sense it is really used only locally and at the business hours; therefore we can afford simply to not-gracefully relaunch it late evening. Worked well for a long time. Latel

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

2022-02-14 Thread OCsite via Webobjects-dev
Thanks to all for the answers! Is there a way to use the ERExistsQualifier through qualifierWithQualifierFormat? At the particular place it would be somewhat difficult to create the qualifier tree programmatically, there are considerably more complex qualifiers ANDed and ORred to the thing, whi

owns destination + deny prohibited?

2022-02-27 Thread OCsite via Webobjects-dev
Hi there, as I am checking all my relationships to make sure I did not another mistake, I've bumped into something strange. It looks like EOF prohibits a combination of “owns destination” and the “deny” delete rule. Can perhaps anybody explain the rationale behind that? I must be overlooking

Re: owns destination + deny prohibited?

2022-02-27 Thread OCsite via Webobjects-dev
, it's not so practical ;-)) > > Philippe > > Sent from my iPhone > > >> On 27 Feb 2022, at 12:45, OCsite via Webobjects-dev >> wrote: >> >> Hi there, >> >> as I am checking all my relationships to make sure I did not

file download + refresh

2022-09-01 Thread OCsite via Webobjects-dev
Hi there, thanks for previous answers, the JS solution works like a charm. Nevertheless, I've bumped into another problem: along with downloading the file (returning appropriate WOResponse from my action method), I would need to refresh the page as well, to increment a visible download counter

Re: file download + refresh

2022-09-02 Thread OCsite via Webobjects-dev
watched value, so it might not be suitable if you have a lot of these pages > open for a longer time. > > Cheers, > - hugi > > >> On 1 Sep 2022, at 10:13, OCsite via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>> >> wrote: >> >>

M:N-like table with a contents, updating the PK leads to problems

2022-10-10 Thread OCsite via Webobjects-dev
Hi there, I've just bumped into a new problem. There's a table which, many years ago, was created as an invisible M:N intermediate table. Later, we needed to add some information to the relationship, so now we have a table, say, Connection, which has - a number of normal attributes - a compound

Re: M:N-like table with a contents, updating the PK leads to problems

2022-10-11 Thread OCsite via Webobjects-dev
re would be no difference altogether. The difference is purely WO-side, in the way the changes are merged into snapshots and other ECs. That would be, I suppose, far easiest approach — if, that is, (b) can be done reliably. Would that be possible somehow? Thanks and all the best, OC >> On

Re: choosing the submit for Enter in a textfield?

2023-03-28 Thread OCsite via Webobjects-dev
René, > On 28. 3. 2023, at 14:23, René Bock wrote: > I guess the only non JS solution would be to split the form in two different > forms. Thanks, but since the layout is [some form 1 items] [complete form 2] [other form 1 items] I don't think I can do that. Perhaps if I could add the “form”

Might perhaps ERXEnterpriseObject.updateInverseRelationships fail?

2023-06-07 Thread OCsite via Webobjects-dev
Hi there, pretty rarely, but alas repeatedly — something like, twice a year — our clients observe a weird behaviour that - they add “a row to a table”, means an eo into a standard 1:N relationship; - immediately after that, they do not see the newly added row in the GUI, nor do see it newly logg

Re: Might perhaps ERXEnterpriseObject.updateInverseRelationships fail?

2023-09-20 Thread OCsite via Webobjects-dev
ter a similar problem lately, or perhaps, even better, find a culprit and fix that? Thanks a lot! OC > On 7. 6. 2023, at 11:12, OCsite via Webobjects-dev > wrote: > > Hi there, > > pretty rarely, but alas repeatedly — something like, twice a year — our > clients obse

loooong saveChanges prep-stage

2024-01-30 Thread OCsite via Webobjects-dev
Hi guys, I've got logs from one of our installations with a pretty weird problem. We just happen to log immediately before ec.saveChanges() gets called; and we happen to have a DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations, which logs out soon as it is called. In this on

Re: loooong saveChanges prep-stage

2024-01-31 Thread OCsite via Webobjects-dev
Thanks, guys! I am pretty sure though the problem can't be a background process either reading for a long time or saving for a long time, for I do use the ERXAdaptorChannelDelegate.trace logs and through DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations I log each save — and

Re: loooong saveChanges prep-stage

2024-02-01 Thread OCsite via Webobjects-dev
ance too, since indexes will grow to exceed your > available memory and drop you off the performance cliff. You can do the > maintenance and get around the locking problems using something like > pg_repack. > From: OCsite > Sent: Wednesday, January 31, 2024 7:59 PM > To: OCsit

enumerating sessions?

2024-04-26 Thread OCsite via Webobjects-dev
Hi there, is there a way to enumerate sessions which are alive inside of a WO/ERXApplication? I guess I can create such a list myself, adding new ones in session.awake, keeping it weak not to prevent old sessions to be destroyed (or perhaps storing just session IDs), yadda yadda, but it would

.wo parser/validator?

2024-05-03 Thread OCsite via Webobjects-dev
Hi, is there a commandline tool which would parse and validate a .wo, so that I could include it into my toolchain and get warnings and errors for malformed html templates build-time, instead of run-time when the appropriate page is opened? Thanks! OC _

re/store context somehow?

2024-05-16 Thread OCsite via Webobjects-dev
Hi there, my client made a somewhat weird request: wants me to store “the last context the user worked in” in his session, and restore it when the user comes to the application through a specific Direct Action (and the session still lives). In other words, suppose the user works in the app for

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

2024-06-09 Thread OCsite via Webobjects-dev
Just a quick followup: I've tested further, and alas, looks like the very same problem may happen regardless the fetchTimestamp due to inverse flattened M:N relationships. Test case same as below, just without 1/4, but with a flattened M:N two-side relationship; culprit in (vii) very slightly d

FrontBase speed, feels weird.

2024-07-15 Thread OCsite via Webobjects-dev
Hi there, for years and years, we happily use FrontBase. Lately though we are bumping into somewhat weird behaviour: we observe inexplicably long fetches, even with tables which are not extremely big, no joins, trivial conditions. What's even more intriguing is that in sql92, it was much faster

Re: awake-time long lags

2024-08-01 Thread OCsite via Webobjects-dev
Aaron, > On 2. 8. 2024, at 2:33, Aaron Rosenzweig wrote: > How is your RAM headspace? Is it possible you are running out of runway? > Maybe it’s doing lots of garbage collection. Alas, not probably. I forgot to mention that at the very same time when _some_ R/Rs sport the terrible tens- or ev

find EO's PK without side-effects?

2024-08-05 Thread OCsite via Webobjects-dev
Hi there, can I somehow get a PK of an EO without uglies like locking its EC and so forth? Naïvely I thought that this specific information should be readily available somewhere simply by reading from memory without any other ado (even for a fault, not speaking of an in-memory EO), but self-evi

Solved: awake-time long lags

2024-08-13 Thread OCsite via Webobjects-dev
D'oh! Further analysis proved that those R/Rs which sport a long lag awake-time are overlapping R/Rs of the same session. Since the default EC, far as I know, gets locked immediately before session awake (and unlocked just after session sleep), the mystery of long lags is no mystery anymore (a

Re: overlapping R/Rs in same session

2024-08-21 Thread OCsite via Webobjects-dev
Aaron, > On 21. 8. 2024, at 1:16, Aaron Rosenzweig wrote: > Sounds like maybe your session is in the URL? Nope, we store them in cookies. > What if you put the session in a cookie? Then it’s not possible to have > multiple tabs in the same browser. The last tab wins. Alas, that's not how th

FB JDBC version?

2024-08-22 Thread OCsite via Webobjects-dev
Hi there, how does one properly determine the current FB JDBC driver version? Lately we were not sure whether all our installations contain the newest release, and thus I've added a code to log out the version. The code I've found — is there another, better, and more reliable variant? — looks l

Re: FB JDBC version?

2024-08-23 Thread OCsite via Webobjects-dev
bc jar floating around in your >> application build path? With ant, I forget how it determines which jar wins. >> With maven, you can just open the pom.xml in eclipse and check in the >> Dependency Hierarchy tab. >> From: OCsite via Webobjects-dev > <mailto:w

Re: Custom EOQualifier

2024-08-30 Thread OCsite via Webobjects-dev
André, someone might give a much better and more straightforward answer, but myself, I would just check (and more or less imitate) how custom qualifiers are written in Wonder, whose sources are available publicly . All the

JM force quit, auto-jstack

2024-10-22 Thread OCsite via Webobjects-dev
Hi there, does JavaMonitor support hooks? We would like that whenever someone kills an application through Configure / Force Quit, jstack gets called automatically before killing the application on its PID, and its output added to the application log. Is that possible somehow? Thanks, OC

Re: JM force quit, auto-jstack

2024-10-23 Thread OCsite via Webobjects-dev
wn from a Force Quit — we want jstack in the latter case only. Nevertheless, if there's no other way, it's definitely a way. Thanks! OC > On 23. 10. 2024, at 0:02, Paul Hoadley via Webobjects-dev > wrote: > > On 22 Oct 2024, at 22:36, OCsite via Webobjects-dev > wrote:

qualifier-linked-to-EC woes

2024-09-20 Thread OCsite via Webobjects-dev
Hi there, a qualifier should be independent on ECs and work just as well in any of them, right? Well, wrong :( If there's a key-value (sub-)qualifier like this: === def qq=EOQualifier.qualifierWithQualifierFormat("aRelationship=%@",new NSArray(someEO)) === then I can reliably fetch using this

Re: NScollections vs Java collections

2025-02-02 Thread OCsite via Webobjects-dev
Thanks (to all who responded)! I do use WOnder (is there nowadays any WO programmer who does not? Really?), but still, self-evidently it makes sense to use Java collections primarily, and go to NS-ones only when needed. All the best, OC > On 2. 2. 2025, at 23:46, Ramsey Gurley wrote: > > I b

JavaMonitor DAs

2025-01-24 Thread OCsite via Webobjects-dev
Hi there, does actually anyone use those nice JavaMonitor Direct Actions, documented at https://wiki.wocommunity.org/xwiki/bin/view/documentation/Home/Deployment/Wonder%20JavaMonitor%20and%20wotaskd/ ? I've just improved my install scripts to exploit them, but bumped into a problem: I might be

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

2025-02-13 Thread OCsite via Webobjects-dev
Thanks! > On 13. 2. 2025, at 12:49, Hugi Thordarson via Webobjects-dev > wrote: > Sorry, then I'm kind of out of ideas. Makes two of us :) > My first thought was that the adaptor logging was accurate and that the > application's adaptor configuration was set up so that the file upload > requ

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

2025-02-13 Thread OCsite via Webobjects-dev
Hugi, > On 13. 2. 2025, at 9:55, Hugi Thordarson via Webobjects-dev > wrote: > when you say 2 MB, is it possible you mean 2 GB? Nope. The file which fails to upload has 2 024 943 bytes. > ... > Is this also a problem in direct connect mode or only if you're going through > the web server adap

Re: Weird problem: JavaMonitor cannot launch any application

2025-02-13 Thread OCsite via Webobjects-dev
which would cause the described behaviour (JavaMonitor never launches any application, otherwise all seems normal), I'm eager to understand it, test it, and if it is the culprit, fix it. Thanks! OC >> On Feb 13, 2025, at 6:50 AM, OCsite via Webobjects-dev >> wrote: >>

Re: Weird problem: JavaMonitor cannot launch any application

2025-02-13 Thread OCsite via Webobjects-dev
ause the described behaviour (JavaMonitor never launches any application, >> otherwise all seems normal), I'm eager to understand it, test it, and if it >> is the culprit, fix it. >> >> Thanks! >> OC >> >>>> On Feb 13, 2025, at 6:50 AM,

Re: Weird problem: JavaMonitor cannot launch any application

2025-02-13 Thread OCsite via Webobjects-dev
Whew! I sort of think this qualifies as a wotaskd bug; where and whom to report it? > On 13. 2. 2025, at 15:07, OCsite via Webobjects-dev > wrote: > It looks like it was caused by an existence of /tmp/logWebObjects, added > there to log the adaptor. What the?!? Does not make

Weird problem: JavaMonitor cannot launch any application

2025-02-13 Thread OCsite via Webobjects-dev
Hi there, today we have bumped into a completely new and weird problem: JavaMonitor cannot launch any application, just increases the number of deaths. Nothing at all occurs in the application log. The access rights of both the log file and its folder are OK; the disk is not full. When I try t

weird fileupload behaviour: No form data left for WOFileUpload

2025-07-12 Thread OCsite via Webobjects-dev
Hi there, I've just bumped into something weird. I often use uploads to memory, like this: === === they work without problems, and there can be any number of them in the same page. But now I've added an upload to file, like this: ===

Solved: weird fileupload behaviour: No form data left for WOFileUpload

2025-07-13 Thread OCsite via Webobjects-dev
n try an “AjaxFlexibleFileUpload” and let the users stream at > that moment instead of after clicking send at the bottom of the page. > Sometimes we you hit a brick wall, you need to walk around. > >> On Jul 12, 2025, at 9:23 AM, OCsite via Webobjects-dev >> mail

most efficient way to fetch GIDs?

2025-07-14 Thread OCsite via Webobjects-dev
Hi there, do please forgive a stupid question, this is probably EOF 101, but I am not quite sure of the proper answer. I've got a Collection of global IDs (it might be any kind of a Collection, from an NSArray to a Java Set). All the GIDs represent the same entity, if important. And the collec

Re: ERXOptGroupPopupButton vs List?

2025-08-04 Thread OCsite via Webobjects-dev
Thanks! I've patched the patch meantime instead (using my own subclass which overrides appendChildrenToResponse, and before super, it fixes the _list binding). If I simply changed the binding, I am pretty sure I would forget in a month or so, and it would raise its head and bite me in my tender