这里写了一个接口 导致以下错误,
接口:List findByCategoryTypeIn(List categoryTypeList)
控制台信息:
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 “-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=52818:/Applications/IntelliJ IDEA.app/Contents/bin” -Dfile.encoding=UTF-8 -classpath “/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit-rt.jar:/Applications/IntelliJ IDEA.app/Contents/plugins/junit/lib/junit5-rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/lib/tools.jar:/Users/hxw/Documents/totalworkspace/workspace/sell/target/test-classes:/Users/hxw/Documents/totalworkspace/workspace/sell/target/classes:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter-web/2.1.4.RELEASE/spring-boot-starter-web-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter/2.1.4.RELEASE/spring-boot-starter-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot/2.1.4.RELEASE/spring-boot-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/2.1.4.RELEASE/spring-boot-autoconfigure-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter-logging/2.1.4.RELEASE/spring-boot-starter-logging-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar:/Users/hxw/.m2/repository/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar:/Users/hxw/.m2/repository/org/apache/logging/log4j/log4j-to-slf4j/2.11.2/log4j-to-slf4j-2.11.2.jar:/Users/hxw/.m2/repository/org/apache/logging/log4j/log4j-api/2.11.2/log4j-api-2.11.2.jar:/Users/hxw/.m2/repository/org/slf4j/jul-to-slf4j/1.7.26/jul-to-slf4j-1.7.26.jar:/Users/hxw/.m2/repository/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar:/Users/hxw/.m2/repository/org/yaml/snakeyaml/1.23/snakeyaml-1.23.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter-json/2.1.4.RELEASE/spring-boot-starter-json-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.8/jackson-databind-2.9.8.jar:/Users/hxw/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar:/Users/hxw/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.8/jackson-core-2.9.8.jar:/Users/hxw/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.9.8/jackson-datatype-jdk8-2.9.8.jar:/Users/hxw/.m2/repository/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.9.8/jackson-datatype-jsr310-2.9.8.jar:/Users/hxw/.m2/repository/com/fasterxml/jackson/module/jackson-module-parameter-names/2.9.8/jackson-module-parameter-names-2.9.8.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/2.1.4.RELEASE/spring-boot-starter-tomcat-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.17/tomcat-embed-core-9.0.17.jar:/Users/hxw/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/9.0.17/tomcat-embed-el-9.0.17.jar:/Users/hxw/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/9.0.17/tomcat-embed-websocket-9.0.17.jar:/Users/hxw/.m2/repository/org/hibernate/validator/hibernate-validator/6.0.16.Final/hibernate-validator-6.0.16.Final.jar:/Users/hxw/.m2/repository/javax/validation/validation-api/2.0.1.Final/validation-api-2.0.1.Final.jar:/Users/hxw/.m2/repository/org/jboss/logging/jboss-logging/3.3.2.Final/jboss-logging-3.3.2.Final.jar:/Users/hxw/.m2/repository/com/fasterxml/classmate/1.4.0/classmate-1.4.0.jar:/Users/hxw/.m2/repository/org/springframework/spring-web/5.1.6.RELEASE/spring-web-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-beans/5.1.6.RELEASE/spring-beans-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-webmvc/5.1.6.RELEASE/spring-webmvc-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-aop/5.1.6.RELEASE/spring-aop-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-context/5.1.6.RELEASE/spring-context-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-expression/5.1.6.RELEASE/spring-expression-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter-test/2.1.4.RELEASE/spring-boot-starter-test-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-test/2.1.4.RELEASE/spring-boot-test-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-test-autoconfigure/2.1.4.RELEASE/spring-boot-test-autoconfigure-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/com/jayway/jsonpath/json-path/2.4.0/json-path-2.4.0.jar:/Users/hxw/.m2/repository/net/minidev/json-smart/2.3/json-smart-2.3.jar:/Users/hxw/.m2/repository/net/minidev/accessors-smart/1.2/accessors-smart-1.2.jar:/Users/hxw/.m2/repository/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/Users/hxw/.m2/repository/org/slf4j/slf4j-api/1.7.26/slf4j-api-1.7.26.jar:/Users/hxw/.m2/repository/junit/junit/4.12/junit-4.12.jar:/Users/hxw/.m2/repository/org/assertj/assertj-core/3.11.1/assertj-core-3.11.1.jar:/Users/hxw/.m2/repository/org/mockito/mockito-core/2.23.4/mockito-core-2.23.4.jar:/Users/hxw/.m2/repository/net/bytebuddy/byte-buddy/1.9.12/byte-buddy-1.9.12.jar:/Users/hxw/.m2/repository/net/bytebuddy/byte-buddy-agent/1.9.12/byte-buddy-agent-1.9.12.jar:/Users/hxw/.m2/repository/org/objenesis/objenesis/2.6/objenesis-2.6.jar:/Users/hxw/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/hxw/.m2/repository/org/hamcrest/hamcrest-library/1.3/hamcrest-library-1.3.jar:/Users/hxw/.m2/repository/org/skyscreamer/jsonassert/1.5.0/jsonassert-1.5.0.jar:/Users/hxw/.m2/repository/com/vaadin/external/google/android-json/0.0.20131108.vaadin1/android-json-0.0.20131108.vaadin1.jar:/Users/hxw/.m2/repository/org/springframework/spring-core/5.1.6.RELEASE/spring-core-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-jcl/5.1.6.RELEASE/spring-jcl-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-test/5.1.6.RELEASE/spring-test-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/xmlunit/xmlunit-core/2.6.2/xmlunit-core-2.6.2.jar:/Users/hxw/.m2/repository/mysql/mysql-connector-java/8.0.15/mysql-connector-java-8.0.15.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter-data-jpa/2.1.4.RELEASE/spring-boot-starter-data-jpa-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter-aop/2.1.4.RELEASE/spring-boot-starter-aop-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/org/aspectj/aspectjweaver/1.9.2/aspectjweaver-1.9.2.jar:/Users/hxw/.m2/repository/org/springframework/boot/spring-boot-starter-jdbc/2.1.4.RELEASE/spring-boot-starter-jdbc-2.1.4.RELEASE.jar:/Users/hxw/.m2/repository/com/zaxxer/HikariCP/3.2.0/HikariCP-3.2.0.jar:/Users/hxw/.m2/repository/org/springframework/spring-jdbc/5.1.6.RELEASE/spring-jdbc-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/javax/transaction/javax.transaction-api/1.3/javax.transaction-api-1.3.jar:/Users/hxw/.m2/repository/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar:/Users/hxw/.m2/repository/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar:/Users/hxw/.m2/repository/org/hibernate/hibernate-core/5.3.9.Final/hibernate-core-5.3.9.Final.jar:/Users/hxw/.m2/repository/javax/persistence/javax.persistence-api/2.2/javax.persistence-api-2.2.jar:/Users/hxw/.m2/repository/org/javassist/javassist/3.23.1-GA/javassist-3.23.1-GA.jar:/Users/hxw/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/Users/hxw/.m2/repository/org/jboss/jandex/2.0.5.Final/jandex-2.0.5.Final.jar:/Users/hxw/.m2/repository/org/dom4j/dom4j/2.1.1/dom4j-2.1.1.jar:/Users/hxw/.m2/repository/org/hibernate/common/hibernate-commons-annotations/5.0.4.Final/hibernate-commons-annotations-5.0.4.Final.jar:/Users/hxw/.m2/repository/org/springframework/data/spring-data-jpa/2.1.6.RELEASE/spring-data-jpa-2.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/data/spring-data-commons/2.1.6.RELEASE/spring-data-commons-2.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-orm/5.1.6.RELEASE/spring-orm-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-tx/5.1.6.RELEASE/spring-tx-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/springframework/spring-aspects/5.1.6.RELEASE/spring-aspects-5.1.6.RELEASE.jar:/Users/hxw/.m2/repository/org/projectlombok/lombok/1.18.6/lombok-1.18.6.jar” com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 com.icaot.sell.dao.ProductCategoryDaoTest,findByCategoryTypeInList
objc[8612]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java (0x10fabf4c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x10fb4b4e0). One of the two will be used. Which one is undefined.
22:17:32.960 [main] DEBUG org.springframework.test.context.junit4.SpringJUnit4ClassRunner - SpringJUnit4ClassRunner constructor called with [class com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:32.965 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating CacheAwareContextLoaderDelegate from class [org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate]
22:17:32.975 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating BootstrapContext using constructor [public org.springframework.test.context.support.DefaultBootstrapContext(java.lang.Class,org.springframework.test.context.CacheAwareContextLoaderDelegate)]
22:17:32.995 [main] DEBUG org.springframework.test.context.BootstrapUtils - Instantiating TestContextBootstrapper for test class [com.icaot.sell.dao.ProductCategoryDaoTest] from class [org.springframework.boot.test.context.SpringBootTestContextBootstrapper]
22:17:33.008 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Neither @ContextConfiguration nor @ContextHierarchy found for test class [com.icaot.sell.dao.ProductCategoryDaoTest], using SpringBootContextLoader
22:17:33.012 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.icaot.sell.dao.ProductCategoryDaoTest]: class path resource [com/icaot/sell/dao/ProductCategoryDaoTest-context.xml] does not exist
22:17:33.012 [main] DEBUG org.springframework.test.context.support.AbstractContextLoader - Did not detect default resource location for test class [com.icaot.sell.dao.ProductCategoryDaoTest]: class path resource [com/icaot/sell/dao/ProductCategoryDaoTestContext.groovy] does not exist
22:17:33.013 [main] INFO org.springframework.test.context.support.AbstractContextLoader - Could not detect default resource locations for test class [com.icaot.sell.dao.ProductCategoryDaoTest]: no resource found for suffixes {-context.xml, Context.groovy}.
22:17:33.013 [main] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils - Could not detect default configuration classes for test class [com.icaot.sell.dao.ProductCategoryDaoTest]: ProductCategoryDaoTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration.
22:17:33.063 [main] DEBUG org.springframework.test.context.support.ActiveProfilesUtils - Could not find an ‘annotation declaring class’ for annotation type [org.springframework.test.context.ActiveProfiles] and class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.158 [main] DEBUG org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider - Identified candidate component class: file [/Users/hxw/Documents/totalworkspace/workspace/sell/target/classes/com/icaot/sell/SellApplication.class]
22:17:33.159 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Found @SpringBootConfiguration com.icaot.sell.SellApplication for test class com.icaot.sell.dao.ProductCategoryDaoTest
22:17:33.272 [main] DEBUG org.springframework.boot.test.context.SpringBootTestContextBootstrapper - @TestExecutionListeners is not present for class [com.icaot.sell.dao.ProductCategoryDaoTest]: using defaults.
22:17:33.272 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener, org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionListener, org.springframework.test.context.support.DirtiesContextTestExecutionListener, org.springframework.test.context.transaction.TransactionalTestExecutionListener, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener]
22:17:33.291 [main] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper - Using TestExecutionListeners: [org.springframework.test.context.web.ServletTestExecutionListener@32eff876, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener@8dbdac1, org.springframework.boot.test.mock.mockito.MockitoTestExecutionListener@6e20b53a, org.springframework.boot.test.autoconfigure.SpringBootDependencyInjectionTestExecutionListener@71809907, org.springframework.test.context.support.DirtiesContextTestExecutionListener@3ce1e309, org.springframework.test.context.transaction.TransactionalTestExecutionListener@6aba2b86, org.springframework.test.context.jdbc.SqlScriptsTestExecutionListener@158da8e, org.springframework.boot.test.mock.mockito.ResetMocksTestExecutionListener@74e52303, org.springframework.boot.test.autoconfigure.restdocs.RestDocsTestExecutionListener@47af7f3d, org.springframework.boot.test.autoconfigure.web.client.MockRestServiceServerResetTestExecutionListener@7c729a55, org.springframework.boot.test.autoconfigure.web.servlet.MockMvcPrintOnlyOnFailureTestExecutionListener@3bb9a3ff, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverTestExecutionListener@661972b0]
22:17:33.293 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.294 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.icaot.sell.dao.ProductCategoryDaoTest]22:17:33.303 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.303 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.icaot.sell.dao.ProductCategoryDaoTest]22:17:33.305 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.305 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.305 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.305 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.310 [main] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - Before test class: context [DefaultTestContext@1d2adfbe testClass = ProductCategoryDaoTest, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@36902638 testClass = ProductCategoryDaoTest, locations = ‘{}’, classes = ‘{class com.icaot.sell.SellApplication}’, contextInitializerClasses = ‘[]’, activeProfiles = ‘{}’, propertySourceLocations = ‘{}’, propertySourceProperties = ‘{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}’, contextCustomizers = set[org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@11438d26, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory
D
u
p
l
i
c
a
t
e
J
s
o
n
O
b
j
e
c
t
C
o
n
t
e
x
t
C
u
s
t
o
m
i
z
e
r
@
5
f
a
e
a
d
a
1
,
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
t
e
s
t
.
m
o
c
k
.
m
o
c
k
i
t
o
.
M
o
c
k
i
t
o
C
o
n
t
e
x
t
C
u
s
t
o
m
i
z
e
r
@
0
,
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
t
e
s
t
.
w
e
b
.
c
l
i
e
n
t
.
T
e
s
t
R
e
s
t
T
e
m
p
l
a
t
e
C
o
n
t
e
x
t
C
u
s
t
o
m
i
z
e
r
@
1
a
8
a
8
f
7
c
,
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
t
e
s
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
p
r
o
p
e
r
t
i
e
s
.
P
r
o
p
e
r
t
y
M
a
p
p
i
n
g
C
o
n
t
e
x
t
C
u
s
t
o
m
i
z
e
r
@
0
,
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
t
e
s
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
D
r
i
v
e
r
C
o
n
t
e
x
t
C
u
s
t
o
m
i
z
e
r
F
a
c
t
o
r
y
DuplicateJsonObjectContextCustomizer@5faeada1, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@1a8a8f7c, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory
DuplicateJsonObjectContextCustomizer@5faeada1,org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0,org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@1a8a8f7c,org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0,org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactoryCustomizer@4abdb505], resourceBasePath = ‘src/main/webapp’, contextLoader = ‘org.springframework.boot.test.context.SpringBootContextLoader’, parent = [null]], attributes = map[‘org.springframework.test.context.web.ServletTestExecutionListener.activateListener’ -> true]], class annotated with @DirtiesContext [false] with mode [null].
22:17:33.310 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved @ProfileValueSourceConfiguration [null] for test class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.311 [main] DEBUG org.springframework.test.annotation.ProfileValueUtils - Retrieved ProfileValueSource type [class org.springframework.test.annotation.SystemProfileValueSource] for class [com.icaot.sell.dao.ProductCategoryDaoTest]
22:17:33.332 [main] DEBUG org.springframework.test.context.support.TestPropertySourceUtils - Adding inlined properties to environment: {spring.jmx.enabled=false, org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true, server.port=-1}
. ____ _ __ _ _
/\ / ’ __ _ () __ __ _ \ \ \
( ( )__ | '_ | '| | ’ / ` | \ \ \
\/ )| |)| | | | | || (| | ) ) ) )
’ || .__|| ||| |__, | / / / /
=|_|======|/=////
:: Spring Boot :: (v2.1.4.RELEASE)
2019-04-15 22:17:33.719 INFO 8612 — [ main] c.icaot.sell.dao.ProductCategoryDaoTest : Starting ProductCategoryDaoTest on hanxiaoweidembp with PID 8612 (started by hxw in /Users/hxw/Documents/totalworkspace/workspace/sell)
2019-04-15 22:17:33.721 INFO 8612 — [ main] c.icaot.sell.dao.ProductCategoryDaoTest : No active profile set, falling back to default profiles: default
2019-04-15 22:17:34.478 INFO 8612 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data repositories in DEFAULT mode.
2019-04-15 22:17:34.560 INFO 8612 — [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 69ms. Found 1 repository interfaces.
2019-04-15 22:17:35.070 INFO 8612 — [ main] trationDelegate
B
e
a
n
P
o
s
t
P
r
o
c
e
s
s
o
r
C
h
e
c
k
e
r
:
B
e
a
n
′
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
t
r
a
n
s
a
c
t
i
o
n
.
a
n
n
o
t
a
t
i
o
n
.
P
r
o
x
y
T
r
a
n
s
a
c
t
i
o
n
M
a
n
a
g
e
m
e
n
t
C
o
n
f
i
g
u
r
a
t
i
o
n
′
o
f
t
y
p
e
[
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
t
r
a
n
s
a
c
t
i
o
n
.
a
n
n
o
t
a
t
i
o
n
.
P
r
o
x
y
T
r
a
n
s
a
c
t
i
o
n
M
a
n
a
g
e
m
e
n
t
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration
BeanPostProcessorChecker:Bean′org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration′oftype[org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB
a
f
d
3678
e
]
i
s
n
o
t
e
l
i
g
i
b
l
e
f
o
r
g
e
t
t
i
n
g
p
r
o
c
e
s
s
e
d
b
y
a
l
l
B
e
a
n
P
o
s
t
P
r
o
c
e
s
s
o
r
s
(
f
o
r
e
x
a
m
p
l
e
:
n
o
t
e
l
i
g
i
b
l
e
f
o
r
a
u
t
o
−
p
r
o
x
y
i
n
g
)
L
o
a
d
i
n
g
c
l
a
s
s
‘
c
o
m
.
m
y
s
q
l
.
j
d
b
c
.
D
r
i
v
e
r
′
.
T
h
i
s
i
s
d
e
p
r
e
c
a
t
e
d
.
T
h
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
.
j
p
a
.
i
n
t
e
r
n
a
l
.
u
t
i
l
.
L
o
g
H
e
l
p
e
r
:
H
H
H
000204
:
P
r
o
c
e
s
s
i
n
g
P
e
r
s
i
s
t
e
n
c
e
U
n
i
t
I
n
f
o
[
n
a
m
e
:
d
e
f
a
u
l
t
.
.
.
]
2019
−
04
−
1522
:
17
:
35.741
I
N
F
O
8612
−
−
−
[
m
a
i
n
]
o
r
g
.
h
i
b
e
r
n
a
t
e
.
V
e
r
s
i
o
n
:
H
H
H
000412
:
H
i
b
e
r
n
a
t
e
C
o
r
e
5.3.9.
F
i
n
a
l
2019
−
04
−
1522
:
17
:
35.743
I
N
F
O
8612
−
−
−
[
m
a
i
n
]
o
r
g
.
h
i
b
e
r
n
a
t
e
.
c
f
g
.
E
n
v
i
r
o
n
m
e
n
t
:
H
H
H
000206
:
h
i
b
e
r
n
a
t
e
.
p
r
o
p
e
r
t
i
e
s
n
o
t
f
o
u
n
d
2019
−
04
−
1522
:
17
:
35.886
I
N
F
O
8612
−
−
−
[
m
a
i
n
]
o
.
h
i
b
e
r
n
a
t
e
.
a
n
n
o
t
a
t
i
o
n
s
.
c
o
m
m
o
n
.
V
e
r
s
i
o
n
:
H
C
A
N
N
000001
:
H
i
b
e
r
n
a
t
e
C
o
m
m
o
n
s
A
n
n
o
t
a
t
i
o
n
s
5.0.4.
F
i
n
a
l
2019
−
04
−
1522
:
17
:
36.050
I
N
F
O
8612
−
−
−
[
m
a
i
n
]
o
r
g
.
h
i
b
e
r
n
a
t
e
.
d
i
a
l
e
c
t
.
D
i
a
l
e
c
t
:
H
H
H
000400
:
U
s
i
n
g
d
i
a
l
e
c
t
:
o
r
g
.
h
i
b
e
r
n
a
t
e
.
d
i
a
l
e
c
t
.
M
y
S
Q
L
5
D
i
a
l
e
c
t
2019
−
04
−
1522
:
17
:
36.704
I
N
F
O
8612
−
−
−
[
m
a
i
n
]
j
.
L
o
c
a
l
C
o
n
t
a
i
n
e
r
E
n
t
i
t
y
M
a
n
a
g
e
r
F
a
c
t
o
r
y
B
e
a
n
:
I
n
i
t
i
a
l
i
z
e
d
J
P
A
E
n
t
i
t
y
M
a
n
a
g
e
r
F
a
c
t
o
r
y
f
o
r
p
e
r
s
i
s
t
e
n
c
e
u
n
i
t
′
d
e
f
a
u
l
t
′
2019
−
04
−
1522
:
17
:
37.621
W
A
R
N
8612
−
−
−
[
m
a
i
n
]
o
.
s
.
w
.
c
.
s
.
G
e
n
e
r
i
c
W
e
b
A
p
p
l
i
c
a
t
i
o
n
C
o
n
t
e
x
t
:
E
x
c
e
p
t
i
o
n
e
n
c
o
u
n
t
e
r
e
d
d
u
r
i
n
g
c
o
n
t
e
x
t
i
n
i
t
i
a
l
i
z
a
t
i
o
n
−
c
a
n
c
e
l
l
i
n
g
r
e
f
r
e
s
h
a
t
t
e
m
p
t
:
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
B
e
a
n
C
r
e
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
E
r
r
o
r
c
r
e
a
t
i
n
g
b
e
a
n
w
i
t
h
n
a
m
e
′
r
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
′
d
e
f
i
n
e
d
i
n
c
l
a
s
s
p
a
t
h
r
e
s
o
u
r
c
e
[
o
r
g
/
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
/
b
o
o
t
/
a
u
t
o
c
o
n
f
i
g
u
r
e
/
w
e
b
/
s
e
r
v
l
e
t
/
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
afd3678e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary. 2019-04-15 22:17:35.354 INFO 8612 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2019-04-15 22:17:35.357 WARN 8612 --- [ main] com.zaxxer.hikari.util.DriverDataSource : Registered driver with driverClassName=com.mysql.jdbc.Driver was not found, trying direct instantiation. 2019-04-15 22:17:35.527 INFO 8612 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2019-04-15 22:17:35.672 INFO 8612 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [ name: default ...] 2019-04-15 22:17:35.741 INFO 8612 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.3.9.Final} 2019-04-15 22:17:35.743 INFO 8612 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found 2019-04-15 22:17:35.886 INFO 8612 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final} 2019-04-15 22:17:36.050 INFO 8612 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect 2019-04-15 22:17:36.704 INFO 8612 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default' 2019-04-15 22:17:37.621 WARN 8612 --- [ main] o.s.w.c.s.GenericWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'requestMappingHandlerAdapter' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
afd3678e]isnoteligibleforgettingprocessedbyallBeanPostProcessors(forexample:noteligibleforauto−proxying)Loadingclass‘com.mysql.jdbc.Driver′.Thisisdeprecated.Thenewdriverclassis‘com.mysql.cj.jdbc.Driver′.ThedriverisautomaticallyregisteredviatheSPIandmanualloadingofthedriverclassisgenerallyunnecessary.2019−04−1522:17:35.354INFO8612−−−[main]com.zaxxer.hikari.HikariDataSource:HikariPool−1−Starting...2019−04−1522:17:35.357WARN8612−−−[main]com.zaxxer.hikari.util.DriverDataSource:RegistereddriverwithdriverClassName=com.mysql.jdbc.Driverwasnotfound,tryingdirectinstantiation.2019−04−1522:17:35.527INFO8612−−−[main]com.zaxxer.hikari.HikariDataSource:HikariPool−1−Startcompleted.2019−04−1522:17:35.672INFO8612−−−[main]o.hibernate.jpa.internal.util.LogHelper:HHH000204:ProcessingPersistenceUnitInfo[name:default...]2019−04−1522:17:35.741INFO8612−−−[main]org.hibernate.Version:HHH000412:HibernateCore5.3.9.Final2019−04−1522:17:35.743INFO8612−−−[main]org.hibernate.cfg.Environment:HHH000206:hibernate.propertiesnotfound2019−04−1522:17:35.886INFO8612−−−[main]o.hibernate.annotations.common.Version:HCANN000001:HibernateCommonsAnnotations5.0.4.Final2019−04−1522:17:36.050INFO8612−−−[main]org.hibernate.dialect.Dialect:HHH000400:Usingdialect:org.hibernate.dialect.MySQL5Dialect2019−04−1522:17:36.704INFO8612−−−[main]j.LocalContainerEntityManagerFactoryBean:InitializedJPAEntityManagerFactoryforpersistenceunit′default′2019−04−1522:17:37.621WARN8612−−−[main]o.s.w.c.s.GenericWebApplicationContext:Exceptionencounteredduringcontextinitialization−cancellingrefreshattempt:org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′requestMappingHandlerAdapter′definedinclasspathresource[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationEnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method ‘requestMappingHandlerAdapter’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mvcConversionService’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
2019-04-15 22:17:37.621 INFO 8612 — [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit ‘default’
2019-04-15 22:17:37.623 INFO 8612 — [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated…
2019-04-15 22:17:37.629 INFO 8612 — [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2019-04-15 22:17:37.637 INFO 8612 — [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2019-04-15 22:17:37.649 ERROR 8612 — [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerAdapter’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
c
l
a
s
s
]
:
B
e
a
n
i
n
s
t
a
n
t
i
a
t
i
o
n
v
i
a
f
a
c
t
o
r
y
m
e
t
h
o
d
f
a
i
l
e
d
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
B
e
a
n
I
n
s
t
a
n
t
i
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
F
a
i
l
e
d
t
o
i
n
s
t
a
n
t
i
a
t
e
[
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
w
e
b
.
s
e
r
v
l
e
t
.
m
v
c
.
m
e
t
h
o
d
.
a
n
n
o
t
a
t
i
o
n
.
R
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
]
:
F
a
c
t
o
r
y
m
e
t
h
o
d
′
r
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
′
t
h
r
e
w
e
x
c
e
p
t
i
o
n
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
B
e
a
n
C
r
e
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
E
r
r
o
r
c
r
e
a
t
i
n
g
b
e
a
n
w
i
t
h
n
a
m
e
′
m
v
c
C
o
n
v
e
r
s
i
o
n
S
e
r
v
i
c
e
′
d
e
f
i
n
e
d
i
n
c
l
a
s
s
p
a
t
h
r
e
s
o
u
r
c
e
[
o
r
g
/
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
/
b
o
o
t
/
a
u
t
o
c
o
n
f
i
g
u
r
e
/
w
e
b
/
s
e
r
v
l
e
t
/
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
EnableWebMvcConfiguration.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]:Factorymethod′requestMappingHandlerAdapter′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′mvcConversionService′definedinclasspathresource[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationEnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:127) [spring-boot-test-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:108) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:246) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:227) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:246) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner
2.
e
v
a
l
u
a
t
e
(
P
a
r
e
n
t
R
u
n
n
e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s
R
u
n
n
e
r
.
j
a
v
a
:
190
)
[
s
p
r
i
n
g
−
t
e
s
t
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
j
u
n
i
t
.
r
u
n
n
e
r
.
J
U
n
i
t
C
o
r
e
.
r
u
n
(
J
U
n
i
t
C
o
r
e
.
j
a
v
a
:
137
)
[
j
u
n
i
t
−
4.12.
j
a
r
:
4.12
]
a
t
c
o
m
.
i
n
t
e
l
l
i
j
.
j
u
n
i
t
4.
J
U
n
i
t
4
I
d
e
a
T
e
s
t
R
u
n
n
e
r
.
s
t
a
r
t
R
u
n
n
e
r
W
i
t
h
A
r
g
s
(
J
U
n
i
t
4
I
d
e
a
T
e
s
t
R
u
n
n
e
r
.
j
a
v
a
:
68
)
[
j
u
n
i
t
−
r
t
.
j
a
r
:
n
a
]
a
t
c
o
m
.
i
n
t
e
l
l
i
j
.
r
t
.
e
x
e
c
u
t
i
o
n
.
j
u
n
i
t
.
I
d
e
a
T
e
s
t
R
u
n
n
e
r
2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.junit.runner.JUnitCore.run(JUnitCore.java:137) [junit-4.12.jar:4.12] at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) [junit-rt.jar:na] at com.intellij.rt.execution.junit.IdeaTestRunner
2.evaluate(ParentRunner.java:268)[junit−4.12.jar:4.12]atorg.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring−test−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)[spring−test−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.junit.runners.ParentRunner.run(ParentRunner.java:363)[junit−4.12.jar:4.12]atorg.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)[spring−test−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.junit.runner.JUnitCore.run(JUnitCore.java:137)[junit−4.12.jar:4.12]atcom.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)[junit−rt.jar:na]atcom.intellij.rt.execution.junit.IdeaTestRunnerRepeater.startRunnerWithArgs(IdeaTestRunner.java:47) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) [junit-rt.jar:na]
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method ‘requestMappingHandlerAdapter’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mvcConversionService’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
c
l
a
s
s
]
:
B
e
a
n
i
n
s
t
a
n
t
i
a
t
i
o
n
v
i
a
f
a
c
t
o
r
y
m
e
t
h
o
d
f
a
i
l
e
d
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r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
r
c
r
e
a
t
i
n
g
b
e
a
n
w
i
t
h
n
a
m
e
′
m
v
c
C
o
n
v
e
r
s
i
o
n
S
e
r
v
i
c
e
′
d
e
f
i
n
e
d
i
n
c
l
a
s
s
p
a
t
h
r
e
s
o
u
r
c
e
[
o
r
g
/
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
/
b
o
o
t
/
a
u
t
o
c
o
n
f
i
g
u
r
e
/
w
e
b
/
s
e
r
v
l
e
t
/
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method 'mvcConversionService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productCategoryDao': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] ... 42 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
EnableWebMvcConfiguration.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.format.support.FormattingConversionService]:Factorymethod′mvcConversionService′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′productCategoryDao′:Invocationofinitmethodfailed;nestedexceptionisjava.lang.IllegalArgumentException:Failedtocreatequeryformethodpublicabstractjava.util.Listcom.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)!UnabletolocateAttributewiththethegivenname[categoryType]onthisManagedType[com.icaot.sell.entity.ProductCategory]atorg.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]...42commonframesomittedCausedby:org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′mvcConversionService′definedinclasspathresource[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationEnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean
0
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
320
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
g
e
t
S
i
n
g
l
e
t
o
n
(
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
j
a
v
a
:
222
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
d
o
G
e
t
B
e
a
n
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
318
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
g
e
t
B
e
a
n
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
199
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
c
o
n
t
e
x
t
.
a
n
n
o
t
a
t
i
o
n
.
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer
0(AbstractBeanFactory.java:320) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.annotation.ConfigurationClassEnhancerBeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:394) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
366
)
[
s
p
r
i
n
g
−
c
o
n
t
e
x
t
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.mvcConversionService() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.getConfigurableWebBindingInitializer(WebMvcConfigurationSupport.java:602) ~[spring-webmvc-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
g
e
t
C
o
n
f
i
g
u
r
a
b
l
e
W
e
b
B
i
n
d
i
n
g
I
n
i
t
i
a
l
i
z
e
r
(
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
541
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
2.1.4.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.4.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
w
e
b
.
s
e
r
v
l
e
t
.
c
o
n
f
i
g
.
a
n
n
o
t
a
t
i
o
n
.
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
S
u
p
p
o
r
t
.
r
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
(
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
S
u
p
p
o
r
t
.
j
a
v
a
:
564
)
[
s
p
r
i
n
g
−
w
e
b
m
v
c
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration.getConfigurableWebBindingInitializer(WebMvcAutoConfiguration.java:541) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter(WebMvcConfigurationSupport.java:564) ~[spring-webmvc-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
EnableWebMvcConfiguration.getConfigurableWebBindingInitializer(WebMvcAutoConfiguration.java:541) [spring−boot−autoconfigure−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter(WebMvcConfigurationSupport.java:564) [spring−webmvc−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration.requestMappingHandlerAdapter(WebMvcAutoConfiguration.java:484) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration
EnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB
1
a
c
0
b
80
e
.
C
G
L
I
B
1ac0b80e.CGLIB
1ac0b80e.CGLIBrequestMappingHandlerAdapter
5
(
<
g
e
n
e
r
a
t
e
d
>
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
2.1.4.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.4.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
5(<generated>) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
5(<generated>) [spring−boot−autoconfigure−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e
F
a
s
t
C
l
a
s
s
B
y
S
p
r
i
n
g
C
G
L
I
B
FastClassBySpringCGLIB
FastClassBySpringCGLIBabe657a6.invoke() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
363
)
[
s
p
r
i
n
g
−
c
o
n
t
e
x
t
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.requestMappingHandlerAdapter() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
… 43 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
… 69 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean
0
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
320
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
g
e
t
S
i
n
g
l
e
t
o
n
(
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
j
a
v
a
:
222
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
d
o
G
e
t
B
e
a
n
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
318
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R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aultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1111) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.data.repository.support.Repositories.cacheRepositoryFactory(Repositories.java:97) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.support.Repositories.populateRepositoryFactoryInformation(Repositories.java:90) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.support.Repositories.<init>(Repositories.java:83) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.support.DomainClassConverter.setApplicationContext(DomainClassConverter.java:109) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.web.config.SpringDataWebConfiguration.addFormatters(SpringDataWebConfiguration.java:131) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.web.servlet.config.annotation.WebMvcConfigurerComposite.addFormatters(WebMvcConfigurerComposite.java:81) ~[spring-webmvc-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration.addFormatters(DelegatingWebMvcConfiguration.java:78) ~[spring-webmvc-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
0(AbstractBeanFactory.java:320) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1111) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.data.repository.support.Repositories.cacheRepositoryFactory(Repositories.java:97) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.support.Repositories.populateRepositoryFactoryInformation(Repositories.java:90) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.support.Repositories.<init>(Repositories.java:83) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.support.DomainClassConverter.setApplicationContext(DomainClassConverter.java:109) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.web.config.SpringDataWebConfiguration.addFormatters(SpringDataWebConfiguration.java:131) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.web.servlet.config.annotation.WebMvcConfigurerComposite.addFormatters(WebMvcConfigurerComposite.java:81) [spring−webmvc−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration.addFormatters(DelegatingWebMvcConfiguration.java:78) [spring−webmvc−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration.mvcConversionService(WebMvcAutoConfiguration.java:512) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration
EnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB
1
a
c
0
b
80
e
.
C
G
L
I
B
1ac0b80e.CGLIB
1ac0b80e.CGLIBmvcConversionService
0
(
<
g
e
n
e
r
a
t
e
d
>
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
2.1.4.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.4.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
0(<generated>) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
0(<generated>) [spring−boot−autoconfigure−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e
F
a
s
t
C
l
a
s
s
B
y
S
p
r
i
n
g
C
G
L
I
B
FastClassBySpringCGLIB
FastClassBySpringCGLIBabe657a6.invoke() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
363
)
[
s
p
r
i
n
g
−
c
o
n
t
e
x
t
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.mvcConversionService() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
… 70 common frames omitted
Caused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:84) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
C
r
e
a
t
e
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
r
e
s
o
l
v
e
Q
u
e
r
y
(
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
j
a
v
a
:
106
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:106) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:106) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryLookupStrategyCreateIfNotFoundQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:211) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
A
b
s
t
r
a
c
t
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
r
e
s
o
l
v
e
Q
u
e
r
y
(
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
j
a
v
a
:
79
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:79) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.core.support.RepositoryFactorySupport
AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:79) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.lookupQuery(RepositoryFactorySupport.java:566) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.repository.core.support.RepositoryFactorySupport
Q
u
e
r
y
E
x
e
c
u
t
o
r
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
l
a
m
b
d
a
QueryExecutorMethodInterceptor.lambda
QueryExecutorMethodInterceptor.lambdamapMethodsToQuery$1(RepositoryFactorySupport.java:559) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at java.util.stream.ReferencePipeline$3
1.
a
c
c
e
p
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
193
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
I
t
e
r
a
t
o
r
.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
I
t
e
r
a
t
o
r
.
j
a
v
a
:
116
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
C
o
l
l
e
c
t
i
o
n
s
1.accept(ReferencePipeline.java:193) ~[na:1.8.0_131] at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[na:1.8.0_131] at java.util.Collections
1.accept(ReferencePipeline.java:193) [na:1.8.0131]atjava.util.Iterator.forEachRemaining(Iterator.java:116) [na:1.8.0131]atjava.util.CollectionsUnmodifiableCollection
1.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
C
o
l
l
e
c
t
i
o
n
s
.
j
a
v
a
:
1049
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
S
p
l
i
t
e
r
a
t
o
r
s
1.forEachRemaining(Collections.java:1049) ~[na:1.8.0_131] at java.util.Spliterators
1.forEachRemaining(Collections.java:1049) [na:1.8.0131]atjava.util.SpliteratorsIteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[na:1.8.0_131]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_131]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_131]
at java.util.stream.ReduceOps
R
e
d
u
c
e
O
p
.
e
v
a
l
u
a
t
e
S
e
q
u
e
n
t
i
a
l
(
R
e
d
u
c
e
O
p
s
.
j
a
v
a
:
708
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
e
v
a
l
u
a
t
e
(
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
j
a
v
a
:
234
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
c
o
l
l
e
c
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
499
)
[
n
a
:
1.8.
0
1
31
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_131] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_131] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_131] at org.springframework.data.repository.core.support.RepositoryFactorySupport
ReduceOp.evaluateSequential(ReduceOps.java:708) [na:1.8.0131]atjava.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [na:1.8.0131]atjava.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) [na:1.8.0131]atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.mapMethodsToQuery(RepositoryFactorySupport.java:561) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.repository.core.support.RepositoryFactorySupport
Q
u
e
r
y
E
x
e
c
u
t
o
r
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
l
a
m
b
d
a
QueryExecutorMethodInterceptor.lambda
QueryExecutorMethodInterceptor.lambdanew
0
(
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
.
j
a
v
a
:
551
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
j
a
v
a
.
u
t
i
l
.
O
p
t
i
o
n
a
l
.
m
a
p
(
O
p
t
i
o
n
a
l
.
j
a
v
a
:
215
)
[
n
a
:
1.8.
0
1
31
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
0(RepositoryFactorySupport.java:551) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at java.util.Optional.map(Optional.java:215) ~[na:1.8.0_131] at org.springframework.data.repository.core.support.RepositoryFactorySupport
0(RepositoryFactorySupport.java:551) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atjava.util.Optional.map(Optional.java:215) [na:1.8.0131]atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.(RepositoryFactorySupport.java:551) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:324) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet
5
(
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
B
e
a
n
S
u
p
p
o
r
t
.
j
a
v
a
:
297
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
u
t
i
l
.
L
a
z
y
.
g
e
t
N
u
l
l
a
b
l
e
(
L
a
z
y
.
j
a
v
a
:
211
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
u
t
i
l
.
L
a
z
y
.
g
e
t
(
L
a
z
y
.
j
a
v
a
:
94
)
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o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
5(RepositoryFactoryBeanSupport.java:297) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.util.Lazy.getNullable(Lazy.java:211) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.util.Lazy.get(Lazy.java:94) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:121) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] ... 95 common frames omitted Caused by: java.lang.IllegalArgumentException: Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory] at org.hibernate.metamodel.internal.AbstractManagedType.checkNotNull(AbstractManagedType.java:128) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final] at org.hibernate.metamodel.internal.AbstractManagedType.getAttribute(AbstractManagedType.java:113) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final] at org.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:593) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:577) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryCreator
5(RepositoryFactoryBeanSupport.java:297) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.util.Lazy.getNullable(Lazy.java:211) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.util.Lazy.get(Lazy.java:94) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:121) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]...95commonframesomittedCausedby:java.lang.IllegalArgumentException:UnabletolocateAttributewiththethegivenname[categoryType]onthisManagedType[com.icaot.sell.entity.ProductCategory]atorg.hibernate.metamodel.internal.AbstractManagedType.checkNotNull(AbstractManagedType.java:128) [hibernate−core−5.3.9.Final.jar:5.3.9.Final]atorg.hibernate.metamodel.internal.AbstractManagedType.getAttribute(AbstractManagedType.java:113) [hibernate−core−5.3.9.Final.jar:5.3.9.Final]atorg.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:593) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:577) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryCreatorPredicateBuilder.getTypedPath(JpaQueryCreator.java:381) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.JpaQueryCreator
P
r
e
d
i
c
a
t
e
B
u
i
l
d
e
r
.
b
u
i
l
d
(
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
273
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
t
o
P
r
e
d
i
c
a
t
e
(
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
209
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
(
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
122
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
(
J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g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
P
a
r
t
T
r
e
e
J
p
a
Q
u
e
r
y
PredicateBuilder.build(JpaQueryCreator.java:273) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:209) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:122) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:57) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:119) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:95) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:81) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.PartTreeJpaQuery
PredicateBuilder.build(JpaQueryCreator.java:273) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:209) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:122) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:57) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:119) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:95) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:81) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.PartTreeJpaQueryQueryPreparer.(PartTreeJpaQuery.java:147) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$CountQueryPreparer.(PartTreeJpaQuery.java:270) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:79) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
… 121 common frames omitted
2019-04-15 22:17:37.655 ERROR 8612 — [ main] o.s.test.context.TestContextManager : Caught exception while allowing TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener@32eff876] to prepare test instance [com.icaot.sell.dao.ProductCategoryDaoTest@4357524b]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:125) ~[spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:108) ~[spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190) ~[spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132) ~[spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:246) ~[spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:227) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:246) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
at org.junit.runners.ParentRunner
2.
e
v
a
l
u
a
t
e
(
P
a
r
e
n
t
R
u
n
n
e
r
.
j
a
v
a
:
268
)
[
j
u
n
i
t
−
4.12.
j
a
r
:
4.12
]
a
t
o
r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.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
j
u
n
i
t
.
r
u
n
n
e
r
.
J
U
n
i
t
C
o
r
e
.
r
u
n
(
J
U
n
i
t
C
o
r
e
.
j
a
v
a
:
137
)
[
j
u
n
i
t
−
4.12.
j
a
r
:
4.12
]
a
t
c
o
m
.
i
n
t
e
l
l
i
j
.
j
u
n
i
t
4.
J
U
n
i
t
4
I
d
e
a
T
e
s
t
R
u
n
n
e
r
.
s
t
a
r
t
R
u
n
n
e
r
W
i
t
h
A
r
g
s
(
J
U
n
i
t
4
I
d
e
a
T
e
s
t
R
u
n
n
e
r
.
j
a
v
a
:
68
)
[
j
u
n
i
t
−
r
t
.
j
a
r
:
n
a
]
a
t
c
o
m
.
i
n
t
e
l
l
i
j
.
r
t
.
e
x
e
c
u
t
i
o
n
.
j
u
n
i
t
.
I
d
e
a
T
e
s
t
R
u
n
n
e
r
2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12] at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) [spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.junit.runner.JUnitCore.run(JUnitCore.java:137) [junit-4.12.jar:4.12] at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68) [junit-rt.jar:na] at com.intellij.rt.execution.junit.IdeaTestRunner
2.evaluate(ParentRunner.java:268)[junit−4.12.jar:4.12]atorg.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)[spring−test−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)[spring−test−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.junit.runners.ParentRunner.run(ParentRunner.java:363)[junit−4.12.jar:4.12]atorg.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)[spring−test−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.junit.runner.JUnitCore.run(JUnitCore.java:137)[junit−4.12.jar:4.12]atcom.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)[junit−rt.jar:na]atcom.intellij.rt.execution.junit.IdeaTestRunnerRepeater.startRunnerWithArgs(IdeaTestRunner.java:47) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242) [junit-rt.jar:na]
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70) [junit-rt.jar:na]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerAdapter’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
c
l
a
s
s
]
:
B
e
a
n
i
n
s
t
a
n
t
i
a
t
i
o
n
v
i
a
f
a
c
t
o
r
y
m
e
t
h
o
d
f
a
i
l
e
d
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
B
e
a
n
I
n
s
t
a
n
t
i
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
F
a
i
l
e
d
t
o
i
n
s
t
a
n
t
i
a
t
e
[
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
w
e
b
.
s
e
r
v
l
e
t
.
m
v
c
.
m
e
t
h
o
d
.
a
n
n
o
t
a
t
i
o
n
.
R
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
]
:
F
a
c
t
o
r
y
m
e
t
h
o
d
′
r
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
′
t
h
r
e
w
e
x
c
e
p
t
i
o
n
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
B
e
a
n
C
r
e
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
E
r
r
o
r
c
r
e
a
t
i
n
g
b
e
a
n
w
i
t
h
n
a
m
e
′
m
v
c
C
o
n
v
e
r
s
i
o
n
S
e
r
v
i
c
e
′
d
e
f
i
n
e
d
i
n
c
l
a
s
s
p
a
t
h
r
e
s
o
u
r
c
e
[
o
r
g
/
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
/
b
o
o
t
/
a
u
t
o
c
o
n
f
i
g
u
r
e
/
w
e
b
/
s
e
r
v
l
e
t
/
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
EnableWebMvcConfiguration.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]:Factorymethod′requestMappingHandlerAdapter′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′mvcConversionService′definedinclasspathresource[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationEnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBean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.
R
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
]
:
F
a
c
t
o
r
y
m
e
t
h
o
d
′
r
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
′
t
h
r
e
w
e
x
c
e
p
t
i
o
n
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
B
e
a
n
C
r
e
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
E
r
r
o
r
c
r
e
a
t
i
n
g
b
e
a
n
w
i
t
h
n
a
m
e
′
m
v
c
C
o
n
v
e
r
s
i
o
n
S
e
r
v
i
c
e
′
d
e
f
i
n
e
d
i
n
c
l
a
s
s
p
a
t
h
r
e
s
o
u
r
c
e
[
o
r
g
/
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
/
b
o
o
t
/
a
u
t
o
c
o
n
f
i
g
u
r
e
/
w
e
b
/
s
e
r
v
l
e
t
/
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) ~[spring-boot-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:127) ~[spring-boot-test-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) ~[spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117) ~[spring-test-5.1.6.RELEASE.jar:5.1.6.RELEASE] ... 24 common frames omitted Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
0(AbstractBeanFactory.java:320) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) [spring−boot−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) [spring−boot−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.SpringApplication.run(SpringApplication.java:316) [spring−boot−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:127) [spring−boot−test−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) [spring−test−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117) [spring−test−5.1.6.RELEASE.jar:5.1.6.RELEASE]...24commonframesomittedCausedby:org.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]:Factorymethod′requestMappingHandlerAdapter′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′mvcConversionService′definedinclasspathresource[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationEnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
… 42 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mvcConversionService’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
c
l
a
s
s
]
:
B
e
a
n
i
n
s
t
a
n
t
i
a
t
i
o
n
v
i
a
f
a
c
t
o
r
y
m
e
t
h
o
d
f
a
i
l
e
d
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
B
e
a
n
I
n
s
t
a
n
t
i
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
F
a
i
l
e
d
t
o
i
n
s
t
a
n
t
i
a
t
e
[
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
f
o
r
m
a
t
.
s
u
p
p
o
r
t
.
F
o
r
m
a
t
t
i
n
g
C
o
n
v
e
r
s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
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
l
a
m
b
d
a
EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method 'mvcConversionService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productCategoryDao': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda
EnableWebMvcConfiguration.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.format.support.FormattingConversionService]:Factorymethod′mvcConversionService′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′productCategoryDao′:Invocationofinitmethodfailed;nestedexceptionisjava.lang.IllegalArgumentException:Failedtocreatequeryformethodpublicabstractjava.util.Listcom.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)!UnabletolocateAttributewiththethegivenname[categoryType]onthisManagedType[com.icaot.sell.entity.ProductCategory]atorg.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean
0
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
320
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r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C
l
a
s
s
E
n
h
a
n
c
e
r
0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.annotation.ConfigurationClassEnhancer
0(AbstractBeanFactory.java:320) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.annotation.ConfigurationClassEnhancerBeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:394) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
366
)
[
s
p
r
i
n
g
−
c
o
n
t
e
x
t
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.mvcConversionService() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.getConfigurableWebBindingInitializer(WebMvcConfigurationSupport.java:602) ~[spring-webmvc-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
g
e
t
C
o
n
f
i
g
u
r
a
b
l
e
W
e
b
B
i
n
d
i
n
g
I
n
i
t
i
a
l
i
z
e
r
(
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
541
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
2.1.4.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.4.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
w
e
b
.
s
e
r
v
l
e
t
.
c
o
n
f
i
g
.
a
n
n
o
t
a
t
i
o
n
.
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
S
u
p
p
o
r
t
.
r
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
(
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
S
u
p
p
o
r
t
.
j
a
v
a
:
564
)
[
s
p
r
i
n
g
−
w
e
b
m
v
c
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration.getConfigurableWebBindingInitializer(WebMvcAutoConfiguration.java:541) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter(WebMvcConfigurationSupport.java:564) ~[spring-webmvc-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
EnableWebMvcConfiguration.getConfigurableWebBindingInitializer(WebMvcAutoConfiguration.java:541) [spring−boot−autoconfigure−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter(WebMvcConfigurationSupport.java:564) [spring−webmvc−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration.requestMappingHandlerAdapter(WebMvcAutoConfiguration.java:484) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration
EnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB
1
a
c
0
b
80
e
.
C
G
L
I
B
1ac0b80e.CGLIB
1ac0b80e.CGLIBrequestMappingHandlerAdapter
5
(
<
g
e
n
e
r
a
t
e
d
>
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
2.1.4.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.4.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
5(<generated>) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
5(<generated>) [spring−boot−autoconfigure−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e
F
a
s
t
C
l
a
s
s
B
y
S
p
r
i
n
g
C
G
L
I
B
FastClassBySpringCGLIB
FastClassBySpringCGLIBabe657a6.invoke() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
363
)
[
s
p
r
i
n
g
−
c
o
n
t
e
x
t
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.requestMappingHandlerAdapter() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
… 43 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
… 69 common frames omitted
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean
0
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
320
)
[
s
p
r
i
n
g
−
b
e
a
n
s
−
5.1.6.
R
E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E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
w
e
b
.
s
e
r
v
l
e
t
.
c
o
n
f
i
g
.
a
n
n
o
t
a
t
i
o
n
.
D
e
l
e
g
a
t
i
n
g
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
a
d
d
F
o
r
m
a
t
t
e
r
s
(
D
e
l
e
g
a
t
i
n
g
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
78
)
[
s
p
r
i
n
g
−
w
e
b
m
v
c
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1111) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.data.repository.support.Repositories.cacheRepositoryFactory(Repositories.java:97) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.support.Repositories.populateRepositoryFactoryInformation(Repositories.java:90) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.support.Repositories.<init>(Repositories.java:83) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.support.DomainClassConverter.setApplicationContext(DomainClassConverter.java:109) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.web.config.SpringDataWebConfiguration.addFormatters(SpringDataWebConfiguration.java:131) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.web.servlet.config.annotation.WebMvcConfigurerComposite.addFormatters(WebMvcConfigurerComposite.java:81) ~[spring-webmvc-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration.addFormatters(DelegatingWebMvcConfiguration.java:78) ~[spring-webmvc-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
0(AbstractBeanFactory.java:320) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1111) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.data.repository.support.Repositories.cacheRepositoryFactory(Repositories.java:97) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.support.Repositories.populateRepositoryFactoryInformation(Repositories.java:90) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.support.Repositories.<init>(Repositories.java:83) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.support.DomainClassConverter.setApplicationContext(DomainClassConverter.java:109) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.web.config.SpringDataWebConfiguration.addFormatters(SpringDataWebConfiguration.java:131) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.web.servlet.config.annotation.WebMvcConfigurerComposite.addFormatters(WebMvcConfigurerComposite.java:81) [spring−webmvc−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration.addFormatters(DelegatingWebMvcConfiguration.java:78) [spring−webmvc−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration.mvcConversionService(WebMvcAutoConfiguration.java:512) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration
EnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB
1
a
c
0
b
80
e
.
C
G
L
I
B
1ac0b80e.CGLIB
1ac0b80e.CGLIBmvcConversionService
0
(
<
g
e
n
e
r
a
t
e
d
>
)
[
s
p
r
i
n
g
−
b
o
o
t
−
a
u
t
o
c
o
n
f
i
g
u
r
e
−
2.1.4.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.4.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
0(<generated>) ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
0(<generated>) [spring−boot−autoconfigure−2.1.4.RELEASE.jar:2.1.4.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e
F
a
s
t
C
l
a
s
s
B
y
S
p
r
i
n
g
C
G
L
I
B
FastClassBySpringCGLIB
FastClassBySpringCGLIBabe657a6.invoke() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
363
)
[
s
p
r
i
n
g
−
c
o
n
t
e
x
t
−
5.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
5.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) ~[spring-context-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) [spring−context−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.mvcConversionService() ~[spring-boot-autoconfigure-2.1.4.RELEASE.jar:2.1.4.RELEASE]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_131]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_131]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_131]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
… 70 common frames omitted
Caused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:84) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
C
r
e
a
t
e
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
r
e
s
o
l
v
e
Q
u
e
r
y
(
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
j
a
v
a
:
106
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:106) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:106) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryLookupStrategyCreateIfNotFoundQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:211) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
A
b
s
t
r
a
c
t
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
r
e
s
o
l
v
e
Q
u
e
r
y
(
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
j
a
v
a
:
79
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:79) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.core.support.RepositoryFactorySupport
AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:79) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.lookupQuery(RepositoryFactorySupport.java:566) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.repository.core.support.RepositoryFactorySupport
Q
u
e
r
y
E
x
e
c
u
t
o
r
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
l
a
m
b
d
a
QueryExecutorMethodInterceptor.lambda
QueryExecutorMethodInterceptor.lambdamapMethodsToQuery$1(RepositoryFactorySupport.java:559) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at java.util.stream.ReferencePipeline$3
1.
a
c
c
e
p
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
193
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
I
t
e
r
a
t
o
r
.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
I
t
e
r
a
t
o
r
.
j
a
v
a
:
116
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
C
o
l
l
e
c
t
i
o
n
s
1.accept(ReferencePipeline.java:193) ~[na:1.8.0_131] at java.util.Iterator.forEachRemaining(Iterator.java:116) ~[na:1.8.0_131] at java.util.Collections
1.accept(ReferencePipeline.java:193) [na:1.8.0131]atjava.util.Iterator.forEachRemaining(Iterator.java:116) [na:1.8.0131]atjava.util.CollectionsUnmodifiableCollection
1.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
C
o
l
l
e
c
t
i
o
n
s
.
j
a
v
a
:
1049
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
S
p
l
i
t
e
r
a
t
o
r
s
1.forEachRemaining(Collections.java:1049) ~[na:1.8.0_131] at java.util.Spliterators
1.forEachRemaining(Collections.java:1049) [na:1.8.0131]atjava.util.SpliteratorsIteratorSpliterator.forEachRemaining(Spliterators.java:1801) ~[na:1.8.0_131]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_131]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_131]
at java.util.stream.ReduceOps
R
e
d
u
c
e
O
p
.
e
v
a
l
u
a
t
e
S
e
q
u
e
n
t
i
a
l
(
R
e
d
u
c
e
O
p
s
.
j
a
v
a
:
708
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
e
v
a
l
u
a
t
e
(
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
j
a
v
a
:
234
)
[
n
a
:
1.8.
0
1
31
]
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
c
o
l
l
e
c
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
499
)
[
n
a
:
1.8.
0
1
31
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_131] at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_131] at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_131] at org.springframework.data.repository.core.support.RepositoryFactorySupport
ReduceOp.evaluateSequential(ReduceOps.java:708) [na:1.8.0131]atjava.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) [na:1.8.0131]atjava.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) [na:1.8.0131]atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.mapMethodsToQuery(RepositoryFactorySupport.java:561) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.repository.core.support.RepositoryFactorySupport
Q
u
e
r
y
E
x
e
c
u
t
o
r
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
l
a
m
b
d
a
QueryExecutorMethodInterceptor.lambda
QueryExecutorMethodInterceptor.lambdanew
0
(
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
.
j
a
v
a
:
551
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
j
a
v
a
.
u
t
i
l
.
O
p
t
i
o
n
a
l
.
m
a
p
(
O
p
t
i
o
n
a
l
.
j
a
v
a
:
215
)
[
n
a
:
1.8.
0
1
31
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
0(RepositoryFactorySupport.java:551) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at java.util.Optional.map(Optional.java:215) ~[na:1.8.0_131] at org.springframework.data.repository.core.support.RepositoryFactorySupport
0(RepositoryFactorySupport.java:551) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atjava.util.Optional.map(Optional.java:215) [na:1.8.0131]atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.(RepositoryFactorySupport.java:551) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:324) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet
5
(
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
B
e
a
n
S
u
p
p
o
r
t
.
j
a
v
a
:
297
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
u
t
i
l
.
L
a
z
y
.
g
e
t
N
u
l
l
a
b
l
e
(
L
a
z
y
.
j
a
v
a
:
211
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
u
t
i
l
.
L
a
z
y
.
g
e
t
(
L
a
z
y
.
j
a
v
a
:
94
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
B
e
a
n
S
u
p
p
o
r
t
.
a
f
t
e
r
P
r
o
p
e
r
t
i
e
s
S
e
t
(
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
B
e
a
n
S
u
p
p
o
r
t
.
j
a
v
a
:
300
)
[
s
p
r
i
n
g
−
d
a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
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
Q
u
e
r
y
U
t
i
l
s
.
t
o
E
x
p
r
e
s
s
i
o
n
R
e
c
u
r
s
i
v
e
l
y
(
Q
u
e
r
y
U
t
i
l
s
.
j
a
v
a
:
593
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
Q
u
e
r
y
U
t
i
l
s
.
t
o
E
x
p
r
e
s
s
i
o
n
R
e
c
u
r
s
i
v
e
l
y
(
Q
u
e
r
y
U
t
i
l
s
.
j
a
v
a
:
577
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
5(RepositoryFactoryBeanSupport.java:297) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.util.Lazy.getNullable(Lazy.java:211) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.util.Lazy.get(Lazy.java:94) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:121) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE] ... 95 common frames omitted Caused by: java.lang.IllegalArgumentException: Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory] at org.hibernate.metamodel.internal.AbstractManagedType.checkNotNull(AbstractManagedType.java:128) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final] at org.hibernate.metamodel.internal.AbstractManagedType.getAttribute(AbstractManagedType.java:113) ~[hibernate-core-5.3.9.Final.jar:5.3.9.Final] at org.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:593) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:577) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryCreator
5(RepositoryFactoryBeanSupport.java:297) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.util.Lazy.getNullable(Lazy.java:211) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.util.Lazy.get(Lazy.java:94) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:121) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774) [spring−beans−5.1.6.RELEASE.jar:5.1.6.RELEASE]...95commonframesomittedCausedby:java.lang.IllegalArgumentException:UnabletolocateAttributewiththethegivenname[categoryType]onthisManagedType[com.icaot.sell.entity.ProductCategory]atorg.hibernate.metamodel.internal.AbstractManagedType.checkNotNull(AbstractManagedType.java:128) [hibernate−core−5.3.9.Final.jar:5.3.9.Final]atorg.hibernate.metamodel.internal.AbstractManagedType.getAttribute(AbstractManagedType.java:113) [hibernate−core−5.3.9.Final.jar:5.3.9.Final]atorg.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:593) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:577) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryCreatorPredicateBuilder.getTypedPath(JpaQueryCreator.java:381) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.JpaQueryCreator
P
r
e
d
i
c
a
t
e
B
u
i
l
d
e
r
.
b
u
i
l
d
(
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
273
)
[
s
p
r
i
n
g
−
d
a
t
a
−
j
p
a
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s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
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
p
a
r
s
e
r
.
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
Q
u
e
r
y
(
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
95
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
p
a
r
s
e
r
.
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
Q
u
e
r
y
(
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
81
)
[
s
p
r
i
n
g
−
d
a
t
a
−
c
o
m
m
o
n
s
−
2.1.6.
R
E
L
E
A
S
E
.
j
a
r
:
2.1.6.
R
E
L
E
A
S
E
]
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
P
a
r
t
T
r
e
e
J
p
a
Q
u
e
r
y
PredicateBuilder.build(JpaQueryCreator.java:273) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:209) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:122) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:57) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:119) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:95) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:81) ~[spring-data-commons-2.1.6.RELEASE.jar:2.1.6.RELEASE] at org.springframework.data.jpa.repository.query.PartTreeJpaQuery
PredicateBuilder.build(JpaQueryCreator.java:273) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:209) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:122) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:57) [spring−data−jpa−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:119) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:95) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:81) [spring−data−commons−2.1.6.RELEASE.jar:2.1.6.RELEASE]atorg.springframework.data.jpa.repository.query.PartTreeJpaQueryQueryPreparer.(PartTreeJpaQuery.java:147) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$CountQueryPreparer.(PartTreeJpaQuery.java:270) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:79) ~[spring-data-jpa-2.1.6.RELEASE.jar:2.1.6.RELEASE]
… 121 common frames omitted
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:125)
at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:108)
at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:190)
at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:132)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:246)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:227)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:246)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘requestMappingHandlerAdapter’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
c
l
a
s
s
]
:
B
e
a
n
i
n
s
t
a
n
t
i
a
t
i
o
n
v
i
a
f
a
c
t
o
r
y
m
e
t
h
o
d
f
a
i
l
e
d
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
B
e
a
n
I
n
s
t
a
n
t
i
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
F
a
i
l
e
d
t
o
i
n
s
t
a
n
t
i
a
t
e
[
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
w
e
b
.
s
e
r
v
l
e
t
.
m
v
c
.
m
e
t
h
o
d
.
a
n
n
o
t
a
t
i
o
n
.
R
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
]
:
F
a
c
t
o
r
y
m
e
t
h
o
d
′
r
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
′
t
h
r
e
w
e
x
c
e
p
t
i
o
n
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
B
e
a
n
C
r
e
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
E
r
r
o
r
c
r
e
a
t
i
n
g
b
e
a
n
w
i
t
h
n
a
m
e
′
m
v
c
C
o
n
v
e
r
s
i
o
n
S
e
r
v
i
c
e
′
d
e
f
i
n
e
d
i
n
c
l
a
s
s
p
a
t
h
r
e
s
o
u
r
c
e
[
o
r
g
/
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
/
b
o
o
t
/
a
u
t
o
c
o
n
f
i
g
u
r
e
/
w
e
b
/
s
e
r
v
l
e
t
/
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
EnableWebMvcConfiguration.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]:Factorymethod′requestMappingHandlerAdapter′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′mvcConversionService′definedinclasspathresource[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationEnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean
0
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
320
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
g
e
t
S
i
n
g
l
e
t
o
n
(
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
j
a
v
a
:
222
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
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s
p
a
t
h
r
e
s
o
u
r
c
e
[
o
r
g
/
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
/
b
o
o
t
/
a
u
t
o
c
o
n
f
i
g
u
r
e
/
w
e
b
/
s
e
r
v
l
e
t
/
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:775) at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) at org.springframework.boot.SpringApplication.run(SpringApplication.java:316) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:127) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117) ... 24 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]: Factory method 'requestMappingHandlerAdapter' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mvcConversionService' defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
0(AbstractBeanFactory.java:320)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)atorg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:849)atorg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:877)atorg.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)atorg.springframework.boot.SpringApplication.refresh(SpringApplication.java:775)atorg.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397)atorg.springframework.boot.SpringApplication.run(SpringApplication.java:316)atorg.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:127)atorg.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:99)atorg.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:117)...24moreCausedby:org.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter]:Factorymethod′requestMappingHandlerAdapter′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′mvcConversionService′definedinclasspathresource[org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfigurationEnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
… 42 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘mvcConversionService’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
c
l
a
s
s
]
:
B
e
a
n
i
n
s
t
a
n
t
i
a
t
i
o
n
v
i
a
f
a
c
t
o
r
y
m
e
t
h
o
d
f
a
i
l
e
d
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
B
e
a
n
I
n
s
t
a
n
t
i
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
F
a
i
l
e
d
t
o
i
n
s
t
a
n
t
i
a
t
e
[
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
f
o
r
m
a
t
.
s
u
p
p
o
r
t
.
F
o
r
m
a
t
t
i
n
g
C
o
n
v
e
r
s
i
o
n
S
e
r
v
i
c
e
]
:
F
a
c
t
o
r
y
m
e
t
h
o
d
′
m
v
c
C
o
n
v
e
r
s
i
o
n
S
e
r
v
i
c
e
′
t
h
r
e
w
e
x
c
e
p
t
i
o
n
;
n
e
s
t
e
d
e
x
c
e
p
t
i
o
n
i
s
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
B
e
a
n
C
r
e
a
t
i
o
n
E
x
c
e
p
t
i
o
n
:
E
r
r
o
r
c
r
e
a
t
i
n
g
b
e
a
n
w
i
t
h
n
a
m
e
′
p
r
o
d
u
c
t
C
a
t
e
g
o
r
y
D
a
o
′
:
I
n
v
o
c
a
t
i
o
n
o
f
i
n
i
t
m
e
t
h
o
d
f
a
i
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o
r
y
.
c
r
e
a
t
e
B
e
a
n
(
A
b
s
t
r
a
c
t
A
u
t
o
w
i
r
e
C
a
p
a
b
l
e
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
515
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
l
a
m
b
d
a
EnableWebMvcConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method 'mvcConversionService' threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'productCategoryDao': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627) at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda
EnableWebMvcConfiguration.class]:Beaninstantiationviafactorymethodfailed;nestedexceptionisorg.springframework.beans.BeanInstantiationException:Failedtoinstantiate[org.springframework.format.support.FormattingConversionService]:Factorymethod′mvcConversionService′threwexception;nestedexceptionisorg.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname′productCategoryDao′:Invocationofinitmethodfailed;nestedexceptionisjava.lang.IllegalArgumentException:Failedtocreatequeryformethodpublicabstractjava.util.Listcom.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)!UnabletolocateAttributewiththethegivenname[categoryType]onthisManagedType[com.icaot.sell.entity.ProductCategory]atorg.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:627)atorg.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:607)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1321)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1160)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)atorg.springframework.beans.factory.support.AbstractBeanFactory.lambdadoGetBean
0
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
320
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
g
e
t
S
i
n
g
l
e
t
o
n
(
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
j
a
v
a
:
222
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
d
o
G
e
t
B
e
a
n
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
318
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
g
e
t
B
e
a
n
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
199
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
c
o
n
t
e
x
t
.
a
n
n
o
t
a
t
i
o
n
.
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.context.annotation.ConfigurationClassEnhancer
0(AbstractBeanFactory.java:320)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)atorg.springframework.context.annotation.ConfigurationClassEnhancerBeanMethodInterceptor.resolveBeanReference(ConfigurationClassEnhancer.java:394)
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
366
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366) at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:366)atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.mvcConversionService()
at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.getConfigurableWebBindingInitializer(WebMvcConfigurationSupport.java:602)
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
g
e
t
C
o
n
f
i
g
u
r
a
b
l
e
W
e
b
B
i
n
d
i
n
g
I
n
i
t
i
a
l
i
z
e
r
(
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
541
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
w
e
b
.
s
e
r
v
l
e
t
.
c
o
n
f
i
g
.
a
n
n
o
t
a
t
i
o
n
.
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
S
u
p
p
o
r
t
.
r
e
q
u
e
s
t
M
a
p
p
i
n
g
H
a
n
d
l
e
r
A
d
a
p
t
e
r
(
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
S
u
p
p
o
r
t
.
j
a
v
a
:
564
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration.getConfigurableWebBindingInitializer(WebMvcAutoConfiguration.java:541) at org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter(WebMvcConfigurationSupport.java:564) at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
EnableWebMvcConfiguration.getConfigurableWebBindingInitializer(WebMvcAutoConfiguration.java:541)atorg.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport.requestMappingHandlerAdapter(WebMvcConfigurationSupport.java:564)atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration.requestMappingHandlerAdapter(WebMvcAutoConfiguration.java:484)
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration
EnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB
1
a
c
0
b
80
e
.
C
G
L
I
B
1ac0b80e.CGLIB
1ac0b80e.CGLIBrequestMappingHandlerAdapter
5
(
<
g
e
n
e
r
a
t
e
d
>
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
5(<generated>) at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
5(<generated>)atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e
F
a
s
t
C
l
a
s
s
B
y
S
p
r
i
n
g
C
G
L
I
B
FastClassBySpringCGLIB
FastClassBySpringCGLIBabe657a6.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
363
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.requestMappingHandlerAdapter()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
… 43 more
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.format.support.FormattingConversionService]: Factory method ‘mvcConversionService’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622)
… 69 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘productCategoryDao’: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean
0
(
A
b
s
t
r
a
c
t
B
e
a
n
F
a
c
t
o
r
y
.
j
a
v
a
:
320
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t
o
r
y
.
s
u
p
p
o
r
t
.
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
g
e
t
S
i
n
g
l
e
t
o
n
(
D
e
f
a
u
l
t
S
i
n
g
l
e
t
o
n
B
e
a
n
R
e
g
i
s
t
r
y
.
j
a
v
a
:
222
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
e
a
n
s
.
f
a
c
t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a
t
t
e
r
s
(
D
e
l
e
g
a
t
i
n
g
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
.
j
a
v
a
:
78
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
0(AbstractBeanFactory.java:320) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1111) at org.springframework.data.repository.support.Repositories.cacheRepositoryFactory(Repositories.java:97) at org.springframework.data.repository.support.Repositories.populateRepositoryFactoryInformation(Repositories.java:90) at org.springframework.data.repository.support.Repositories.<init>(Repositories.java:83) at org.springframework.data.repository.support.DomainClassConverter.setApplicationContext(DomainClassConverter.java:109) at org.springframework.data.web.config.SpringDataWebConfiguration.addFormatters(SpringDataWebConfiguration.java:131) at org.springframework.web.servlet.config.annotation.WebMvcConfigurerComposite.addFormatters(WebMvcConfigurerComposite.java:81) at org.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration.addFormatters(DelegatingWebMvcConfiguration.java:78) at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
0(AbstractBeanFactory.java:320)atorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)atorg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318)atorg.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:204)atorg.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1111)atorg.springframework.data.repository.support.Repositories.cacheRepositoryFactory(Repositories.java:97)atorg.springframework.data.repository.support.Repositories.populateRepositoryFactoryInformation(Repositories.java:90)atorg.springframework.data.repository.support.Repositories.<init>(Repositories.java:83)atorg.springframework.data.repository.support.DomainClassConverter.setApplicationContext(DomainClassConverter.java:109)atorg.springframework.data.web.config.SpringDataWebConfiguration.addFormatters(SpringDataWebConfiguration.java:131)atorg.springframework.web.servlet.config.annotation.WebMvcConfigurerComposite.addFormatters(WebMvcConfigurerComposite.java:81)atorg.springframework.web.servlet.config.annotation.DelegatingWebMvcConfiguration.addFormatters(DelegatingWebMvcConfiguration.java:78)atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration.mvcConversionService(WebMvcAutoConfiguration.java:512)
at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
E
n
a
b
l
e
W
e
b
M
v
c
C
o
n
f
i
g
u
r
a
t
i
o
n
EnableWebMvcConfiguration
EnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB
1
a
c
0
b
80
e
.
C
G
L
I
B
1ac0b80e.CGLIB
1ac0b80e.CGLIBmvcConversionService
0
(
<
g
e
n
e
r
a
t
e
d
>
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
0(<generated>) at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
0(<generated>)atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e
F
a
s
t
C
l
a
s
s
B
y
S
p
r
i
n
g
C
G
L
I
B
FastClassBySpringCGLIB
FastClassBySpringCGLIBabe657a6.invoke()
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
at org.springframework.context.annotation.ConfigurationClassEnhancer
B
e
a
n
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
i
n
t
e
r
c
e
p
t
(
C
o
n
f
i
g
u
r
a
t
i
o
n
C
l
a
s
s
E
n
h
a
n
c
e
r
.
j
a
v
a
:
363
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
b
o
o
t
.
a
u
t
o
c
o
n
f
i
g
u
r
e
.
w
e
b
.
s
e
r
v
l
e
t
.
W
e
b
M
v
c
A
u
t
o
C
o
n
f
i
g
u
r
a
t
i
o
n
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) at org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration
BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363)atorg.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfigurationEnableWebMvcConfiguration
E
n
h
a
n
c
e
r
B
y
S
p
r
i
n
g
C
G
L
I
B
EnhancerBySpringCGLIB
EnhancerBySpringCGLIB1ac0b80e.mvcConversionService()
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)
… 70 more
Caused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List com.icaot.sell.dao.ProductCategoryDao.findByCategoryTypeIn(java.util.List)! Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory]
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:84)
at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
C
r
e
a
t
e
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
r
e
s
o
l
v
e
Q
u
e
r
y
(
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
j
a
v
a
:
106
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:106) at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:106)atorg.springframework.data.jpa.repository.query.JpaQueryLookupStrategyCreateIfNotFoundQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:211)
at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy
A
b
s
t
r
a
c
t
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
r
e
s
o
l
v
e
Q
u
e
r
y
(
J
p
a
Q
u
e
r
y
L
o
o
k
u
p
S
t
r
a
t
e
g
y
.
j
a
v
a
:
79
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:79) at org.springframework.data.repository.core.support.RepositoryFactorySupport
AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:79)atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.lookupQuery(RepositoryFactorySupport.java:566)
at org.springframework.data.repository.core.support.RepositoryFactorySupport
Q
u
e
r
y
E
x
e
c
u
t
o
r
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
l
a
m
b
d
a
QueryExecutorMethodInterceptor.lambda
QueryExecutorMethodInterceptor.lambdamapMethodsToQuery$1(RepositoryFactorySupport.java:559)
at java.util.stream.ReferencePipeline$3
1.
a
c
c
e
p
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
193
)
a
t
j
a
v
a
.
u
t
i
l
.
I
t
e
r
a
t
o
r
.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
I
t
e
r
a
t
o
r
.
j
a
v
a
:
116
)
a
t
j
a
v
a
.
u
t
i
l
.
C
o
l
l
e
c
t
i
o
n
s
1.accept(ReferencePipeline.java:193) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Collections
1.accept(ReferencePipeline.java:193)atjava.util.Iterator.forEachRemaining(Iterator.java:116)atjava.util.CollectionsUnmodifiableCollection
1.
f
o
r
E
a
c
h
R
e
m
a
i
n
i
n
g
(
C
o
l
l
e
c
t
i
o
n
s
.
j
a
v
a
:
1049
)
a
t
j
a
v
a
.
u
t
i
l
.
S
p
l
i
t
e
r
a
t
o
r
s
1.forEachRemaining(Collections.java:1049) at java.util.Spliterators
1.forEachRemaining(Collections.java:1049)atjava.util.SpliteratorsIteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.ReduceOps
R
e
d
u
c
e
O
p
.
e
v
a
l
u
a
t
e
S
e
q
u
e
n
t
i
a
l
(
R
e
d
u
c
e
O
p
s
.
j
a
v
a
:
708
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
e
v
a
l
u
a
t
e
(
A
b
s
t
r
a
c
t
P
i
p
e
l
i
n
e
.
j
a
v
a
:
234
)
a
t
j
a
v
a
.
u
t
i
l
.
s
t
r
e
a
m
.
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
c
o
l
l
e
c
t
(
R
e
f
e
r
e
n
c
e
P
i
p
e
l
i
n
e
.
j
a
v
a
:
499
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at org.springframework.data.repository.core.support.RepositoryFactorySupport
ReduceOp.evaluateSequential(ReduceOps.java:708)atjava.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)atjava.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.mapMethodsToQuery(RepositoryFactorySupport.java:561)
at org.springframework.data.repository.core.support.RepositoryFactorySupport
Q
u
e
r
y
E
x
e
c
u
t
o
r
M
e
t
h
o
d
I
n
t
e
r
c
e
p
t
o
r
.
l
a
m
b
d
a
QueryExecutorMethodInterceptor.lambda
QueryExecutorMethodInterceptor.lambdanew
0
(
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
.
j
a
v
a
:
551
)
a
t
j
a
v
a
.
u
t
i
l
.
O
p
t
i
o
n
a
l
.
m
a
p
(
O
p
t
i
o
n
a
l
.
j
a
v
a
:
215
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
S
u
p
p
o
r
t
0(RepositoryFactorySupport.java:551) at java.util.Optional.map(Optional.java:215) at org.springframework.data.repository.core.support.RepositoryFactorySupport
0(RepositoryFactorySupport.java:551)atjava.util.Optional.map(Optional.java:215)atorg.springframework.data.repository.core.support.RepositoryFactorySupportQueryExecutorMethodInterceptor.(RepositoryFactorySupport.java:551)
at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:324)
at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet
5
(
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
B
e
a
n
S
u
p
p
o
r
t
.
j
a
v
a
:
297
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
u
t
i
l
.
L
a
z
y
.
g
e
t
N
u
l
l
a
b
l
e
(
L
a
z
y
.
j
a
v
a
:
211
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
u
t
i
l
.
L
a
z
y
.
g
e
t
(
L
a
z
y
.
j
a
v
a
:
94
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
c
o
r
e
.
s
u
p
p
o
r
t
.
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
B
e
a
n
S
u
p
p
o
r
t
.
a
f
t
e
r
P
r
o
p
e
r
t
i
e
s
S
e
t
(
R
e
p
o
s
i
t
o
r
y
F
a
c
t
o
r
y
B
e
a
n
S
u
p
p
o
r
t
.
j
a
v
a
:
300
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
s
u
p
p
o
r
t
.
J
p
a
R
e
p
o
s
i
t
o
r
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b
e
r
n
a
t
e
.
m
e
t
a
m
o
d
e
l
.
i
n
t
e
r
n
a
l
.
A
b
s
t
r
a
c
t
M
a
n
a
g
e
d
T
y
p
e
.
c
h
e
c
k
N
o
t
N
u
l
l
(
A
b
s
t
r
a
c
t
M
a
n
a
g
e
d
T
y
p
e
.
j
a
v
a
:
128
)
a
t
o
r
g
.
h
i
b
e
r
n
a
t
e
.
m
e
t
a
m
o
d
e
l
.
i
n
t
e
r
n
a
l
.
A
b
s
t
r
a
c
t
M
a
n
a
g
e
d
T
y
p
e
.
g
e
t
A
t
t
r
i
b
u
t
e
(
A
b
s
t
r
a
c
t
M
a
n
a
g
e
d
T
y
p
e
.
j
a
v
a
:
113
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
Q
u
e
r
y
U
t
i
l
s
.
t
o
E
x
p
r
e
s
s
i
o
n
R
e
c
u
r
s
i
v
e
l
y
(
Q
u
e
r
y
U
t
i
l
s
.
j
a
v
a
:
593
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
Q
u
e
r
y
U
t
i
l
s
.
t
o
E
x
p
r
e
s
s
i
o
n
R
e
c
u
r
s
i
v
e
l
y
(
Q
u
e
r
y
U
t
i
l
s
.
j
a
v
a
:
577
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
5(RepositoryFactoryBeanSupport.java:297) at org.springframework.data.util.Lazy.getNullable(Lazy.java:211) at org.springframework.data.util.Lazy.get(Lazy.java:94) at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:121) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774) ... 95 more Caused by: java.lang.IllegalArgumentException: Unable to locate Attribute with the the given name [categoryType] on this ManagedType [com.icaot.sell.entity.ProductCategory] at org.hibernate.metamodel.internal.AbstractManagedType.checkNotNull(AbstractManagedType.java:128) at org.hibernate.metamodel.internal.AbstractManagedType.getAttribute(AbstractManagedType.java:113) at org.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:593) at org.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:577) at org.springframework.data.jpa.repository.query.JpaQueryCreator
5(RepositoryFactoryBeanSupport.java:297)atorg.springframework.data.util.Lazy.getNullable(Lazy.java:211)atorg.springframework.data.util.Lazy.get(Lazy.java:94)atorg.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300)atorg.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:121)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837)atorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774)...95moreCausedby:java.lang.IllegalArgumentException:UnabletolocateAttributewiththethegivenname[categoryType]onthisManagedType[com.icaot.sell.entity.ProductCategory]atorg.hibernate.metamodel.internal.AbstractManagedType.checkNotNull(AbstractManagedType.java:128)atorg.hibernate.metamodel.internal.AbstractManagedType.getAttribute(AbstractManagedType.java:113)atorg.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:593)atorg.springframework.data.jpa.repository.query.QueryUtils.toExpressionRecursively(QueryUtils.java:577)atorg.springframework.data.jpa.repository.query.JpaQueryCreatorPredicateBuilder.getTypedPath(JpaQueryCreator.java:381)
at org.springframework.data.jpa.repository.query.JpaQueryCreator
P
r
e
d
i
c
a
t
e
B
u
i
l
d
e
r
.
b
u
i
l
d
(
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
273
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
t
o
P
r
e
d
i
c
a
t
e
(
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
209
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
(
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
122
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
(
J
p
a
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
57
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
p
a
r
s
e
r
.
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
C
r
i
t
e
r
i
a
(
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
119
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
p
a
r
s
e
r
.
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
Q
u
e
r
y
(
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
95
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
p
a
r
s
e
r
.
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
c
r
e
a
t
e
Q
u
e
r
y
(
A
b
s
t
r
a
c
t
Q
u
e
r
y
C
r
e
a
t
o
r
.
j
a
v
a
:
81
)
a
t
o
r
g
.
s
p
r
i
n
g
f
r
a
m
e
w
o
r
k
.
d
a
t
a
.
j
p
a
.
r
e
p
o
s
i
t
o
r
y
.
q
u
e
r
y
.
P
a
r
t
T
r
e
e
J
p
a
Q
u
e
r
y
PredicateBuilder.build(JpaQueryCreator.java:273) at org.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:209) at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:122) at org.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:57) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:119) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:95) at org.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:81) at org.springframework.data.jpa.repository.query.PartTreeJpaQuery
PredicateBuilder.build(JpaQueryCreator.java:273)atorg.springframework.data.jpa.repository.query.JpaQueryCreator.toPredicate(JpaQueryCreator.java:209)atorg.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:122)atorg.springframework.data.jpa.repository.query.JpaQueryCreator.create(JpaQueryCreator.java:57)atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createCriteria(AbstractQueryCreator.java:119)atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:95)atorg.springframework.data.repository.query.parser.AbstractQueryCreator.createQuery(AbstractQueryCreator.java:81)atorg.springframework.data.jpa.repository.query.PartTreeJpaQueryQueryPreparer.(PartTreeJpaQuery.java:147)
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$CountQueryPreparer.(PartTreeJpaQuery.java:270)
at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:79)
… 121 more
Process finished with exit code 255