Error 500: Closure.rehydrate at deploying grails app on cloud foundry

怎甘沉沦 提交于 2019-12-07 21:17:17

问题


recently tried to deploy a grails-app to cloud foundry, the app is running perfectly @ localhost but after cf-push with cloud-foundry plugin, the console is stuck at Starting application and when trying to acces url: myapp.cloudfoundry.com, i have:

Error 500 - Internal Server Error.

groovy.lang.Closure.rehydrate(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Lgroovy/lang/Closure;

What does mean this error ?

edit: here are the logs:

==== logs/stderr.log ====
Aug 10, 2012 3:28:24 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-19820
Aug 10, 2012 3:28:24 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 386 ms
Aug 10, 2012 3:28:24 PM org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
Aug 10, 2012 3:28:24 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Aug 10, 2012 3:28:24 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
Aug 10, 2012 3:28:24 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Aug 10, 2012 3:28:33 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-19820
Aug 10, 2012 3:28:33 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9331 ms

==== logs/stdout.log ====

回答1:


On your question above "What does this error mean?", it looks like stdout messages are being reported to the error logs which isn't giving us much information. Here are some ideas, 1) deploy a sample app to insure things are working, 2) simplify your app to the point where it deploys successfully, 3) incrementally enable additional functionality until it breaks, 4) try to use available tools like debug in STS to investigate further, cloudfoundry docs




回答2:


This may be the same problem as stated in this question: https://stackoverflow.com/a/12469996/187812

The answer in that thread was that "Closure.rehydrate was introduced in Groovy 1.8.5", and the questioner had an older version of Groovy associated with their project.



来源:https://stackoverflow.com/questions/11904385/error-500-closure-rehydrate-at-deploying-grails-app-on-cloud-foundry

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!