본문 바로가기

JAVA/오류

오류 - HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException

오류내용


HTTP Status 500 - Request processing failed; nested exception is java.lang.NullPointerException


MemberDao Error : org.apache.ibatis.exceptions.PersistenceException: 

### Error building SqlSession.

### The error may exist in SQL Mapper Configuration

### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/hanb/data/db.properties

RestaurantDao Error : org.apache.ibatis.exceptions.PersistenceException: 

### Error building SqlSession.

### The error may exist in SQL Mapper Configuration

### Cause: org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/hanb/data/db.properties

INFO : org.springframework.web.servlet.DispatcherServlet - FrameworkServlet 'appServlet': initialization completed in 306 ms


에러메세지 중에 ### 이 뜨면 xml 에서 에러 난 것


해결방법

configuration - typeAliases - typeAlias 부분에 설정을 안해줬기 때문에 에러남

밑에 스크린샷처럼 추가해서 오류 해결하기




오류내용 스크린샷




해결방법 스크린샷