X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) From: "OCsite" Received: from smtp-beta-2.zoner.com ([217.198.120.44] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 26610345 for webobjects-dev@wocommunity.org; Fri, 15 Oct 2021 16:20:29 +0200 Received-SPF: none receiver=post.selbstdenker.com; client-ip=217.198.120.44; 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 1B50318002FB for ; Fri, 15 Oct 2021 16:20:09 +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 C82FC3000076 for ; Fri, 15 Oct 2021 16:20:08 +0200 (CEST) Content-Type: multipart/alternative; boundary="Apple-Mail=_A5E0E712-2F8D-49E4-B608-324C6326A8D4" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.6\)) Subject: Re: [WO-DEV] Solved: model list Date: Fri, 15 Oct 2021 16:20:08 +0200 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: <86AFB81E-9ED4-47CC-9A78-D97FD896A424@ocs.cz> X-Mailer: Apple Mail (2.3608.120.23.2.6) --Apple-Mail=_A5E0E712-2F8D-49E4-B608-324C6326A8D4 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 P.S. Just in case anyone decides to fix the code: > On 15 Oct 2021, at 13:54, OCsite = wrote: > BTW, I might be missing something of importance, but I do believe the = log (ERXModelGroup.loadModelsFromLoadedBundles) > log.debug("Loading bundles ()", = frameworkBundles.valueForKey("name")); I would strongly recommend two more improvements: (i) instead of blindly assuming that each folder which contains a file = with the =E2=80=9Eeomodeld=E2=80=9C extension is a model, to check the = path and ignore it unless the file found has name =E2=80=9Eindex=E2=80=9C = and its enclosing folder has an extension =E2=80=9Eeomodeld=E2=80=9C; (ii) enclose addModelWithPathURL in a try/catch harness and add a switch = which would allow to (report and) ignore models which cannot be loaded. Thanks and all the best, OC >> On 14. 10. 2021, at 21:01, ocs@ocs.cz = > = wrote: >>=20 >> Hi there, >>=20 >> our CentOS deployment does not work with Wonder 7.3; an attempt to = launch the application yields >>=20 >> [2021-10-14 20:38:2 CEST]
java.lang.IllegalArgumentException: = Unable to read either = 'file:/opt/Local/Library/WOnderFrameworks73/ERPrototypes.framework/Resourc= es/index.eomodeld' or = 'file:/opt/Local/Library/WOnderFrameworks73/ERPrototypes.framework/Resourc= es/eomodel.plist >>=20 >> With 7.1 the same code (only classpath changed) seems to work right. = Seems 7.2 has the same problem as 7.3, though I haven't tested it = thoroughly. (It stinks by some very ugly Java-based problem, for I've = never seen the problem on my development macOS site; happens only at = deployment CentOS. Ick.) >>=20 >> How could I find the differences -- if any -- betwixt the Wonder = releases? I suspect loadModelsFromLoadedBundles most probably would be = the culprit, somehow finding wrong model paths; I can find the = (presumably current 7.3) code at >>=20 >> = https://jenkins.wocommunity.org/job/Wonder7/ws/Wonder/Frameworks/Core/EREx= tensions/Sources/er/extensions/eof/ERXModelGroup.java = >>=20 >> but -- paint me blind and dumb -- I can't see the way to diff the = Wonder releases. Also, the code does not seem to allow logging out how = it finds the models, alas. >>=20 >> Thanks for any idea, >> OC >>=20 >>=20 >> ############################################################# >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to = >> To switch to the INDEX mode, E-mail to = >> Send administrative queries to = >>=20 >=20 --Apple-Mail=_A5E0E712-2F8D-49E4-B608-324C6326A8D4 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 P.S. = Just in case anyone decides to fix the code:

On 15 = Oct 2021, at 13:54, OCsite <webobjects-dev@wocommunity.org> wrote:
BTW, I = might be missing something of importance, but I do believe the log = (ERXModelGroup.loadModelsFromLoadedBundles)
		=
	log.debug("Loading bundles ()", =
frameworkBundles.valueForKey("name"));
I would strongly recommend two = more improvements:

(i) instead of = blindly assuming that each folder which contains a file with the = =E2=80=9Eeomodeld=E2=80=9C extension is a model, to check the path and = ignore it unless the file found has name =E2=80=9Eindex=E2=80=9C and its = enclosing folder has an extension =E2=80=9Eeomodeld=E2=80=9C;
(ii) enclose addModelWithPathURL in= a try/catch harness and add a switch which would = allow to (report and) ignore models which cannot be = loaded.

Thanks and all the = best,
OC

On 14. 10. 2021, at 21:01, ocs@ocs.cz <webobjects-dev@wocommunity.org> wrote:

Hi = there,

our CentOS deployment does not work = with Wonder 7.3; an attempt to launch the application yields

[2021-10-14 20:38:2 CEST] <main> = java.lang.IllegalArgumentException: Unable to read either = 'file:/opt/Local/Library/WOnderFrameworks73/ERPrototypes.framework/Resourc= es/index.eomodeld' or = 'file:/opt/Local/Library/WOnderFrameworks73/ERPrototypes.framework/Resourc= es/eomodel.plist

With 7.1 the same code = (only classpath changed) seems to work right. Seems 7.2 has the same = problem as 7.3, though I haven't tested it thoroughly. (It stinks by = some very ugly Java-based problem, for I've never seen the problem on my = development macOS site; happens only at deployment CentOS. Ick.)

How could I find the differences -- if any -- = betwixt the Wonder releases? I suspect loadModelsFromLoadedBundles most = probably would be the culprit, somehow finding wrong model paths; I can = find the (presumably current 7.3) code at

https://jenkins.wocommunity.org/job/Wonder7/ws/Wonder/Framework= s/Core/ERExtensions/Sources/er/extensions/eof/ERXModelGroup.java

but -- paint me blind and dumb -- I can't see = the way to diff the Wonder releases. Also, the code does not seem to = allow logging out how it finds the models, alas.

Thanks for any idea,
OC


#############################################################This message is sent to you because you are subscribed = to
 the mailing list <webobjects-dev@wocommunity.org>.
To = unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To = switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To = switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send= administrative queries to  <webobjects-dev-request@wocommunity.org>



= --Apple-Mail=_A5E0E712-2F8D-49E4-B608-324C6326A8D4--