开发者社区> 问答> 正文

Endpoint http server stop or IO error: socket closed

官网aliyun-sdk-mns-samples-1.1.1.zip,解压配置.aliyun-mns.properties,
运行QueueSample正常,运行TopicSample出现如下问题:
start endpoint
Listening on port 8080
DA2DC366C6B9E424-1-15282609F94-200000001
F664F17F2C3AA5E4E5B64EFB519C516D
DA2DC366C6B9E424-1-15282609FEA-200000002
38AC4C05D762D12C00255C28E2C8B621
endpoint stop
Endpoint http server stop or IO error: socket closed
start endpoint
Listening on port 8089
230F9714646276D9-1-1528260E08D-200000001
72F84074E98AB5B1E8A1B16632579C85
230F9714646276D9-1-1528260E0B5-200000002
49973AD581D9929938C403B66C3999B2

at com.aliyun.mns.client.impl.AbstractAction.execute(AbstractAction.java:122)
at com.aliyun.mns.client.CloudTopic.unsubscribe(CloudTopic.java:330)
at com.aliyun.mns.samples.Sample.publishMsgUsingSimplifiedFormat(Sample.java:747)
at com.aliyun.mns.samples.Sample.runTopic(Sample.java:940)
at com.aliyun.mns.samples.TopicSample.main(TopicSample.java:7)

Caused by: org.apache.http.ConnectionClosedException: Connection closed

at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.endOfInput(HttpAsyncRequestExecutor.java:321)
at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(DefaultNHttpClientConnection.java:263)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:81)
at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(InternalIODispatch.java:39)
at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:116)
at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:164)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:339)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:317)
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:278)
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:106)
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:590)
at java.lang.Thread.run(Unknown Source)

Endpoint http server stop or IO error: socket closed
endpoint stop
请各位大神帮忙分析一下哦!

展开
收起
jjxiaoluo 2016-01-27 17:22:27 4261 0
1 条回答
写回答
取消 提交回答
  • 旺旺:nectar2。

    您好,

    是否能贴中您的 aliyun-mns.properties 相关内容呢?

    2019-07-17 18:26:52
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
阿里巴巴HTTP 2.0实践及无线通信协议的演进之路 立即下载
多IO线程优化版 立即下载
Data as a Service - 数据即服务 立即下载