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 [] Return-Path: Received: from wout3-smtp.messagingengine.com ([64.147.123.19] verified) by post.selbstdenker.com (CommuniGate Pro SMTP 6.3.7) with ESMTPS id 27016839 for webobjects-dev@wocommunity.org; Fri, 24 Dec 2021 06:25:30 +0100 Received-SPF: none receiver=post.selbstdenker.com; client-ip=64.147.123.19; envelope-from=matt@logicsquad.net Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 9B5533200927 for ; Fri, 24 Dec 2021 00:25:08 -0500 (EST) Received: from imap41 ([10.202.2.91]) by compute3.internal (MEProxy); Fri, 24 Dec 2021 00:25:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=cBHJ5W iyunEfCG4d/sMOrqySlfxXZxZdeV3XWFRnjHE=; b=du9diryni4Rm2eeN9K16T5 CyczsYD8AhpKHnUKaL7tRQQ6NzQHvTf9qCcRUFon1thfWkaiIf4ASAnHv93Jh2WS 2YGv5JmHOaKY9PVDSG7paYgObP/yVadTnvinckOUoFIwgLxsk/UOwCsNBtyPbAQW oPGIjEgo/m3DyhEIucxIN1ajER8SQPSoXz5Qzygqas+A9V3611vB/pexqkMw3Bny e468tBC7V/LlevbmGCQHHtdts6HJ2wRqFNyiDYiW1NNvxHQiXNuvYws2ldr2bdzd YAumfJKMZcDMyzOv14I1Q9LwkqPs9rota6gpmPwHxifvFv8YPmDdqBQBEA1SXdlA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddtledgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfofgrthhthhgvficupfgvshhsfdcuoehmrghttheslhho ghhitghsqhhurggurdhnvghtqeenucggtffrrghtthgvrhhnpeejleeguedvieegkefgle eigeduvedvudeggeegtdffjefhgeffieetgfffgeetieenucffohhmrghinheplhhoghhi tghsqhhurggurdhnvghtpdhlihhnkhgvughinhdrtghomhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghttheslhhoghhitghsqhhurggu rdhnvght X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id C53DC3C00CF; Fri, 24 Dec 2021 00:25:07 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4525-g8883000b21-fm-20211221.001-g8883000b Mime-Version: 1.0 Message-Id: <247ff952-f01e-45fb-ad36-a872d9034015@www.fastmail.com> In-Reply-To: References: Date: Fri, 24 Dec 2021 16:24:47 +1100 From: "Matthew Ness" To: wo-dev Subject: Re: [WO-DEV] Installation on osx Monterey Content-Type: multipart/alternative; boundary=c95f82e344c94ac6bdf6e59456edc46c --c95f82e344c94ac6bdf6e59456edc46c Content-Type: text/plain Hi Stavros, Module restrictions were added in Java 9. You might have some fortune by adding add-opens which breaks the encapsulation somewhat: --add-opens /= For example in one of my desktop apps I use: --add-opens java.desktop/com.apple.eawt=ALL-UNNAMED in development to be able to set an icon. Regards -- Matt https://logicsquad.net https://www.linkedin.com/company/logic-squad/ On Fri, Dec 24, 2021, at 3:41 PM, Stavros Panidis wrote: > Dear, > > I recently upgraded to Mac OsX Monterey. My configuration is as follows > > -MacBook Pro, 2016, running Mac Monterey 12.1 > > -Eclispe 2021-12 > > -Java version as follows > > openjdk 17.0.1 2021-10-19 > OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12) > OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build 17.0.1+12, mixed mode, sharing) > > Everything seems to be OK, but when I try to run application I get the following error > > NSLog - A fatal exception occurred: class com.webobjects.foundation.NSTimeZone (in unnamed module @0x647c3190) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x647c3190 > [2021-12-23 11:52:15 EET]
java.lang.IllegalAccessError: class com.webobjects.foundation.NSTimeZone (in unnamed module @0x647c3190) cannot access class sun.security.action.GetPropertyAction (in module java.base) because module java.base does not export sun.security.action to unnamed module @0x647c3190 > at com.webobjects.foundation.NSTimeZone.systemTimeZone(_NSTimeZone.java:971_) > at com.webobjects.foundation.NSTimeZone.defaultTimeZone(_NSTimeZone.java:818_) > at com.webobjects.foundation.NSTimestampFormatter.defaultFormatTimeZone(_NSTimestampFormatter.java:734_) > at com.webobjects.appserver.WOStatisticsStore.(_WOStatisticsStore.java:249_) > at com.webobjects.appserver.WOApplication.(_WOApplication.java:853_) > at er.extensions.appserver.ajax.ERXAjaxApplication.(_ERXAjaxApplication.java:30_) > at er.extensions.appserver.ERXApplication.(_ERXApplication.java:1129_) > at WebInvoice.app.Application.(_Application.java:11_) > at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(_Native Method_) > at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(_NativeConstructorAccessorImpl.java:77_) > at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(_DelegatingConstructorAccessorImpl.java:45_) > at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(_Constructor.java:499_) > at java.base/java.lang.reflect.ReflectAccess.newInstance(_ReflectAccess.java:128_) > at java.base/jdk.internal.reflect.ReflectionFactory.newInstance(_ReflectionFactory.java:347_) > at java.base/java.lang.Class.newInstance(_Class.java:645_) > at com.webobjects.appserver.WOApplication.main(_WOApplication.java:547_) > at er.extensions.appserver.ERXApplication.main(_ERXApplication.java:890_) > at WebInvoice.app.Application.main(_Application.java:8_) > > APPLICATION SHUTDOWN SEQUENCE COMPLETE > > Any advise? > > Many thanks in advance > > Stavros --c95f82e344c94ac6bdf6e59456edc46c Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hi Stavros,
=

