简体   繁体   English

java.net.SocketException:服务器中的文件意外结束[但是此消息仅与一个特定的用户登录一起出现

[英]java.net.SocketException:Unexpected end of file from the server [but this message comes only with one particular user login

We have a client server application which runs using spring remoting framework and we are using jetty server and Java 1.7. 我们有一个使用Spring Remoting框架运行的客户端服务器应用程序,并且正在使用Jetty服务器和Java 1.7。 We deliver both client and server to the customers. 我们为客户提供客户和服务器。

At one of customer's office, for one of the user login, he is getting this Exception which is mentioned in the title of the postjava.net.SocketException:Unexpected end of file from the server. 在客户办公室之一中,对于一个用户登录名,他正在获取此Exception,该异常在postjava.net.SocketException的标题中提到:来自服务器的文件末尾。 He is actually doing the search for something which makes a server call and finally he ends up getting this error in the error log. 他实际上是在进行搜索,以便进行服务器调用,最后,他最终在错误日志中得到此错误。

The weird thing is, nobody else in the Customer's office gets this error. 奇怪的是,客户办公室中没有其他人会收到此错误。 It is very weird. 这很奇怪。

And also i googled about this exception but did not get appropriate answer. 我也用谷歌搜索这个异常,但是没有得到适当的答案。

Please provide your suggestions. 请提供您的建议。

org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://192.168.13.211:6094/SearchFieldServer]; nested exception is ava.net.SocketException: Unexpected end of file from server at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:211)
    at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:144)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy69.search(Unknown Source)
    at se.transware.awt.SearchFieldModel.setObjectIdAndReload(SearchFieldModel.java:329)
    at se.transware.awt.SearchFieldModel.setObjectIdAndReload(SearchFieldModel.java:293)
    at se.transware.awt.SearchFieldModel.setObjectID(SearchFieldModel.java:282)
    at se.transware.awt.SearchField.setOid(SearchField.java:740)
    at se.transware.tt.client.register.CustomerClientRegGUI.load(CustomerClientRegGUI.java:3885)
    at se.transware.tt.client.register.CustomerClientRegLogic.pseudoConstructor(CustomerClientRegLogic.java:786)
    at se.transware.tt.client.main.ModuleController.flipApp(ModuleController.java:222)
    at se.transware.tt.client.main.SystemResources.flipApp(SystemResources.java:260)
    at se.transware.tt.client.register.RegObjectsTableLogicClientAdapter.editRegObject(RegObjectsTableLogicClientAdapter.java:511)
    at se.transware.tt.client.register.RegObjectsTable2$18.mouseClicked(RegObjectsTable2.java:1150)
    at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$200(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.awt.EventQueue$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.awt.EventQueue$4.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
    at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at java.net.HttpURLConnection.getResponseCode(Unknown Source)
    at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.validateResponse(SimpleHttpInvokerRequestExecutor.java:138)
    at org.springframework.remoting.httpinvoker.SimpleHttpInvokerRequestExecutor.doExecuteRequest(SimpleHttpInvokerRequestExecutor.java:62)
    at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:134)
    at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:191)
    at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:173)
    at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:141)
    ... 45 more

Here are some links which you probably already found : 这是您可能已经找到的一些链接:

https://forums.oracle.com/forums/thread.jspa?messageID=7076649 http://www.coderanch.com/t/207583/sockets/java/java-net-SocketException-Unexpected-file http://cxf.547215.n5.nabble.com/Caused-by-java-net-SocketException-Unexpected-end-of-file-from-server-td4715340.html https://forums.oracle.com/forums/thread.jspa?messageID=7076649 http://www.coderanch.com/t/207583/sockets/java/java-net-SocketException-Unexpected-file http:// cxf.547215.n5.nabble.com/由java-net-SocketException引起-来自服务器的意外文件结尾-td4715340.html

Additionally, if you can share some code snippet or stack trace we can share more realistic comments on this issue. 此外,如果您可以共享一些代码段或堆栈跟踪,我们可以就此问题共享更切合实际的注释。 Maybe it is caused by some security options of the client facing this issue. 可能是由于面对此问题的客户端的某些安全选项引起的。

Are all customers configuration the same? 所有客户的配置都一样吗?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 java.net.SocketException:来自服务器的文件意外结束 - java.net.SocketException: Unexpected end of file from server 引起:java.net.SocketException:来自服务器的文件意外结束 - Caused by: java.net.SocketException: Unexpected end of file from server 异常:java.net.SocketException:来自服务器的文件意外结束 - Exception: java.net.SocketException: Unexpected end of file from server Java简单代码:java.net.SocketException:来自服务器的文件意外结束 - Java simple code: java.net.SocketException: Unexpected end of file from server URLConnection无法发送完整的URL(java.net.SocketException:服务器上的文件意外结束) - URLConnection does not send full URL (java.net.SocketException: Unexpected end of file from server) Solr SimplePostTool:读取响应时出现IOException:java.net.SocketException:服务器中的文件意外结束 - Solr SimplePostTool: IOException while reading response: java.net.SocketException: Unexpected end of file from server javax.ws.rs.ProcessingException:java.net.SocketException:服务器中的文件意外结束 - javax.ws.rs.ProcessingException : java.net.SocketException: Unexpected end of file from server HttpUrlConnection getOutputStream()抛出java.net.SocketException:服务器上的文件意外结束 - HttpUrlConnection getOutputStream() throwing java.net.SocketException: Unexpected end of file from server (SAXON DTD)java.net.SocketException:来自服务器的文件意外结束 - (saxon dtd)java.net.SocketException: Unexpected end of file fromserver org.testng.TestNGException:java.net.SocketException:使用 Selenium 和 TestNG 和 Maven 的服务器错误文件意外结束 - org.testng.TestNGException: java.net.SocketException: Unexpected end of file from server error using Selenium with TestNG and Maven
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM