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下

3打包client报错,应该先要关掉tomcat进程

Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to release-proxy (http://nexus.service.ops.welab.co:8081/nexus/content/groups/public): nexus.service.ops.welab.co: Unknown host nexus.service.ops.welab.co -> [He

 

posted @ 2018-06-27 15:16  YOU_CAN  阅读(3504)  评论(0编辑  收藏  举报