· 8 years ago · Jan 05, 2018, 06:46 PM
1Microsoft Windows [Version 10.0.16299.125]
2(c) 2017. Microsoft Corporation. Sva prava pridržana.
3
4C:\Users\Vlado\OPP_workspace\PetsOnlyZg>mvnw spring-boot:run
5[INFO] Scanning for projects...
6[INFO]
7[INFO] ------------------------------------------------------------------------
8[INFO] Building demo 0
9[INFO] ------------------------------------------------------------------------
10[INFO]
11[INFO] >>> spring-boot-maven-plugin:1.5.6.RELEASE:run (default-cli) > test-compile @ PetsOnlyZg >>>
12[INFO]
13[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ PetsOnlyZg ---
14[INFO] Using 'UTF-8' encoding to copy filtered resources.
15[INFO] Copying 1 resource
16[INFO] Copying 11 resources
17[INFO]
18[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ PetsOnlyZg ---
19[INFO] Changes detected - recompiling the module!
20[INFO] Compiling 25 source files to C:\Users\Vlado\OPP_workspace\PetsOnlyZg\target\classes
21[INFO]
22[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ PetsOnlyZg ---
23[INFO] Using 'UTF-8' encoding to copy filtered resources.
24[INFO] skip non existing resourceDirectory C:\Users\Vlado\OPP_workspace\PetsOnlyZg\src\test\resources
25[INFO]
26[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ PetsOnlyZg ---
27[INFO] Nothing to compile - all classes are up to date
28[INFO]
29[INFO] <<< spring-boot-maven-plugin:1.5.6.RELEASE:run (default-cli) < test-compile @ PetsOnlyZg <<<
30[INFO]
31[INFO]
32[INFO] --- spring-boot-maven-plugin:1.5.6.RELEASE:run (default-cli) @ PetsOnlyZg ---
33[INFO] Attaching agents: []
3419:43:00.220 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Included patterns for restart : []
3519:43:00.229 [main] DEBUG org.springframework.boot.devtools.settings.DevToolsSettings - Excluded patterns for restart : [/spring-boot-starter/target/classes/, /spring-boot
36-autoconfigure/target/classes/, /spring-boot-starter-[\w-]+/, /spring-boot/target/classes/, /spring-boot-actuator/target/classes/, /spring-boot-devtools/target/classes/]
3719:43:00.232 [main] DEBUG org.springframework.boot.devtools.restart.ChangeableUrls - Matching URLs for reloading : [file:/C:/Users/Vlado/OPP_workspace/PetsOnlyZg/target/cl
38asses/]
39
40 . ____ _ __ _ _
41 /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
42( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
43 \\/ ___)| |_)| | | | | || (_| | ) ) ) )
44 ' |____| .__|_| |_|_| |_\__, | / / / /
45 =========|_|==============|___/=/_/_/_/
46 :: Spring Boot :: (v1.5.6.RELEASE)
47
482018-01-05 19:43:01.462 INFO 1856 --- [ restartedMain] hr.petsonly.DemoApplication : Starting DemoApplication on VladoPC with PID 1856 (C:\Users\Vlado\OPP_w
49orkspace\PetsOnlyZg\target\classes started by Vlado in C:\Users\Vlado\OPP_workspace\PetsOnlyZg)
502018-01-05 19:43:01.467 INFO 1856 --- [ restartedMain] hr.petsonly.DemoApplication : No active profile set, falling back to default profiles: default
512018-01-05 19:43:01.661 INFO 1856 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEm
52beddedWebApplicationContext@4198563c: startup date [Fri Jan 05 19:43:01 CET 2018]; root of context hierarchy
532018-01-05 19:43:05.854 INFO 1856 --- [ restartedMain] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8000 (http)
542018-01-05 19:43:05.879 INFO 1856 --- [ restartedMain] o.apache.catalina.core.StandardService : Starting service [Tomcat]
552018-01-05 19:43:05.881 INFO 1856 --- [ restartedMain] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.16
562018-01-05 19:43:06.395 INFO 1856 --- [ost-startStop-1] org.apache.jasper.servlet.TldScanner : At least one JAR was scanned for TLDs yet contained no TLDs. Enable deb
57ug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time an
58d JSP compilation time.
592018-01-05 19:43:06.406 INFO 1856 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
602018-01-05 19:43:06.408 INFO 1856 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 4759 ms
612018-01-05 19:43:06.772 INFO 1856 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
622018-01-05 19:43:06.774 INFO 1856 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
632018-01-05 19:43:06.775 INFO 1856 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
642018-01-05 19:43:06.775 INFO 1856 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
652018-01-05 19:43:06.777 INFO 1856 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
662018-01-05 19:43:06.778 INFO 1856 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
67Fri Jan 05 19:43:07 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
68quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
69property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
70n.
71Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
72quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
73property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
74n.
75Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
76quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
77property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
78n.
79Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
80quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
81property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
82n.
83Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
84quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
85property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
86n.
87Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
88quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
89property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
90n.
91Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
92quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
93property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
94n.
95Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
96quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
97property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
98n.
99Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
100quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
101property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
102n.
103Fri Jan 05 19:43:08 CET 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ re
104quirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate
105property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verificatio
106n.
1072018-01-05 19:43:08.387 INFO 1856 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'defau
108lt'
1092018-01-05 19:43:08.426 INFO 1856 --- [ restartedMain] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [
110 name: default
111 ...]
1122018-01-05 19:43:08.537 INFO 1856 --- [ restartedMain] org.hibernate.Version : HHH000412: Hibernate Core {5.0.12.Final}
1132018-01-05 19:43:08.539 INFO 1856 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
1142018-01-05 19:43:08.541 INFO 1856 --- [ restartedMain] org.hibernate.cfg.Environment : HHH000021: Bytecode provider name : javassist
1152018-01-05 19:43:08.605 INFO 1856 --- [ restartedMain] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
1162018-01-05 19:43:09.007 INFO 1856 --- [ restartedMain] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
1172018-01-05 19:43:10.160 INFO 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000227: Running hbm2ddl schema export
118Hibernate: alter table pet drop foreign key FKhg3enfwsufxjb6enqetxx2ku0
119Hibernate: alter table reservation drop foreign key FKrea93581tgkq61mdl13hehami
120Hibernate: alter table reservation drop foreign key FKkdnwj3xd9c2i6kix6b2tsdho4
121Hibernate: alter table reservation drop foreign key FKiwixlvb47yturr95t9jpjdq8b
122Hibernate: alter table roles_privileges drop foreign key FK5yjwxw2gvfyu76j3rgqwo685u
123Hibernate: alter table roles_privileges drop foreign key FK9h2vewsqh8luhfq71xokh4who
124Hibernate: alter table users drop foreign key FKscan6s3oplch90k26jpvied7b
1252018-01-05 19:43:10.447 ERROR 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000389: Unsuccessful: alter table users drop foreign key FKscan6s3op
126lch90k26jpvied7b
1272018-01-05 19:43:10.450 ERROR 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : Can't DROP 'FKscan6s3oplch90k26jpvied7b'; check that column/key exists
128Hibernate: alter table users_roles drop foreign key FKt4v0rrweyk393bdgt107vdx0x
129Hibernate: alter table users_roles drop foreign key FK2o0jvgh89lemvvo17cbqvdxaa
130Hibernate: drop table if exists location
1312018-01-05 19:43:10.493 ERROR 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000389: Unsuccessful: drop table if exists location
1322018-01-05 19:43:10.493 ERROR 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : Cannot delete or update a parent row: a foreign key constraint fails
133Hibernate: drop table if exists pet
134Hibernate: drop table if exists privilege
135Hibernate: drop table if exists reservation
136Hibernate: drop table if exists role
137Hibernate: drop table if exists roles_privileges
138Hibernate: drop table if exists service
139Hibernate: drop table if exists users
140Hibernate: drop table if exists users_roles
141Hibernate: create table location (location_id binary(255) not null, location_name varchar(255), zip_code integer, primary key (location_id))
1422018-01-05 19:43:10.690 ERROR 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000389: Unsuccessful: create table location (location_id binary(255)
143 not null, location_name varchar(255), zip_code integer, primary key (location_id))
1442018-01-05 19:43:10.690 ERROR 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : Table 'location' already exists
145Hibernate: create table pet (pet_key binary(255) not null, age integer, breed varchar(255), microchip varchar(255), name varchar(255), remark varchar(255), sex char(1), sp
146ecies varchar(255), user_id binary(255), primary key (pet_key))
147Hibernate: create table privilege (id bigint not null auto_increment, name varchar(255), primary key (id))
148Hibernate: create table reservation (reservation_key binary(255) not null, document_path varchar(255), duration double precision, execution_time tinyblob, price double pre
149cision, reservation_status integer, reservation_time tinyblob, send_reminder bit, user_id binary(255), pet_key binary(255), service_key binary(255), primary key (reservati
150on_key))
151Hibernate: create table role (id bigint not null auto_increment, name varchar(255), primary key (id))
152Hibernate: create table roles_privileges (role_id bigint not null, privilege_id bigint not null)
153Hibernate: create table service (service_key binary(255) not null, description varchar(255), name varchar(255), price double precision, primary key (service_key))
154Hibernate: create table users (user_id binary(255) not null, address varchar(255), email varchar(255), mobile_phone varchar(255), name varchar(255), not_available_from tin
155yblob, not_available_to tinyblob, notification_setting integer, password varchar(255), phone varchar(255), remark varchar(255), surname varchar(255), user_mnemonic varchar
156(255), user_pid varchar(255), location_id binary(255), primary key (user_id))
157Hibernate: create table users_roles (user_id binary(255) not null, role_id bigint not null)
158Hibernate: alter table users add constraint UK_6dotkott2kjsp8vw4d0m25fb7 unique (email)
159Hibernate: alter table pet add constraint FKhg3enfwsufxjb6enqetxx2ku0 foreign key (user_id) references users (user_id)
160Hibernate: alter table reservation add constraint FKrea93581tgkq61mdl13hehami foreign key (user_id) references users (user_id)
161Hibernate: alter table reservation add constraint FKkdnwj3xd9c2i6kix6b2tsdho4 foreign key (pet_key) references pet (pet_key)
162Hibernate: alter table reservation add constraint FKiwixlvb47yturr95t9jpjdq8b foreign key (service_key) references service (service_key)
163Hibernate: alter table roles_privileges add constraint FK5yjwxw2gvfyu76j3rgqwo685u foreign key (privilege_id) references privilege (id)
164Hibernate: alter table roles_privileges add constraint FK9h2vewsqh8luhfq71xokh4who foreign key (role_id) references role (id)
165Hibernate: alter table users add constraint FKscan6s3oplch90k26jpvied7b foreign key (location_id) references location (location_id)
1662018-01-05 19:43:12.573 ERROR 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000389: Unsuccessful: alter table users add constraint FKscan6s3oplc
167h90k26jpvied7b foreign key (location_id) references location (location_id)
1682018-01-05 19:43:12.574 ERROR 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : Cannot add foreign key constraint
169Hibernate: alter table users_roles add constraint FKt4v0rrweyk393bdgt107vdx0x foreign key (role_id) references role (id)
170Hibernate: alter table users_roles add constraint FK2o0jvgh89lemvvo17cbqvdxaa foreign key (user_id) references users (user_id)
1712018-01-05 19:43:12.920 INFO 1856 --- [ restartedMain] org.hibernate.tool.hbm2ddl.SchemaExport : HHH000230: Schema export complete
1722018-01-05 19:43:13.010 INFO 1856 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
1732018-01-05 19:43:13.079 INFO 1856 --- [ restartedMain] o.s.jdbc.datasource.init.ScriptUtils : Executing SQL script from URL [file:/C:/Users/Vlado/OPP_workspace/PetsO
174nlyZg/target/classes/data.sql]
1752018-01-05 19:43:13.092 WARN 1856 --- [ restartedMain] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refres
176h attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryTestController': Unsatisfied dependency expressed thr
177ough field 'lr'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'locationRepository': Cannot create inner bean
178'(inner bean)#2e0be530' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframewo
179rk.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#2e0be530': Cannot resolve reference to bean 'entityManagerFactory' while setting constr
180uctor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory': Post-processing of Facto
181ryBean's singleton object failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of
182 URL [file:/C:/Users/Vlado/OPP_workspace/PetsOnlyZg/target/classes/data.sql]: INSERT INTO location (location_id, location_name, zip_code) VALUES ('\x1000', "Zagreb", 10000
183); nested exception is java.sql.SQLException: Incorrect integer value: 'x1000' for column 'location_id' at row 1
1842018-01-05 19:43:13.093 INFO 1856 --- [ restartedMain] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
1852018-01-05 19:43:13.100 INFO 1856 --- [ restartedMain] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
1862018-01-05 19:43:13.119 INFO 1856 --- [ restartedMain] utoConfigurationReportLoggingInitializer :
187
188Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
1892018-01-05 19:43:13.134 ERROR 1856 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed
190
191org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'repositoryTestController': Unsatisfied dependency expressed through field
192'lr'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'locationRepository': Cannot create inner bean '(inner bea
193n)#2e0be530' of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.fa
194ctory.BeanCreationException: Error creating bean with name '(inner bean)#2e0be530': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argum
195ent; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory': Post-processing of FactoryBean's si
196ngleton object failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:
197/C:/Users/Vlado/OPP_workspace/PetsOnlyZg/target/classes/data.sql]: INSERT INTO location (location_id, location_name, zip_code) VALUES ('\x1000', "Zagreb", 10000); nested e
198xception is java.sql.SQLException: Incorrect integer value: 'x1000' for column 'location_id' at row 1
199 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588) ~[
200spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
201 at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
202 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:366) ~[spr
203ing-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
204 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1264) ~[spring-beans-4.3.10.RE
205LEASE.jar:4.3.10.RELEASE]
206 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.10.REL
207EASE.jar:4.3.10.RELEASE]
208 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.10.RELEA
209SE.jar:4.3.10.RELEASE]
210 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
211 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.10.RELEASE.jar:4.3
212.10.RELEASE]
213 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
214 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
215 at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761) ~[spring-beans-4.3.10.RELEASE
216.jar:4.3.10.RELEASE]
217 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-4.3.10.RELE
218ASE.jar:4.3.10.RELEASE]
219 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543) ~[spring-context-4.3.10.RELEASE.jar:4.3.10.RELEASE]
220 at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.6.RELEASE.jar:1.5.6.RE
221LEASE]
222 at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE]
223 at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE]
224 at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE]
225 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE]
226 at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.6.RELEASE.jar:1.5.6.RELEASE]
227 at hr.petsonly.DemoApplication.main(DemoApplication.java:10) [classes/:na]
228 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_102]
229 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_102]
230 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_102]
231 at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_102]
232 at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) [spring-boot-devtools-1.5.6.RELEASE.jar:1.5.6.RELEASE]
233Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'locationRepository': Cannot create inner bean '(inner bean)#2e0be530' of
234 type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property 'entityManager'; nested exception is org.springframework.beans.factory.BeanCreat
235ionException: Error creating bean with name '(inner bean)#2e0be530': Cannot resolve reference to bean 'entityManagerFactory' while setting constructor argument; nested exc
236eption is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory': Post-processing of FactoryBean's singleton object
237failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/C:/Users/Vlado
238/OPP_workspace/PetsOnlyZg/target/classes/data.sql]: INSERT INTO location (location_id, location_name, zip_code) VALUES ('\x1000', "Zagreb", 10000); nested exception is jav
239a.sql.SQLException: Incorrect integer value: 'x1000' for column 'location_id' at row 1
240 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:313) ~[spring-beans-4.3.10.RELEASE.jar:4
241.3.10.RELEASE]
242 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:129) ~[spring-beans-4.3.10.RELEAS
243E.jar:4.3.10.RELEASE]
244 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531) ~[spring-beans-4.
2453.10.RELEASE.jar:4.3.10.RELEASE]
246 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276) ~[spring-beans-4.3.10.RE
247LEASE.jar:4.3.10.RELEASE]
248 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) ~[spring-beans-4.3.10.REL
249EASE.jar:4.3.10.RELEASE]
250 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.10.RELEA
251SE.jar:4.3.10.RELEASE]
252 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
253 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.10.RELEASE.jar:4.3
254.10.RELEASE]
255 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
256 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
257 at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:208) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
258 at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) ~[spring-beans-4.3.10.RELEASE.jar
259:4.3.10.RELEASE]
260 at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1066) ~[spring-beans-4.3.10.RELEASE.jar:4
261.3.10.RELEASE]
262 at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:585) ~[
263spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
264 ... 24 common frames omitted
265Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#2e0be530': Cannot resolve reference to bean 'entityManagerF
266actory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactor
267y': Post-processing of FactoryBean's singleton object failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execut
268e SQL script statement #1 of URL [file:/C:/Users/Vlado/OPP_workspace/PetsOnlyZg/target/classes/data.sql]: INSERT INTO location (location_id, location_name, zip_code) VALUE
269S ('\x1000', "Zagreb", 10000); nested exception is java.sql.SQLException: Incorrect integer value: 'x1000' for column 'location_id' at row 1
270 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) ~[spring-beans-4.3.10.RELEASE.jar:4
271.3.10.RELEASE]
272 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) ~[spring-beans-4.3.10.RELEAS
273E.jar:4.3.10.RELEASE]
274 at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:634) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10
275.RELEASE]
276 at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:448) ~[spring-beans-4.3.10.RELEASE.jar:4.3.
27710.RELEASE]
278 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1173) ~[sprin
279g-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
280 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1067) ~[spring-beans-4.3
281.10.RELEASE.jar:4.3.10.RELEASE]
282 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513) ~[spring-beans-4.3.10.REL
283EASE.jar:4.3.10.RELEASE]
284 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483) ~[spring-beans-4.3.10.RELEA
285SE.jar:4.3.10.RELEASE]
286 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299) ~[spring-beans-4.3.10.RELEASE.jar:4
287.3.10.RELEASE]
288 ... 37 common frames omitted
289Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory': Post-processing of FactoryBean's singleton object
290 failed; nested exception is org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/C:/Users/Vlad
291o/OPP_workspace/PetsOnlyZg/target/classes/data.sql]: INSERT INTO location (location_id, location_name, zip_code) VALUES ('\x1000', "Zagreb", 10000); nested exception is ja
292va.sql.SQLException: Incorrect integer value: 'x1000' for column 'location_id' at row 1
293 at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:116) ~[spring-beans-4.3.10.RELEASE
294.jar:4.3.10.RELEASE]
295 at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1634) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.R
296ELEASE]
297 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
298 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
299 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) ~[spring-beans-4.3.10.RELEASE.jar:4
300.3.10.RELEASE]
301 ... 45 common frames omitted
302Caused by: org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of URL [file:/C:/Users/Vlado/OPP_workspace/Pe
303tsOnlyZg/target/classes/data.sql]: INSERT INTO location (location_id, location_name, zip_code) VALUES ('\x1000', "Zagreb", 10000); nested exception is java.sql.SQLExceptio
304n: Incorrect integer value: 'x1000' for column 'location_id' at row 1
305 at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:491) ~[spring-jdbc-4.3.10.RELEASE.jar:4.3.10.RELEASE]
306 at org.springframework.jdbc.datasource.init.ResourceDatabasePopulator.populate(ResourceDatabasePopulator.java:238) ~[spring-jdbc-4.3.10.RELEASE.jar:4.3.10.RELEASE]
307
308 at org.springframework.jdbc.datasource.init.DatabasePopulatorUtils.execute(DatabasePopulatorUtils.java:48) ~[spring-jdbc-4.3.10.RELEASE.jar:4.3.10.RELEASE]
309 at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.runScripts(DataSourceInitializer.java:192) ~[spring-boot-autoconfigure-1.5.6.RELEASE.jar:1.5.6
310.RELEASE]
311 at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.runDataScripts(DataSourceInitializer.java:128) ~[spring-boot-autoconfigure-1.5.6.RELEASE.jar:1
312.5.6.RELEASE]
313 at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.onApplicationEvent(DataSourceInitializer.java:118) ~[spring-boot-autoconfigure-1.5.6.RELEASE.j
314ar:1.5.6.RELEASE]
315 at org.springframework.boot.autoconfigure.jdbc.DataSourceInitializer.onApplicationEvent(DataSourceInitializer.java:51) ~[spring-boot-autoconfigure-1.5.6.RELEASE.ja
316r:1.5.6.RELEASE]
317 at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167) ~[spring-context-4.3.10.RELEASE.j
318ar:4.3.10.RELEASE]
319 at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.10.RELEASE.j
320ar:4.3.10.RELEASE]
321 at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) ~[spring-context-4.3.10.RELEASE.jar:4.3.10.RELE
322ASE]
323 at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) ~[spring-context-4.3.10.RELEASE.jar:4.3.10.RELE
324ASE]
325 at org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.publishEventIfRequired(DataSourceInitializedPublisher.java:77) ~[spring-boot-autoc
326onfigure-1.5.6.RELEASE.jar:1.5.6.RELEASE]
327 at org.springframework.boot.autoconfigure.orm.jpa.DataSourceInitializedPublisher.postProcessAfterInitialization(DataSourceInitializedPublisher.java:68) ~[spring-bo
328ot-autoconfigure-1.5.6.RELEASE.jar:1.5.6.RELEASE]
329 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:
330423) ~[spring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
331 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.postProcessObjectFromFactoryBean(AbstractAutowireCapableBeanFactory.java:1775) ~[sp
332ring-beans-4.3.10.RELEASE.jar:4.3.10.RELEASE]
333 at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:113) ~[spring-beans-4.3.10.RELEASE
334.jar:4.3.10.RELEASE]
335 ... 49 common frames omitted
336Caused by: java.sql.SQLException: Incorrect integer value: 'x1000' for column 'location_id' at row 1
337 at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:964) ~[mysql-connector-java-5.1.43.jar:5.1.43]
338 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3973) ~[mysql-connector-java-5.1.43.jar:5.1.43]
339 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3909) ~[mysql-connector-java-5.1.43.jar:5.1.43]
340 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2527) ~[mysql-connector-java-5.1.43.jar:5.1.43]
341 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2680) ~[mysql-connector-java-5.1.43.jar:5.1.43]
342 at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2490) ~[mysql-connector-java-5.1.43.jar:5.1.43]
343 at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2448) ~[mysql-connector-java-5.1.43.jar:5.1.43]
344 at com.mysql.jdbc.StatementImpl.executeInternal(StatementImpl.java:845) ~[mysql-connector-java-5.1.43.jar:5.1.43]
345 at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:745) ~[mysql-connector-java-5.1.43.jar:5.1.43]
346 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_102]
347 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_102]
348 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_102]
349 at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_102]
350 at org.apache.tomcat.jdbc.pool.StatementFacade$StatementProxy.invoke(StatementFacade.java:114) ~[tomcat-jdbc-8.5.16.jar:na]
351 at com.sun.proxy.$Proxy84.execute(Unknown Source) ~[na:na]
352 at org.springframework.jdbc.datasource.init.ScriptUtils.executeSqlScript(ScriptUtils.java:470) ~[spring-jdbc-4.3.10.RELEASE.jar:4.3.10.RELEASE]
353 ... 64 common frames omitted
354
355[INFO] ------------------------------------------------------------------------
356[INFO] BUILD SUCCESS
357[INFO] ------------------------------------------------------------------------
358[INFO] Total time: 18.556 s
359[INFO] Finished at: 2018-01-05T19:43:13+01:00
360[INFO] Final Memory: 33M/301M
361[INFO] ------------------------------------------------------------------------
362
363C:\Users\Vlado\OPP_workspace\PetsOnlyZg>