diff --git a/cosmos_server-sb.properties b/cosmos_server-sb.properties new file mode 100644 index 0000000..e36cb08 --- /dev/null +++ b/cosmos_server-sb.properties @@ -0,0 +1,4 @@ +path.variable.kotlin_bundled=C\:\\Program Files\\JetBrains\\IntelliJ IDEA 2019.1.2\\plugins\\Kotlin\\kotlinc +path.variable.maven_repository=C\:\\Users\\student\\.m2\\repository +jdk.home.1.8=C\:/Program Files (x86)/Java/jdk1.8.0_211 +javac2.instrumentation.includeJavaRuntime=false \ No newline at end of file diff --git a/cosmos_server-sb.xml b/cosmos_server-sb.xml new file mode 100644 index 0000000..5c7a96a --- /dev/null +++ b/cosmos_server-sb.xml @@ -0,0 +1,904 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/logFilePath_IS_UNDEFINED2019/07/25.log b/logFilePath_IS_UNDEFINED2019/07/25.log new file mode 100644 index 0000000..c21d936 --- /dev/null +++ b/logFilePath_IS_UNDEFINED2019/07/25.log @@ -0,0 +1,341 @@ +2019/07/25 15:45:18 INFO [main] - Starting CosmosServerSbApplication on DESKTOP-CMI49UL with PID 7260 (C:\Users\student\IdeaProjects\CosmosServer\out\production\classes started by student in C:\Users\student\IdeaProjects\CosmosServer) +2019/07/25 15:45:18 INFO [main] - The following profiles are active: development +2019/07/25 15:45:19 INFO [main] - Bootstrapping Spring Data repositories in DEFAULT mode. +2019/07/25 15:45:19 INFO [main] - Finished Spring Data repository scanning in 15ms. Found 0 repository interfaces. +2019/07/25 15:45:20 INFO [main] - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$f0c0be6d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2019/07/25 15:45:20 INFO [main] - Tomcat initialized with port(s): 8080 (http) +2019/07/25 15:45:20 INFO [main] - Starting service [Tomcat] +2019/07/25 15:45:20 INFO [main] - Starting Servlet engine: [Apache Tomcat/9.0.17] +2019/07/25 15:45:20 INFO [main] - Initializing Spring embedded WebApplicationContext +2019/07/25 15:45:20 INFO [main] - Root WebApplicationContext: initialization completed in 1563 ms +2019/07/25 15:45:20 INFO [main] - HikariPool-1 - Starting... +2019/07/25 15:45:20 INFO [main] - HikariPool-1 - Start completed. +2019/07/25 15:45:21 INFO [main] - HHH000204: Processing PersistenceUnitInfo [ + name: default + ...] +2019/07/25 15:45:21 INFO [main] - HHH000412: Hibernate Core {5.3.9.Final} +2019/07/25 15:45:21 INFO [main] - HHH000206: hibernate.properties not found +2019/07/25 15:45:21 INFO [main] - HCANN000001: Hibernate Commons Annotations {5.0.4.Final} +2019/07/25 15:45:22 INFO [main] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 15:45:23 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 15:45:23 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 15:45:23 WARN [main] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.MappingException: class com.example.cosmos_serversb.entities.Group not found while looking for property: gId +2019/07/25 15:45:23 INFO [main] - HikariPool-1 - Shutdown initiated... +2019/07/25 15:45:23 INFO [main] - HikariPool-1 - Shutdown completed. +2019/07/25 15:45:23 INFO [main] - Stopping service [Tomcat] +2019/07/25 15:45:23 INFO [main] - + +Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. +2019/07/25 15:45:23 ERROR [main] - Application run failed +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.MappingException: class com.example.cosmos_serversb.entities.Group not found while looking for property: gId + 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(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.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105) + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) + at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) + 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.SpringApplication.run(SpringApplication.java:1260) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) + at com.example.cosmos_serversb.CosmosServerSbApplication.main(CosmosServerSbApplication.java:10) +Caused by: org.hibernate.MappingException: class com.example.cosmos_serversb.entities.Group not found while looking for property: gId + at org.hibernate.internal.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:221) + at org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:513) + at org.hibernate.boot.model.source.internal.hbm.ModelBinder.bindSimpleEntityIdentifier(ModelBinder.java:730) + at org.hibernate.boot.model.source.internal.hbm.ModelBinder.bindEntityIdentifier(ModelBinder.java:352) + at org.hibernate.boot.model.source.internal.hbm.ModelBinder.bindRootEntity(ModelBinder.java:247) + at org.hibernate.boot.model.source.internal.hbm.ModelBinder.bindEntityHierarchy(ModelBinder.java:194) + at org.hibernate.boot.model.source.internal.hbm.HbmMetadataSourceProcessorImpl.processEntityHierarchies(HbmMetadataSourceProcessorImpl.java:144) + at org.hibernate.boot.model.process.spi.MetadataBuildingProcess$1.processEntityHierarchies(MetadataBuildingProcess.java:227) + at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:274) + at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:904) + at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:935) + at org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:57) + at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:365) + at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:390) + at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:377) + at org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.afterPropertiesSet(LocalContainerEntityManagerFactoryBean.java:341) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1837) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1774) + ... 16 common frames omitted +Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load class [com.example.cosmos_serversb.entities.Group] + at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:354) + at org.hibernate.internal.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:217) + ... 33 common frames omitted +Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.example.cosmos_serversb.entities.Group + at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl$AggregatedClassLoader.findClass(ClassLoaderServiceImpl.java:342) + at java.lang.ClassLoader.loadClass(ClassLoader.java:424) + at java.lang.ClassLoader.loadClass(ClassLoader.java:357) + at java.lang.Class.forName0(Native Method) + at java.lang.Class.forName(Class.java:348) + at org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:351) + ... 34 common frames omitted +2019/07/25 16:15:25 INFO [main] - Starting CosmosServerSbApplication on DESKTOP-CMI49UL with PID 8024 (C:\Users\student\IdeaProjects\CosmosServer\out\production\classes started by student in C:\Users\student\IdeaProjects\CosmosServer) +2019/07/25 16:15:25 INFO [main] - The following profiles are active: development +2019/07/25 16:15:26 INFO [main] - Bootstrapping Spring Data repositories in DEFAULT mode. +2019/07/25 16:15:26 INFO [main] - Finished Spring Data repository scanning in 16ms. Found 0 repository interfaces. +2019/07/25 16:15:26 INFO [main] - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$3393098e] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2019/07/25 16:15:26 INFO [main] - Tomcat initialized with port(s): 8080 (http) +2019/07/25 16:15:26 INFO [main] - Starting service [Tomcat] +2019/07/25 16:15:26 INFO [main] - Starting Servlet engine: [Apache Tomcat/9.0.17] +2019/07/25 16:15:26 INFO [main] - Initializing Spring embedded WebApplicationContext +2019/07/25 16:15:26 INFO [main] - Root WebApplicationContext: initialization completed in 1396 ms +2019/07/25 16:15:27 INFO [main] - Initializing ExecutorService 'applicationTaskExecutor' +2019/07/25 16:15:27 WARN [main] - Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) +2019/07/25 16:15:27 WARN [main] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: org.h2.Driver +2019/07/25 16:15:27 INFO [main] - Shutting down ExecutorService 'applicationTaskExecutor' +2019/07/25 16:15:27 INFO [main] - Stopping service [Tomcat] +2019/07/25 16:15:27 INFO [main] - + +Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. +2019/07/25 16:15:27 ERROR [main] - Application run failed +org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: org.h2.Driver + 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(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.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:142) + 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.SpringApplication.run(SpringApplication.java:1260) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) + at com.example.cosmos_serversb.CosmosServerSbApplication.main(CosmosServerSbApplication.java:10) +Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: org.h2.Driver + at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) + at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:622) + ... 19 common frames omitted +Caused by: java.lang.IllegalStateException: Cannot load driver class: org.h2.Driver + at org.springframework.util.Assert.state(Assert.java:94) + at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.determineDriverClassName(DataSourceProperties.java:224) + at org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.initializeDataSourceBuilder(DataSourceProperties.java:176) + at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration.createDataSource(DataSourceConfiguration.java:44) + at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari.dataSource(DataSourceConfiguration.java:88) + at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari$$EnhancerBySpringCGLIB$$7412737b.CGLIB$dataSource$0() + at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari$$EnhancerBySpringCGLIB$$7412737b$$FastClassBySpringCGLIB$$c72bd156.invoke() + at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) + at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:363) + at org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari$$EnhancerBySpringCGLIB$$7412737b.dataSource() + 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) + ... 20 common frames omitted +2019/07/25 16:18:28 INFO [main] - Starting CosmosServerSbApplication on DESKTOP-CMI49UL with PID 12156 (C:\Users\student\IdeaProjects\CosmosServer\out\production\classes started by student in C:\Users\student\IdeaProjects\CosmosServer) +2019/07/25 16:18:28 INFO [main] - The following profiles are active: development +2019/07/25 16:18:29 INFO [main] - Bootstrapping Spring Data repositories in DEFAULT mode. +2019/07/25 16:18:29 INFO [main] - Finished Spring Data repository scanning in 16ms. Found 0 repository interfaces. +2019/07/25 16:18:30 INFO [main] - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$c8c9d412] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2019/07/25 16:18:30 INFO [main] - Tomcat initialized with port(s): 8080 (http) +2019/07/25 16:18:30 INFO [main] - Starting service [Tomcat] +2019/07/25 16:18:30 INFO [main] - Starting Servlet engine: [Apache Tomcat/9.0.17] +2019/07/25 16:18:30 INFO [main] - Initializing Spring embedded WebApplicationContext +2019/07/25 16:18:30 INFO [main] - Root WebApplicationContext: initialization completed in 1514 ms +2019/07/25 16:18:30 INFO [main] - HikariPool-1 - Starting... +2019/07/25 16:18:30 INFO [main] - HikariPool-1 - Start completed. +2019/07/25 16:18:30 INFO [main] - HHH000204: Processing PersistenceUnitInfo [name: default] +2019/07/25 16:18:31 INFO [main] - HHH000412: Hibernate Core {5.4.2.Final} +2019/07/25 16:18:31 INFO [main] - HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2019/07/25 16:18:31 INFO [main] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:18:31 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:18:31 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:18:32 INFO [main] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:18:32 INFO [main] - Initialized JPA EntityManagerFactory for persistence unit 'default' +2019/07/25 16:18:32 INFO [main] - Initializing ExecutorService 'applicationTaskExecutor' +2019/07/25 16:18:32 WARN [main] - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2019/07/25 16:18:32 WARN [main] - Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) +2019/07/25 16:18:33 INFO [main] - Tomcat started on port(s): 8080 (http) with context path '' +2019/07/25 16:18:33 INFO [main] - Started CosmosServerSbApplication in 4.765 seconds (JVM running for 5.509) +2019/07/25 16:18:40 WARN [http-nio-8080-exec-1] - A servlet request to the URI http://localhost:8080/users contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:18:40 WARN [http-nio-8080-exec-1] - HHH10001002: Using Hibernate built-in connection pool (not for production use!) +2019/07/25 16:18:40 INFO [http-nio-8080-exec-1] - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:sampledb;DB_CLOSE_DELAY=-1;MVCC=TRUE] +2019/07/25 16:18:40 INFO [http-nio-8080-exec-1] - HHH10001001: Connection properties: {user=sa, password=****} +2019/07/25 16:18:40 INFO [http-nio-8080-exec-1] - HHH10001003: Autocommit mode: false +2019/07/25 16:18:40 INFO [http-nio-8080-exec-1] - HHH000115: Hibernate connection pool size: 1 (min=1) +2019/07/25 16:18:40 INFO [http-nio-8080-exec-1] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:18:40 WARN [http-nio-8080-exec-1] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:18:40 WARN [http-nio-8080-exec-1] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:18:40 INFO [http-nio-8080-exec-1] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@c57ef9] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@145439d] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:18:41 WARN [http-nio-8080-exec-1] - HHH10001002: Using Hibernate built-in connection pool (not for production use!) +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:sampledb;DB_CLOSE_DELAY=-1;MVCC=TRUE] +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH10001001: Connection properties: {user=sa, password=****} +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH10001003: Autocommit mode: false +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH000115: Hibernate connection pool size: 1 (min=1) +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:18:41 WARN [http-nio-8080-exec-1] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:18:41 WARN [http-nio-8080-exec-1] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@17c6224] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@1eddaa8] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:18:41 INFO [http-nio-8080-exec-1] - test さんのアカウント作成が完了しました。 +2019/07/25 16:19:25 WARN [http-nio-8080-exec-4] - A servlet request to the URI http://localhost:8080/groups contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:22:13 WARN [http-nio-8080-exec-3] - A servlet request to the URI http://localhost:8080/0fd20362-a013-459d-b9ba-905cdcd6349a/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:22:13 WARN [http-nio-8080-exec-3] - A servlet request to the URI http://localhost:8080/error contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:23:17 WARN [http-nio-8080-exec-8] - A servlet request to the URI http://localhost:8080/0fd20362-a013-459d-b9ba-905cdcd6349a/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:23:17 WARN [http-nio-8080-exec-8] - A servlet request to the URI http://localhost:8080/error contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:24:48 WARN [http-nio-8080-exec-4] - A servlet request to the URI http://localhost:8080/0fd20362-a013-459d-b9ba-905cdcd6349a/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:24:48 WARN [http-nio-8080-exec-4] - A servlet request to the URI http://localhost:8080/error contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:25:43 WARN [http-nio-8080-exec-8] - A servlet request to the URI http://localhost:8080/groups/0fd20362-a013-459d-b9ba-905cdcd6349a/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:25:43 WARN [http-nio-8080-exec-8] - A servlet request to the URI http://localhost:8080/error contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:27:23 WARN [http-nio-8080-exec-7] - A servlet request to the URI http://localhost:8080/groups/0fd20362-a013-459d-b9ba-905cdcd6349a/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:27:23 WARN [http-nio-8080-exec-7] - A servlet request to the URI http://localhost:8080/error contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:29:12 INFO [main] - Starting CosmosServerSbApplication on DESKTOP-CMI49UL with PID 11564 (C:\Users\student\IdeaProjects\CosmosServer\out\production\classes started by student in C:\Users\student\IdeaProjects\CosmosServer) +2019/07/25 16:29:12 INFO [main] - The following profiles are active: development +2019/07/25 16:29:12 INFO [main] - Bootstrapping Spring Data repositories in DEFAULT mode. +2019/07/25 16:29:12 INFO [main] - Finished Spring Data repository scanning in 23ms. Found 0 repository interfaces. +2019/07/25 16:29:13 INFO [main] - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$2fca8a48] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2019/07/25 16:29:13 INFO [main] - Tomcat initialized with port(s): 8080 (http) +2019/07/25 16:29:13 INFO [main] - Starting service [Tomcat] +2019/07/25 16:29:13 INFO [main] - Starting Servlet engine: [Apache Tomcat/9.0.17] +2019/07/25 16:29:14 INFO [main] - Initializing Spring embedded WebApplicationContext +2019/07/25 16:29:14 INFO [main] - Root WebApplicationContext: initialization completed in 1947 ms +2019/07/25 16:29:14 INFO [main] - HikariPool-1 - Starting... +2019/07/25 16:29:14 INFO [main] - HikariPool-1 - Start completed. +2019/07/25 16:29:14 INFO [main] - HHH000204: Processing PersistenceUnitInfo [name: default] +2019/07/25 16:29:14 INFO [main] - HHH000412: Hibernate Core {5.4.2.Final} +2019/07/25 16:29:14 INFO [main] - HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2019/07/25 16:29:15 INFO [main] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:29:15 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:29:15 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:29:16 INFO [main] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:29:16 INFO [main] - Initialized JPA EntityManagerFactory for persistence unit 'default' +2019/07/25 16:29:16 INFO [main] - Initializing ExecutorService 'applicationTaskExecutor' +2019/07/25 16:29:16 WARN [main] - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2019/07/25 16:29:17 WARN [main] - Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) +2019/07/25 16:29:17 INFO [main] - Tomcat started on port(s): 8080 (http) with context path '' +2019/07/25 16:29:17 INFO [main] - Started CosmosServerSbApplication in 6.078 seconds (JVM running for 8.676) +2019/07/25 16:29:33 WARN [http-nio-8080-exec-5] - A servlet request to the URI http://localhost:8080/users contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:29:33 WARN [http-nio-8080-exec-5] - HHH10001002: Using Hibernate built-in connection pool (not for production use!) +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:sampledb;DB_CLOSE_DELAY=-1;MVCC=TRUE] +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001001: Connection properties: {user=sa, password=****} +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001003: Autocommit mode: false +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH000115: Hibernate connection pool size: 1 (min=1) +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:29:33 WARN [http-nio-8080-exec-5] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:29:33 WARN [http-nio-8080-exec-5] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@161d406] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@1fad4be] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:29:33 WARN [http-nio-8080-exec-5] - HHH10001002: Using Hibernate built-in connection pool (not for production use!) +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:sampledb;DB_CLOSE_DELAY=-1;MVCC=TRUE] +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001001: Connection properties: {user=sa, password=****} +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001003: Autocommit mode: false +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH000115: Hibernate connection pool size: 1 (min=1) +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:29:33 WARN [http-nio-8080-exec-5] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:29:33 WARN [http-nio-8080-exec-5] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@4237fd] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@f34aaa] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:29:33 INFO [http-nio-8080-exec-5] - test さんのアカウント作成が完了しました。 +2019/07/25 16:29:51 WARN [http-nio-8080-exec-1] - A servlet request to the URI http://localhost:8080/groups contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:30:26 WARN [http-nio-8080-exec-6] - A servlet request to the URI http://localhost:8080/groups/5c201734-22aa-4a6f-8586-3e8852eb57ae/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:30:26 WARN [http-nio-8080-exec-6] - A servlet request to the URI http://localhost:8080/error contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:30:34 WARN [http-nio-8080-exec-5] - A servlet request to the URI http://localhost:8080/groups/5c201734-22aa-4a6f-8586-3e8852eb57ae/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:30:34 WARN [http-nio-8080-exec-5] - A servlet request to the URI http://localhost:8080/error contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:31:37 INFO [Thread-4] - Shutting down ExecutorService 'applicationTaskExecutor' +2019/07/25 16:31:37 INFO [Thread-4] - Closing JPA EntityManagerFactory for persistence unit 'default' +2019/07/25 16:31:37 INFO [Thread-4] - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down' +2019/07/25 16:31:37 INFO [Thread-4] - HikariPool-1 - Shutdown initiated... +2019/07/25 16:31:37 INFO [Thread-4] - HikariPool-1 - Shutdown completed. +2019/07/25 16:31:55 INFO [main] - Starting CosmosServerSbApplication on DESKTOP-CMI49UL with PID 1208 (C:\Users\student\IdeaProjects\CosmosServer\out\production\classes started by student in C:\Users\student\IdeaProjects\CosmosServer) +2019/07/25 16:31:55 INFO [main] - The following profiles are active: development +2019/07/25 16:31:56 INFO [main] - Bootstrapping Spring Data repositories in DEFAULT mode. +2019/07/25 16:31:56 INFO [main] - Finished Spring Data repository scanning in 38ms. Found 0 repository interfaces. +2019/07/25 16:31:56 INFO [main] - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$ed928285] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2019/07/25 16:31:56 INFO [main] - Tomcat initialized with port(s): 8080 (http) +2019/07/25 16:31:56 INFO [main] - Starting service [Tomcat] +2019/07/25 16:31:56 INFO [main] - Starting Servlet engine: [Apache Tomcat/9.0.17] +2019/07/25 16:31:56 INFO [main] - Initializing Spring embedded WebApplicationContext +2019/07/25 16:31:56 INFO [main] - Root WebApplicationContext: initialization completed in 1516 ms +2019/07/25 16:31:57 INFO [main] - HikariPool-1 - Starting... +2019/07/25 16:31:57 INFO [main] - HikariPool-1 - Start completed. +2019/07/25 16:31:57 INFO [main] - HHH000204: Processing PersistenceUnitInfo [name: default] +2019/07/25 16:31:57 INFO [main] - HHH000412: Hibernate Core {5.4.2.Final} +2019/07/25 16:31:57 INFO [main] - HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2019/07/25 16:31:58 INFO [main] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:31:58 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:31:58 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:31:58 INFO [main] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:31:58 INFO [main] - Initialized JPA EntityManagerFactory for persistence unit 'default' +2019/07/25 16:31:59 INFO [main] - Initializing ExecutorService 'applicationTaskExecutor' +2019/07/25 16:31:59 WARN [main] - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2019/07/25 16:31:59 WARN [main] - Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) +2019/07/25 16:31:59 INFO [main] - Tomcat started on port(s): 8080 (http) with context path '' +2019/07/25 16:31:59 INFO [main] - Started CosmosServerSbApplication in 4.648 seconds (JVM running for 5.391) +2019/07/25 16:32:05 WARN [http-nio-8080-exec-2] - A servlet request to the URI http://localhost:8080/users contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:32:05 WARN [http-nio-8080-exec-2] - HHH10001002: Using Hibernate built-in connection pool (not for production use!) +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:sampledb;DB_CLOSE_DELAY=-1;MVCC=TRUE] +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001001: Connection properties: {user=sa, password=****} +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001003: Autocommit mode: false +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH000115: Hibernate connection pool size: 1 (min=1) +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:32:05 WARN [http-nio-8080-exec-2] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:32:05 WARN [http-nio-8080-exec-2] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@dfa31d] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@1bc3ff1] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:32:05 WARN [http-nio-8080-exec-2] - HHH10001002: Using Hibernate built-in connection pool (not for production use!) +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:sampledb;DB_CLOSE_DELAY=-1;MVCC=TRUE] +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001001: Connection properties: {user=sa, password=****} +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001003: Autocommit mode: false +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH000115: Hibernate connection pool size: 1 (min=1) +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:32:05 WARN [http-nio-8080-exec-2] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:32:05 WARN [http-nio-8080-exec-2] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@efadd8] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess@156f23b] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode. +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:32:05 INFO [http-nio-8080-exec-2] - test さんのアカウント作成が完了しました。 +2019/07/25 16:32:20 WARN [http-nio-8080-exec-3] - A servlet request to the URI http://localhost:8080/groups contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:35:45 WARN [http-nio-8080-exec-1] - A servlet request to the URI http://localhost:8080/groups/14768e59-86d5-4844-95c9-d6dc77030153/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:35:45 WARN [http-nio-8080-exec-1] - A servlet request to the URI http://localhost:8080/error contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:36:23 WARN [http-nio-8080-exec-10] - A servlet request to the URI http://localhost:8080/groups/14768e59-86d5-4844-95c9-d6dc77030153/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:36:54 WARN [http-nio-8080-exec-4] - A servlet request to the URI http://localhost:8080/groups/14768e59-86d5-4844-95c9-d6dc77030153/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:36:55 WARN [http-nio-8080-exec-8] - A servlet request to the URI http://localhost:8080/groups/14768e59-86d5-4844-95c9-d6dc77030153/requests contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:38:22 WARN [http-nio-8080-exec-3] - A servlet request to the URI http://localhost:8080/groups/14768e59-86d5-4844-95c9-d6dc77030153/requests?token=123&detail=true&quantity=5 contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:38:47 WARN [http-nio-8080-exec-5] - A servlet request to the URI http://localhost:8080/groups/14768e59-86d5-4844-95c9-d6dc77030153/requests?token=123&detail=true&quantity=2 contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. +2019/07/25 16:41:35 INFO [main] - Starting CosmosServerSbApplication on DESKTOP-CMI49UL with PID 8828 (C:\Users\student\IdeaProjects\CosmosServer\out\production\classes started by student in C:\Users\student\IdeaProjects\CosmosServer) +2019/07/25 16:41:35 INFO [main] - The following profiles are active: development +2019/07/25 16:41:36 INFO [main] - Bootstrapping Spring Data repositories in DEFAULT mode. +2019/07/25 16:41:36 INFO [main] - Finished Spring Data repository scanning in 32ms. Found 0 repository interfaces. +2019/07/25 16:41:36 INFO [main] - Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$b2cd7f8a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) +2019/07/25 16:41:37 INFO [main] - Tomcat initialized with port(s): 8080 (http) +2019/07/25 16:41:37 INFO [main] - Starting service [Tomcat] +2019/07/25 16:41:37 INFO [main] - Starting Servlet engine: [Apache Tomcat/9.0.17] +2019/07/25 16:41:37 INFO [main] - Initializing Spring embedded WebApplicationContext +2019/07/25 16:41:37 INFO [main] - Root WebApplicationContext: initialization completed in 1528 ms +2019/07/25 16:41:37 INFO [main] - HikariPool-1 - Starting... +2019/07/25 16:41:37 INFO [main] - HikariPool-1 - Start completed. +2019/07/25 16:41:37 INFO [main] - HHH000204: Processing PersistenceUnitInfo [name: default] +2019/07/25 16:41:37 INFO [main] - HHH000412: Hibernate Core {5.4.2.Final} +2019/07/25 16:41:37 INFO [main] - HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2019/07/25 16:41:38 INFO [main] - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect +2019/07/25 16:41:38 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:41:38 WARN [main] - HHH90000009: The outer-join attribute on has been deprecated. Instead of outer-join="false", use lazy="extra" with , , , , or , which will only initialize entities (not as a proxy) as needed. +2019/07/25 16:41:39 INFO [main] - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2019/07/25 16:41:39 INFO [main] - Initialized JPA EntityManagerFactory for persistence unit 'default' +2019/07/25 16:41:39 INFO [main] - Initializing ExecutorService 'applicationTaskExecutor' +2019/07/25 16:41:39 WARN [main] - spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2019/07/25 16:41:39 WARN [main] - Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration) +2019/07/25 16:41:39 INFO [main] - Tomcat started on port(s): 8080 (http) with context path '' +2019/07/25 16:41:39 INFO [main] - Started CosmosServerSbApplication in 4.744 seconds (JVM running for 5.444) diff --git a/src/main/java/com/example/cosmos_serversb/entities/Token.java b/src/main/java/com/example/cosmos_serversb/entities/Token.java index 6e5a120..42fd4b3 100644 --- a/src/main/java/com/example/cosmos_serversb/entities/Token.java +++ b/src/main/java/com/example/cosmos_serversb/entities/Token.java @@ -24,4 +24,6 @@ return uId; } + + } diff --git a/src/main/java/com/example/cosmos_serversb/jsons/UserJsonForRequests.java b/src/main/java/com/example/cosmos_serversb/jsons/UserJsonForRequests.java index 0c9fe54..647c1af 100644 --- a/src/main/java/com/example/cosmos_serversb/jsons/UserJsonForRequests.java +++ b/src/main/java/com/example/cosmos_serversb/jsons/UserJsonForRequests.java @@ -2,14 +2,13 @@ import com.example.cosmos_serversb.entities.Group; import com.example.cosmos_serversb.entities.User; +import com.example.cosmos_serversb.entities.Token; import java.util.HashSet; import java.util.Set; public class UserJsonForRequests { public String uId, uri, name, iconUri; - public boolean login = true; - public String token; public UserJsonForRequests() { @@ -19,8 +18,6 @@ setUri(user.getUri()); setName(user.getName()); setIconUri(user.getIconUri()); - setToken(user.getToken()); - this.login = true; } public String getuId() { @@ -55,20 +52,4 @@ this.iconUri = iconUri; } - public boolean getLogin() { - return login; - } - - public void setLogin(boolean login) { - this.login = login; - } - - public void setToken(String token) { - this.token = token; - } - - public String getToken() { - return token; - } - } diff --git a/src/main/java/com/example/cosmos_serversb/models/Groups.java b/src/main/java/com/example/cosmos_serversb/models/Groups.java index 28f67bf..6e1abbb 100644 --- a/src/main/java/com/example/cosmos_serversb/models/Groups.java +++ b/src/main/java/com/example/cosmos_serversb/models/Groups.java @@ -13,7 +13,6 @@ public class Groups { private static Groups theInstance = null; private static ArrayList groups = new ArrayList<>(); - //private static HashMap groupsMap = new HashMap<>(); private static SessionFactory sessionFactory; private static String baseURI = "http://nitta-lab-www.is.konan-u.ac.jp/"; @@ -43,7 +42,9 @@ } public static GroupsMapJson getGroupsListByUid(String uId){ - return getGroupsHashMap(uId); + Session session = SessionManager.getInstance().getSession(); + GroupsMapJson groupsjson = new GroupsMapJson(session.load(User.class, uId)); + return groupsjson; } public static Group createGroup(String name, String uId){ @@ -71,12 +72,13 @@ } public static DeleteResult deleteGroup(String gId){ - Group editGroup = Groups.getInstance().getGroupByGid(gId); - if(editGroup == null){ + Group deleteGroup = Groups.getInstance().getGroupByGid(gId); + + if(deleteGroup == null){ return DeleteResult.FAILURE; } //以下に削除処理を行う。 - return DeleteResult.SUCCESS; + return DeleteResult.SUCCESS; } public static HashMap getMembersListByGid(String gId){ @@ -173,11 +175,4 @@ } } */ - - public static GroupsMapJson getGroupsHashMap(String uId){ - Session session = SessionManager.getInstance().getSession(); - GroupsMapJson groupsjson = new GroupsMapJson(session.load(User.class, uId)); - return groupsjson; - } - } diff --git a/src/main/java/com/example/cosmos_serversb/resources/GroupsRest.java b/src/main/java/com/example/cosmos_serversb/resources/GroupsRest.java index bd30720..64a3e3e 100644 --- a/src/main/java/com/example/cosmos_serversb/resources/GroupsRest.java +++ b/src/main/java/com/example/cosmos_serversb/resources/GroupsRest.java @@ -20,7 +20,7 @@ public class GroupsRest { @GET public String getGroupsListByUid(@QueryParam("uId") String uId, @QueryParam("token") String token) throws JsonProcessingException{ - Session session = SessionManager.getInstance().getSession(); + SessionManager.getInstance().getSession(); ObjectMapper mapper = new ObjectMapper(); String json = mapper.writeValueAsString(Groups.getInstance().getGroupsListByUid(uId)); SessionManager.getInstance().closeSession(); @@ -55,8 +55,13 @@ @GET public String getGroupByGid(@PathParam("gId") String gId, @QueryParam("token") String token) throws JsonProcessingException{ SessionManager.getInstance().getSession(); + Group group = Groups.getInstance().getGroupByGid(gId); + SessionManager.getInstance().closeSession(); + + Session session = SessionManager.getInstance().getSession(); + GroupJson groupJson = new GroupJson(session.load(Group.class, group.getgId())); ObjectMapper mapper = new ObjectMapper(); - String json = mapper.writeValueAsString(Groups.getInstance().getGroupByGid(gId)); + String json = mapper.writeValueAsString(groupJson); SessionManager.getInstance().closeSession(); return json; }