Re: com.webobjects.foundation.NSTimeZone ... exception
Re: com.webobjects.foundation.NSTimeZone ... exception
- Subject: Re: com.webobjects.foundation.NSTimeZone ... exception
- From: Aaron Rosenzweig via Webobjects-dev <email@hidden>
- Date: Fri, 7 Jan 2022 14:14:11 -0500
Try adding:
JVMOptions --add-exports java.base/sun.security.action=ALL-UNNAMED
And look at similar discussions about this.
After java 1.8 they went module happy but Apple stuff doesn’t abide.
In other words, Apple jars don’t have named modules. So you need to set things
to ignore that.
> On Jan 7, 2022, at 12:57 PM, Kwasi O-Ahoofe via Webobjects-dev
> <email@hidden> wrote:
>
> Anyone familiar with this error which is occurring after every Java JDK
> upgrade ?
> {eg: going from: Eclipse Temurin 11 [11.0.2] ==> Eclipse Temurin 16 [16.0.1]
> ==> Eclipse Temurin 17 [17.0.2] .. etc}
>
> The fatal exception:
>
>
> 2022-01-06 23:26:35,299 {MMM dd HH:mm:ss}
> ProjectComplianceWonderProduction[51227] WARN NSLog - A fatal exception
> occurred: class com.webobjects.foundation.NSTimeZone (in unnamed module
> @0x5ef6ae06) cannot access class sun.security.action.GetPropertyAction (in
> module java.base) because module java.base does not export
> sun.security.action to unnamed module @0x5ef6ae06
> [2022-1-6 23:26:35 EST] <main> java.lang.IllegalAccessError: class
> com.webobjects.foundation.NSTimeZone (in unnamed module @0x5ef6ae06) cannot
> access class sun.security.action.GetPropertyAction (in module java.base)
> because module java.base does not export sun.security.action to unnamed
> module @0x5ef6ae06
> 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.<clinit>(WOStatisticsStore.java:249)
> at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:853)
> at
> er.extensions.appserver.ajax.ERXAjaxApplication.<init>(ERXAjaxApplication.java:30)
> at
> er.extensions.appserver.ERXApplication.<init>(ERXApplication.java:1129)
> at com.koaassoc.app.Application.<init>(Application.java:420)
> at
> java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> at
> java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:78)
> 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:350)
> at java.base/java.lang.Class.newInstance(Class.java:642)
> at com.webobjects.appserver.WOApplication.main(WOApplication.java:547)
> at er.extensions.appserver.ERXApplication.main(ERXApplication.java:890)
> at com.koaassoc.app.Application.main(Application.java:415)
>
>
> Any commentary/help is appreciated.
>
> Kwasi
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden