Guest User

Untitled

a guest
May 18th, 2018
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. 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
  2. 2018-05-18 13:38:24.926 INFO 1042 --- [ main] ConditionEvaluationReportLoggingListener :
  3.  
  4. Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
  5. 2018-05-18 13:38:24.969 ERROR 1042 --- [ main] o.s.boot.SpringApplication : Application run failed
  6.  
  7. 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
  8. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  9. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:579) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  10. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:501) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  11. at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  12. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  13. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  14. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  15. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:741) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  16. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) ~[spring-context-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  17. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550) ~[spring-context-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  18. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
  19. at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:395) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
  20. at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
  21. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1255) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
  22. at org.springframework.boot.SpringApplication.run(SpringApplication.java:1243) [spring-boot-2.0.2.RELEASE.jar:2.0.2.RELEASE]
  23. at com.example.cassandra.CassandraApplication.main(CassandraApplication.java:10) [classes/:na]
  24. 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
  25. at org.springframework.data.cassandra.core.mapping.BasicCassandraPersistentProperty.getDataType(BasicCassandraPersistentProperty.java:170) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  26. 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]
  27. at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_171]
  28. 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]
  29. at java.util.Optional.orElseGet(Optional.java:267) ~[na:1.8.0_171]
  30. at org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getDataTypeWithUserTypeFactory(CassandraMappingContext.java:527) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  31. at org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getDataType(CassandraMappingContext.java:486) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  32. at org.springframework.data.cassandra.core.mapping.CassandraMappingContext.getCreateTableSpecificationFor(CassandraMappingContext.java:408) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  33. 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]
  34. at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_171]
  35. at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1553) ~[na:1.8.0_171]
  36. at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_171]
  37. at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_171]
  38. at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_171]
  39. at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_171]
  40. at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_171]
  41. at org.springframework.data.cassandra.core.CassandraPersistentEntitySchemaCreator.createTableSpecifications(CassandraPersistentEntitySchemaCreator.java:98) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  42. at org.springframework.data.cassandra.core.CassandraPersistentEntitySchemaCreator.createTables(CassandraPersistentEntitySchemaCreator.java:82) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  43. at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.performSchemaActions(CassandraSessionFactoryBean.java:174) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  44. at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.createTables(CassandraSessionFactoryBean.java:156) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  45. at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.performSchemaAction(CassandraSessionFactoryBean.java:91) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  46. at org.springframework.data.cassandra.config.CassandraSessionFactoryBean.afterPropertiesSet(CassandraSessionFactoryBean.java:63) ~[spring-data-cassandra-2.0.7.RELEASE.jar:2.0.7.RELEASE]
  47. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1765) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  48. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1702) ~[spring-beans-5.0.6.RELEASE.jar:5.0.6.RELEASE]
  49. ... 15 common frames omitted
  50.  
  51.  
  52. Process finished with exit code 1
Advertisement
Add Comment
Please, Sign In to add comment