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

2025-06-24 Thread Samuel Pelletier via Webobjects-dev
Hi OC, Without more details about your schema and needs, the only thing I see is maybe a derived attribute on an entity may be a starting point. Regards, Samuel > Le 24 juin 2025 à 17:33, ocs--- via Webobjects-dev > a écrit : > > Great, thanks! Works like a charm :) > > If there is a trick

ClassNotFoundException HttpServletRequest using ERAttachmentUpload

2025-02-20 Thread Samuel Pelletier via Webobjects-dev
Hi, In my switch to maven, I also exclude JavaXML from the final builds because it contains olds libraires that also create conflict with some other new stuff... When using ERAttachmentUpload, I now have an ClassNotFoundException : javax.servlet.http.HttpServletRequest I figured out this refer

Re: Quartz Scheduler -- Clustering

2025-02-16 Thread Samuel Pelletier via Webobjects-dev
I do not have startup problems and use these properties to disable job by default and only start then on the designed instance: er.quartzscheduler.schedulerServiceToLaunch=true er.quartzscheduler.triggersAutomaticallyPaused=true On the instance that should run the tasks I set er.quartzschedule

Re: Quartz Scheduler -- Clustering

2025-02-15 Thread Samuel Pelletier via Webobjects-dev
Hi Jesse, I would try to set the main log level to debug and look at the entries... There is maybe some hints there. In WOApplication, the code will print uncatched exception to stderr, make sure you capture this output. /* 556 */ NSLog.err.appendln((Object)("A fatal exception

Re: Weird problem: JavaMonitor cannot launch any application

2025-02-14 Thread Samuel Pelletier via Webobjects-dev
Hi, Usually when I have that kind of problem, it is file permission related... For exemple, /tmp/logWebObjects enable some logging, if the log file was created with an user X and you now start the app using the monitor that use wotaskd, the app will run with the wotaskd user permissions... T

Re: Quartz Scheduler -- Clustering

2025-02-12 Thread Samuel Pelletier via Webobjects-dev
Hi Jesse, I use ERQuartzScheduler in some apps, there is a Readme file in the source documentation folder that explain the basics. In my case, I start the scheduler on only one instance and add a entity to have the Job schedule persists in the database. Running multiple instances of a schedule

Re: NScollections vs Java collections

2025-02-03 Thread Samuel Pelletier via Webobjects-dev
> ? ) ) ORDER BY COUNT( "t2"."id" ) > DESC [bind: 1->name:'Hugi Þórðarson', 2:2023, 3:5, 4:1000] > ==== > > This showcases just a part of the features, and works so well it feels almost > magical at times. I could also have specified Receipt.SELF

Re: NScollections vs Java collections

2025-02-03 Thread Samuel Pelletier via Webobjects-dev
HI, Those NS collections where essentials in the first java WO mainly because at that time Java did not had real collections classes (they appeared in Java 1.8), and the name was probably kept to help porting. I did not switch to java WO at that time and maintained some objective-C apps for a l

Re: New: woinstall-maven-plugin

2024-12-15 Thread Samuel Pelletier via Webobjects-dev
Hi Ramsey, I solved this situation by adding this line to build.properties file in each project: jvmOptions=--add-exports\=java.base/sun.security.action\=ALL-UNNAMED for multiple arguments: jvmOptions=--add-exports\=java.base/sun.security.action\=ALL-UNNAMED --add-exports java.base/jdk.interna

Re: Passing EOQualifier to a background thread

2024-11-11 Thread Samuel Pelletier via Webobjects-dev
Hi, I found a bug in the NSArray handling in the encoder, here is my class with a fix, do not use the previous version. Samuel > Le 9 nov. 2024 à 10:11, Samuel Pelletier via Webobjects-dev > a écrit : > > Hi, > > Last week I encountered a problem very similar to a pre

Passing EOQualifier to a background thread

2024-11-09 Thread Samuel Pelletier via Webobjects-dev
Hi, Last week I encountered a problem very similar to a previous OC case... I have a report page with some user defined filter that use EOs and do the fetch in background. Creating a snapshot of all possible parameter seems a fragile solution since it required a very good discipline to make su

Re: WOLips development

2024-11-09 Thread Samuel Pelletier via Webobjects-dev
Hi, As written by Hugi, rebel can be replaced with a DCEVM jvm using the hot swap plugin. This plugin do the same things for DCEVM as the jRebel plugin for rebel : clear KeyValueCoding, WOComponent and NSValidation caches on class reload. With this setup, you usually only need to restart an app

Re: how to prevent locking of other ECs?

2024-10-26 Thread Samuel Pelletier via Webobjects-dev
Hi OC, The rule is never access an EO from another thread without locking its EC before. Doing an localInstance of-in require accessing the EO and can cause locking problems if locking is not done properly (hard). Pass EOGlobalIDs to others thread instead of EOs and you will never have strange

Re: overlapping R/Rs in same session

2024-08-19 Thread Samuel Pelletier via Webobjects-dev
Hi OC, This is a very complex question with many possibles solutions having their owns problems... If you use auto-magic WO with auto generated url using actions bindings with complex pages, there is no safe way to support multiple concurrent tab or windows in the same browser for these compon

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

2024-08-18 Thread Samuel Pelletier via Webobjects-dev
OC, I do not know your app and deployment setup but usually, I know that keeping things simple is usually a good thing and a single instance app can be very efficient with it's database by assuming it's cache is valid. Creating a complete EOF stack for a single request seems very overkill for m

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

2024-08-17 Thread Samuel Pelletier via Webobjects-dev
OC, If you create a new OSC, you will have no snapshot cache (I may be wrong on this), so it is the expected behaviour. I never create new OSC in my apps, why are you creating OSC like this ? The only real case I see is large report generations in background thread and even for this batching

Re: weird locks in faultWithPrimaryKeyValue

2024-08-17 Thread Samuel Pelletier via Webobjects-dev
Hi OC, Last week, I spend some time to optimise an app after seeing strange behaviour, the cpu usage of this app was growing with time with no logical explaination. Your case sound similar to me so I share my experience on this. During these high cpu usage period, the app had strange locking an

Re: FrontBase speed, feels weird.

2024-07-15 Thread Samuel Pelletier via Webobjects-dev
Hi OC, Your problem description smell like an IO contention. BTW, this is not FB exclusive, all database will have the same kind of behaviour. If the is no index for the where condition, you force a table scan (read all the table rows to validate the condition). If the row data in memory, this

Re: enumerating sessions?

2024-04-26 Thread Samuel Pelletier via Webobjects-dev
Hi, As Hugi wrote, you can access the list via the session store. Be careful with access to objects inside those sessions, especially EOs since you are outside their normal RR loop request. I have a standard way to list active users and keep track of last access inside session by adding those

Debug frameworks with maven project

2024-04-10 Thread Samuel Pelletier via Webobjects-dev
Hi, I created a new workspace with the latest Eclipse to migrate my project to maven. My projects run and I can debug the application code (set breakpoint, click on exception stack trace to open project source) but all debug functions are not working for frameworks. I set breakpoint in code but

wolifecycle-maven-plugin configuration options

2024-04-06 Thread Samuel Pelletier via Webobjects-dev
Hi, My journey to Maven is going well, I ported 2 shared frameworks I use on every projects and my first app. There is many subtle details to go pass a "Hello world !" app. My last discovery is a problem with component template in sub directory that are not found when deployed. I always use di

Using Git Hub as private CI/CD and Maven repository

2024-04-02 Thread Samuel Pelletier via Webobjects-dev
Hi, With the maven switch, I understand it is now easier to setup CI/CD and it is also much nicer to have a Maven private repository for internal frameworks and apps. I see that Git Hub now have Actions and Packages that could provide those services even for private repo in free tier. Are thi

Re: Maven follow up

2024-04-01 Thread Samuel Pelletier via Webobjects-dev
h about eclipse plugin development to program > this. > > I don't use search in maven pom editor myself but does this option help > "Download repository index updates on startup"? > > > > > > I haven't used maven with my own frameworks so can&#

Maven follow up

2024-04-01 Thread Samuel Pelletier via Webobjects-dev
Hi all, Sorry for long time since last message, my maven switch had to be postponed. I manages to set up the basic and create a frameworks and an app. I have few questions with my current setup. Why Eclipse always complain about missing nature, the maven stuff is already there and working, I

Re: Meetup maybe? Or call me maybe?

2023-12-21 Thread Samuel Pelletier via Webobjects-dev
Hi, If you managed to create a new project, you where able to go far beyond my achievements ! I tried to switch to maven few times in the last years and just gave up each time after few hours and never managed to create a new project without error that build ever after reading and trying to un

Re: AjaxAutoComplete

2023-11-11 Thread Samuel Pelletier via Webobjects-dev
Hi, I managed to achieve your goal in my apps using this pattern : - Create a submit js function using an AjaxSubmitButton - Use the created function in afterUpdateElement on AjaxAutoComplete. Regards, Samuel > Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev >

Re: Weird apache crash in Ubuntu

2022-02-28 Thread Samuel Pelletier via Webobjects-dev
Hi Patrick, Your apache mp3 is probably set to something other than prefork. The WOAdaptor does not support threaded mpm. Regards, Samuel > Le 28 févr. 2022 à 14:22, Patrick Abuzeni via Webobjects-dev > a écrit : > > > Hello everyone > > Have a Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-90-gene

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

2022-02-15 Thread Samuel Pelletier via Webobjects-dev
OC, I do not see your point about the qualifierWithQualifierFormat. Unless your users are writing the format string directly, you have code to build it. Building a qualifier format string or a qualifier object is the same thing, it is just easier and less error prone to build the object using E

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

2022-02-14 Thread Samuel Pelletier via Webobjects-dev
Hi, As Aaron wrote, ERExisitsQualifier will generate an SQL for your needs. You may also change the JOIN type to change it's behaviour in SQL. EOF apply table joins before qualifier, I suspect other ORM does the same too. For that kind of quarry, you will probably have better performance doing

Re: FrontBase driver for Java 11+ - was Mac OS Monterey

2021-12-21 Thread Samuel Pelletier via Webobjects-dev
Hi Jérémy, The fronbtbasejdbc driver on FrontBase site was updated with a new binary compiled for java 1.8+. Same version number but run on Java 8+ instead of the previous release limited to Java 16+. Best regards, Samuel > Le 20 déc. 2021 à 03:11, Jérémy DE ROYER via Webobjects-dev > a é

Re: Mac OS Monterey

2021-12-19 Thread Samuel Pelletier via Webobjects-dev
Jérémy, I use the latest available on update site: https://jenkins.wocommunity.org/job/WOLips_master/lastSuccessfulBuild/artifact/temp/dist/ Previous version had issues with latest Eclipse. Regards, Samuel > Le 19 déc. 2021 à 04:47, Jérémy DE ROYER a > écrit : > > Merci Samuel for the he

Re: Mac OS Monterey

2021-12-18 Thread Samuel Pelletier via Webobjects-dev
Bonjour Jérémy, I was about to send you a fix for the FrontBase sql generation problem when I decided to look at their site and there is a new jdbc 2.5.10 driver released few days ago that fixes the problem with newer Eclipse. I confirmed the fix with Eclipse 2021-09. Regards, Samuel > Le 1

Re: AjaxAutoComplete in AjaxModalDialog

2021-12-05 Thread Samuel Pelletier via Webobjects-dev
was seeing. > > Hope that helps. > > Sent from my iPhone > >> On Dec 3, 2021, at 3:27 PM, Samuel Pelletier via Webobjects-dev >> wrote: >> >> Hi, >> >> I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works >> O

AjaxAutoComplete in AjaxModalDialog

2021-12-03 Thread Samuel Pelletier via Webobjects-dev
Hi, I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works OK. A very strange problem occur when the main page is scrolled though, the selection choices are displayed with a vertical distance from the textfield that correspond to the vertical scroll of the main page bellow.

Re: Single thread creation queue?

2021-11-24 Thread Samuel Pelletier via Webobjects-dev
Jesse, If you specify a case insensitive collation for your column in the table, you can preserve case and maintains case insensitive uniqueness. If you do not know about collation, begin by reading on the subject, they basically define how to compare and sort strings values. Depending on the

Re: Single thread creation queue?

2021-11-23 Thread Samuel Pelletier via Webobjects-dev
If your usernames (or keyString) are case insensitive, store them in a normalized case (in lowercase for exemple). You can add an overridden public void setKeyString(String value) { if (value != null) { value = value.toLowerCase(); } super.setKeyString(va

Re: Single thread creation queue?

2021-11-22 Thread Samuel Pelletier via Webobjects-dev
Jesse, So your row have a primary key and some other unique identifier derived other attributes. If the compound key is a combinaison of full attribute values, you cana a compound unique key in the database. CREATE UNIQUE INDEX ON Table (col1, col2, ..., coln) If it is from partial values, th

Re: Single thread creation queue?

2021-11-22 Thread Samuel Pelletier via Webobjects-dev
Hi Jesse, Your question may have multiple answers, can you describe the contexts and duplicate sources you fear ? Is the primary key generated by the WO app or it is external (like a GUID) ? Do you have a secondary identifier that should be unique ? Anyway, you should add constraint in to the

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

2021-10-11 Thread Samuel Pelletier via Webobjects-dev
Hi OC, This is probably a bug in the change propagation. Do you use EOEditingContext with long life span (in Session for example) or short life one (in component and task) ? My experience is short life is much better. At least, you are sure your EOs will reflect the latest snapshot when create

Re: Headers and AJAX?

2020-10-05 Thread Samuel Pelletier via Webobjects-dev
Jesse, I had to dig in the past to find out where I had this situation to handle. There are few http headers to add on the server where the function are called. Access-Control-Allow-Origin: origin addresses allowed to call the functions // Access-Control-Allow-Credentials: true // if you need

Re: Headers and AJAX?

2020-10-03 Thread Samuel Pelletier via Webobjects-dev
Hi Jesee, If your queries are crossing origins, you need to add CORS headers in your responses or on your server configuration. Those includes rules for allowed cookies and headers. I do not think they are required for same origin requests but this may be something added lately. Regards, Sam

Re: Multiple timezones

2020-02-26 Thread Samuel Pelletier via Webobjects-dev
Hi Michael, There is no easy or universal answer to this question. The best solution also depends on the meaning of the timestamp data. If your system is used on multiple timezones, ... - you may have situation where you want to always display the time in the event location time zone like airp

Re: Custom Ajax Component parent page re rendereing

2020-02-01 Thread Samuel Pelletier via Webobjects-dev
Hi Michael, If processing an AjaxRequest, you should not see the entire page rerendered. You may verify by adding a break point on the main page appendToResponse method. If you wonder why getters on your main component are called like list for a repetition, this is required to find out the chil

Re: Catalina and Frontbase

2020-01-03 Thread Samuel Pelletier via Webobjects-dev
Hi Jeffrey, Have you tried to enable SQL logging to identify if the problem is always on the same statement and is repeatable ? to enable SQL logging, set this in Property: log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG I did some tests with a fresh Catalina with database cop

Re: Safari ignores autocomplete="off" in AjaxAutoComplete component

2019-08-29 Thread Samuel Pelletier via Webobjects-dev
Hi Markus, I do not experience this problem on my side. I do not remember experienced it either. I'm currently using Safari 12.1.2 on Mojave and on iOS 12.4 devices with latest Wonder. The only problem I experience with AutoComplete is on iOS, the popup does not appears at the field location.

Re: DirectConnect and Security

2019-08-14 Thread Samuel Pelletier via Webobjects-dev
RL, String anHTTPVersion, Map> someHeaders, NSData aContent, Map someInfo) { Regards, Samuel > Le 12 août 2019 à 09:01, Samuel Pelletier via Webobjects-dev > a écrit : > > Hi Mark, > > If you want to simulate a WOAdaotor environment and have the app generate > static file UR

Re: DirectConnect and Security

2019-08-12 Thread Samuel Pelletier via Webobjects-dev
Hi Mark, If you want to simulate a WOAdaotor environment and have the app generate static file URL, configure your load balancer to add "x-webobjects-adaptor-version" header like I do using apache reverse proxy: RequestHeader set x-webobjects-adaptor-version "1" Regards, Samuel > Le 12 août

Re: One to many not nullifying when reverse is not marked for in-class generation

2019-07-28 Thread Samuel Pelletier via Webobjects-dev
Hi Aaron, The nullify of the FK when a parent is deleted can be handled with Foreign Key Constraint in the database if the relationship is not an attribute. This works if you use a "real" engine that support deferred constraint checking like Oracle, Sql Server, FrontBase or PostgreSql at least