gpt4 book ai didi

java - 通过 Apache Axis 调用安全 URL 时出现无效许可证异常

转载 作者:太空宇宙 更新时间:2023-11-04 08:28:17 26 4
gpt4 key购买 nike

嗨,我在调用安全 URL 时遇到以下无效许可异常,让我们说来自 Apache Axis 的“https://adcenter.microsoft.com/”,我认为 HTTPClient 也一定是这种情况,我知道我们可以使用 java 工具生成 .keysotre 并将其放入服务器的 conf 目录中,但在这种情况下,我通过 main 方法调用代码,因此保存在服务器 conf 中的 .keystore 不会有帮助,请建议如何安装安全证书/许可java 中的 url 以便我们在网络服务器环境下运行代码或仅通过调用 main 方法这应该可以工作

  Exception in thread "main" com.dstc.security.util.licensing.InvalidLicense: Cannot load license for module jcsi.provider
at com.dstc.security.util.licensing.LicenseValidator.loadLicense(LicenseValidator.java:87)
at com.dstc.security.util.licensing.LicenseValidator.check(LicenseValidator.java:290)
at com.dstc.security.provider.symm.Licensed.<clinit>(Licensed.java:60)
at com.dstc.security.provider.symm.BlockCipher.<clinit>(BlockCipher.java:629)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at java.security.Provider$Service.newInstance(Provider.java:1221)
at javax.crypto.Cipher.a(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at javax.crypto.Cipher.init(DashoA13*..)
at com.sun.net.ssl.internal.ssl.CipherBox.<init>(CipherBox.java:82)
at com.sun.net.ssl.internal.ssl.CipherBox.newCipherBox(CipherBox.java:113)
at com.sun.net.ssl.internal.ssl.CipherSuite$BulkCipher.newCipher(CipherSuite.java:361)
at com.sun.net.ssl.internal.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:399)
at com.sun.net.ssl.internal.ssl.CipherSuite$BulkCipher.isAvailable(CipherSuite.java:378)
at com.sun.net.ssl.internal.ssl.CipherSuite.isAvailable(CipherSuite.java:145)
at com.sun.net.ssl.internal.ssl.CipherSuiteList.buildAvailableCache(CipherSuiteList.java:215)
at com.sun.net.ssl.internal.ssl.CipherSuiteList.getDefault(CipherSuiteList.java:239)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.init(SSLSocketImpl.java:520)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(SSLSocketImpl.java:358)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(SSLSocketFactoryImpl.java:71)
at org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.java:92)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)

最佳答案

这个特定问题似乎与 Axis 或 HttpClient 无关:JRE 正在使用需要有效许可证的 SSL 提供商(即您需要付费才能使用它)。您是否打算使用 "Wedgetail JCSI components"出于任何特定原因(可能是旧版本的 Java)作为 SSL 提供商?

如果没有,请检查您的类路径。也许有人已将 JCSI JAR 添加到其中(它的名称类似于“jcsi_base.jar”),但忘记了它,或者他们忘记包含“jcsi_license.jar”文件。

关于java - 通过 Apache Axis 调用安全 URL 时出现无效许可证异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8079493/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com