Forums de discussion

Admin Script Console not working for Groovy

Gwowen Fu, modifié il y a 8 années.

Admin Script Console not working for Groovy

Expert Publications: 315 Date d'inscription: 27/12/10 Publications récentes
Hi,

This problem bothered me a while ago and now I am facing it again.

Liferay Portal Enterprise Edition 6.1.20 EE

When I go to Control Panel -> Server Administration -> Script and change language to "Groovy". Execute print "123" and the page shows
"Server Administration is temporarily unavailable."

This happens in PROD environment which is setup a while ago by someone else. In development environment it works fine. I guess it is turned off due to security reason. Does anyone know how to enable it?

Thank you!
Gwowen
thumbnail
David H Nebinger, modifié il y a 8 années.

RE: Admin Script Console not working for Groovy

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
If you get that message you should have a corresponding error in the log file. Can you show us the relevant failure?
Gwowen Fu, modifié il y a 8 années.

RE: Admin Script Console not working for Groovy

Expert Publications: 315 Date d'inscription: 27/12/10 Publications récentes
David H Nebinger:
If you get that message you should have a corresponding error in the log file. Can you show us the relevant failure?


David, Thank you for the reply. I tried it again and it worked.
thumbnail
Jeffrey Paul Handa, modifié il y a 8 années.

RE: Admin Script Console not working for Groovy

Liferay Master Publications: 541 Date d'inscription: 01/12/08 Publications récentes
Hi Gwowen,

Are there any messages in the log when this error appears? Do any of the other scripting languages work?
Gwowen Fu, modifié il y a 8 années.

RE: Admin Script Console not working for Groovy

Expert Publications: 315 Date d'inscription: 27/12/10 Publications récentes
Jeffery, thanks for the reply. Javascript language works. Today the Groovy language is working too. I will check the log right away next time when it fails.
thumbnail
Amos Fong, modifié il y a 8 années.

RE: Admin Script Console not working for Groovy

Liferay Legend Publications: 2047 Date d'inscription: 07/10/08 Publications récentes
It might be possible you're getting this error:
Caused by: java.lang.Exception: java.lang.VirtualMachineError: out of space in CodeCache for adapters

We fixed it by increasing our ReservedCodeCacheSize in our JVM settings:
-XX:ReservedCodeCacheSize=128m