2012-09-12 40 views
0

我有一個grails 2.1.0應用程序,我可以成功將其部署到cloudfoundry。在一些代碼更改之後,我做了一個grails產品cf-update,一切都崩潰了。我試圖刪除cloudfoundry應用程序並重新創建它,但沒有結果。由於內存泄漏,Grails應用無法部署到cloudfoundry

這裏是Grails的日誌CF-chrashlogs

| Loading Grails 2.1.0 
| Configuring classpath. 
| Environment set to production..... 
| Compiling 1 source files.. 
| Compiling 1 source files. 
==== logs/stderr.log ==== 

Sep 12, 2012 11:32:55 AM org.apache.coyote.http11.Http11Protocol init 
INFO: Initializing Coyote HTTP/1.1 on http-55735 
Sep 12, 2012 11:32:55 AM org.apache.catalina.startup.Catalina load 
INFO: Initialization processed in 407 ms 
Sep 12, 2012 11:32:55 AM org.apache.catalina.realm.JAASRealm setContainer 
INFO: Set JAAS app name Catalina 
Sep 12, 2012 11:32:55 AM org.apache.catalina.core.StandardService start 
INFO: Starting service Catalina 
Sep 12, 2012 11:32:55 AM org.apache.catalina.core.StandardEngine start 
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35 
Sep 12, 2012 11:32:55 AM org.apache.catalina.startup.HostConfig deployDirectory 
INFO: Deploying web application directory ROOT 
Sep 12, 2012 11:32:55 AM org.apache.catalina.core.StandardContext checkUnusualURLPattern 
INFO: Suspicious url pattern: "/files/**" in context [] - see section SRV.11.2 of the Servlet specification 
Sep 12, 2012 11:33:21 AM org.apache.catalina.core.StandardContext start 
GRAVE: Error listenerStart 
Sep 12, 2012 11:33:21 AM org.apache.catalina.core.StandardContext start 
GRAVE: Context [] startup failed due to previous errors 
Sep 12, 2012 11:33:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
GRAVE: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. 
Sep 12, 2012 11:33:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
GRAVE: The web application [] appears to have started a thread named [[email protected]] but has failed to stop it. This is very likely to create a memory leak. 
Sep 12, 2012 11:33:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
GRAVE: The web application [] appears to have started a thread named [es.pvazquez.judo.security.Role.data] but has failed to stop it. This is very likely to create a memory leak. 
Sep 12, 2012 11:33:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
GRAVE: The web application [] appears to have started a thread named [org.hibernate.cache.UpdateTimestampsCache.data] but has failed to stop it. This is very likely to create a memory leak. 
Sep 12, 2012 11:33:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
GRAVE: The web application [] appears to have started a thread named [org.hibernate.cache.StandardQueryCache.data] but has failed to stop it. This is very likely to create a memory leak. 
Sep 12, 2012 11:33:21 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads 
GRAVE: The web application [] appears to have started a thread named [Compass Scheduled Executor Thread [pool-4-thread-1]] but has failed to stop it. This is very likely to create a memory leak. 

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


Configuring Spring Security UI ... 
... finished configuring Spring Security UI 


Configuring Spring Security Core ... 
... finished configuring Spring Security Core 

2012-09-12 11:33:21,852 [Compass Gps Index [pool-5-thread-2]] ERROR util.JDBCExceptionReporter - Table 'dc2baf5ca87094d6099e1ac613db0eaad.club' doesn't exist 
2012-09-12 11:33:21,854 [Compass Gps Index [pool-5-thread-1]] ERROR util.JDBCExceptionReporter - Table 'dc2baf5ca87094d6099e1ac613db0eaad.judoka' doesn't exist 
2012-09-12 11:33:21,854 [Compass Gps Index [pool-5-thread-4]] ERROR util.JDBCExceptionReporter - Table 'dc2baf5ca87094d6099e1ac613db0eaad.category' doesn't exist 
2012-09-12 11:33:21,854 [Compass Gps Index [pool-5-thread-3]] ERROR util.JDBCExceptionReporter - Table 'dc2baf5ca87094d6099e1ac613db0eaad.championship' doesn't exist 
2012-09-12 11:33:21,859 [Compass Gps Index [pool-5-thread-2]] ERROR indexer.ScrollableHibernateIndexEntitiesIndexer - {hibernate}: Failed to index the database 
org.hibernate.exception.SQLGrammarException: could not execute query using scroll 
    at org.compass.gps.device.hibernate.indexer.ScrollableHibernateIndexEntitiesIndexer.performIndex(ScrollableHibernateIndexEntitiesIndexer.java:118) 
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1$1.doInCompassWithoutResult(ConcurrentParallelIndexExecutor.java:104) 
    at org.compass.core.CompassCallbackWithoutResult.doInCompass(CompassCallbackWithoutResult.java:29) 
    at org.compass.core.CompassTemplate.execute(CompassTemplate.java:133) 
    at org.compass.gps.impl.SingleCompassGps.executeForIndex(SingleCompassGps.java:147) 
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1.call(ConcurrentParallelIndexExecutor.java:102) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
    at java.lang.Thread.run(Thread.java:662) 
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dc2baf5ca87094d6099e1ac613db0eaad.club' doesn't exist 
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) 
    at com.mysql.jdbc.Util.getInstance(Util.java:386) 
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1053) 
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074) 
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006) 
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468) 
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629) 
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2719) 
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155) 
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2318) 
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) 
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) 
    ... 11 more 
