Q:

gradle process command java finished with non-zero exit value 1

I am getting the following error when I type gradle bootRun --stacktrace --debug in the CentOS 7 terminal to use gradle to launch this sample spring boot app.  
Caused by: org.gradle.process.internal.ExecException:  
Process 'command '/opt/jdk1.8.0_45/bin/java'' finished with  
non-zero exit value 1

I have googled this error and read other SO postings that are similar but not duplicates.  For example, this is in eclipse in CentOS 7 and a web app.  This is not an android app, etc.  Also, commands given in other postings have not resolved this problem.  
All of the code required to reproduce this problem is in the github link above, and all of the logs to diagnose the problem is in this OP below.  How do I resolve this error so that I gradle bootRun can succussfully launch the sample app? 

STEP BY STEP REPRODUCTION OF THE PROBLEM: 

I downloaded the app as-is by navigating to /home/user/workspaces/ and typing git clone https://github.com/jrodenbostel/beyond-the-examples 
I then navigated to cd /home/user/workspaces/beyond-the-examples/part-5 and typed gradle bootRun --stacktrace --debug, which resulted in the stack trace and logs that you can read by clicking on this link to a file sharing site.  (The logs are too long to include in this OP.)

A:

Looking at the logs this appears to be your problem:
nested exception is org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [inser t into users (username, password, enabled) values (?,?,?)]; Data truncation: 
Data too long for column 'password' at row 1; nested exception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'password' at row 1. 

Anyway you can truncate the password size? Otherwise increasing the 'password' column size should do the trick.

