Grails cannot run the fork pattern solution

  • 2020-04-01 02:33:18
  • OfStack

After upgrading to grails 2.3.2, run the following exception:


Exception in thread "main"
Error |
Forked Grails VM exited with error

java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message transform method call failed at ../../../src/share/instrument/JPLISAgent.c line: 844

See jira:http://jira.grails.org/browse/GRAILS-10756 root cause

This BUG was fixed in grails2.3.3

  There are two interim solutions:

A) no fork mode

Edit the BuildConfig. Groovy

Among them the


run: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, forkReserve:false]

  Modified into


run: false

This disables the fork pattern and does not cause the exception.

B) update related dependencies

Edit the BuildConfig. Groovy

Add the following dependencies to dependencies:


dependencies{
    build "org.fusesource.jansi:jansi:1.11"
}


Related articles: