org.apache.catalina.connector.ClientAbortException: java.io.IOException: Connection reset by peer

//Error log org.apache.catalina.connector.ClientAbortException: java.io.IOException: Connection reset by peer at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:351) at org.apache.catalina.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:776) at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:681) at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:386) at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:364) at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96) at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:2159) at com.fasterxml.jackson.core.json.UTF8JsonGenerator._writeStringSegments(UTF8JsonGenerator.java:1302) at com.fasterxml.jackson.core.json.UTF8JsonGenerator.writeString(UTF8JsonGenerator.java:502) at com.fasterxml.jackson.databind.ser.std.StringSerializer.serialize(StringSerializer.java:41) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider._serialize(DefaultSerializerProvider.java:480) at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:319) at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1516) at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:1006) at org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:343) at org.springframework.http.converter.AbstractGenericHttpMessageConverter.write(AbstractGenericHttpMessageConverter.java:104) at org.springframework.web.servlet.mvc.method.annotation.AbstractMessageConverterMethodProcessor.writeWithMessageConverters(AbstractMessageConverterMethodProcessor.java:277) at org.springframework.web.servlet.mvc.method.annotation.RequestResponseBodyMethodProcessor.handleReturnValue(RequestResponseBodyMethodProcessor.java:181) at org.springframework.web.method.support.HandlerMethodReturnValueHandlerComposite.handleReturnValue(HandlerMethodReturnValueHandlerComposite.java:82) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:123) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at […]

Android Studio plays video and audio files and solves the project error java.lang.RuntimeException: java.io.IOException: setDataSource failed.

1: Use MediaPlayer to play audio files to achieve play, pause, and replay functions. 1. Create a new blank project MediaPlayer, create a new directory raw under res, and put music.mp3 into the raw directory, as shown in the following figure: 2.activity_main.xml Use linear layout LinearLayout, arrange vertically android:orientation=”vertical”, and place three buttons. The code […]

Regarding the problem of java.io.UncheckedIOException: Cannot delete C:\Users\guo\AppData\Local\Temp\tomcat.8081

First of all, its error report is like this. As long as you encounter this error, it means that the InputStream stream has not been closed after use. Just inputStream.close() and it will be done java.io.UncheckedIOException: Cannot delete C:\Users\guo\AppData\Local\Temp\tomcat.8081.8076585834079724671\work\Tomcat\localhost\ROOT\upload_00daa733_afe5_4d51_a016_0ed308a7e006_00000000.t mp at org.apache.tomcat.util.http.fileupload.disk.DiskFileItem.delete(DiskFileItem.java:431) ~[tomcat-embed-core-9.0.79.jar:9.0.79] at org.apache.catalina.core.ApplicationPart.delete(ApplicationPart.java:53) ~[tomcat-embed-core-9.0.79.jar:9.0.79] at org.springframework.web.multipart.support.StandardServletMultipartResolver.cleanupMultipart(StandardServletMultipartResolver.java:134) ~[spring-web-5.3.29.jar:5.3.29] at org.springframework.web.servlet.DispatcherServlet.cleanupMultipart(DispatcherServlet.java:1251) [spring-webmvc-5.3.29.jar:5.3.29] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1108) [spring-webmvc-5.3.29.jar:5.3.29] […]

[Spring] The interface for exporting data to Excel reports java.io.IOException: UT010029: Stream is closed error

The interface for exporting data to Excel reported a java.io.IOException: UT010029: Stream is closed error During the internship, the instructor asked me to write a function to export platform information to Excel. After writing it, I found that the file was exported normally, but the console kept reporting a Stream is closed error. After searching […]

ClientAbortException: java.io.IOException: Software on your host aborted an established connection.

