Grails 3.1.8 application not running - grails

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)

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

Grails :native2ascii error when i run dummy application

when i used to run the dummy application on grails in ggts(groovy&grails tool suite) its showing error like this :
Error packaging application: Error occurred processing message bundles: Error starting Sun's native2ascii: (Use --stacktrace to see the full trace)

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 db-generate-changelog error

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"

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