服务端怎么用,JetBrains的工具idea启动

weizexin 2020-9-22 882

服务端配置好ip、数据库后,启动报错以下内容:

log4j:WARN No appenders could be found for logger (cn.wildfirechat.sdk.utilities.AdminHttpUtils). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. org.apache.http.conn.HttpHostConnectException: Connect to localhost:18080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.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(InternalHttpClient.java:185) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56) at cn.wildfirechat.sdk.utilities.AdminHttpUtils.httpJsonPost(AdminHttpUtils.java:71) at cn.wildfirechat.sdk.UserAdmin.createUser(UserAdmin.java:29) at cn.wildfirechat.sdk.Main.testUser(Main.java:62) at cn.wildfirechat.sdk.Main.testAdmin(Main.java:36) at cn.wildfirechat.sdk.Main.main(Main.java:24)

最新回复 (2)
  • HeavyRain 2020-9-23
    引用 2
    看着像log4j的错误,我们没有遇到这个问题
  • weizexin 2020-9-24
    引用 3
    HeavyRain 看着像log4j的错误,我们没有遇到这个问题
    我是windows下用ide启动的,不是linux,你们可以直接在winodws下启动,不需要添加任何jvm参数吗?

    *注:错误来自这个类(cn.wildfirechat.sdk.utilities.AdminHttpUtils).
返回