java.net.SocketException: Unexpected end of file from server

at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:782)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:641)
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:779)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:641)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1218)
    at org.com.utils.NetUtil.post(NetUtil.java:64)
    at org.com.action.ModifyShopLngLatAction.searchAddressForUpdate(ModifyShopLngLatAction.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)
    at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:264)
    at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)

原因:http URL中包含了特殊字符  例如空格、#、\n、等

时间: 2024-10-08 18:11:28

java.net.SocketException: Unexpected end of file from server的相关文章

Unexpected end of file from server 服务器访问问题导致

Caused by: java.net.SocketException: SocketException invoking http://xxxx/cxf/xh/creditInterface?wsdl: Unexpected end of file from server    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)    at sun.reflect.NativeConstructorA

安装Java的IDE Eclipse时出现java.net.SocketException,出现错误Installer failed,show.log

ERROR: org.eclipse.equinox.p2.transport.ecf code=1002 Unable to read repository at http://download.eclipse.org/oomph/updates/milestone/latest/content.xml. java.net.SocketException: Software caused connection abort: recv failed at java.net.SocketInput

Linux上Tomcat访问异常java.net.SocketException: Too many open files

tomcat部署在Linux系统上,访问出现异常:java.net.SocketException: Too many open files 原因:对文件的打开个数超过系统默认上限 利用命令ulimit -a可以看到系统默认open file设置为1024 处理方法: 1.在/etc/pam.d/login文件中添加 session    required     /usr/lib64/security/pam_limits.so 注:64位系统为/usr/lib64/security/pam_

转:JAVA.NET.SOCKETEXCEPTION: TOO MANY OPEN FILES解决方法

最近随着网站访问量的提高把web服务器移到linux下了,在移服务器的第二天,tomcat频繁的报 java.net.SocketException: Too many open files错误,错误日志达到了100多兆,郁闷了,windows上运行了很长 时间都没出现这个错误,后来才知道linux对进程的打开文件数是有限制的. 用命令ulimit -a查看 [[email protected] security]# ulimit -acore file size        (blocks,

java.io.IOException: java.io.EOFException: Unexpected end of input stream错误

报错现象: Diagnostic Messages for this Task:Error: java.io.IOException: java.io.EOFException: Unexpected end of input stream at org.apache.hadoop.hive.io.HiveIOExceptionHandlerChain.handleRecordReaderNextException(HiveIOExceptionHandlerChain.java:121) at

Linux下报 java.net.SocketException权限不够 异常解决

转载自:http://wangchongan.com/articles/java-net-socket-exception-permission-denied.html 今天在Linux下用Jetty把一个应用启动起来报权限不够异常.其实原因很简单,但是如果一时疏忽可能会习惯性地google一把,我就google了一把,但是发现网上关于这个问题的内容很少.所以我特记录一下,希望能给遇到同样问题的同学有帮助. 异常内容如下: HSFJettyWebAppContext replace servle

nternal Exception java.net.socketexception Connection Reset Error : A Guide

Copy from http://www.minecraftman.com/internal-exception-java-net-socketexception-connection-reset/ Internal Exception java.net.socketexception Connection Reset Error : A Guide The Internal Exception java.net.socketexception Connection Reset error me

JAVA.NET.SOCKETEXCEPTION: TOO MANY OPEN FILES解决方法

最近随着网站访问量的提高把web服务器移到linux下了,在移服务器的第二天,tomcat频繁的报 java.net.SocketException: Too many open files错误,错误日志达到了100多兆,郁闷了,windows上运行了很长 时间都没出现这个错误,后来才知道linux对进程的打开文件数是有限制的. 用命令ulimit -a查看 [root@test security]# ulimit -a core file size        (blocks, -c) 0

java.net.SocketException: socket closed

在使用socket编程的时候,发现当使用完getInputStream方法后,再获取OutputStream就会报 java.net.SocketException: socket closed错误 看到JAVA api中写到 java.net.Socket.getInputStream方法: getInputStream public InputStream getInputStream()throws IOException 返回此套接字的输入流. 如果此套接字具有关联的通道,则所得的输入流