grails db-generate-changelog error - grails

Error run command:
grails dbm-generate-changelog changelog.groovy
command line output:
What went wrong:
Execution failed for task ':dbmGenerateGormChangelog'.
Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 14.887 secs
| Error Command [dbm-generate-gorm-changelog] error: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-3.0-bin.zip'. (Use --stacktrace to see the full trace)

Thank you #quindimildev. The open issue resolved my issue. The direct post that assisted me was the following: https://github.com/grails-plugins/grails-database-migration/issues/64#issuecomment-256739113
I inserted into my dependencies:
runtime "org.grails.plugins:database-migration:3.0.0.BUILD-SNAPSHOT"

Related

FAILURE: Build failed with an exception

I'm trying to run my app from inside Visual studio code, but every time I try i get this error:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:validateSigningDebug'.
java.util.concurrent.ExecutionException: com.android.builder.utils.SynchronizedFile$ActionExecutionException: java.io.IOException: com.android.ide.common.signing.KeytoolException: Failed to create keystore.
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 2s
Exception: Gradle task assembleDebug failed with exit code 1
Although I searched on Google, but I did not get a suitable solution to my problem

A problem occurred evaluating project ':#react-native-firebase_auth'

I am new to React Native and I've installed firebase auth using npm like:
npm add #react-native-firebase/auth and herein there's no such directory as C:\Users\Arpita Jha\Desktop\expert\test\node_modules#react-native-firebase\auth\android\build.gradle.
and now I am facing this problem:
1: Task failed with an exception.
-----------
* Where:
Build file 'C:\Users\Arpita Jha\Desktop\expert\test\node_modules\#react-native-firebase\auth\android\build.gradle' line: 60
* What went wrong:
A problem occurred evaluating project ':#react-native-firebase_auth'.
> Project with path ':#react-native-firebase_app' could not be found in project ':#react-native-firebase_auth'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':#react-native-firebase_auth'.
> compileSdkVersion is not specified.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
==============================================================================
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 17s```
UPDATE
Uninstalled modules installed with npm and then reinstalled using yarn. That solved my problem.
yarn add #react-native-firebase/app

TaskExecutionException on grails upgrade to 3.3.10 bootrun

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':bootRun'.
Process 'command /home/shrshrestha/.sdkman/candidates/java/8.0.222.hs-adpt/bin/java'' finished with non-zero exit value 1
Try:
Run with --info or --debug option to get more log output.
* Exception is:

Grails 3.1.8 application not running

My Grails 3.1.8 application not running,
Following log found when i want to run application-
|Resolving Dependencies. Please wait...
|Running application...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRun'.
> A problem occurred starting process 'command 'C:\Program
Files\Java\jdk1.8.0_92\bin\java.exe''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --
debug option to get more log output.
Error |
Failed to start server (Use --stacktrace to see the full trace)

ElasticSearch plugin causing server to stop in Grails 3.1.6

I'm trying to add ElasticSearch plugin in my Grails 3.1.6 project.
I installed plugin as:
dependencies {
//..
compile 'org.grails.plugins:elasticsearch:1.0.0.2'
//..}
And configured application.yml as
elasticSearch:
client:
node: local
datastoreImpl: hibernateDatastore
But when I try to run application, i'm getting error as below:
BUILD SUCCESSFUL
Total time: 5.118 secs
|Running application...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':bootRun'.
> A problem occurred starting process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe''
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error |
Failed to start server (Use --stacktrace to see the full trace)
Process finished with exit code 1
I'm using IntellijIdea v2016 as IDE.
Would someone please help me to figure out the error spot please.
Thanks.
This isn't related to the plugin, it's a Boot/Gradle problem caused by having a classpath that causes the process to fail because the combined length of the process command is larger than the max Windows allows. This was fixed in 3.1.2 but you have to add a small config setting to build.gradle since it's not a problem in Linux or OSX:
grails {
pathingJar = true
}
See https://github.com/grails/grails-core/issues/9125 for more info.

Resources