Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error creating bean with name 'session' defined in class path resource [com/example/cassandra/configs/CassandraConfig.class]: Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Unknown type [class org.hl7.fhir.dstu3.model.Identifier] for property [accession] in entity [com.example.cassandra.model.CustomImagingStudy]; only primitive types and Collections or Maps of primitive types are allowed
- 2018-05-18 13:38:24.926 INFO 1042 --- [ main] ConditionEvaluationReportLoggingListener :
- Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
- 2018-05-18 13:38:24.969 ERROR 1042 --- [ main] o.s.boot.SpringApplication : Application run failed
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'session' defined in class path resource [com/example/cassandra/configs/CassandraConfig.class]: Invocation of init method failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Unknown type [class org.hl7.fhir.dstu3.model.Identifier] for property [accession] in entity [com.example.cassandra.model.CustomImagingStudy]; only primitive types and Collections or Maps of primitive types are allowed
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:741) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) ~[spring-context-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
- at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
- at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
- at com.example.cassandra.CassandraApplication.main(CassandraApplication.java:10) [classes/:na]
- Caused by: org.springframework.dao.InvalidDataAccessApiUsageException: Unknown type [class org.hl7.fhir.dstu3.model.Identifier] for property [accession] in entity [com.example.cassandra.model.CustomImagingStudy]; only primitive types and Collections or Maps of primitive types are allowed
- at org.springframework.data.cassandra.core.mapping.BasicCassandraPersistentProperty.getDataType(BasicCassandraPersistentProperty.java:170) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.core.mapping.CassandraMappingContext.lambda$null$10(CassandraMappingContext.java:552) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_171]
- at org.springframework.data.cassandra.core.mapping.CassandraMappingContext.lambda$getDataTypeWithUserTypeFactory$11(CassandraMappingContext.java:542) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_171]
- at org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getDataTypeWithUserTypeFactory(CassandraMappingContext.java:527) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getDataType(CassandraMappingContext.java:486) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getCreateTableSpecificationFor(CassandraMappingContext.java:408) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.core.CassandraPersistentEntitySchemaCreator.lambda$createTableSpecifications$1(CassandraPersistentEntitySchemaCreator.java:97) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_171]
- at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1553) ~[na:1.8.0_171]
- at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_171]
- at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_171]
- at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_171]
- at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_171]
- at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_171]
- at org.springframework.data.cassandra.core.CassandraPersistentEntitySchemaCreator.createTableSpecifications(CassandraPersistentEntitySchemaCreator.java:98) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.core.CassandraPersistentEntitySchemaCreator.createTables(CassandraPersistentEntitySchemaCreator.java:82) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.performSchemaActions(CassandraSessionFactoryBean.java:174) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.createTables(CassandraSessionFactoryBean.java:156) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.performSchemaAction(CassandraSessionFactoryBean.java:91) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.afterPropertiesSet(CassandraSessionFactoryBean.java:63) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
- ... 15 common frames omitted
- Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment