已解决 Java报错求助IllegalArgumentException

@Ta 03-03 20:35发布,03-05 11:26修改 1624点击
IllegalArgumentException
Error in securily propcrly. Conslrainl unknown: jdk disablcd.namcdCurvcs
41ef3780dddb4315.jpg


(hr)

at java.base/java.lang.Class.forName(Class.java:315)
        at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
        at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
        at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
        at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
        at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
        at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
        at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123)
        at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335)
        at java.base/javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:292)
        at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:100)
        at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
        at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
        at java.base/java.net.URL.openConnection(URL.java:1074)
        at HttpsUtils.sendPost(HttpsUtils.java:124)
        at HttpMain.getMclansToken(HttpMain.java:231)
        at HttpMain.access$500(HttpMain.java:25)
        at HttpMain$LoginHandler$1.run(HttpMain.java:207)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.IllegalArgumentException: Error in security property. Constraint unknown: jdk.disabled.namedCurves
        at java.base/sun.security.util.DisabledAlgorithmConstraints$Constraints.<init>(DisabledAlgorithmConstraints.java:329)
        at java.base/sun.security.util.DisabledAlgorithmConstraints.<init>(DisabledAlgorithmConstraints.java:100)
        at java.base/sun.security.ssl.SSLAlgorithmConstraints.<clinit>(SSLAlgorithmConstraints.java:45)
        ... 23 more
换了个jdk好了
回复列表(9)
  • @Ta / 03-03 21:28
    @老虎会游泳 万能的老虎
  • @Ta / 03-04 11:33
    Exception in thread "Thread-1" java.lang.ExceptionInInitializerError
            at java.base/sun.security.ssl.ProtocolVersion.<init>(ProtocolVersion.java:158)
            at java.base/sun.security.ssl.ProtocolVersion.<clinit>(ProtocolVersion.java:41)
            at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:560)
            at java.base/java.lang.Class.forName0(Native Method)
            at java.base/java.lang.Class.forName(Class.java:315)
            at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
            at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
            at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
            at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
            at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
            at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
            at java.base/javax.net.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:123)
            at java.base/javax.net.ssl.HttpsURLConnection.getDefaultSSLSocketFactory(HttpsURLConnection.java:335)
            at java.base/javax.net.ssl.HttpsURLConnection.<init>(HttpsURLConnection.java:292)
            at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.<init>(HttpsURLConnectionImpl.java:100)
            at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:62)
            at java.base/sun.net.www.protocol.https.Handler.openConnection(Handler.java:57)
            at java.base/java.net.URL.openConnection(URL.java:1074)
            at HttpsUtils.sendPost(HttpsUtils.java:124)
            at HttpMain.getMclansToken(HttpMain.java:231)
  • @Ta / 03-04 11:35
    Exception in thread "Thread-2" java.lang.NoClassDefFoundError: Could not initialize class sun.security.ssl.SSLContextImpl$DefaultSSLContext
            at java.base/java.lang.Class.forName0(Native Method)
            at java.base/java.lang.Class.forName(Class.java:315)
            at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
            at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
            at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
            at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
            at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
            at java.base/javax.net.ssl.SSLContext.getDefault(SSLContext.java:99)
  • @Ta / 03-04 13:20
    $ pkg install wget openssl-tool proot tar -y && hash -r && wget https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/CentOS/centos.sh && bash centos.sh
    Checking availability of current mirror: ok
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    openssl-tool is already the newest version (1.1.1i).
    proot is already the newest version (5.1.107-36).
    tar is already the newest version (1.34).
    wget is already the newest version (1.21.1).
    0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
    --2021-03-04 13:19:47--  https://raw.githubusercontent.com/EXALAB/AnLinux-Resources/master/Scripts/Installer/CentOS/centos.sh
    Resolving raw.githubusercontent.com... 0.0.0.0, ::
    Connecting to raw.githubusercontent.com|0.0.0.0|:443... failed: Connection refused.
    Connecting to raw.githubusercontent.com|::|:443... failed: Connection refused.
  • @Ta / 03-04 21:41
                    ~ $ unzip /storage/emulated/0/gu.zip -d ~/ubuntu-fs/home/
  • @Ta / 03-07 11:55
    termux-wake-lock
添加新回复
回复需要登录

[聊天-摸鱼] 姜辰:所有单位在干活,而我在一边摸鱼