在本文中,我们将为您详细介绍JavaError-trustAnchorsparametermustbenon-empty的相关知识,此外,我们还会提供一些关于atlbase.h(5853):error
在本文中,我们将为您详细介绍Java Error - trustAnchors parameter must be non-empty的相关知识,此外,我们还会提供一些关于atlbase.h(5853) : error C2664: ''memcmp'' : cannot convert parameter 1 from ''const struct _GUID'' to ''const void *''、Bae上测试新浪第三方登录,报the trustAnchors parameter must be non-empty、Caused by: java.lang.NoSuchMethodError: org.apache.poi.util.TempFile.setTempFileCreationStrategy、count(): Parameter must be an array or an object that implements Countable 报错问题解决的有用信息。
本文目录一览:- Java Error - trustAnchors parameter must be non-empty
- atlbase.h(5853) : error C2664: ''memcmp'' : cannot convert parameter 1 from ''const struct _GUID'' to ''const void *''
- Bae上测试新浪第三方登录,报the trustAnchors parameter must be non-empty
- Caused by: java.lang.NoSuchMethodError: org.apache.poi.util.TempFile.setTempFileCreationStrategy
- count(): Parameter must be an array or an object that implements Countable 报错问题解决
Java Error - trustAnchors parameter must be non-empty
我正在尝试在Jenkins / Hudson
上配置我的电子邮件,并且不断收到错误消息:
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
我已经在网上看到了大量有关该错误的信息,但是我没有得到任何帮助。我在Fedora Linux(不是OpenJDK)上使用Sun的JDK。
这是我尝试过的几件事。我试着从以下这个建议后,但复制从Windows的cacerts到托管詹金斯没有工作,我的Fedora箱。在尝试将Gmail配置为SMTP服务器时,我尝试按照本指南进行操作,但是该方法也不起作用。我还尝试手动下载并移动这些cacert文件,并使用本指南中各种命令将它们移动到Java文件夹中。
我愿意接受任何建议,因为我目前仍处于停滞状态。我已经从Windows Hudson服务器上运行了它,但是我在Linux上苦苦挣扎。
答案1
小编典典此奇怪消息表示你指定的信任库为:
- empty,
- not found, or
- couldn’t be opened (due to access permissions for example).
另请参见下面的 @AdamPlumb的答案。
要调试此问题(我在这里写过)并了解正在使用什么信任库,可以添加属性 javax.net.debug = all,然后过滤有关信任库的日志。你也可以使用属性javax.net.ssl.trustStore来指定特定的信任库。例如 :
java -Djavax.net.debug=all -Djavax.net.ssl.trustStore=/Another/path/to/cacerts -jar test_get_https-0.0.1-SNAPSHOT-jar-with-dependencies.jar https://www.calca.com.py 2>&1| grep -i truststore
atlbase.h(5853) : error C2664: ''memcmp'' : cannot convert parameter 1 from ''const struct _GUID'' to ''const void *''
//IsEqualGUID 定义在winddi.h中 #ifndef IsEqualGUID #define IsEqualGUID(guid1, guid2) \ (!memcmp((guid1), (guid2), sizeof(GUID))) #endif // !defined(IsEqualGUID) //ATLINLINE ATLAPI AtlModuleRegisterServer定义在atlbase.h中 ATLINLINE ATLAPI AtlModuleRegisterServer(_ATL_MODULE* pM, BOOL bRegTypeLib, const CLSID* pCLSID) { .... if (!IsEqualGUID(*pCLSID, *pEntry->pclsid)) //报错-注释1 continue; }
问题:如何做到 ''const struct _GUID'' 转 ''const void *''? 或是我的头文件包含的顺序错了?
Help me!Thanks!
注释 1:vc98\atl\include\atlbase.h (5853) : error C2664: ''memcmp'' : cannot convert parameter 1 from ''const struct _GUID'' to ''const void *''
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Bae上测试新浪第三方登录,报the trustAnchors parameter must be non-empty
123.138.48.148647083356getAccessToken--出现错误:javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
参考:http://my.oschina.net/u/873047/blog/102950
新浪api变化了,改造了一下,遇到错误了,我是在BAE上运行的。BAE是不是不支持htts啊
这是要作死的节奏吗。。。
Caused by: java.lang.NoSuchMethodError: org.apache.poi.util.TempFile.setTempFileCreationStrategy
1.情景展示
使用easyExcel,生成excel文件,报错信息如下:
Caused by: java.lang.NoSuchMethodError: org.apache.poi.util.TempFile.setTempFileCreationStrategy(Lorg/apache/poi/util/TempFileCreationStrategy;)V
2.具体分析
jar包冲突导致
3.解决方案
easyexcel,2.2.6版本
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>2.2.6</version>
</dependency>
对应的是poi版本是:3.17
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.17</version>
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi</artifactId>
<version>3.17</version>
</dependency>
如果还不行,再加上这个:
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml-schemas</artifactId>
<version>3.17</version>
</dependency>
如果,上述三个都加上,且版本保持一致,还报同样地错误,那说明是你的开发工具出了问题。
以我为例,我使用的是非maven老项目,这就需要自己手动往项目的lib目录下添加jar包,并手动将其构建到项目当中。
如果有低版本或者高版本,首先需要将其从项目构建当中排除,还要将其手动删除。(我使用的是eclipse,必须将多余的jar包删掉,否则,还是会报上面的错误)。
一般情况下,到了这里就结束了。
如果报其它错,可以参考下面。
不行,接着加:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-collections4</artifactId>
<version>4.1</version>
</dependency>
不行,接着加:
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
<version>3.1</version>
</dependency>
写在最后
哪位大佬如若发现文章存在纰漏之处或需要补充更多内容,欢迎留言!!!
相关推荐:
- 个人主页
总结
以上是小编为你收集整理的Caused by: java.lang.NoSuchMethodError: org.apache.poi.util.TempFile.setTempFileCreationStrategy全部内容。
如果觉得小编网站内容还不错,欢迎将小编网站推荐给好友。
原文地址:https://www.cnblogs.com/Marydon20170307/p/16390465.html
count(): Parameter must be an array or an object that implements Countable 报错问题解决
后台从PHP7.0版本升级到7.2版本就报这个错误,是由于PHP7.2版本中将严格执行类型区分,参数类型不正确,将会出现警告,所以需要在使用count方法时注意参数的值
要不去检查参数的类型是否正确
要不就再换回PHP的版本
今天关于Java Error - trustAnchors parameter must be non-empty的介绍到此结束,谢谢您的阅读,有关atlbase.h(5853) : error C2664: ''memcmp'' : cannot convert parameter 1 from ''const struct _GUID'' to ''const void *''、Bae上测试新浪第三方登录,报the trustAnchors parameter must be non-empty、Caused by: java.lang.NoSuchMethodError: org.apache.poi.util.TempFile.setTempFileCreationStrategy、count(): Parameter must be an array or an object that implements Countable 报错问题解决等更多相关知识的信息可以在本站进行查询。
本文标签: