New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0.1 mysql_v_5_7 fails on Windows 7 #76

Closed
CCBow-501 opened this Issue Oct 11, 2016 · 10 comments

Comments

Projects
None yet
2 participants
@CCBow-501

CCBow-501 commented Oct 11, 2016

With v_5_6_latest the integration Tests are running fine:

16:38:16.278 [DEBUG] [TestEventLogger]     2016-10-11 16:38:16.267  INFO 6236 --- [    Test worker] com.wix.mysql.EmbeddedMysql              : Preparing EmbeddedMysql version 'Version 5.6.24'...
16:38:22.619 [DEBUG] [TestEventLogger]     2016-10-11 16:38:22.616  INFO 6236 --- [    Test worker] com.wix.mysql.MysqldExecutable           : Preparing mysqld for startup
16:38:22.626 [DEBUG] [TestEventLogger]     2016-10-11 16:38:22.624  INFO 6236 --- [    Test worker] com.wix.mysql.MysqldExecutable           : Starting MysqldProcess
16:38:25.067 [DEBUG] [TestEventLogger]     2016-10-11 16:38:25.066  INFO 6236 --- [    Test worker] d.f.embed.process.runtime.Executable     : start com.wix.mysql.config.MysqldConfig@595b171e

while on v_5_7_latest it fails with this exception:
It fails to load the Application Context:

16:46:30.318 [DEBUG] [TestEventLogger]     2016-10-11 16:46:30.311  INFO 5812 --- [    Test worker] com.wix.mysql.EmbeddedMysql              : Preparing EmbeddedMysql version 'Version 5.7.10'...
16:46:30.671 [DEBUG] [TestEventLogger]     2016-10-11 16:46:30.667  INFO 5812 --- [    Test worker] com.wix.mysql.MysqldExecutable           : Preparing mysqld for startup
16:47:01.053 [DEBUG] [TestEventLogger]     2016-10-11 16:47:01.042 ERROR 5812 --- [    Test worker] o.s.boot.SpringApplication               : Application startup failed

16:47:01.054 [DEBUG] [TestEventLogger]     java.lang.RuntimeException: Command exited with error code: '-1' and output: ''
16:47:01.054 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.ProcessRunner.resolveException(ProcessRunner.java:44) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.054 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.ProcessRunner.run(ProcessRunner.java:29) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.054 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.Mysql57Initializer.apply(Mysql57Initializer.java:32) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.054 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.Setup.apply(Setup.java:25) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.054 [DEBUG] [TestEventLogger]          at com.wix.mysql.MysqldExecutable.start(MysqldExecutable.java:42) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.054 [DEBUG] [TestEventLogger]          at com.wix.mysql.MysqldExecutable.start(MysqldExecutable.java:21) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.055 [DEBUG] [TestEventLogger]          at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:101) ~[de.flapdoodle.embed.process-1.50.1.jar:na]
16:47:01.055 [DEBUG] [TestEventLogger]          at com.wix.mysql.EmbeddedMysql.<init>(EmbeddedMysql.java:45) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.055 [DEBUG] [TestEventLogger]          at com.wix.mysql.EmbeddedMysql$Builder.start(EmbeddedMysql.java:131) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.055 [DEBUG] [TestEventLogger]          at **myPackages**.BaseIT$EmbeddedMysqlInitializer.initialize(BaseIT.java:54) ~[integrationTest/:na]
16:47:01.055 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:634) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
16:47:01.055 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:342) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
16:47:01.055 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.run(SpringApplication.java:306) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
16:47:01.055 [DEBUG] [TestEventLogger]          at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
16:47:01.056 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.056 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.056 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.056 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.056 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.056 [DEBUG] [TestEventLogger]          at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.056 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.056 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
16:47:01.057 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.068 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.068 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
16:47:01.068 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.068 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114) [gradle-testing-jvm-2.14.1.jar:2.14.1]
16:47:01.068 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57) [gradle-testing-jvm-2.14.1.jar:2.14.1]
16:47:01.068 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66) [gradle-testing-jvm-2.14.1.jar:2.14.1]
16:47:01.068 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51) [gradle-testing-base-2.14.1.jar:2.14.1]
16:47:01.069 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
16:47:01.069 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
16:47:01.069 [DEBUG] [TestEventLogger]          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
16:47:01.069 [DEBUG] [TestEventLogger]          at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
16:47:01.069 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.069 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.076 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.076 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.076 [DEBUG] [TestEventLogger]          at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) [na:na]
16:47:01.076 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109) [gradle-testing-base-2.14.1.jar:2.14.1]
16:47:01.077 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
16:47:01.077 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
16:47:01.077 [DEBUG] [TestEventLogger]          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
16:47:01.077 [DEBUG] [TestEventLogger]          at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
16:47:01.077 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.077 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.077 [DEBUG] [TestEventLogger]          at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.077 [DEBUG] [TestEventLogger]          at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) [gradle-base-services-2.14.1.jar:2.14.1]
16:47:01.077 [DEBUG] [TestEventLogger]          at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) [gradle-base-services-2.14.1.jar:2.14.1]
16:47:01.077 [DEBUG] [TestEventLogger]          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
16:47:01.077 [DEBUG] [TestEventLogger]          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
16:47:01.078 [DEBUG] [TestEventLogger]          at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]

