Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- Open Close Principal
- try - with - resources
- AfterMapping
- 개방 폐쇄 원칙
- Reading HttpServletRequest Multiple Times
- mapstruct
- Java Rest
- 데이터 압축
- Sub Bytes
- Java Singleton
- mTLS
- 바이트 절삭
- Tomcat DBCP
- Unchecked Exception
- Jndi DataSource
- Graphql Client
- Socket is closed
- graphql
- java
- Checked Exception
- tomcat jndi
- Srping MVC
- 이중정렬
- HandlerMethodArgumentResolver
- 상호 인증
- NoUniqueBeanDefinitionException
- requestheaderdto
- Request Body 여러 번 사용
- WildFly
- Java Graphql
Archives
- Today
- Total
목록Socket is closed (1)
Developer Sang Guy
Socket is closed
SocketUtil 클래스를 생성하여 Socket 통신 테스트를 진행하였더니 "Socket is closed" 라는 에러를 만나게 되었다. 해당 에러는 소켓을 사용하려 할 때 이미 소켓이 닫혀 버린 경우 발생하는 에러이다. Socket.class public OutputStream getOutputStream() throws IOException { if (isClosed()) throw new SocketException("Socket is closed"); if (!isConnected()) throw new SocketException("Socket is not connected"); if (isOutputShutdown()) throw new SocketException("Socket output..
Java
2022. 12. 22. 13:27