X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] From: "OCsite" Received: from smtp-beta-2.zoner.com ([217.198.120.71] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 26063083 for webobjects-dev@wocommunity.org; Wed, 23 Jun 2021 18:24:19 +0200 Received-SPF: none receiver=post.selbstdenker.com; client-ip=217.198.120.71; envelope-from=ocs@ocs.cz Received: from smtp.zoner.com (smtp.zoner.com [217.198.120.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp-beta-2.zoner.com (Postfix) with ESMTPS id 7887A1800B64 for ; Wed, 23 Jun 2021 18:23:58 +0200 (CEST) Received: from macbook-pro.ocsluj (unknown [77.240.103.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ocs@ocs.cz) by smtp.zoner.com (Postfix) with ESMTPSA id 1C6C13000075 for ; Wed, 23 Jun 2021 18:23:57 +0200 (CEST) Content-Type: multipart/alternative; boundary="Apple-Mail=_10BFE597-1EC9-4B17-BDA4-E75BE6C1009D" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\)) Subject: Why -undefined- does not work? Message-Id: <005B4425-DC54-4864-B5FC-BEBC74EC6069@ocs.cz> Date: Wed, 23 Jun 2021 18:23:57 +0200 To: WebObjects & WOnder Development X-Mailer: Apple Mail (2.3608.120.23.2.6) --Apple-Mail=_10BFE597-1EC9-4B17-BDA4-E75BE6C1009D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi there, in my Properties, there is non-zero = ERXObjectStoreCoordinatorPool.maxCoordinators. For some testing, I would = need to override it to null through the launch arguments, like this: -er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators -undefined- Nevertheless, what I am getting is =3D=3D=3D [2021-6-23 18:3:1 CEST]
java.lang.IllegalArgumentException: = Failed to parse an integer from the value '-undefined-'. at = er.extensions.foundation.ERXValueUtilities.IntegerValueWithDefault(ERXValu= eUtilities.java:202) at = er.extensions.foundation.ERXProperties.intForKeyWithDefault(ERXProperties.= java:1003) at = er.extensions.foundation.ERXProperties.intForKey(ERXProperties.java:830) at = er.extensions.eof.ERXObjectStoreCoordinatorPool.initialize(ERXObjectStoreC= oordinatorPool.java:72) at = er.extensions.eof.ERXObjectStoreCoordinatorPool.initializeIfNecessary(ERXO= bjectStoreCoordinatorPool.java:62) =3D=3D=3D How the heck is this possible, given =3D=3D=3D ERXObjectStoreCoordinatorPool.java public static void initializeIfNecessary() { if = (ERXProperties.stringForKey("er.extensions.ERXObjectStoreCoordinatorPool.m= axCoordinators") !=3D null) { ERXObjectStoreCoordinatorPool.initialize(); } } =3D=3D=3D ERXProperties.java private static String UndefinedMarker =3D "-undefined-"; ... ... public static String stringForKeyWithDefault(final String s, final = String defaultValue) { ... return stringValue =3D=3D UndefinedMarker ? null : stringValue; } =3D=3D=3D I've even tried = ERXProperties.stringForKey("er.extensions.ERXObjectStoreCoordinatorPool.ma= xCoordinators") in my own code, and I am getting null all right. Can = anyone see why this does no work properly in Wonder? What am I = overlooking? Thanks, OC --Apple-Mail=_10BFE597-1EC9-4B17-BDA4-E75BE6C1009D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi there,

in my Properties, there = is non-zero ERXObjectStoreCoordinatorPool.maxCoordinators. For some = testing, I would need to override it to null through = the launch arguments, like this:

-er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators = -undefined-

Nevertheless, what I am getting is

=3D=3D=3D
[2021-6-23 18:3:1 CEST] <main> = java.lang.IllegalArgumentException: Failed to parse an integer from the = value '-undefined-'.
    at = er.extensions.foundation.ERXValueUtilities.IntegerValueWithDefault(ERXValu= eUtilities.java:202)
    at = er.extensions.foundation.ERXProperties.intForKeyWithDefault(ERXProperties.= java:1003)
    at = er.extensions.foundation.ERXProperties.intForKey(ERXProperties.java:830)
    at = er.extensions.eof.ERXObjectStoreCoordinatorPool.initialize(ERXObjectStoreC= oordinatorPool.java:72)
    at = er.extensions.eof.ERXObjectStoreCoordinatorPool.initializeIfNecessary(ERXO= bjectStoreCoordinatorPool.java:62)
=3D=3D=3D

How the heck is this = possible, given

=3D=3D=3D ERXObjectStoreCoordinatorPool.java
  =   public = static void initializeIfNecessary() = {
    = if (ERXProperties.stringForKey("er.extensions.ERXObjectStoreCoordinato= rPool.maxCoordinators") !=3D null) {
    = ERXObjectStoreCoordinatorPool.initialize();
    = }
  =   }
=3D=3D=3D = ERXProperties.java
    private static String UndefinedMarker =3D "-undefined-";
... = ...
  =   public = static String = stringForKeyWithDefault(final String s, final String defaultValue) {
...
        return stringValue =3D=3D = UndefinedMarker ? null : stringValue;
    }
=3D=3D=3D

I've even = tried ERXProperties.stringForKey("er.extensions.ERXObjectStoreCoordinatorPool.maxCoordinators") in my own code, and I am getting null all right. Can anyone see why this does no work = properly in Wonder? What am I overlooking?

Thanks,
OC




= --Apple-Mail=_10BFE597-1EC9-4B17-BDA4-E75BE6C1009D--