16:47:01.080 [DEBUG] [TestEventLogger]     java.lang.IllegalStateException: Failed to load ApplicationContext
16:47:01.080 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.080 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.080 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.080 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.080 [DEBUG] [TestEventLogger]          at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.080 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.080 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.080 [DEBUG] [TestEventLogger]          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.081 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
16:47:01.082 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.082 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114) [gradle-testing-jvm-2.14.1.jar:2.14.1]
16:47:01.082 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57) [gradle-testing-jvm-2.14.1.jar:2.14.1]
16:47:01.082 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66) [gradle-testing-jvm-2.14.1.jar:2.14.1]
16:47:01.082 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51) [gradle-testing-base-2.14.1.jar:2.14.1]
16:47:01.082 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
16:47:01.082 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
16:47:01.082 [DEBUG] [TestEventLogger]          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
16:47:01.082 [DEBUG] [TestEventLogger]          at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
16:47:01.082 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.083 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.083 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.083 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.083 [DEBUG] [TestEventLogger]          at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) [na:na]
16:47:01.083 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109) [gradle-testing-base-2.14.1.jar:2.14.1]
16:47:01.083 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
16:47:01.083 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
16:47:01.083 [DEBUG] [TestEventLogger]          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
16:47:01.083 [DEBUG] [TestEventLogger]          at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
16:47:01.083 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.083 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.083 [DEBUG] [TestEventLogger]          at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377) [gradle-messaging-2.14.1.jar:2.14.1]
16:47:01.084 [DEBUG] [TestEventLogger]          at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) [gradle-base-services-2.14.1.jar:2.14.1]
16:47:01.084 [DEBUG] [TestEventLogger]          at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) [gradle-base-services-2.14.1.jar:2.14.1]
16:47:01.084 [DEBUG] [TestEventLogger]          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
16:47:01.084 [DEBUG] [TestEventLogger]          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
16:47:01.084 [DEBUG] [TestEventLogger]          at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]

16:47:01.084 [DEBUG] [TestEventLogger]     Caused by: java.lang.RuntimeException: Command exited with error code: '-1' and output: ''
16:47:01.084 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.ProcessRunner.resolveException(ProcessRunner.java:44) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.ProcessRunner.run(ProcessRunner.java:29) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.Mysql57Initializer.apply(Mysql57Initializer.java:32) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.Setup.apply(Setup.java:25) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at com.wix.mysql.MysqldExecutable.start(MysqldExecutable.java:42) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at com.wix.mysql.MysqldExecutable.start(MysqldExecutable.java:21) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:101) ~[de.flapdoodle.embed.process-1.50.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at com.wix.mysql.EmbeddedMysql.<init>(EmbeddedMysql.java:45) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at com.wix.mysql.EmbeddedMysql$Builder.start(EmbeddedMysql.java:131) ~[wix-embedded-mysql-2.0.1.jar:na]
16:47:01.084 [DEBUG] [TestEventLogger]          at **myPackages**.BaseIT$EmbeddedMysqlInitializer.initialize(BaseIT.java:54) ~[integrationTest/:na]
16:47:01.085 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:634) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
16:47:01.085 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:342) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
16:47:01.085 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.run(SpringApplication.java:306) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
16:47:01.085 [DEBUG] [TestEventLogger]          at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
16:47:01.085 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.085 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
16:47:01.085 [DEBUG] [TestEventLogger]          ... 45 common frames omitted

at myPackages initalize 54 it is the start() Method of _ anEmbeddedMysql_

                MysqldConfig config = aMysqldConfig(v5_7_latest)
                        .withPort(port)
                        .withUser("test", "123")
                        .build();

                anEmbeddedMysql(config).addSchema("schema").start();
