Jayon / weibo4j

Automatically exported from code.google.com/p/weibo4j
Other
0 stars 0 forks source link

OAuth4Code.java #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run this,go to a web.But the web cann't open.It said "HTTP 500 
内部服务器错误"
2.
3.

What is the expected output? What do you see instead?
I expected return code,but the web can't open instead.

What version of the product are you using? On what operating system?
I use weibo4j-oauth2-beta2.0.zip,windows 7.

Please provide any additional information below.

Original issue reported on code.google.com by mofan...@gmail.com on 25 Apr 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Caused by: javax.net.ssl.SSLKeyException: RSA premaster secret error
    at com.sun.net.ssl.internal.ssl.RSAClientKeyExchange.<init>(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknown Source)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
    at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
    at java.io.BufferedOutputStream.flush(Unknown Source)
    at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:506)
    at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2114)
    at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
    at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    at weibo4j.http.HttpClient.httpRequest(HttpClient.java:397)
    ... 81 more
Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret 
KeyGenerator not available
    at javax.crypto.KeyGenerator.<init>(DashoA13*..)
    at javax.crypto.KeyGenerator.getInstance(DashoA13*..)
    at com.sun.net.ssl.internal.ssl.JsseJce.getKeyGenerator(Unknown Source)
    ... 100 more
为什我在本地执行javac的时候运行这个类不会报错 
但是一到tomcat服务器上就报这样的错误呢 我的jre是1.6 
请问有没有什么好的解决方案么?

Original comment by wanglong...@gmail.com on 7 Aug 2012 at 3:10