Azure Service Bus超时异常

时间:2013-06-27 10:57:45

标签: java azure servicebus

我正在开发一个将Brokered Messages发布到Azure Service Bus Topics的Java应用程序。

消息正文是一个类似于此的数据结构:

字符串

字符串

内部

地图

我还在Brokered Message中添加了一个属性。

好吧,一切都顺利进行,直到地图大小变为25或更大,然后我一遍又一遍地得到以下错误:

    jun 27, 2013 12:45:52 PM com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusExceptionProcessor processCatch
WARNING: com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:151)
        at com.microsoft.windowsazure.services.serviceBus.implementation.WrapFilter.handle(WrapFilter.java:50)
        at com.microsoft.windowsazure.services.core.UserAgentFilter.handle(UserAgentFilter.java:62)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.voidHandle(WebResource.java:704)
        at com.sun.jersey.api.client.WebResource.access$400(WebResource.java:74)
        at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:553)
        at com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusRestProxy.sendMessage(ServiceBusRestProxy.java:134)
        at com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusRestProxy.sendTopicMessage(ServiceBusRestProxy.java:240)
        at com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusExceptionProcessor.sendTopicMessage(ServiceBusExceptionProcessor.java:122)
        at com.sensingcontrol.nassist.libs.osgi.servicebus.impl.ServiceBusImpl.publishWithProperties(ServiceBusImpl.java:301)
        at com.sensingcontrol.nassist.libs.osgi.servicebus.impl.ServiceBusImpl.publishWithProperties(ServiceBusImpl.java:1)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater.sendUpdateResponse(Updater.java:207)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater.getInstalledPlugins(Updater.java:124)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater.access$2(Updater.java:111)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater$1.callback(Updater.java:106)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater$1.callback(Updater.java:1)
        at com.sensingcontrol.nassist.libs.osgi.servicebus.impl.ServiceBusImpl$MessageReceiver.run(ServiceBusImpl.java:246)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:150)
        at java.net.SocketInputStream.read(SocketInputStream.java:121)
        at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
        at sun.security.ssl.InputRecord.read(InputRecord.java:480)
        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)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:633)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:249)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
        ... 18 more

com.microsoft.windowsazure.services.core.ServiceTimeoutException: Read timed out
        at com.microsoft.windowsazure.services.core.utils.ServiceExceptionFactory.populate(ServiceExceptionFactory.java:94)
        at com.microsoft.windowsazure.services.core.utils.ServiceExceptionFactory.process(ServiceExceptionFactory.java:39)
        at com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusExceptionProcessor.processCatch(ServiceBusExceptionProcessor.java:76)
        at com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusExceptionProcessor.sendTopicMessage(ServiceBusExceptionProcessor.java:128)
        at com.sensingcontrol.nassist.libs.osgi.servicebus.impl.ServiceBusImpl.publishWithProperties(ServiceBusImpl.java:301)
        at com.sensingcontrol.nassist.libs.osgi.servicebus.impl.ServiceBusImpl.publishWithProperties(ServiceBusImpl.java:1)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater.sendUpdateResponse(Updater.java:207)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater.getInstalledPlugins(Updater.java:124)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater.access$2(Updater.java:111)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater$1.callback(Updater.java:106)
        at com.sensingcontrol.nassist.drivers.driver4noksmodbus.osgi.updater.Updater$1.callback(Updater.java:1)
        at com.sensingcontrol.nassist.libs.osgi.servicebus.impl.ServiceBusImpl$MessageReceiver.run(ServiceBusImpl.java:246)
        at java.lang.Thread.run(Thread.java:722)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:150)
        at java.net.SocketInputStream.read(SocketInputStream.java:121)
        at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
        at sun.security.ssl.InputRecord.read(InputRecord.java:480)
        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)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:633)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:579)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1322)
        at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
        at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler._invoke(URLConnectionClientHandler.java:249)
        at com.sun.jersey.client.urlconnection.URLConnectionClientHandler.handle(URLConnectionClientHandler.java:149)
        at com.microsoft.windowsazure.services.serviceBus.implementation.WrapFilter.handle(WrapFilter.java:50)
        at com.microsoft.windowsazure.services.core.UserAgentFilter.handle(UserAgentFilter.java:62)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.voidHandle(WebResource.java:704)
        at com.sun.jersey.api.client.WebResource.access$400(WebResource.java:74)
        at com.sun.jersey.api.client.WebResource$Builder.post(WebResource.java:553)
        at com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusRestProxy.sendMessage(ServiceBusRestProxy.java:134)
        at com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusRestProxy.sendTopicMessage(ServiceBusRestProxy.java:240)
        at com.microsoft.windowsazure.services.serviceBus.implementation.ServiceBusExceptionProcessor.sendTopicMessage(ServiceBusExceptionProcessor.java:122)
        ... 9 more

有什么想法吗?我不认为我的最大尺寸接近64kb。

三江源!

0 个答案:

没有答案