@viliusl

This comment has been minimized.

Show comment
Hide comment
@viliusl

viliusl Oct 12, 2016

Collaborator

Ok, so could you please update your version of library (to 2.0.6) - I did some changes around timeout handling and error reporting.

If it still does not help, I would appreciate a bit more info:

  • detailed log output (level: debug, package: com.wix.mysql) as there might be more info in mysql logs that are written to debug.

Thanks!

Collaborator

viliusl commented Oct 12, 2016

Ok, so could you please update your version of library (to 2.0.6) - I did some changes around timeout handling and error reporting.

If it still does not help, I would appreciate a bit more info:

  • detailed log output (level: debug, package: com.wix.mysql) as there might be more info in mysql logs that are written to debug.

Thanks!

@CCBow-501

This comment has been minimized.

Show comment
Hide comment
@CCBow-501

CCBow-501 Oct 12, 2016

14:26:11.848 [DEBUG] [TestEventLogger]     2016-10-12 14:26:11.843  INFO 5948 --- [    Test worker] com.wix.mysql.EmbeddedMysql              : Preparing EmbeddedMysql version 'Version 5.7.15'...
14:26:13.342 [DEBUG] [TestEventLogger]     2016-10-12 14:26:13.340  INFO 5948 --- [    Test worker] com.wix.mysql.MysqldExecutable           : Preparing mysqld for startup
14:26:43.673 [DEBUG] [TestEventLogger]     2016-10-12 14:26:43.671 ERROR 5948 --- [    Test worker] o.s.boot.SpringApplication               : Application startup failed
14:26:43.673 [DEBUG] [TestEventLogger]
14:26:43.673 [DEBUG] [TestEventLogger]     java.lang.RuntimeException: java.lang.InterruptedException: Timeout of 30 sec exceeded while waiting for process to complete
14:26:43.673 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.ProcessRunner.run(ProcessRunner.java:33) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.Mysql57Initializer.apply(Mysql57Initializer.java:34) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.Setup.apply(Setup.java:26) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.MysqldExecutable.start(MysqldExecutable.java:42) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.MysqldExecutable.start(MysqldExecutable.java:21) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:101) ~[de.flapdoodle.embed.process-1.50.1.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.EmbeddedMysql.<init>(EmbeddedMysql.java:45) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.EmbeddedMysql$Builder.start(EmbeddedMysql.java:131) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.675 [DEBUG] [TestEventLogger]          at **myPackages**.BaseIT$EmbeddedMysqlInitializer.initialize(BaseIT.java:54) ~[integrationTest/:na]
14:26:43.675 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:634) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
14:26:43.675 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:342) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
14:26:43.680 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.run(SpringApplication.java:306) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
14:26:43.680 [DEBUG] [TestEventLogger]          at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
14:26:43.680 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.680 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.684 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.687 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.726 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114) [gradle-testing-jvm-2.14.1.jar:2.14.1]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57) [gradle-testing-jvm-2.14.1.jar:2.14.1]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66) [gradle-testing-jvm-2.14.1.jar:2.14.1]
14:26:43.737 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51) [gradle-testing-base-2.14.1.jar:2.14.1]
14:26:43.737 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) [na:na]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109) [gradle-testing-base-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) [gradle-base-services-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) [gradle-base-services-2.14.1.jar:2.14.1]
14:26:43.739 [DEBUG] [TestEventLogger]          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
14:26:43.739 [DEBUG] [TestEventLogger]          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
14:26:43.739 [DEBUG] [TestEventLogger]          at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
14:26:43.739 [DEBUG] [TestEventLogger]     Caused by: java.lang.InterruptedException: Timeout of 30 sec exceeded while waiting for process to complete
14:26:43.739 [DEBUG] [TestEventLogger]          at com.wix.mysql.io.TimingOutProcessExecutor.waitFor(TimingOutProcessExecutor.java:24) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.739 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.ProcessRunner.run(ProcessRunner.java:26) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.739 [DEBUG] [TestEventLogger]          ... 59 common frames omitted

Its due to the Timeout exceeded.

edit:
Im on 2.0.6 now

CCBow-501 commented Oct 12, 2016

14:26:11.848 [DEBUG] [TestEventLogger]     2016-10-12 14:26:11.843  INFO 5948 --- [    Test worker] com.wix.mysql.EmbeddedMysql              : Preparing EmbeddedMysql version 'Version 5.7.15'...
14:26:13.342 [DEBUG] [TestEventLogger]     2016-10-12 14:26:13.340  INFO 5948 --- [    Test worker] com.wix.mysql.MysqldExecutable           : Preparing mysqld for startup
14:26:43.673 [DEBUG] [TestEventLogger]     2016-10-12 14:26:43.671 ERROR 5948 --- [    Test worker] o.s.boot.SpringApplication               : Application startup failed
14:26:43.673 [DEBUG] [TestEventLogger]
14:26:43.673 [DEBUG] [TestEventLogger]     java.lang.RuntimeException: java.lang.InterruptedException: Timeout of 30 sec exceeded while waiting for process to complete
14:26:43.673 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.ProcessRunner.run(ProcessRunner.java:33) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.Mysql57Initializer.apply(Mysql57Initializer.java:34) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.Setup.apply(Setup.java:26) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.MysqldExecutable.start(MysqldExecutable.java:42) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.MysqldExecutable.start(MysqldExecutable.java:21) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:101) ~[de.flapdoodle.embed.process-1.50.1.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.EmbeddedMysql.<init>(EmbeddedMysql.java:45) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.674 [DEBUG] [TestEventLogger]          at com.wix.mysql.EmbeddedMysql$Builder.start(EmbeddedMysql.java:131) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.675 [DEBUG] [TestEventLogger]          at **myPackages**.BaseIT$EmbeddedMysqlInitializer.initialize(BaseIT.java:54) ~[integrationTest/:na]
14:26:43.675 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:634) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
14:26:43.675 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:342) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
14:26:43.680 [DEBUG] [TestEventLogger]          at org.springframework.boot.SpringApplication.run(SpringApplication.java:306) ~[spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
14:26:43.680 [DEBUG] [TestEventLogger]          at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98) [spring-boot-1.3.6.RELEASE.jar:1.3.6.RELEASE]
14:26:43.680 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.680 [DEBUG] [TestEventLogger]          at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.684 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.687 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.688 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.726 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
14:26:43.727 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114) [gradle-testing-jvm-2.14.1.jar:2.14.1]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57) [gradle-testing-jvm-2.14.1.jar:2.14.1]
14:26:43.728 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66) [gradle-testing-jvm-2.14.1.jar:2.14.1]
14:26:43.737 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51) [gradle-testing-base-2.14.1.jar:2.14.1]
14:26:43.737 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) [na:na]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109) [gradle-testing-base-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_101]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377) [gradle-messaging-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) [gradle-base-services-2.14.1.jar:2.14.1]
14:26:43.738 [DEBUG] [TestEventLogger]          at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) [gradle-base-services-2.14.1.jar:2.14.1]
14:26:43.739 [DEBUG] [TestEventLogger]          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
14:26:43.739 [DEBUG] [TestEventLogger]          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
14:26:43.739 [DEBUG] [TestEventLogger]          at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]
14:26:43.739 [DEBUG] [TestEventLogger]     Caused by: java.lang.InterruptedException: Timeout of 30 sec exceeded while waiting for process to complete
14:26:43.739 [DEBUG] [TestEventLogger]          at com.wix.mysql.io.TimingOutProcessExecutor.waitFor(TimingOutProcessExecutor.java:24) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.739 [DEBUG] [TestEventLogger]          at com.wix.mysql.distribution.setup.ProcessRunner.run(ProcessRunner.java:26) ~[wix-embedded-mysql-2.0.6.jar:na]
14:26:43.739 [DEBUG] [TestEventLogger]          ... 59 common frames omitted

Its due to the Timeout exceeded.

edit:
Im on 2.0.6 now

@viliusl

This comment has been minimized.

Show comment
Hide comment
@viliusl

viliusl Oct 12, 2016

Collaborator

There were issues with mysql timing out in some cases in some OS'es (#66). Now did mysql just stalled or it's just slow is another question (still need more output for that).

Not sure if it is acceptable in your case (long start), but you can now increase timeout (from readme):

MysqldConfig config = aMysqldConfig(v5_6_23)
    .withCharset(UTF8)
    .withPort(2215)
    .withUser("differentUser", "anotherPassword")
    .withTimeZone("Europe/Vilnius")
    .withTimeout(2, TimeUnit.MINUTES)
    .build();

Or more log output for me to see if there is smth blocking startup or it asking for some input...:)

Collaborator

viliusl commented Oct 12, 2016

There were issues with mysql timing out in some cases in some OS'es (#66). Now did mysql just stalled or it's just slow is another question (still need more output for that).

Not sure if it is acceptable in your case (long start), but you can now increase timeout (from readme):

