인프런 커뮤니티 질문&답변
주문 내역(에러)
작성
·
1.9K
0
주문내역을 클릭하면 이런 에러가 발생합니다.
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Apr 05 11:10:58 KST 2022
There was an unexpected error (type=Internal Server Error, status=500).
org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: o near line 1, column 67 [select o from jpabook.jpashop.domain.Order o join o.member mWhere o.status = :statusand m.name like :name]; nested exception is java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: o near line 1, column 67 [select o from jpabook.jpashop.domain.Order o join o.member mWhere o.status = :statusand m.name like :name]
org.springframework.dao.InvalidDataAccessApiUsageException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: o near line 1, column 67 [select o from jpabook.jpashop.domain.Order o join o.member mWhere o.status = :statusand m.name like :name]; nested exception is java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: o near line 1, column 67 [select o from jpabook.jpashop.domain.Order o join o.member mWhere o.status = :statusand m.name like :name]
orderController class입니다.
html은 똑같이 했고 application.yml입니다.
order class 입니다.
혼자서 해결해보려 했으나 실패했습니다..
답변 1
2
안녕하세요. 이동훈님, 공식 서포터즈 David입니다.
org.hibernate.hql.internal.ast.QuerySyntaxException: unexpected token: o near line 1, column 67 [select o from jpabook.jpashop.domain.Order o join o.member mWhere o.status = :statusand m.name like :name];
mWhere => m Where로 고쳐주신 뒤 다시 시도해주세요.
그리고 OrderRepository쪽 코드도 함께 올려주세요.
감사합니다.






바로 해결했습니다!! 감사합니다