Sitelet https://github.com/foundweekends/conscript/issues/217
Skip to content

support JDK 17 #217

Description

@xuwei-k
java.lang.ExceptionInInitializerError
	at conscript.Conscript.run(conscript.scala:173)
	at conscript.Conscript.run(conscript.scala:171)
	at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:111)
	at xsbt.boot.Launch$.withContextLoader(Launch.scala:131)
	at xsbt.boot.Launch$.run(Launch.scala:111)
	at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:37)
	at xsbt.boot.Launch$.launch(Launch.scala:120)
	at xsbt.boot.Launch$.apply(Launch.scala:20)
	at xsbt.boot.Boot$.runImpl(Boot.scala:56)
	at xsbt.boot.Boot$.main(Boot.scala:18)
	at xsbt.boot.Boot.main(Boot.scala)
Caused by: java.lang.IllegalStateException: java.lang.IllegalAccessException: class com.ning.http.util.ProxyHostnameChecker cannot access class sun.security.util.HostnameChecker (in module java.base) because module java.base does not export sun.security.util to unnamed module @63eef88a
	at com.ning.http.util.ProxyHostnameChecker.getHostnameChecker(ProxyHostnameChecker.java:47)
	at com.ning.http.util.ProxyHostnameChecker.<init>(ProxyHostnameChecker.java:28)
	at com.ning.http.util.DefaultHostnameVerifier.<init>(DefaultHostnameVerifier.java:47)
	at com.ning.http.client.AsyncHttpClientConfig.getHostnameVerifier(AsyncHttpClientConfig.java:392)
	at com.ning.http.client.AsyncHttpClientConfig$Builder.<init>(AsyncHttpClientConfig.java:977)
	at dispatch.Http.unsafeConfigure(execution.scala:40)
	at dispatch.Http.configure(execution.scala:32)
	at conscript.Conscript$.<init>(conscript.scala:10)
	at conscript.Conscript$.<clinit>(conscript.scala)
	... 11 more
Caused by: java.lang.IllegalAccessException: class com.ning.http.util.ProxyHostnameChecker cannot access class sun.security.util.HostnameChecker (in module java.base) because module java.base does not export sun.security.util to unnamed module @63eef88a
	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
	at java.base/java.lang.reflect.Method.invoke(Method.java:560)
	at com.ning.http.util.ProxyHostnameChecker.getHostnameChecker(ProxyHostnameChecker.java:39)
	... 19 more
[error] [launcher] error during sbt launcher: java.lang.ExceptionInInitializerError

Activity

  1. aboisvert commented on Dec 21, 2025

    @aboisvert

    Still same issue with JDK 25,

    alexboisvert@Alexs-MacBook-Pro ~> java -jar ~/Downloads/conscript_2.11-0.5.9-proguard.jar
    WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
    WARNING: sun.misc.Unsafe::objectFieldOffset has been called by com.ning.http.client.providers.netty.chmv8.ConcurrentHashMapV8 (file:/Users/alexboisvert/Downloads/conscript_2.11-0.5.9-proguard.jar)
    WARNING: Please consider reporting this to the maintainers of class com.ning.http.client.providers.netty.chmv8.ConcurrentHashMapV8
    WARNING: sun.misc.Unsafe::objectFieldOffset will be removed in a future release
    Exception in thread "main" java.lang.ExceptionInInitializerError
    	at conscript.Conscript.main(conscript.scala)
    Caused by: java.lang.IllegalStateException: java.lang.IllegalAccessException: class com.ning.http.util.ProxyHostnameChecker cannot access class sun.security.util.HostnameChecker (in module java.base) because module java.base does not export sun.security.util to unnamed module @5fcd892a
    	at com.ning.http.util.ProxyHostnameChecker.getHostnameChecker(ProxyHostnameChecker.java:47)
    	at com.ning.http.util.ProxyHostnameChecker.<init>(ProxyHostnameChecker.java:28)
    	at com.ning.http.util.DefaultHostnameVerifier.<init>(DefaultHostnameVerifier.java:47)
    	at com.ning.http.client.AsyncHttpClientConfig.getHostnameVerifier(AsyncHttpClientConfig.java:392)
    	at com.ning.http.client.AsyncHttpClientConfig$Builder.<init>(AsyncHttpClientConfig.java:977)
    	at dispatch.Http.unsafeConfigure(execution.scala:40)
    	at dispatch.Http.configure(execution.scala:32)
    	at conscript.Conscript$.<init>(conscript.scala:10)
    	at conscript.Conscript$.<clinit>(conscript.scala)
    	... 1 more
    Caused by: java.lang.IllegalAccessException: class com.ning.http.util.ProxyHostnameChecker cannot access class sun.security.util.HostnameChecker (in module java.base) because module java.base does not export sun.security.util to unnamed module @5fcd892a
    	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:400)
    	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:670)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:556)
    	at com.ning.http.util.ProxyHostnameChecker.getHostnameChecker(ProxyHostnameChecker.java:39)
    	... 9 more
    
    alexboisvert@Alexs-MacBook-Pro ~ [SIGINT]> java -version
    openjdk version "25" 2025-09-16 LTS
    OpenJDK Runtime Environment Corretto-25.0.0.36.2 (build 25+36-LTS)
    OpenJDK 64-Bit Server VM Corretto-25.0.0.36.2 (build 25+36-LTS, mixed mode, sharing)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions