How to solve: ** java.lang.instrument ASSERTION FAILED ***: “!errorOutstanding” with message transform method call failed at ../../../src/share/instrument/JPLISAgent.c line:

Hi,

as I tested some memory intensive, recursive functions with GGTS 3.6 and Grails 2.4, execution was interrupted with the following error message:

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

While this error message is not really helpful to find the root cause, I guess it has to do with the forked execution of tests.

To make the error disappear you can either comment out the complete grails.project.fork section in BuildConfig.groovy, or use the following setting:

// BuildConfig.groovy
//

forkConfig = [maxMemory: 1024, minMemory: 64, debug: false, maxPerm: 256]
grails.project.fork = [
    ...
    // configure settings for the test-app JVM, uses the daemon by default
    test: false,
    //test: [maxMemory: 768, minMemory: 64, debug: false, maxPerm: 256, daemon:true],
    ...
]

After you have edited your BuildConfig.groovy, do also a grails clean and you will be back in business again.

HTH Johannes

Advertisements
This entry was posted in Development, Grails and tagged , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s