2012-09-12 11:33:21,861 [Compass Gps Index [pool-5-thread-3]] ERROR indexer.ScrollableHibernateIndexEntitiesIndexer - {hibernate}: Failed to index the database 
org.hibernate.exception.SQLGrammarException: could not execute query using scroll 
    at org.compass.gps.device.hibernate.indexer.ScrollableHibernateIndexEntitiesIndexer.performIndex(ScrollableHibernateIndexEntitiesIndexer.java:118) 
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1$1.doInCompassWithoutResult(ConcurrentParallelIndexExecutor.java:104) 
    at org.compass.core.CompassCallbackWithoutResult.doInCompass(CompassCallbackWithoutResult.java:29) 
    at org.compass.core.CompassTemplate.execute(CompassTemplate.java:133) 
    at org.compass.gps.impl.SingleCompassGps.executeForIndex(SingleCompassGps.java:147) 
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1.call(ConcurrentParallelIndexExecutor.java:102) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
    at java.lang.Thread.run(Thread.java:662) 
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dc2baf5ca87094d6099e1ac613db0eaad.championship' doesn't exist 
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) 
    at com.mysql.jdbc.Util.getInstance(Util.java:386) 
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1053) 
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074) 
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006) 
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468) 
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629) 
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2719) 
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155) 
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2318) 
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) 
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) 
    ... 11 more 
2012-09-12 11:33:21,860 [Compass Gps Index [pool-5-thread-4]] ERROR indexer.ScrollableHibernateIndexEntitiesIndexer - {hibernate}: Failed to index the database 
org.hibernate.exception.SQLGrammarException: could not execute query using scroll 
    at org.compass.gps.device.hibernate.indexer.ScrollableHibernateIndexEntitiesIndexer.performIndex(ScrollableHibernateIndexEntitiesIndexer.java:118) 
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1$1.doInCompassWithoutResult(ConcurrentParallelIndexExecutor.java:104) 
    at org.compass.core.CompassCallbackWithoutResult.doInCompass(CompassCallbackWithoutResult.java:29) 
    at org.compass.core.CompassTemplate.execute(CompassTemplate.java:133) 
    at org.compass.gps.impl.SingleCompassGps.executeForIndex(SingleCompassGps.java:147) 
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1.call(ConcurrentParallelIndexExecutor.java:102) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
    at java.lang.Thread.run(Thread.java:662) 
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dc2baf5ca87094d6099e1ac613db0eaad.category' doesn't exist 
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) 
    at com.mysql.jdbc.Util.getInstance(Util.java:386) 
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1053) 
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074) 
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006) 
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468) 
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629) 
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2719) 
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155) 
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2318) 
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) 
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) 
    ... 11 more 
2012-09-12 11:33:21,862 [Compass Gps Index [pool-5-thread-1]] ERROR indexer.ScrollableHibernateIndexEntitiesIndexer - {hibernate}: Failed to index the database 
org.hibernate.exception.SQLGrammarException: could not execute query using scroll 
    at org.compass.gps.device.hibernate.indexer.ScrollableHibernateIndexEntitiesIndexer.performIndex(ScrollableHibernateIndexEntitiesIndexer.java:118) 
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1$1.doInCompassWithoutResult(ConcurrentParallelIndexExecutor.java:104) 
    at org.compass.core.CompassCallbackWithoutResult.doInCompass(CompassCallbackWithoutResult.java:29) 
    at org.compass.core.CompassTemplate.execute(CompassTemplate.java:133) 
    at org.compass.gps.impl.SingleCompassGps.executeForIndex(SingleCompassGps.java:147) 
    at org.compass.gps.device.support.parallel.ConcurrentParallelIndexExecutor$1.call(ConcurrentParallelIndexExecutor.java:102) 
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) 
    at java.util.concurrent.FutureTask.run(FutureTask.java:138) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
    at java.lang.Thread.run(Thread.java:662) 
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'dc2baf5ca87094d6099e1ac613db0eaad.judoka' doesn't exist 
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411) 
    at com.mysql.jdbc.Util.getInstance(Util.java:386) 
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1053) 
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4074) 
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4006) 
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2468) 
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2629) 
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2719) 
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155) 
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2318) 
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) 
    at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) 
    ... 11 more 

回答

1

你在你的項目中的任何地方創建的表?

  • 表 'dc2baf5ca87094d6099e1ac613db0eaad.club' 不存在

  • 表 'dc2baf5ca87094d6099e1ac613db0eaad.judoka' 不存在

  • 表 'dc2baf5ca87094d6099e1ac613db0eaad.category' 不存在

  • 表'dc2baf5ca87094d6099e1ac613db0eaad.championship'不存在

+0

我有以下DataSource.groovy。有了這個配置,它在幾天前運作。類別,俱樂部等是grails域對象。他們的表是suppossed在MySQL中自動創建的,是不是? 生產{ \t \t數據源{ \t \t \t方言= org.hibernate.dialect.MySQL5InnoDBDialect \t \t \t driverClassName = 'com.mysql.jdbc.Driver' \t \t \t用戶名= 'N/A' \t \t \t口令= 'N/A' \t \t \t URL = 'JDBC:MySQL的://本地主機/分貝了useUnicode =真的characterEncoding = UTF8' \t \t \t的dbCreate =「更新」 \t \t} \t} – pablovb

+0

是的,如果你在數據源配置有「的dbCreate =‘更新’」缺少的表將被自動創建。所以你可以確認在projectRoot/grails-app/domain /下創建了這樣的域類。並且你用 –

+0

推送了應用程序好吧,我在cloudfoundry.com上創建了一個新帳戶,並且憑藉這些新憑據,我可以成功部署我的應用程序......而且沒有任何變化!所以,我想這不是我的應用程序的錯,但是,這是什麼問題?我該如何解決它?謝謝! – pablovb