Module restrictions were added in Java 9.
<= /div>

You might have some fortune by adding add-opens= which breaks the encapsulation somewhat:

-= -add-opens <source-module>/<package>=3D<target-module>=

For example in one of my desktop apps I us= e:
--add-opens java.desktop/com.apple.eawt=3DALL-UNNAMED
in development to be able to set an icon.

=
Regards

On Fri, Dec 24, 2021, at 3:41 PM,= Stavros Panidis wrote:
Dear,

=
I recently= upgraded to Mac OsX Monterey. My configuration is as follows
<= div class=3D"qt-" style=3D"font-family:Menlo-Regular;">
-MacBook Pro, 2016, run= ning Mac Monterey 12.1

-Eclispe 2021-12

-Java version as follows

openjdk 17.0.1 2021-10-19
OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+= 12)
OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (= build 17.0.1+12, mixed mode, sharing)

Everything seems to be OK, but when= I try to run application I get the following error

NSLog  - A fatal exception occurred: cl= ass com.webobjects.foundation.NSTimeZone (in unnamed module @0x647c3190)= cannot access class sun.security.action.GetPropertyAction (in module ja= va.base) because module java.base does not export sun.security.action to= unnamed module @0x647c3190
[2021-12-23 11:52:15 EET] <main> java.= lang.IllegalAccessError: class com.webobjects.foundation.NSTimeZone (in = unnamed module @0x647c3190) cannot access class sun.security.action.GetP= ropertyAction (in module java.base) because module java.base does not ex= port sun.security.action to unnamed module @0x647c3190
at com.webobjects.fou= ndation.NSTimeZone.systemTimeZone(NSTimeZone.java:971)
at com.webobjects.foundati= on.NSTimeZone.defaultTimeZone(NSTimeZone.java:818)
at com.webobjects.foundation.= NSTimestampFormatter.defaultFormatTimeZone(NSTimestampFormatter.java:734)
at com= .webobjects.appserver.WOStatisticsStore.<clinit>(WOStatisticsStore.java:249)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:853)
at er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.ja= va:30)
at er.extensions.appserver.ERXApplication.<init>(ERXApplication.jav= a:1129)
at WebInvoice.app.Application.<init>(Application.java:11)
a= t java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstan= ce0(Native Meth= od)
at java.base/jdk.internal.reflect.NativeConstructorAccessorIm= pl.newInstance(= NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.= reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl= .java:45)
at java.base/java.lang.reflect.Constructor.newInstanceW= ithCaller(Const= ructor.java:499)
at java.base/java.lang.reflect.ReflectAccess.new= Instance(Reflec= tAccess.java:128)
at java.base/jdk.internal.reflect.ReflectionFac= tory.newInstance(<= u>ReflectionFactory.java:347)
at java.base/java.lang.Class.newIns= tance(Class.jav= a:645)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:547= )
at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)=
at = WebInvoice.app.Application.main(Application.java:8)

APPLICA= TION SHUTDOWN SEQUENCE COMPLETE

=
Any advise?

Many thanks in advance

Stavros


--c95f82e344c94ac6bdf6e59456edc46c--