注册

官方给的emchat-server-java怎么用?

本帖最后由 zhllineme 于 2015-5-9 13:23 编辑

如题,急啊,我把里面的java代码弄到myeclipse里,官方给的lib压缩包也解压导进去了,但有错许,com.easemob.server.example.comm.*,这个包下面的类显示红叉,是缺少那个jar包吗?
已邀请:
不好意思,我导包错了
我的response.readEntity报错,你的好着么?
我用的java代码,gradlew.bat eclipse的时候报错了,有没有遇到过啊?
报错内容:Downloading https://services.gradle.org/distributions/gradle-1.12-bin.zip
................................................................................
................................................................................
................................................................................
................................................................................
............................................................................
Exception in thread "main" java.lang.RuntimeException: javax.net.ssl.SSLExceptio
n: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketExce
ption: Connection reset
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:78)
        at org.gradle.wrapper.Install.createDist(Install.java:44)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:55)
Caused by: javax.net.ssl.SSLException: Connection has been shutdown: javax.net.s
sl.SSLException: java.net.SocketException: Connection reset
        at sun.security.ssl.SSLSocketImpl.checkEOF(SSLSocketImpl.java:1476)
        at sun.security.ssl.AppInputStream.available(AppInputStream.java:59)
        at java.io.BufferedInputStream.available(BufferedInputStream.java:399)
        at sun.net.www.MeteredStream.available(MeteredStream.java:170)
        at sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:85)
        at java.io.FilterInputStream.close(FilterInputStream.java:181)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(Htt
pURLConnection.java:3123)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:71)
        at org.gradle.wrapper.Download.download(Download.java:42)
        at org.gradle.wrapper.Install$1.call(Install.java:57)
        at org.gradle.wrapper.Install$1.call(Install.java:44)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:65)
        ... 3 more
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection rese
t
        at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)
        at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1842)
        at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:180
6)
        at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:175
1)
        at sun.security.ssl.AppInputStream.read(AppInputStream.java:113)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:273)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
        at sun.net.www.MeteredStream.read(MeteredStream.java:134)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Http
URLConnection.java:3053)
        at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(Http
URLConnection.java:3047)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:60)
        ... 7 more
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:196)
        at java.net.SocketInputStream.read(SocketInputStream.java:122)
        at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
        at sun.security.ssl.InputRecord.readV3Record(InputRecord.java:554)
        at sun.security.ssl.InputRecord.read(InputRecord.java:509)
        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:927)
        at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:884)

        at sun.security.ssl.AppInputStream.read(AppInputStream.java:102)
        ... 14 more

要回复问题请先登录注册