MysqldConfig config = aMysqldConfig(v5_6_23)
    .withCharset(UTF8)
    .withPort(2215)
    .withUser("differentUser", "anotherPassword")
    .withTimeZone("Europe/Vilnius")
    .withTimeout(2, TimeUnit.MINUTES)
    .build();

Or more log output for me to see if there is smth blocking startup or it asking for some input...:)

@CCBow-501

This comment has been minimized.

Show comment
Hide comment
@CCBow-501

CCBow-501 Oct 12, 2016

I did a bit more configuration:

MysqldConfig config = aMysqldConfig(v5_7_latest)
    .withTimeout(60, TimeUnit.SECONDS)
    .withCharset(UTF8)
    .withPort(port)
    .withUser("test", "123")
    .build();

anEmbeddedMysql(config).addSchema("Schema").start();

This helped a bit :)
Now im getting a Charset Error: NoSuchMethod

14:41:14.609 [DEBUG] [TestEventLogger]
14:41:14.609 [DEBUG] [TestEventLogger] **myPackages**.TestIT > createObject_inValidKey STARTED
14:41:14.621 [DEBUG] [TestEventLogger]
14:41:14.621 [DEBUG] [TestEventLogger] **myPackages**.TestIT > createObject_inValidKey FAILED
14:41:14.621 [DEBUG] [TestEventLogger]     java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.copy(Ljava/io/Reader;Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
14:41:14.621 [DEBUG] [TestEventLogger]         at com.wix.mysql.MysqlClient.execute(MysqlClient.java:57)
14:41:14.621 [DEBUG] [TestEventLogger]         at com.wix.mysql.MysqlClient.executeCommands(MysqlClient.java:43)
14:41:14.621 [DEBUG] [TestEventLogger]         at com.wix.mysql.EmbeddedMysql.<init>(EmbeddedMysql.java:46)
14:41:14.622 [DEBUG] [TestEventLogger]         at com.wix.mysql.EmbeddedMysql$Builder.start(EmbeddedMysql.java:131)
14:41:14.622 [DEBUG] [TestEventLogger]         at **myPackages**.BaseIT$EmbeddedMysqlInitializer.initialize(BaseIT.java:58)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:634)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:342)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.lang.reflect.Method.invoke(Method.java:498)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
14:41:14.622 [DEBUG] [TestEventLogger]         at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.lang.reflect.Method.invoke(Method.java:498)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.lang.Thread.run(Thread.java:745)
14:41:14.674 [DEBUG] [TestEventLogger]
14:41:14.674 [DEBUG] [TestEventLogger] **myPackages**.TestIT STANDARD_OUT

CCBow-501 commented Oct 12, 2016

I did a bit more configuration:

MysqldConfig config = aMysqldConfig(v5_7_latest)
    .withTimeout(60, TimeUnit.SECONDS)
    .withCharset(UTF8)
    .withPort(port)
    .withUser("test", "123")
    .build();

anEmbeddedMysql(config).addSchema("Schema").start();

This helped a bit :)
Now im getting a Charset Error: NoSuchMethod

14:41:14.609 [DEBUG] [TestEventLogger]
14:41:14.609 [DEBUG] [TestEventLogger] **myPackages**.TestIT > createObject_inValidKey STARTED
14:41:14.621 [DEBUG] [TestEventLogger]
14:41:14.621 [DEBUG] [TestEventLogger] **myPackages**.TestIT > createObject_inValidKey FAILED
14:41:14.621 [DEBUG] [TestEventLogger]     java.lang.NoSuchMethodError: org.apache.commons.io.IOUtils.copy(Ljava/io/Reader;Ljava/io/OutputStream;Ljava/nio/charset/Charset;)V
14:41:14.621 [DEBUG] [TestEventLogger]         at com.wix.mysql.MysqlClient.execute(MysqlClient.java:57)
14:41:14.621 [DEBUG] [TestEventLogger]         at com.wix.mysql.MysqlClient.executeCommands(MysqlClient.java:43)
14:41:14.621 [DEBUG] [TestEventLogger]         at com.wix.mysql.EmbeddedMysql.<init>(EmbeddedMysql.java:46)
14:41:14.622 [DEBUG] [TestEventLogger]         at com.wix.mysql.EmbeddedMysql$Builder.start(EmbeddedMysql.java:131)
14:41:14.622 [DEBUG] [TestEventLogger]         at **myPackages**.BaseIT$EmbeddedMysqlInitializer.initialize(BaseIT.java:58)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:634)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:342)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.boot.SpringApplication.run(SpringApplication.java:306)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.boot.test.SpringApplicationContextLoader.loadContext(SpringApplicationContextLoader.java:98)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:230)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:289)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:193)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.lang.reflect.Method.invoke(Method.java:498)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
14:41:14.622 [DEBUG] [TestEventLogger]         at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:41:14.622 [DEBUG] [TestEventLogger]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.lang.reflect.Method.invoke(Method.java:498)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:377)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
14:41:14.622 [DEBUG] [TestEventLogger]         at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
14:41:14.622 [DEBUG] [TestEventLogger]         at java.lang.Thread.run(Thread.java:745)
14:41:14.674 [DEBUG] [TestEventLogger]
14:41:14.674 [DEBUG] [TestEventLogger] **myPackages**.TestIT STANDARD_OUT

@viliusl

This comment has been minimized.

Show comment
Hide comment
@viliusl

viliusl Oct 12, 2016

Collaborator

Ok, this should be classpath issues. Library itself uses commons-io:2.4:

output of mvn dependency:tree -Dverbose for wix-embedded-mysql:

[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Wix Embedded MySql 2.0.7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ wix-embedded-mysql ---
[INFO] com.wix:wix-embedded-mysql:jar:2.0.7-SNAPSHOT
[INFO] +- de.flapdoodle.embed:de.flapdoodle.embed.process:jar:1.50.1:compile
[INFO] |  +- commons-io:commons-io:jar:2.4:compile

can you check which version of commons-io got resolved for your project?

Collaborator

viliusl commented Oct 12, 2016

Ok, this should be classpath issues. Library itself uses commons-io:2.4:

output of mvn dependency:tree -Dverbose for wix-embedded-mysql:

[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Wix Embedded MySql 2.0.7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ wix-embedded-mysql ---
[INFO] com.wix:wix-embedded-mysql:jar:2.0.7-SNAPSHOT
[INFO] +- de.flapdoodle.embed:de.flapdoodle.embed.process:jar:1.50.1:compile
[INFO] |  +- commons-io:commons-io:jar:2.4:compile

can you check which version of commons-io got resolved for your project?

@CCBow-501

This comment has been minimized.

Show comment
Hide comment
@CCBow-501

CCBow-501 Oct 12, 2016

The Charset is not an issue anymore. On Spring it got implemented on spring-core 4.3.3. On Spring 1.3.6 this Version was lower. I upgraded to spring 1.4.1 and this Exception disappeared. Now im back to the Timeout Exception: Even with 3 Minutes it fails.

CCBow-501 commented Oct 12, 2016

The Charset is not an issue anymore. On Spring it got implemented on spring-core 4.3.3. On Spring 1.3.6 this Version was lower. I upgraded to spring 1.4.1 and this Exception disappeared. Now im back to the Timeout Exception: Even with 3 Minutes it fails.

@CCBow-501

This comment has been minimized.

Show comment
Hide comment
@CCBow-501

CCBow-501 Oct 19, 2016

checked the dependencies again . Found a way to run 5.7 now thanks for the help :)

CCBow-501 commented Oct 19, 2016

checked the dependencies again . Found a way to run 5.7 now thanks for the help :)

@CCBow-501 CCBow-501 closed this Oct 19, 2016

@viliusl

This comment has been minimized.

Show comment
Hide comment
@viliusl

viliusl Oct 19, 2016

Collaborator

@CCBow-501 sry for not replying earlier on debugging - got burried in work.

So just to be sure - it was issue with deps and startup times are acceptable?

Collaborator

viliusl commented Oct 19, 2016

@CCBow-501 sry for not replying earlier on debugging - got burried in work.

So just to be sure - it was issue with deps and startup times are acceptable?

@CCBow-501

This comment has been minimized.

Show comment
Hide comment
@CCBow-501

CCBow-501 Oct 19, 2016

yeah it was. startup takes about 40 seconds

CCBow-501 commented Oct 19, 2016

yeah it was. startup takes about 40 seconds

@viliusl

This comment has been minimized.

Show comment
Hide comment
@viliusl

viliusl Oct 19, 2016

Collaborator

Oh, too long:/ On recent linux/osx it took < 10s last time I checked.

Will investigate if it's me or just windows...

Anyway thanks!

Collaborator

viliusl commented Oct 19, 2016

Oh, too long:/ On recent linux/osx it took < 10s last time I checked.

Will investigate if it's me or just windows...

Anyway thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment