Skip to content
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

Missing 32bit Linux mariadb (An error occurred while installing the database on Linux but not on windows) #29

Closed
florentbo opened this issue Aug 28, 2015 · 13 comments
Labels
helpwanted low Windows Anything specific to Microsoft Windows OS, not affecting Linux

Comments

@florentbo
Copy link

On windows this class is working, but not on linux:

@SpringBootApplication
public class BootMariaScriptApplication implements CommandLineRunner {

public static void main(String[] args) {
    SpringApplication.run(BootMariaScriptApplication.class, args);

}

public void run(String... args) throws Exception {

    DB db = DB.newEmbeddedDB(9306);
    db.start();
    db.createDB("test");
    db.run(sqlscript, "user", "password", "test");
}

22:03:14.728 [main] ERROR o.s.boot.SpringApplication - Application startup failed
java.lang.IllegalStateException: Failed to execute CommandLineRunner
at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:675) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.afterRefresh(SpringApplication.java:690) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:321) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:957) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:946) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
at be.florentbo.maria.BootMariaScriptApplication.main(BootMariaScriptApplication.java:17) [maria-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60]
at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60]
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53) [maria-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:117) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:68) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:83) ~[mariaDB4j-2.1.3.jar!/:na]
at be.florentbo.maria.BootMariaScriptApplication.run(BootMariaScriptApplication.java:38) [maria-0.0.1-SNAPSHOT.jar!/:0.0.1-SNAPSHOT]
at org.springframework.boot.SpringApplication.runCommandLineRunners(SpringApplication.java:672) [spring-boot-1.2.5.RELEASE.jar!/:1.2.5.RELEASE]
... 11 common frames omitted
Caused by: ch.vorburger.exec.ManagedProcessException: Program /tmp/MariaDB4j/base/bin/mysql_install_db --datadir=/tmp/MariaDB4j/data/9306 --basedir=/tmp/MariaDB4j/base --no-defaults --force --skip-name-resolve (in working directory /tmp/MariaDB4j/base) failed, exitValue=1, last 100 lines of console:
/tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/9306' ...
/tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/tmp/MariaDB4j/data/9306 for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &

and use the command line tool /tmp/MariaDB4j/base/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /tmp/MariaDB4j/data/9306 that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:279) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.exec.ManagedProcess.waitForExitMaxMsWithoutLog(ManagedProcess.java:397) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.exec.ManagedProcess.waitForExit(ManagedProcess.java:367) ~[mariaDB4j-2.1.3.jar!/:na]
at ch.vorburger.mariadb4j.DB.install(DB.java:114) ~[mariaDB4j-2.1.3.jar!/:na]
... 15 common frames omitted
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:377) ~[commons-exec-1.1.jar!/:1.1]
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:46) ~[commons-exec-1.1.jar!/:1.1]
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:188) ~[commons-exec-1.1.jar!/:1.1]
22:03:14.729 [main] INFO o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@134caa4: startup date [Fri Aug 28 22:03:10 CEST 2015]; root of context hierarchy
22:03:14.733 [main] INFO o.s.j.e.a.AnnotationMBeanExporter - Unregistering JMX-exposed beans on shutdown

@vorburger
Copy link
Collaborator

Hi @florentbo That's curious... the root cause seems to be 'word unexpected (expecting ")"' ? This works in tests, and for other users, so I'm not sure what's going on here.. I've noticed that this is on v2.1.3 - would you mind to try the latest development SNAPSHOT by building yourself, and see if by chance that works for you? You should be able to do that in 3' by just doing:

git clone https://github.com/vorburger/MariaDB4j.git
cd MariaDB4j
mvn install

@florentbo
Copy link
Author

Hi @vorburger , the problem is still the same with the same with the 2.2.0-SNAPSHOT
/usr/lib/jvm/java-8-oracle/bin/java -Xms256m -Xmx512m -Dmaven.home=/home/flo/java/idea-IU-141.713.2/plugins/maven/lib/maven3 -Dclassworlds.conf=/home/flo/java/idea-IU-141.713.2/plugins/maven/lib/maven3/bin/m2.conf -Didea.launcher.port=7532 -Didea.launcher.bin.path=/home/flo/java/idea-IU-141.713.2/bin -Dfile.encoding=UTF-8 -classpath /home/flo/java/idea-IU-141.713.2/plugins/maven/lib/maven3/boot/plexus-classworlds-2.4.jar:/home/flo/java/idea-IU-141.713.2/lib/idea_rt.jar com.intellij.rt.execution.application.AppMain org.codehaus.classworlds.Launcher -Didea.version=14.1.4 clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] mariaDB4j-pom
[INFO] mariaDB4j-core
[INFO] mariaDB4j-db-win32
[INFO] mariaDB4j-db-linux64
[INFO] mariaDB4j-db-mac64
[INFO] mariaDB4j
[INFO] mariaDB4j-app
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mariaDB4j-pom 2.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mariaDB4j-pom ---
[INFO] Deleting /home/flo/java/todt/MariaDB4j/target
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-pom ---
[WARNING] No file to scan.
[INFO]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-pom ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-pom >>>
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-pom ---
[WARNING] No file to scan.
[INFO]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-pom ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-pom <<<
[INFO]
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-pom ---
[INFO]
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ mariaDB4j-pom ---
[INFO] Not executing Javadoc as the project is not a Java classpath-capable package
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ mariaDB4j-pom ---
[INFO] Installing /home/flo/java/todt/MariaDB4j/pom.xml to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-pom/2.2.0-SNAPSHOT/mariaDB4j-pom-2.2.0-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mariaDB4j-core 2.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mariaDB4j-core ---
[INFO] Deleting /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-core ---
[INFO] Will search files to update from root /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java
[INFO] Will search files to update from root /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/test/java
[INFO] Scan 19 files header done in 191.704ms.
[INFO] All files are up-to-date.
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-core ---
[INFO] Starting audit...
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/MariaDB4jService.java:35: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/MariaDB4jService.java:39: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/springframework/MariaDB4jSpringService.java:33: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/springframework/MariaDB4jSpringService.java:39: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/MultiOutputStream.java:29: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/MultiOutputStream.java:33: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:46: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:50: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:82: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:122: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:208: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:365: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:368: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:372: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/RollingLogOutputStream.java:49: warning: Empty line should be followed by

tag on the next line.
Audit done.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mariaDB4j-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mariaDB4j-core ---
[INFO] Compiling 15 source files to /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mariaDB4j-core ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ mariaDB4j-core ---
[INFO] Compiling 4 source files to /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ mariaDB4j-core ---
[INFO] Surefire report directory: /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/surefire-reports


T E S T S

Running ch.vorburger.mariadb4j.tests.DBConfigurationBuilderTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.169 sec
Running ch.vorburger.exec.ManagedProcessBuilderTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 sec
Running ch.vorburger.exec.ClasspathUnpackerTest
[main] INFO ch.vorburger.mariadb4j.Util - Unpacked 37 files from classpath_:org/apache/commons/exec/* to target/testUnpack1
[main] INFO ch.vorburger.mariadb4j.Util - Unpacked 3 files from classpath
:test/_* to target/testUnpack3
Tests run: 5, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.225 sec
Running ch.vorburger.exec.ManagedProcessTest
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [vi](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait max. 200ms for process to terminate itself: Program [vi](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Process didn't exit within max. 200ms, so going to destroy it now: Program [vi](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Successfully destroyed Program [vi](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread will wait for "some console message which will never appear" to appear in Console output of process Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.) for max. 1000ms
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - echo: "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - echo: labore et dolore magna aliqua."
[Exec Default Executor] INFO ch.vorburger.exec.ManagedProcess - Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.) just exited, with value 0
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread will wait for "incidunt" to appear in Console output of process Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.) for max. 1000ms
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - echo: "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - echo: labore et dolore magna aliqua."
[Exec Default Executor] INFO ch.vorburger.exec.ManagedProcess - Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.) just exited, with value 0
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait for this process to terminate itself: Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
Recent (default) 50 lines of console output:
"Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait for this process to terminate itself: Program [someExec](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait for this process to terminate itself: Program [someExec](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait max. 1234ms for process to terminate itself: Program [someExec](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait max. 1234ms for process to terminate itself: Program [someExec](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread will wait for "incidunt" to appear in Console output of process Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.) for max. 1000ms
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - echo: "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - echo: labore et dolore magna aliqua."
[Exec Default Executor] INFO ch.vorburger.exec.ManagedProcess - Program [echo, "Lorem ipsum dolor sit amet, consectetur adipisci elit, sed eiusmod tempor incidunt ut
labore et dolore magna aliqua."](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j-core/.) just exited, with value 0
Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.721 sec

Results :

Tests run: 16, Failures: 0, Errors: 0, Skipped: 1

[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ mariaDB4j-core ---
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/mariaDB4j-core-2.2.0-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-core >>>
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-core ---
[INFO] Will search files to update from root /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java
[INFO] Will search files to update from root /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/test/java
[INFO] Scan 19 files header done in 59.896ms.
[INFO] All files are up-to-date.
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-core ---
[INFO] Starting audit...
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/MariaDB4jService.java:35: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/MariaDB4jService.java:39: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/springframework/MariaDB4jSpringService.java:33: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/springframework/MariaDB4jSpringService.java:39: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/MultiOutputStream.java:29: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/MultiOutputStream.java:33: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:46: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:50: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:82: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:122: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:208: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:365: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:368: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcess.java:372: warning: Empty line should be followed by

tag on the next line.
/home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/RollingLogOutputStream.java:49: warning: Empty line should be followed by

tag on the next line.
Audit done.
[INFO]
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-core <<<
[INFO]
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-core ---
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/mariaDB4j-core-2.2.0-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ mariaDB4j-core ---
[INFO]
6 warnings
[WARNING] Javadoc Warnings
[WARNING] /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/DBConfiguration.java:31: warning: no @return
[WARNING] int getPort();
[WARNING] ^
[WARNING] /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/DBConfiguration.java:34: warning: no @return
[WARNING] String getSocket();
[WARNING] ^
[WARNING] /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/DBConfiguration.java:44: warning: no @return
[WARNING] String getBaseDir();
[WARNING] ^
[WARNING] /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/DBConfiguration.java:47: warning: no @return
[WARNING] String getDataDir();
[WARNING] ^
[WARNING] /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/mariadb4j/DBConfiguration.java:50: warning: no @return
[WARNING] boolean isWindows();
[WARNING] ^
[WARNING] /home/flo/java/todt/MariaDB4j/mariaDB4j-core/src/main/java/ch/vorburger/exec/ManagedProcessBuilder.java:128: warning: no @return
[WARNING] public File getWorkingDirectory() {
[WARNING] ^
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/mariaDB4j-core-2.2.0-SNAPSHOT-javadoc.jar
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ mariaDB4j-core ---
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/mariaDB4j-core-2.2.0-SNAPSHOT.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-core/2.2.0-SNAPSHOT/mariaDB4j-core-2.2.0-SNAPSHOT.jar
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-core/pom.xml to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-core/2.2.0-SNAPSHOT/mariaDB4j-core-2.2.0-SNAPSHOT.pom
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/mariaDB4j-core-2.2.0-SNAPSHOT-sources.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-core/2.2.0-SNAPSHOT/mariaDB4j-core-2.2.0-SNAPSHOT-sources.jar
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-core/target/mariaDB4j-core-2.2.0-SNAPSHOT-javadoc.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-core/2.2.0-SNAPSHOT/mariaDB4j-core-2.2.0-SNAPSHOT-javadoc.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mariaDB4j-db-win32 2.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mariaDB4j-db-win32 ---
[INFO] Deleting /home/flo/java/todt/MariaDB4j/mariaDB4j-db-win32/target
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-db-win32 ---
[WARNING] No file to scan.
[INFO]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-db-win32 ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mariaDB4j-db-win32 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 38 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mariaDB4j-db-win32 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mariaDB4j-db-win32 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/flo/java/todt/MariaDB4j/mariaDB4j-db-win32/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ mariaDB4j-db-win32 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ mariaDB4j-db-win32 ---
[INFO] No tests to run.
[INFO] Surefire report directory: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-win32/target/surefire-reports


T E S T S

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ mariaDB4j-db-win32 ---
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-win32/target/mariaDB4j-db-win32-2.2.0-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-win32 >>>
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-db-win32 ---
[WARNING] No file to scan.
[INFO]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-db-win32 ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-win32 <<<
[INFO]
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-win32 ---
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-win32/target/mariaDB4j-db-win32-2.2.0-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ mariaDB4j-db-win32 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ mariaDB4j-db-win32 ---
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-win32/target/mariaDB4j-db-win32-2.2.0-SNAPSHOT.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-win32/2.2.0-SNAPSHOT/mariaDB4j-db-win32-2.2.0-SNAPSHOT.jar
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-win32/pom.xml to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-win32/2.2.0-SNAPSHOT/mariaDB4j-db-win32-2.2.0-SNAPSHOT.pom
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-win32/target/mariaDB4j-db-win32-2.2.0-SNAPSHOT-sources.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-win32/2.2.0-SNAPSHOT/mariaDB4j-db-win32-2.2.0-SNAPSHOT-sources.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mariaDB4j-db-linux64 2.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mariaDB4j-db-linux64 ---
[INFO] Deleting /home/flo/java/todt/MariaDB4j/mariaDB4j-db-linux64/target
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-db-linux64 ---
[WARNING] No file to scan.
[INFO]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-db-linux64 ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mariaDB4j-db-linux64 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 61 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mariaDB4j-db-linux64 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mariaDB4j-db-linux64 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/flo/java/todt/MariaDB4j/mariaDB4j-db-linux64/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ mariaDB4j-db-linux64 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ mariaDB4j-db-linux64 ---
[INFO] No tests to run.
[INFO] Surefire report directory: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-linux64/target/surefire-reports


T E S T S

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ mariaDB4j-db-linux64 ---
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-linux64/target/mariaDB4j-db-linux64-2.2.0-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-linux64 >>>
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-db-linux64 ---
[WARNING] No file to scan.
[INFO]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-db-linux64 ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-linux64 <<<
[INFO]
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-linux64 ---
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-linux64/target/mariaDB4j-db-linux64-2.2.0-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ mariaDB4j-db-linux64 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ mariaDB4j-db-linux64 ---
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-linux64/target/mariaDB4j-db-linux64-2.2.0-SNAPSHOT.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-linux64/2.2.0-SNAPSHOT/mariaDB4j-db-linux64-2.2.0-SNAPSHOT.jar
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-linux64/pom.xml to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-linux64/2.2.0-SNAPSHOT/mariaDB4j-db-linux64-2.2.0-SNAPSHOT.pom
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-linux64/target/mariaDB4j-db-linux64-2.2.0-SNAPSHOT-sources.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-linux64/2.2.0-SNAPSHOT/mariaDB4j-db-linux64-2.2.0-SNAPSHOT-sources.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mariaDB4j-db-mac64 2.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mariaDB4j-db-mac64 ---
[INFO] Deleting /home/flo/java/todt/MariaDB4j/mariaDB4j-db-mac64/target
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-db-mac64 ---
[WARNING] No file to scan.
[INFO]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-db-mac64 ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mariaDB4j-db-mac64 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 111 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mariaDB4j-db-mac64 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mariaDB4j-db-mac64 ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/flo/java/todt/MariaDB4j/mariaDB4j-db-mac64/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ mariaDB4j-db-mac64 ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ mariaDB4j-db-mac64 ---
[INFO] No tests to run.
[INFO] Surefire report directory: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-mac64/target/surefire-reports


T E S T S

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.2:jar (default-jar) @ mariaDB4j-db-mac64 ---
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-mac64/target/mariaDB4j-db-mac64-2.2.0-SNAPSHOT.jar
[INFO]
[INFO] >>> maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-mac64 >>>
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j-db-mac64 ---
[WARNING] No file to scan.
[INFO]
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j-db-mac64 ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] <<< maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-mac64 <<<
[INFO]
[INFO] --- maven-source-plugin:2.3:jar (attach-sources) @ mariaDB4j-db-mac64 ---
[INFO] Building jar: /home/flo/java/todt/MariaDB4j/mariaDB4j-db-mac64/target/mariaDB4j-db-mac64-2.2.0-SNAPSHOT-sources.jar
[INFO]
[INFO] --- maven-javadoc-plugin:2.9.1:jar (attach-javadocs) @ mariaDB4j-db-mac64 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ mariaDB4j-db-mac64 ---
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-mac64/target/mariaDB4j-db-mac64-2.2.0-SNAPSHOT.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-mac64/2.2.0-SNAPSHOT/mariaDB4j-db-mac64-2.2.0-SNAPSHOT.jar
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-mac64/pom.xml to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-mac64/2.2.0-SNAPSHOT/mariaDB4j-db-mac64-2.2.0-SNAPSHOT.pom
[INFO] Installing /home/flo/java/todt/MariaDB4j/mariaDB4j-db-mac64/target/mariaDB4j-db-mac64-2.2.0-SNAPSHOT-sources.jar to /home/flo/.m2/repository/ch/vorburger/mariaDB4j/mariaDB4j-db-mac64/2.2.0-SNAPSHOT/mariaDB4j-db-mac64-2.2.0-SNAPSHOT-sources.jar
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building mariaDB4j 2.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ mariaDB4j ---
[INFO] Deleting /home/flo/java/todt/MariaDB4j/mariaDB4j/target
[INFO]
[INFO] --- license-maven-plugin:1.7:check-file-header (default) @ mariaDB4j ---
[INFO] Will search files to update from root /home/flo/java/todt/MariaDB4j/mariaDB4j/src/test/java
[INFO] Scan 10 files header done in 46.189ms.
[INFO] All files are up-to-date.
[INFO]
[INFO] --- maven-checkstyle-plugin:2.15:check (validate) @ mariaDB4j ---
[INFO] Starting audit...
Audit done.
[INFO]
[INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ mariaDB4j ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/flo/java/todt/MariaDB4j/mariaDB4j/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ mariaDB4j ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ mariaDB4j ---
[debug] execute contextualize
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ mariaDB4j ---
[INFO] Compiling 10 source files to /home/flo/java/todt/MariaDB4j/mariaDB4j/target/test-classes
[INFO]
[INFO] --- maven-surefire-plugin:2.10:test (default-test) @ mariaDB4j ---
[INFO] Surefire report directory: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/surefire-reports


T E S T S

Running ch.vorburger.mariadb4j.tests.MariaDB4jServiceTest
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/data/37103
[main] INFO ch.vorburger.mariadb4j.Util - Unpacked 61 files from classpath_:ch/vorburger/mariadb4j/mariadb-5.5.33a/linux/* to /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x /tmp/MariaDB4j/base/bin/my_print_defaults (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x /tmp/MariaDB4j/base/bin/mysql_install_db (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x /tmp/MariaDB4j/base/bin/mysqld (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x /tmp/MariaDB4j/base/bin/mysql (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/37103, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait for this process to terminate itself: Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/37103, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base)
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/37103' ...
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installation of system tables failed! Examine the logs in
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/data/37103 for more information.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The problem could be conflicting information in an external
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: my.cnf files. You can ignore these by doing:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /scripts/mysql_install_db --defaults-file=/.my.cnf
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: You can also try to start the mysqld daemon with:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: and use the command line tool /tmp/MariaDB4j/base/bin/mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: to connect to the mysql database and look at the grant tables:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: mysql> show tables
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Try 'mysqld --help' if you have problems with paths. Using
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: --general-log gives you a log in /tmp/MariaDB4j/data/37103 that may be helpful.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The latest information about mysql_install_db is available at
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: MariaDB is hosted on launchpad; You can find the latest source and
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: email lists at http://launchpad.net/maria
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Please check all of the above before mailing us! And remember, if
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
[Exec Default Executor] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/37103, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed unexpectedly
[main] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/37103, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.47 sec <<< FAILURE!
Running ch.vorburger.mariadb4j.tests.MariaDB4jSampleTutorialTest
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/data/44907
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/44907, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base)
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/44907' ...
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installation of system tables failed! Examine the logs in
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/data/44907 for more information.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The problem could be conflicting information in an external
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: my.cnf files. You can ignore these by doing:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /scripts/mysql_install_db --defaults-file=
/.my.cnf
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: You can also try to start the mysqld daemon with:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: and use the command line tool /tmp/MariaDB4j/base/bin/mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: to connect to the mysql database and look at the grant tables:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: mysql> show tables
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Try 'mysqld --help' if you have problems with paths. Using
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: --general-log gives you a log in /tmp/MariaDB4j/data/44907 that may be helpful.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The latest information about mysql_install_db is available at
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: MariaDB is hosted on launchpad; You can find the latest source and
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: email lists at http://launchpad.net/maria
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Please check all of the above before mailing us! And remember, if
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
[Exec Default Executor] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/44907, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed unexpectedly
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)
[main] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/44907, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.088 sec <<< FAILURE!
Running ch.vorburger.mariadb4j.tests.MariaDB4jSampleOtherTest
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/data/37613
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/37613, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base)
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/37613' ...
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installation of system tables failed! Examine the logs in
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/data/37613 for more information.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The problem could be conflicting information in an external
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: my.cnf files. You can ignore these by doing:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: You can also try to start the mysqld daemon with:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: and use the command line tool /tmp/MariaDB4j/base/bin/mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: to connect to the mysql database and look at the grant tables:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: mysql> show tables
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Try 'mysqld --help' if you have problems with paths. Using
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: --general-log gives you a log in /tmp/MariaDB4j/data/37613 that may be helpful.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The latest information about mysql_install_db is available at
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: MariaDB is hosted on launchpad; You can find the latest source and
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: email lists at http://launchpad.net/maria
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Please check all of the above before mailing us! And remember, if
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
[Exec Default Executor] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/37613, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed unexpectedly
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)
[main] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/37613, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.124 sec <<< FAILURE!
Running ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySpringValueTest
Sep 03, 2015 6:34:32 PM org.springframework.test.context.support.AbstractContextLoader generateDefaultLocations
INFO: Could not detect default resource locations for test class [ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySpringValueTest]: class path resource [ch/vorburger/mariadb4j/tests/springframework/MariaDB4jSpringServiceOverrideBySpringValueTest-context.xml] does not exist
Sep 03, 2015 6:34:32 PM org.springframework.test.context.support.AbstractDelegatingSmartContextLoader processContextConfiguration
INFO: AnnotationConfigContextLoader detected default configuration classes for context configuration [ContextConfigurationAttributes@bf9759 declaringClass = 'ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySpringValueTest', classes = '{class ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySpringValueTest$TestConfiguration}', locations = '{}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader'].
Sep 03, 2015 6:34:32 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [javax/servlet/ServletContext]
Sep 03, 2015 6:34:32 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
Sep 03, 2015 6:34:33 PM org.springframework.context.support.GenericApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.GenericApplicationContext@191a895: startup date [Thu Sep 03 18:34:33 CEST 2015]; root of context hierarchy
Sep 03, 2015 6:34:33 PM org.springframework.context.annotation.ConfigurationClassEnhancer intercept
WARNING: @bean method MariaDB4jSpringServiceTestSpringConfiguration.propertyPlaceholderConfigurer is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @bean javadoc for complete details
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir
[main] INFO ch.vorburger.mariadb4j.Util - Unpacked 61 files from classpath
:ch/vorburger/mariadb4j/mariadb-5.5.33a/linux/_* to target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/my_print_defaults (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql_install_db (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir)
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait for this process to terminate itself: Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir)
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/my_print_defaults: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installing MariaDB/MySQL system tables in '/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir' ...
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld: Syntax error: ")" unexpected
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installation of system tables failed! Examine the logs in
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir for more information.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The problem could be conflicting information in an external
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: my.cnf files. You can ignore these by doing:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: You can also try to start the mysqld daemon with:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld --skip-grant --general-log &
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: to connect to the mysql database and look at the grant tables:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql -u root mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: mysql> show tables
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Try 'mysqld --help' if you have problems with paths. Using
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: --general-log gives you a log in /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir that may be helpful.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The latest information about mysql_install_db is available at
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: MariaDB is hosted on launchpad; You can find the latest source and
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: email lists at http://launchpad.net/maria
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Please check all of the above before mailing us! And remember, if
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: you do mail us, you should use the /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/scripts/mysqlbug script!
[Exec Default Executor] ERROR ch.vorburger.exec.ManagedProcess - Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir) failed unexpectedly
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)
[main] ERROR ch.vorburger.exec.ManagedProcess - Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir) failed
Sep 03, 2015 6:34:37 PM org.springframework.context.support.GenericApplicationContext refresh
WARNING: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB4jSpringService': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:98)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 48 more
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:123)
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:71)
at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66)
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:89)
... 55 more
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir) failed, exitValue=1, last 100 lines of console:
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/my_print_defaults: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir' ...
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld --skip-grant --general-log &

and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:293)
at ch.vorburger.exec.ManagedProcess.waitForExitMaxMsWithoutLog(ManagedProcess.java:411)
at ch.vorburger.exec.ManagedProcess.waitForExit(ManagedProcess.java:381)
at ch.vorburger.mariadb4j.DB.install(DB.java:121)
... 58 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)

Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager prepareTestInstance
SEVERE: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@1cec361] to prepare test instance [ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySpringValueTest@794848]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:103)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:98)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB4jSpringService': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95)
... 31 more
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 48 more
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:123)
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:71)
at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66)
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:89)
... 55 more
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir) failed, exitValue=1, last 100 lines of console:
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/my_print_defaults: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir' ...
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysqld --skip-grant --general-log &

and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/dataDir that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySpringValueTest/baseDir/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:293)
at ch.vorburger.exec.ManagedProcess.waitForExitMaxMsWithoutLog(ManagedProcess.java:411)
at ch.vorburger.exec.ManagedProcess.waitForExit(ManagedProcess.java:381)
at ch.vorburger.mariadb4j.DB.install(DB.java:121)
... 58 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.953 sec <<< FAILURE!
Running ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceNewDefaultsOverridenBySpringValueTest
Sep 03, 2015 6:34:37 PM org.springframework.test.context.support.AbstractContextLoader generateDefaultLocations
INFO: Could not detect default resource locations for test class [ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceNewDefaultsOverridenBySpringValueTest]: class path resource [ch/vorburger/mariadb4j/tests/springframework/MariaDB4jSpringServiceNewDefaultsOverridenBySpringValueTest-context.xml] does not exist
Sep 03, 2015 6:34:37 PM org.springframework.test.context.support.AbstractDelegatingSmartContextLoader processContextConfiguration
INFO: AnnotationConfigContextLoader detected default configuration classes for context configuration [ContextConfigurationAttributes@d76f31 declaringClass = 'ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceNewDefaultsOverridenBySpringValueTest', classes = '{class ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceNewDefaultsOverridenBySpringValueTest$TestConfiguration}', locations = '{}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader'].
Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [javax/servlet/ServletContext]
Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
Sep 03, 2015 6:34:37 PM org.springframework.context.support.GenericApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.GenericApplicationContext@1438269: startup date [Thu Sep 03 18:34:37 CEST 2015]; root of context hierarchy
Sep 03, 2015 6:34:37 PM org.springframework.context.annotation.ConfigurationClassEnhancer intercept
WARNING: @bean method MariaDB4jSpringServiceTestSpringConfiguration.propertyPlaceholderConfigurer is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @bean javadoc for complete details
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/data/5678
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/5678, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base)
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/5678' ...
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installation of system tables failed! Examine the logs in
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/data/5678 for more information.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The problem could be conflicting information in an external
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: my.cnf files. You can ignore these by doing:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: You can also try to start the mysqld daemon with:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: and use the command line tool /tmp/MariaDB4j/base/bin/mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: to connect to the mysql database and look at the grant tables:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: mysql> show tables
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Try 'mysqld --help' if you have problems with paths. Using
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: --general-log gives you a log in /tmp/MariaDB4j/data/5678 that may be helpful.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The latest information about mysql_install_db is available at
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: MariaDB is hosted on launchpad; You can find the latest source and
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: email lists at http://launchpad.net/maria
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Please check all of the above before mailing us! And remember, if
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
[Exec Default Executor] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/5678, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed unexpectedly
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)
[main] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/5678, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed
Sep 03, 2015 6:34:37 PM org.springframework.context.support.GenericApplicationContext refresh
WARNING: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB4jSpringService': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:98)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 48 more
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:123)
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:71)
at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66)
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:89)
... 55 more
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/5678, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed, exitValue=1, last 100 lines of console:
/tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/5678' ...
/tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/tmp/MariaDB4j/data/5678 for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &

and use the command line tool /tmp/MariaDB4j/base/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /tmp/MariaDB4j/data/5678 that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:293)
at ch.vorburger.exec.ManagedProcess.startExecute(ManagedProcess.java:203)
at ch.vorburger.exec.ManagedProcess.start(ManagedProcess.java:130)
at ch.vorburger.mariadb4j.DB.install(DB.java:120)
... 58 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)

Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager prepareTestInstance
SEVERE: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@13ca52e] to prepare test instance [ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceNewDefaultsOverridenBySpringValueTest@1c7e403]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:103)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:98)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB4jSpringService': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95)
... 31 more
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 48 more
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:123)
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:71)
at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66)
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:89)
... 55 more
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/5678, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed, exitValue=1, last 100 lines of console:
/tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/5678' ...
/tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/tmp/MariaDB4j/data/5678 for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &

and use the command line tool /tmp/MariaDB4j/base/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /tmp/MariaDB4j/data/5678 that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:293)
at ch.vorburger.exec.ManagedProcess.startExecute(ManagedProcess.java:203)
at ch.vorburger.exec.ManagedProcess.start(ManagedProcess.java:130)
at ch.vorburger.mariadb4j.DB.install(DB.java:120)
... 58 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.409 sec <<< FAILURE!
Running ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceStandardDefaultsTest
Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [javax/servlet/ServletContext]
Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
Sep 03, 2015 6:34:37 PM org.springframework.context.support.GenericApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.GenericApplicationContext@1f4931d: startup date [Thu Sep 03 18:34:37 CEST 2015]; root of context hierarchy
Sep 03, 2015 6:34:37 PM org.springframework.context.annotation.ConfigurationClassEnhancer intercept
WARNING: @bean method MariaDB4jSpringServiceTestSpringConfiguration.propertyPlaceholderConfigurer is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @bean javadoc for complete details
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/data/33581
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/33581, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base)
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/33581' ...
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installation of system tables failed! Examine the logs in
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: /tmp/MariaDB4j/data/33581 for more information.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The problem could be conflicting information in an external
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: my.cnf files. You can ignore these by doing:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: You can also try to start the mysqld daemon with:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: and use the command line tool /tmp/MariaDB4j/base/bin/mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: to connect to the mysql database and look at the grant tables:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: mysql> show tables
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Try 'mysqld --help' if you have problems with paths. Using
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: --general-log gives you a log in /tmp/MariaDB4j/data/33581 that may be helpful.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The latest information about mysql_install_db is available at
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: MariaDB is hosted on launchpad; You can find the latest source and
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: email lists at http://launchpad.net/maria
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Please check all of the above before mailing us! And remember, if
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
[Exec Default Executor] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/33581, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed unexpectedly
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)
[main] ERROR ch.vorburger.exec.ManagedProcess - Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/33581, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed
Sep 03, 2015 6:34:37 PM org.springframework.context.support.GenericApplicationContext refresh
WARNING: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB4jSpringService': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:98)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 48 more
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:123)
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:71)
at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66)
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:89)
... 55 more
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/33581, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed, exitValue=1, last 100 lines of console:
/tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/33581' ...
/tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/tmp/MariaDB4j/data/33581 for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &

and use the command line tool /tmp/MariaDB4j/base/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /tmp/MariaDB4j/data/33581 that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:293)
at ch.vorburger.exec.ManagedProcess.startExecute(ManagedProcess.java:203)
at ch.vorburger.exec.ManagedProcess.start(ManagedProcess.java:130)
at ch.vorburger.mariadb4j.DB.install(DB.java:120)
... 58 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)

Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager prepareTestInstance
SEVERE: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@4fa968] to prepare test instance [ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceStandardDefaultsTest@7bddad]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:103)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:98)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB4jSpringService': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95)
... 31 more
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 48 more
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:123)
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:71)
at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66)
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:89)
... 55 more
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/tmp/MariaDB4j/base/bin/mysql_install_db, --datadir=/tmp/MariaDB4j/data/33581, --basedir=/tmp/MariaDB4j/base, --no-defaults, --force, --skip-name-resolve](in working directory /tmp/MariaDB4j/base) failed, exitValue=1, last 100 lines of console:
/tmp/MariaDB4j/base/bin/my_print_defaults: 1: /tmp/MariaDB4j/base/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/tmp/MariaDB4j/data/33581' ...
/tmp/MariaDB4j/base/bin/mysqld: 1: /tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/tmp/MariaDB4j/data/33581 for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /tmp/MariaDB4j/base/bin/mysqld --skip-grant --general-log &

and use the command line tool /tmp/MariaDB4j/base/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /tmp/MariaDB4j/base/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /tmp/MariaDB4j/data/33581 that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /tmp/MariaDB4j/base/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:293)
at ch.vorburger.exec.ManagedProcess.startExecute(ManagedProcess.java:203)
at ch.vorburger.exec.ManagedProcess.start(ManagedProcess.java:130)
at ch.vorburger.mariadb4j.DB.install(DB.java:120)
... 58 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.222 sec <<< FAILURE!
Running ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySetTest
Sep 03, 2015 6:34:37 PM org.springframework.test.context.support.AbstractContextLoader generateDefaultLocations
INFO: Could not detect default resource locations for test class [ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySetTest]: class path resource [ch/vorburger/mariadb4j/tests/springframework/MariaDB4jSpringServiceOverrideBySetTest-context.xml] does not exist
Sep 03, 2015 6:34:37 PM org.springframework.test.context.support.AbstractDelegatingSmartContextLoader processContextConfiguration
INFO: AnnotationConfigContextLoader detected default configuration classes for context configuration [ContextConfigurationAttributes@170f470 declaringClass = 'ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySetTest', classes = '{class ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySetTest$TestConfiguration}', locations = '{}', inheritLocations = true, initializers = '{}', inheritInitializers = true, name = [null], contextLoaderClass = 'org.springframework.test.context.ContextLoader'].
Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.web.ServletTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [javax/servlet/ServletContext]
Sep 03, 2015 6:34:37 PM org.springframework.test.context.TestContextManager retrieveTestExecutionListeners
INFO: Could not instantiate TestExecutionListener [org.springframework.test.context.transaction.TransactionalTestExecutionListener]. Specify custom listener classes or make the default listener classes (and their required dependencies) available. Offending class: [org/springframework/transaction/interceptor/TransactionAttribute]
Sep 03, 2015 6:34:37 PM org.springframework.context.support.GenericApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.GenericApplicationContext@313fcc: startup date [Thu Sep 03 18:34:37 CEST 2015]; root of context hierarchy
Sep 03, 2015 6:34:37 PM org.springframework.context.annotation.ConfigurationClassEnhancer intercept
WARNING: @bean method MariaDB4jSpringServiceTestSpringConfiguration.propertyPlaceholderConfigurer is non-static and returns an object assignable to Spring's BeanFactoryPostProcessor interface. This will result in a failure to process annotations such as @Autowired, @resource and @PostConstruct within the method's declaring @configuration class. Add the 'static' modifier to this method to avoid these container lifecycle issues; see @bean javadoc for complete details
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir
[main] INFO ch.vorburger.mariadb4j.Util - Unpacked 61 files from classpath_:ch/vorburger/mariadb4j/mariadb-5.5.33a/linux/_* to target/MariaDB4jSpringServiceOverrideBySetTest/baseDir
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/my_print_defaults (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql_install_db (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: target/MariaDB4jSpringServiceOverrideBySetTest/baseDir
[main] INFO ch.vorburger.exec.ManagedProcess - Starting Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir)
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/my_print_defaults: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
[main] INFO ch.vorburger.exec.ManagedProcess - Thread is now going to wait for this process to terminate itself: Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir)
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installing MariaDB/MySQL system tables in '/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir' ...
[Exec Stream Pumper] ERROR ch.vorburger.exec.ManagedProcess - mysql_install_db: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld: Syntax error: ")" unexpected
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Installation of system tables failed! Examine the logs in
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir for more information.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The problem could be conflicting information in an external
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: my.cnf files. You can ignore these by doing:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: You can also try to start the mysqld daemon with:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld --skip-grant --general-log &
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: to connect to the mysql database and look at the grant tables:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql -u root mysql
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: mysql> show tables
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Try 'mysqld --help' if you have problems with paths. Using
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: --general-log gives you a log in /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir that may be helpful.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: The latest information about mysql_install_db is available at
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: MariaDB is hosted on launchpad; You can find the latest source and
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: email lists at http://launchpad.net/maria
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db:
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: Please check all of the above before mailing us! And remember, if
[Exec Stream Pumper] INFO ch.vorburger.exec.ManagedProcess - mysql_install_db: you do mail us, you should use the /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/scripts/mysqlbug script!
[Exec Default Executor] ERROR ch.vorburger.exec.ManagedProcess - Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir) failed unexpectedly
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)
[main] ERROR ch.vorburger.exec.ManagedProcess - Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir) failed
Sep 03, 2015 6:34:47 PM org.springframework.context.support.GenericApplicationContext refresh
WARNING: Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB4jSpringService': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:98)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 48 more
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:123)
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:71)
at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66)
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:89)
... 55 more
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir) failed, exitValue=1, last 100 lines of console:
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/my_print_defaults: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir' ...
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld --skip-grant --general-log &

and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:293)
at ch.vorburger.exec.ManagedProcess.waitForExitMaxMsWithoutLog(ManagedProcess.java:411)
at ch.vorburger.exec.ManagedProcess.waitForExit(ManagedProcess.java:381)
at ch.vorburger.mariadb4j.DB.install(DB.java:121)
... 58 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)

Sep 03, 2015 6:34:47 PM org.springframework.test.context.TestContextManager prepareTestInstance
SEVERE: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@567e20] to prepare test instance [ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySetTest@ed1b7c]
java.lang.IllegalStateException: Failed to load ApplicationContext
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:103)
at org.springframework.test.context.DefaultTestContext.getApplicationContext(DefaultTestContext.java:98)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)
at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:331)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:213)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:290)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:292)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:233)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:176)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mariaDB4jSpringService': Invocation of init method failed; nested exception is java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:136)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:407)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1546)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:475)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:706)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:482)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:125)
at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:102)
at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:248)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContextInternal(CacheAwareContextLoaderDelegate.java:69)
at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:95)
... 31 more
Caused by: java.lang.IllegalStateException: MariaDB4jSpringService start() failed
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleElement.invoke(InitDestroyAnnotationBeanPostProcessor.java:349)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:300)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:133)
... 48 more
Caused by: ch.vorburger.exec.ManagedProcessException: An error occurred while installing the database
at ch.vorburger.mariadb4j.DB.install(DB.java:123)
at ch.vorburger.mariadb4j.DB.newEmbeddedDB(DB.java:71)
at ch.vorburger.mariadb4j.MariaDB4jService.start(MariaDB4jService.java:66)
at ch.vorburger.mariadb4j.springframework.MariaDB4jSpringService.start(MariaDB4jSpringService.java:89)
... 55 more
Caused by: ch.vorburger.exec.ManagedProcessException: Program [/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql_install_db, --datadir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir, --basedir=/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir, --no-defaults, --force, --skip-name-resolve](in working directory /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir) failed, exitValue=1, last 100 lines of console:
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/my_print_defaults: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/my_print_defaults: Syntax error: word unexpected (expecting ")")
Installing MariaDB/MySQL system tables in '/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir' ...
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld: 1: /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld: Syntax error: ")" unexpected

Installation of system tables failed! Examine the logs in
/home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir for more information.

The problem could be conflicting information in an external
my.cnf files. You can ignore these by doing:

shell> /scripts/mysql_install_db --defaults-file=~/.my.cnf

You can also try to start the mysqld daemon with:

shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysqld --skip-grant --general-log &

and use the command line tool /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql
to connect to the mysql database and look at the grant tables:

shell> /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/bin/mysql -u root mysql
mysql> show tables

Try 'mysqld --help' if you have problems with paths. Using
--general-log gives you a log in /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/dataDir that may be helpful.

The latest information about mysql_install_db is available at
http://kb.askmonty.org/v/installing-system-tables-mysql_install_db.
MariaDB is hosted on launchpad; You can find the latest source and
email lists at http://launchpad.net/maria

Please check all of the above before mailing us! And remember, if
you do mail us, you should use the /home/flo/java/todt/MariaDB4j/mariaDB4j/target/MariaDB4jSpringServiceOverrideBySetTest/baseDir/scripts/mysqlbug script!
at ch.vorburger.exec.ManagedProcess.checkResult(ManagedProcess.java:293)
at ch.vorburger.exec.ManagedProcess.waitForExitMaxMsWithoutLog(ManagedProcess.java:411)
at ch.vorburger.exec.ManagedProcess.waitForExit(ManagedProcess.java:381)
at ch.vorburger.mariadb4j.DB.install(DB.java:121)
... 58 more
Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48)
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200)
at java.lang.Thread.run(Thread.java:745)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 10.031 sec <<< FAILURE!
Running ch.vorburger.mariadb4j.StartSimulatedForAllPlatformsTest
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/data/55011
[main] INFO ch.vorburger.mariadb4j.Util - Unpacked 110 files from classpath_:ch/vorburger/mariadb4j/mariadb-5.5.34/osx/* to /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.DB - mysqld executable: /tmp/MariaDB4j/base/bin/mysqld
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/data/59520
[main] INFO ch.vorburger.mariadb4j.Util - Unpacked 61 files from classpath
:ch/vorburger/mariadb4j/mariadb-5.5.33a/linux/* to /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x /tmp/MariaDB4j/base/bin/my_print_defaults (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x /tmp/MariaDB4j/base/bin/mysql_install_db (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x /tmp/MariaDB4j/base/bin/mysqld (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.Util - chmod +x /tmp/MariaDB4j/base/bin/mysql (using java.io.File.setExecutable)
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.DB - mysqld executable: /tmp/MariaDB4j/base/bin/mysqld
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.Util - Created directory: /tmp/MariaDB4j/data/50859
[main] INFO ch.vorburger.mariadb4j.Util - Unpacked 38 files from classpath
:ch/vorburger/mariadb4j/mariadb-10.0.13/win32/_* to /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.DB - Installing a new embedded database to: /tmp/MariaDB4j/base
[main] INFO ch.vorburger.mariadb4j.DB - mysqld executable: /tmp/MariaDB4j/base/bin/mysqld.exe
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.912 sec
[Shutdown Hook Deletion Thread for Temporary DB /tmp/MariaDB4j/data/50859] INFO ch.vorburger.mariadb4j.DB - cleanupOnExit() ShutdownHook deleting temporary DB data directory: /tmp/MariaDB4j/data/50859
[Shutdown Hook Deletion Thread for Temporary DB /tmp/MariaDB4j/data/59520] INFO ch.vorburger.mariadb4j.DB - cleanupOnExit() ShutdownHook deleting temporary DB data directory: /tmp/MariaDB4j/data/59520
[Shutdown Hook Deletion Thread for Temporary DB /tmp/MariaDB4j/data/55011] INFO ch.vorburger.mariadb4j.DB - cleanupOnExit() ShutdownHook deleting temporary DB data directory: /tmp/MariaDB4j/data/55011

Results :

Tests in error:
testStartStop(ch.vorburger.mariadb4j.tests.MariaDB4jServiceTest): An error occurred while installing the database
testEmbeddedMariaDB4j(ch.vorburger.mariadb4j.tests.MariaDB4jSampleTutorialTest): An error occurred while installing the database
startTwoMariaDB4j(ch.vorburger.mariadb4j.tests.MariaDB4jSampleOtherTest): An error occurred while installing the database
testOverrideBySpringValue(ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySpringValueTest): Failed to load ApplicationContext
testNewDefaults(ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceNewDefaultsOverridenBySpringValueTest): Failed to load ApplicationContext
testStandardDefaults(ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceStandardDefaultsTest): Failed to load ApplicationContext
testOverrideBySet(ch.vorburger.mariadb4j.tests.springframework.MariaDB4jSpringServiceOverrideBySetTest): Failed to load ApplicationContext

Tests run: 10, Failures: 0, Errors: 7, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] mariaDB4j-pom ..................................... SUCCESS [6.279s]
[INFO] mariaDB4j-core .................................... SUCCESS [18.066s]
[INFO] mariaDB4j-db-win32 ................................ SUCCESS [4.464s]
[INFO] mariaDB4j-db-linux64 .............................. SUCCESS [16.297s]
[INFO] mariaDB4j-db-mac64 ................................ SUCCESS [7.038s]
[INFO] mariaDB4j ......................................... FAILURE [27.975s]
[INFO] mariaDB4j-app ..................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:20.547s
[INFO] Finished at: Thu Sep 03 18:34:52 CEST 2015
[INFO] Final Memory: 36M/322M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project mariaDB4j: There are test failures.
[ERROR]
[ERROR] Please refer to /home/flo/java/todt/MariaDB4j/mariaDB4j/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :mariaDB4j

Process finished with exit code 1

@vorburger
Copy link
Collaborator

@florentbo I'm unclear about what could be different on YOUR ;-) Linux .. note e.g. on https://travis-ci.org/vorburger/MariaDB4j how it certainly does seem to build on Linux "normally" - what may be different on yours? Note that I fixed https://github.com/vorburger/MariaDB4j/issues/30 today, which resolved an issue with a vaguely similar error message than yours above, that one had something to do with having spaces in directories - which it doesn't look like you have?

@vorburger
Copy link
Collaborator

@florentbo do you still have this problem? No offense taken if I close this?

@jabs76
Copy link

jabs76 commented Mar 14, 2016

The same error occurred to me when i tried in Windows.
However, when I ignore the tests in MariaDB4jSampleOtherTest.java it's successfully installed.

@ghost
Copy link

ghost commented May 13, 2016

I too encountered this error on a 32-bit Linux system. I notice the database binaries that get installed (my_print_defaults, mysql, mysqlcheck, mysqld) are 64-bit.
If I wish to use system binaries, how do I specify dependency on MariaDB4j-core in Gradle?

@vorburger vorburger changed the title An error occurred while installing the database on Linux but not on windows Missing 32bit Linux mariadb (An error occurred while installing the database on Linux but not on windows) Jul 24, 2016
@vorburger
Copy link
Collaborator

@florentbo I still don't know what could be causing the Syntax error: ")" unexpected thing for you ... sorry.

@meta-coder currently it only includes a 64bit binary for Linux. You contribution with a Linux 32 bit binary would be most welcome! If interested, please note the new section on the README re. DB upgrades on https://github.com/vorburger/MariaDB4j/blob/master/README.md#mariadb-database-jars-and-version-upgrades (just introduced in 4c2da73).

@jabs76 I believe your problem in Windows may be different to what this issue is about. Are you sure you saw the EXACT same error, as shown above? Also with the Syntax error: ")" unexpected thing? Could I suggest that you open a new issue about your Windows specific problem, with a new full log?

@ghost
Copy link

ghost commented Jul 25, 2016

You get this error (/tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected) when it tries to run 64 bit mysqld binary on 32 bit Linux.

@vorburger
Copy link
Collaborator

Closing this very old issue now, to clean up the list. (There is no concrete action left to "do" here.)

@godofrayer
Copy link

You get this error (/tmp/MariaDB4j/base/bin/mysqld: Syntax error: ")" unexpected) when it tries to run 64 bit mysqld binary on 32 bit Linux.

I got the same issue. How to deal with this? :(

@vorburger
Copy link
Collaborator

I got the same issue. How to deal with this? :(

Someone (you?) would have to contribute 32 bit Linux MariaDB4j binaries to this project.

@vorburger vorburger reopened this Oct 10, 2018
@godofrayer
Copy link

godofrayer commented Nov 14, 2018

where can i add the binaries file?i need for armhf too because it will be embedded in raspberry. I already zip all the binaries needed for raspberry, can i just email the files?

@vorburger vorburger added the Windows Anything specific to Microsoft Windows OS, not affecting Linux label Sep 2, 2019
@vorburger
Copy link
Collaborator

where can i add the binaries file?

see https://github.com/vorburger/MariaDB4j#mariadb-database-jars-and-version-upgrades

take inspiration from #235 for #230

i need for armhf too because it will be embedded in raspberry. I already zip all the binaries needed for raspberry, can i just email the files?

No, you would have to raise a PR. But this issue is re. 32bit Windows; let's use #298 re. ARM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helpwanted low Windows Anything specific to Microsoft Windows OS, not affecting Linux
Projects
None yet
Development

No branches or pull requests

4 participants