본문 바로가기

Issue

(13)
[Java] java.io.NotSerializableException 오류 해결 ⌗ 오류 현상 Caused by: java.io.NotSerializableException: at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeOb..
[Java] JSON parse error 오류 해결 ⌗ 오류 현상 org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Can not construct instance of com.batch.dto.Summary: no suitable constructor found, can not deserialize from Object value (missing default constructor or creator, or perhaps need to add/enable type information?); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not construct ..
[MySQL][MyBatis] Access denied for user, DB 계정 문제 해결 # 오류 현상 ### The error occurred while executing a query ### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.excepti..
[MySQL][MyBatis] Could not create connection to database server. 오류 해결 ⌗ 오류 현상 2019-10-17 12:47:25.568 ERROR [alarm-api,6f546e3a39df132f,6f546e3a39df132f,false] 29694 --- [http-nio-exec-30] o.a.tomcat.jdbc.pool.ConnectionPool [o.a.j.l.DirectJDKLog > log:181] : Unable to create initial connections of pool. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up. ⌗ 해결..
[Java] @RequestBody 로 받은 Jackson 필드명에 대한 고찰 ⌗ 이슈 현상 데이터 필드명을 아래와 같이 되어있어 Controller 에서 RequestBody 어노테이션을 사용해 받고 있던 API 가 있었다.. - API에서 Request로 받는 데이터 @Data public class Data { private long aId; private List productNo; } - API 내용 public void Api (@RequestBody Data) { return service(Data); } 대충 이런 방식으로 API가 있었는데, 테스트하는 과정에서 API에 디버깅 걸어 aId 필드의 데이터를 확인하려 하는데, 계속 전달이 되지 않는 현상이 있었다.. 아니, 이게 무슨일인가 ? 늘상 만들던 거라 절때 이상하리 없을 만했는데, 데이터형이 안맞아서 그런건지 ..

❥ CHATI Github