Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After the upgrade jvm8 grails run-app does not start

Tags:

grails

Ok, I decided to try in the framework grails. Installed it according to the manual. Create a test project:

## grails create-app ~/workspace/grails/test-project

Run a test project:

## cd workspace/grails/test-project; grails run-app

It's ok.

Today, Ubuntu has offered to install the updates, update the package java-8-oracle-installer. After performing this update command

## cd workspace/grails/test-project; grails run-app

result:

 Caused by: java.lang.IllegalArgumentException: Can not copy a non-root Method
at java.lang.reflect.Method.copy(Method.java:151)
... 157 more мар 06, 2015 2:28:54 PM org.springsource.loaded.jvm.JVM copyMethod SEVERE: Problems copying method. Incompatible JVM?

I would be grateful for the help.

like image 427
Ilya Skutin Avatar asked Nov 24 '25 18:11

Ilya Skutin


1 Answers

Replace the springloaded-1.2.1-release.jar with springloaded-1.2.4.jar and that would fix the issue.

cd your GRAILS_HOME/lib/org.springframework/springloaded/jars

Remove springloaded-1.2.1.RELEASE.jar

And do wget https://repo.spring.io/release/org/springframework/springloaded/1.2.4.RELEASE/springloaded-1.2.4.RELEASE.jar -O springloaded-1.2.1.RELEASE.jar

See here and here

like image 161
Sudhir N Avatar answered Nov 28 '25 02:11

Sudhir N



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!