luckyframe的一些坑

Posted wanghongye

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了luckyframe的一些坑相关的知识,希望对你有一定的参考价值。

建议使用idea运行

1、第一次运行访问http://localhost:8088/LuckyFrameServer

2、luckyframe提示“javax.net.ssl.SSLKeyException: RSA premaster secret error”解决方法

技术分享图片
2018-06-26 15:19:04:628:main luckyclient.publicclass.remoterinterface.HttpClient
Helper.httpClientGet(HttpClientHelper.java:774) -
ERROR: RSA premaster secret error
javax.net.ssl.SSLKeyException: RSA premaster secret error
        at sun.security.ssl.RSAClientKeyExchange.<init>(Unknown Source)
        at sun.security.ssl.ClientHandshaker.serverHelloDone(Unknown Source)
        at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
        at sun.security.ssl.Handshaker.processLoop(Unknown Source)
        at sun.security.ssl.Handshaker.process_record(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source
)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSock
et(SSLConnectionSocketFactory.java:396)
        at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSL
ConnectionSocketFactory.java:355)
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect
(DefaultHttpClientConnectionOperator.java:142)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(
PoolingHttpClientConnectionManager.java:359)
        at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClie
ntExec.java:381)
        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.
java:237)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java
:185)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java
:111)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttp
Client.java:185)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttp
Client.java:83)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttp
Client.java:108)
        at luckyclient.publicclass.remoterinterface.HttpClientHelper.httpClientG
et(HttpClientHelper.java:765)
        at luckyclient.publicclass.InvokeMethod.callCase(InvokeMethod.java:175)
        at luckyclient.caserun.exinterface.WebTestCaseDebug.oneCaseDebug(WebTest
CaseDebug.java:98)
        at luckyclient.caserun.WebDebugExecute.main(WebDebugExecute.java:27)
Caused by: java.security.NoSuchAlgorithmException: SunTls12RsaPremasterSecret Ke
yGenerator not available
        at javax.crypto.KeyGenerator.<init>(KeyGenerator.java:169)
        at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:223)
        at sun.security.ssl.JsseJce.getKeyGenerator(Unknown Source)
        ... 25 more
2018-06-26 15:19:04:654:main luckyclient.publicclass.InvokeMethod.callCase(Invok
eMethod.java:261) -
ERROR: javax.net.ssl.SSLKeyException: RSA premaster secret error
java.lang.RuntimeException: javax.net.ssl.SSLKeyException: RSA premaster secret
error
        at luckyclient.publicclass.remoterinterface.HttpClientHelper.httpClientG
et(HttpClientHelper.java:775)
        at luckyclient.publicclass.InvokeMethod.callCase(InvokeMethod.java:175)
        at luckyclient.caserun.exinterface.WebTestCaseDebug.oneCaseDebug(WebTest
CaseDebug.java:98)
        at luckyclient.caserun.WebDebugExecute.main(WebDebugExecute.java:27)
Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
        at sun.security.ssl.RSAClientKeyExchange.<init>(Unknown Source)
        at sun.security.ssl.ClientHandshaker.serverHelloDone(Unknown Source)
        at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
        at sun.security.ssl.Handshaker.processLoop(Unknown Source)
        at sun.security.ssl.Handshaker.process_record(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source
)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
        at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSock
et(SSLConnectionSocketFactory.java:396)
        at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSL
ConnectionSocketFactory.java:355)
        at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect
(DefaultHttpClientConnectionOperator.java:142)
        at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(
PoolingHttpClientConnectionManager.java:359)
        at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClie
ntExec.java:381)
        at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.
java:237)
        at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java
:185)
        at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
        at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java
:111)
        at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttp
Client.java:185)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttp
Client.java:83)
        at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttp
Client.java:108)
        at luckyclient.publicclass.remoterinterface.HttpClientHelper.httpClientG
et(HttpClientHelper.java:765)
        ... 3 more
Caused by: java.security.NoSuchAlgorithmException: SunTls12RsaPremasterSecret Ke
yGenerator not available
        at javax.crypto.KeyGenerator.<init>(KeyGenerator.java:169)
        at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:223)
        at sun.security.ssl.JsseJce.getKeyGenerator(Unknown Source)
        ... 25 more
2018-06-26 15:19:04:680:main luckyclient.caserun.exinterface.WebTestCaseDebug.on
eCaseDebug(WebTestCaseDebug.java:101) -
View Code

 

把jre的包放在java -Djava.ext.dirs=./lib下

以上是关于luckyframe的一些坑的主要内容,如果未能解决你的问题,请参考以下文章

python [代码片段]一些有趣的代码#sort

测试驱动中数据库的查询操作与断言

一些恶心的代码片段

当 ViewPager 中的片段出现和消失时如何执行一些代码

创建自己的代码片段(CodeSnippet)

jenkins中遇到的一些坑