Calledee Service 20:52:57.530 [http-nio-50009-exec-7] ERROR c.r.c.s.h.GlobalExceptionHandler – [handleException,93] – Requesting address ‘/findInner’, a system exception occurred. org.apache.catalina.connector.ClientAbortException: java.io.IOException: Software on your host aborted an established connection. at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353) at org.apache.catalina.connector.OutputBuffer.flushByteBuffer(OutputBuffer.java:784) at org.apache.catalina.connector.OutputBuffer.append(OutputBuffer.java:689) at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:388) at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:366) at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:96) at org.springframework.util.StreamUtils$NonClosingOutputStream.write(StreamUtils.java:287) at com.fasterxml.jackson.core.json.UTF8JsonGenerator._flushBuffer(UTF8JsonGenerator.java:2171) at com.fasterxml.jackson.core.json.UTF8JsonGenerator.writeString(UTF8JsonGenerator.java:515) at com.fasterxml.jackson.databind.SerializerProvider.defaultSerializeDateValue(SerializerProvider.java:1199) at com.fasterxml.jackson.databind.ser.std.DateTimeSerializerBase._serializeAsString(DateTimeSerializerBase.java:211) at com.fasterxml.jackson.databind.ser.std.DateSerializer.serialize(DateSerializer.java:51) at com.fasterxml.jackson.databind.ser.std.DateSerializer.serialize(DateSerializer.java:15) at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:728) at […]

org.springframework.amqp.AmqpIOException: java.io.IOException

Guli mall rabbitMQ module test class creates switch and reports error Error details: org.springframework.amqp.AmqpIOException: java.io.IOException at org.springframework.amqp.rabbit.support.RabbitExceptionTranslator.convertRabbitAccessException(RabbitExceptionTranslator.java:71) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.SimpleConnection.createChannel(SimpleConnection.java:68) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$ChannelCachingConnectionProxy.createBareChannel(CachingConnectionFactory.java:1375) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$ChannelCachingConnectionProxy.access$200(CachingConnectionFactory.java:1361) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.doCreateBareChannel(CachingConnectionFactory.java:674) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.createBareChannel(CachingConnectionFactory.java:657) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.getCachedChannelProxy(CachingConnectionFactory.java:627) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.getChannel(CachingConnectionFactory.java:518) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.CachingConnectionFactory.access$1700(CachingConnectionFactory.java:102) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.connection.CachingConnectionFactory$ChannelCachingConnectionProxy.createChannel(CachingConnectionFactory.java:1380) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.core.RabbitTemplate.doExecute(RabbitTemplate.java:2082) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:2050) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at org.springframework.amqp.rabbit.core.RabbitTemplate.execute(RabbitTemplate.java:2030) ~[spring-rabbit-2.1.8.RELEASE.jar:2.1.8.RELEASE] at […]

Problems encountered in SHA256withRSA encrypted signature verification: Could not parse certificate: java.io.IOException: Empty input

Today, when I was doing something about SHA256withRSA encryption, decryption and signature verification, I encountered four errors. In fact, they are all one problem, that is, this line of code reports an error: X509Certificate cert = (X509Certificate)cf.generateCertificate(stream); The following is the error message: java.io.IOException: Short read of DER length java.io.IOException: Incomplete BER/DER data readOneBlock(InputStream is) […]

kafka java.io.IOException: Connection to 1 was disconnected before the response was read.

Phenomenon: k8s deployment kafka broker frequently restarts [root@k8s-master-01 ~]# kubectl get po | grep kafka alertmanager-kafka-forwarder-deployment-l7zmh 1/1 Running 0 32d kafka-0 0/1 CrashLoopBackOff 5 (49s ago) 32m kafka-1 1/1 Running 5 (3m16s ago) 31m kafka-2 1/1 Running 2 (9m38s ago) 31m kafka-zookeeper-0 1/1 Running 0 92d kafka-zookeeper-1 1/1 Running 0 92d kafka-zookeeper-2 1/1 Running 0 […]

[Java exception system] (2) IOException analysis of exception system…

IOException in Java exception system 1. IOException 1. LoadException file loading exception 2. EOFException read error 3. FileNotFoundException File not found exception 4. InterruptedIOException thread interruption or timeout exception 5. ObjectStreamException serialization or deserialization exception 6. UTFDataFormatException Illegal UTF-8 encoded data exception 7. UnknownServiceException Unknown protocol or service exception 8. ProtocolException error protocol exception 9. […]