Jahia Install Forum > Getting error OutOfMemoryError...

0 (0 Good)
0 (0 Bad)

Getting error OutOfMemoryError : Java heap space and failed to start

by  ranaprasant »  2013/04/25 06:19

Hi Team,

 

I have installed Jahia 6.6.1.0, and while starting it getting error "java.lang.OutOfMemoryError: Java heap space", and it stops. I have proper config in JAVA_OPTS as -Xms1024m -Xmx2048m, even then it is causing the problem. Please help to resolve this issue. Logs has been shared below.

 

________________________________________________________________________

 

2013-04-25 00:47:06,318: INFO  [TemplatePackageDeployer] - ...finished scanning module directory. Found 131 template packages.

2013-04-25 00:47:06,319: INFO  [TemplatePackageDeployer] - Starting template packages watchdog with interval 60000 ms. Monitoring the folder /apps/tomcat/webapps/ROOT/WEB-INF/var/shared_modules

2013-04-25 00:47:06,321: INFO  [JahiaTemplateManagerService] - JahiaTemplateManagerService started successfully. Total number of found modules: 131

2013-04-25 00:47:06,325: INFO  [WorkflowService] - Registering workflow type "publish" with definition "2-step-publication" and permissions: null

2013-04-25 00:47:07,003: INFO  [RepositoryImpl] - Starting repository...

2013-04-25 00:47:07,431: INFO  [DatabaseJournal] - Initialized local revision to 390616

2013-04-25 00:47:07,432: INFO  [DatabaseJournal] - Cluster revision janitor thread started; first run scheduled at Thu Apr 25 03:00:00 EDT 2013

2013-04-25 00:47:07,432: INFO  [DatabaseJournal] - Next clean-up run scheduled at Thu Apr 25 03:00:00 EDT 2013

2013-04-25 00:47:07,433: INFO  [DatabaseJournal] - DatabaseJournal initialized.

2013-04-25 00:47:07,437: INFO  [LocalFileSystem] - LocalFileSystem initialized at path /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/version

2013-04-25 00:47:08,525: INFO  [RepositoryImpl] - initializing workspace 'default'...

2013-04-25 00:47:08,525: INFO  [LocalFileSystem] - LocalFileSystem initialized at path /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/workspaces/default

[GC 283498K->67366K(1004928K), 0.0527280 secs]

[GC 329574K->153672K(935808K), 0.1217520 secs]

[GC 346760K->165328K(1004928K), 0.0445480 secs]

[GC 358416K->165517K(1181056K), 0.0472130 secs]

[GC 551693K->169288K(1188288K), 0.0548270 secs]

[GC 555464K->193128K(1281344K), 0.0679320 secs]

[GC 689640K->183168K(1289984K), 0.0333530 secs]

[GC 679680K->193368K(1294400K), 0.0648580 secs]

[GC 707480K->235464K(1300992K), 0.0840720 secs]

[GC 749576K->236152K(1309888K), 0.0538260 secs]

[GC 762744K->278272K(1267840K), 0.0650300 secs]

[GC 804864K->261128K(1314304K), 0.0307420 secs]

[GC 792648K->278632K(1260672K), 0.0557240 secs]

[GC 810152K->320768K(1311808K), 0.0833860 secs]

[GC 856576K->321520K(1310528K), 0.0548960 secs]

[GC 857328K->363600K(1321344K), 0.0587450 secs]

[GC 908496K->364896K(1287360K), 0.0562530 secs]

[GC 909792K->364056K(1320064K), 0.0612910 secs]

[GC 908760K->367456K(1320256K), 0.0250150 secs]

[GC 912160K->422057K(1309184K), 0.0547310 secs]

[GC 955561K->385465K(1315328K), 0.0136350 secs]

[GC 918969K->422569K(1311552K), 0.0554950 secs]

[GC 956393K->462569K(1313600K), 0.0911320 secs]

[GC 996393K->464870K(1315136K), 0.0521750 secs]

[GC 1003686K->463142K(1316672K), 0.0556580 secs]

[GC 1001958K->503206K(1317376K), 0.0566890 secs]

[GC 1044902K->503502K(1318464K), 0.0519200 secs]

[GC 1045198K->508318K(1319936K), 0.0546740 secs]

[GC 1052638K->504229K(1320320K), 0.0611710 secs]

[GC 1048549K->536205K(1313856K), 0.0520250 secs]

[GC 1082253K->562261K(1317248K), 0.0589470 secs]

[GC 1108309K->564622K(1321600K), 0.0695830 secs]

[GC 1109198K->562494K(1320128K), 0.0620580 secs]

[GC 1107070K->601494K(1319104K), 0.0619220 secs]

[GC 1146902K->601662K(1319936K), 0.0538310 secs]

[GC 1147070K->601766K(1320000K), 0.0446910 secs]

[GC 1151526K->580942K(1320896K), 0.0243140 secs]

[GC 1130702K->602034K(1319104K), 0.0591850 secs]

[GC 1158194K->641138K(1322368K), 0.0767270 secs]

[GC 1197298K->630786K(1324672K), 0.0372820 secs]

[GC 1196290K->628300K(1328192K), 0.0276420 secs]

[GC 1193804K->648484K(1333824K), 0.0442390 secs]

[GC 1221796K->628651K(1335232K), 0.0208530 secs]

2013-04-25 00:48:21,455: INFO  [SearchIndex] - Index initialized: /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/index Version: 3

2013-04-25 00:48:21,846: INFO  [SearchIndex] - Index initialized: /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/workspaces/default/index Version: 3

2013-04-25 00:48:21,846: INFO  [RepositoryImpl] - workspace 'default' initialized

2013-04-25 00:48:21,851: INFO  [RepositoryImpl] - SecurityManager = class org.apache.jackrabbit.core.security.JahiaSecurityManager

2013-04-25 00:48:21,851: INFO  [JahiaSecurityManager] - init: use Repository Login-Configuration for Jackrabbit

[GC 1201963K->807001K(1266688K), 0.0658150 secs]

[Full GC 807001K->335443K(1256640K), 0.5600780 secs]

[GC 794488K->791964K(1313472K), 0.0473410 secs]

[Full GC 791964K->791523K(1977472K), 0.3668870 secs]

[GC 1192935K->1190487K(1750912K), 0.1137290 secs]

[GC 1423172K->1422777K(1864192K), 0.0540780 secs]

[Full GC 1422777K->1416784K(1864192K), 0.7023740 secs]

[Full GC 1630115K->1630115K(1864192K), 0.3412670 secs]

[Full GC 1630115K->1625952K(1864192K), 0.6828280 secs]

[Full GC 1630515K->1630515K(1864192K), 0.3308000 secs]

[Full GC 1630515K->1629811K(1864192K), 0.5731460 secs]

java.lang.OutOfMemoryError: Java heap space

Dumping heap to java_pid11100.hprof ...

Heap dump file created [1736864994 bytes in 4.060 secs]

[Full GC 1630844K->1630844K(1864192K), 3.6080660 secs]

[Full GC 1630844K->1630844K(1864192K), 0.3309660 secs]

[Full GC 1630844K->1630844K(1864192K), 0.3341580 secs]

[Full GC 1630844K->1629815K(1864192K), 0.6051800 secs]

2013-04-25 00:48:41,093: ERROR [DbUtility] - failed to close Connection

2013-04-25 00:48:41,093: ERROR [DbUtility] -        Reason: Already closed.

2013-04-25 00:48:41,093: ERROR [DbUtility] -    State/Code: null/0

[Full GC 1630844K->222381K(1543744K), 0.3429920 secs]

2013-04-25 00:48:41,094: ERROR [DatabaseJournal] - failed to end batch

com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        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:1013)

        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)

        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)

        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)

        at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1245)

        at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1237)

        at com.mysql.jdbc.ConnectionImpl.commit(ConnectionImpl.java:1668)

        at org.apache.commons.dbcp.DelegatingConnection.commit(DelegatingConnection.java:334)

        at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.commit(PoolingDataSource.java:211)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper.endBatch(ConnectionHelper.java:242)

        at org.apache.jackrabbit.core.journal.DatabaseJournal.endBatch(DatabaseJournal.java:513)

        at org.apache.jackrabbit.core.journal.DatabaseJournal.doSync(DatabaseJournal.java:454)

        at org.apache.jackrabbit.core.journal.AbstractJournal.internalSync(AbstractJournal.java:207)

        at org.apache.jackrabbit.core.journal.AbstractJournal.sync(AbstractJournal.java:190)

        at org.apache.jackrabbit.core.cluster.ClusterNode.sync(ClusterNode.java:307)

        at org.apache.jackrabbit.core.cluster.ClusterNode.start(ClusterNode.java:247)

        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:359)

        at org.apache.jackrabbit.core.JahiaRepositoryImpl.<init>(JahiaRepositoryImpl.java:58)

        at org.apache.jackrabbit.core.JahiaRepositoryImpl.create(JahiaRepositoryImpl.java:71)

        at org.jahia.services.content.impl.jackrabbit.SpringJackrabbitRepository.createRepository(SpringJackrabbitRepository.java:130)

        at org.jahia.services.content.impl.jackrabbit.SpringJackrabbitRepository.start(SpringJackrabbitRepository.java:144)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

        at org.apache.pluto.driver.PortalStartupListener.contextInitialized(PortalStartupListener.java:108)

        at org.jahia.bin.listeners.JahiaContextLoaderListener.contextInitialized(JahiaContextLoaderListener.java:164)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)

        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

        at org.apache.catalina.core.StandardService.start(StandardService.java:525)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Caused by: java.lang.OutOfMemoryError: Java heap space

        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3540)

        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3480)

        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4021)

        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:951)

        at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1929)

        at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3425)

        at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:481)

        at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3120)

        at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2288)

        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2709)

        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2677)

        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2134)

        at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1369)

        at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)

        at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper.execute(ConnectionHelper.java:438)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:359)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:339)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:335)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:451)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:335)

        at org.apache.jackrabbit.core.journal.DatabaseJournal.getRecords(DatabaseJournal.java:419)

        at org.apache.jackrabbit.core.journal.AbstractJournal.doSync(AbstractJournal.java:220)

        at org.apache.jackrabbit.core.journal.DatabaseJournal.doSync(DatabaseJournal.java:452)

        at org.apache.jackrabbit.core.journal.AbstractJournal.internalSync(AbstractJournal.java:207)

        at org.apache.jackrabbit.core.journal.AbstractJournal.sync(AbstractJournal.java:190)

        at org.apache.jackrabbit.core.cluster.ClusterNode.sync(ClusterNode.java:307)

        at org.apache.jackrabbit.core.cluster.ClusterNode.start(ClusterNode.java:247)

        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:359)

        at org.apache.jackrabbit.core.JahiaRepositoryImpl.<init>(JahiaRepositoryImpl.java:58)

        at org.apache.jackrabbit.core.JahiaRepositoryImpl.create(JahiaRepositoryImpl.java:71)

        at org.jahia.services.content.impl.jackrabbit.SpringJackrabbitRepository.createRepository(SpringJackrabbitRepository.java:130)

2013-04-25 00:48:41,443: INFO  [RepositoryImpl] - Shutting down repository...

2013-04-25 00:48:41,443: INFO  [JahiaSecurityManager] - close

2013-04-25 00:48:41,443: INFO  [DatabaseJournal] - Interrupted: stopping clean-up task.

2013-04-25 00:48:41,445: INFO  [SearchIndex] - Index closed: /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/index

2013-04-25 00:48:41,445: INFO  [RepositoryImpl] - shutting down workspace 'default'...

2013-04-25 00:48:41,445: INFO  [ObservationDispatcher] - Notification of EventListeners stopped.

2013-04-25 00:48:41,447: INFO  [SearchIndex] - Index closed: /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/workspaces/default/index

2013-04-25 00:48:41,447: INFO  [JahiaSecurityManager] - dispose

2013-04-25 00:48:41,455: INFO  [RepositoryImpl] - workspace 'default' has been shutdown

2013-04-25 00:48:41,455: INFO  [RepositoryImpl] - Repository has been shutdown

Error dumped to file /apps/tomcat/temp/jahia-errors/2013_04_25/error-2013_04_25-00_48_41_460-1.txt in 18ms

2013-04-25 00:48:41,485: INFO  [JahiaTemplateManagerService] - Stopping JahiaTemplateManagerService ...

2013-04-25 00:48:41,502: INFO  [JahiaTemplateManagerService] - ... JahiaTemplateManagerService stopped successfully

2013-04-25 00:48:41,507: INFO  [MailServiceImpl] - Mail Service successfully stopped

2013-04-25 00:48:41,510: INFO  [QuartzScheduler] - Scheduler scheduler_$_mepwokprodlive021366865223506 shutting down.

2013-04-25 00:48:41,511: INFO  [QuartzScheduler] - Scheduler scheduler_$_mepwokprodlive021366865223506 paused.

2013-04-25 00:48:41,511: INFO  [QuartzScheduler] - Scheduler scheduler_$_mepwokprodlive021366865223506 shutdown complete.

2013-04-25 00:48:41,511: INFO  [QuartzScheduler] - Scheduler ramScheduler_$_mepwokprodlive021366865223542 shutting down.

2013-04-25 00:48:41,511: INFO  [QuartzScheduler] - Scheduler ramScheduler_$_mepwokprodlive021366865223542 paused.

2013-04-25 00:48:41,512: INFO  [QuartzScheduler] - Scheduler ramScheduler_$_mepwokprodlive021366865223542 shutdown complete.

2013-04-25 00:48:41,512: INFO  [SchedulerService$JahiaSchedulerFactoryBean] - Shutting down Quartz Scheduler

2013-04-25 00:48:41,512: INFO  [SchedulerService$JahiaSchedulerFactoryBean] - Shutting down Quartz Scheduler

2013-04-25 00:48:41,528: INFO  [EhCacheProvider] - Shutting down cache provider, serializing to disk if active. Please wait...

2013-04-25 00:48:41,528: ERROR [ContextLoader] - Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DefaulJCRStoreProvider' defined in URL [jar:file:/apps/bin/apache-tomcat-6.0.35/webapps/ROOT/WEB-INF/lib/jahia-impl-6.6.1.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean 'jackrabbit' while setting bean property 'repository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jackrabbit' defined in URL [jar:file:/apps/bin/apache-tomcat-6.0.35/webapps/ROOT/WEB-INF/lib/jahia-impl-6.6.1.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)

        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)

        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)

        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)

        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)

        at org.apache.pluto.driver.PortalStartupListener.contextInitialized(PortalStartupListener.java:108)

        at org.jahia.bin.listeners.JahiaContextLoaderListener.contextInitialized(JahiaContextLoaderListener.java:164)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)

        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)

        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)

        at org.apache.catalina.core.StandardService.start(StandardService.java:525)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:595)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jackrabbit' defined in URL [jar:file:/apps/bin/apache-tomcat-6.0.35/webapps/ROOT/WEB-INF/lib/jahia-impl-6.6.1.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)

        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)

        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)

        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)

        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)

        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)

        ... 41 more

Caused by: java.lang.OutOfMemoryError: Java heap space

        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3540)

        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3480)

        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4021)

        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:951)

        at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1929)

        at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3425)

        at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:481)

        at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3120)

        at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2288)

        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2709)

        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2677)

        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2134)

        at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1369)

        at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)

        at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper.execute(ConnectionHelper.java:438)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:359)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:339)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:335)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:451)

        at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:335)

        at org.apache.jackrabbit.core.journal.DatabaseJournal.getRecords(DatabaseJournal.java:419)

        at org.apache.jackrabbit.core.journal.AbstractJournal.doSync(AbstractJournal.java:220)

        at org.apache.jackrabbit.core.journal.DatabaseJournal.doSync(DatabaseJournal.java:452)

        at org.apache.jackrabbit.core.journal.AbstractJournal.internalSync(AbstractJournal.java:207)

        at org.apache.jackrabbit.core.journal.AbstractJournal.sync(AbstractJournal.java:190)

        at org.apache.jackrabbit.core.cluster.ClusterNode.sync(ClusterNode.java:307)

        at org.apache.jackrabbit.core.cluster.ClusterNode.start(ClusterNode.java:247)

        at org.apache.jackrabbit.core.RepositoryImpl.<init>(RepositoryImpl.java:359)

        at org.apache.jackrabbit.core.JahiaRepositoryImpl.<init>(JahiaRepositoryImpl.java:58)

        at org.apache.jackrabbit.core.JahiaRepositoryImpl.create(JahiaRepositoryImpl.java:71)

        at org.jahia.services.content.impl.jackrabbit.SpringJackrabbitRepository.createRepository(SpringJackrabbitRepository.java:130)

Apr 25, 2013 12:48:41 AM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Error dumped to file /apps/tomcat/temp/jahia-errors/2013_04_25/error-2013_04_25-00_48_41_532-2.txt in 3ms

Apr 25, 2013 12:48:41 AM org.apache.catalina.core.StandardContext start

SEVERE: Context [] startup failed due to previous errors

Shutting down error file dumper executor service...

...done shutting down error file dumper executor service.

log4j:WARN No appenders could be found for logger (org.apache.pluto.driver.PortalStartupListener).

log4j:WARN Please initialize the log4j system properly.

log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Apr 25, 2013 12:48:41 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc

SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

Apr 25, 2013 12:48:41 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

SEVERE: The web application [] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.

_________________________________________________

 

Thanks,

Prasant Rana

  • Getting error OutOfMemoryError : Java heap space and failed to start
    2013/04/25 06:19

    ranaprasant <p> Hi Team,</p> <p> &nbsp;</p> <p> I have installed Jahia 6.6.1.0, and while starting it getting error &quot;java.lang.OutOfMemoryError: Java heap space&quot;, and it stops. I have proper config in JAVA_OPTS as&nbsp;-Xms1024m -Xmx2048m, even then it is causing the problem. Please help to resolve this issue. Logs has been shared below.</p> <p> &nbsp;</p> <p> ________________________________________________________________________</p> <p> &nbsp;</p> <p> 2013-04-25 00:47:06,318: INFO&nbsp; [TemplatePackageDeployer] - ...finished scanning module directory. Found 131 template packages.</p> <p> 2013-04-25 00:47:06,319: INFO&nbsp; [TemplatePackageDeployer] - Starting template packages watchdog with interval 60000 ms. Monitoring the folder /apps/tomcat/webapps/ROOT/WEB-INF/var/shared_modules</p> <p> 2013-04-25 00:47:06,321: INFO&nbsp; [JahiaTemplateManagerService] - JahiaTemplateManagerService started successfully. Total number of found modules: 131</p> <p> 2013-04-25 00:47:06,325: INFO&nbsp; [WorkflowService] - Registering workflow type &quot;publish&quot; with definition &quot;2-step-publication&quot; and permissions: null</p> <p> 2013-04-25 00:47:07,003: INFO&nbsp; [RepositoryImpl] - Starting repository...</p> <p> 2013-04-25 00:47:07,431: INFO&nbsp; [DatabaseJournal] - Initialized local revision to 390616</p> <p> 2013-04-25 00:47:07,432: INFO&nbsp; [DatabaseJournal] - Cluster revision janitor thread started; first run scheduled at Thu Apr 25 03:00:00 EDT 2013</p> <p> 2013-04-25 00:47:07,432: INFO&nbsp; [DatabaseJournal] - Next clean-up run scheduled at Thu Apr 25 03:00:00 EDT 2013</p> <p> 2013-04-25 00:47:07,433: INFO&nbsp; [DatabaseJournal] - DatabaseJournal initialized.</p> <p> 2013-04-25 00:47:07,437: INFO&nbsp; [LocalFileSystem] - LocalFileSystem initialized at path /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/version</p> <p> 2013-04-25 00:47:08,525: INFO&nbsp; [RepositoryImpl] - initializing workspace &#39;default&#39;...</p> <p> 2013-04-25 00:47:08,525: INFO&nbsp; [LocalFileSystem] - LocalFileSystem initialized at path /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/workspaces/default</p> <p> [GC 283498K-&gt;67366K(1004928K), 0.0527280 secs]</p> <p> [GC 329574K-&gt;153672K(935808K), 0.1217520 secs]</p> <p> [GC 346760K-&gt;165328K(1004928K), 0.0445480 secs]</p> <p> [GC 358416K-&gt;165517K(1181056K), 0.0472130 secs]</p> <p> [GC 551693K-&gt;169288K(1188288K), 0.0548270 secs]</p> <p> [GC 555464K-&gt;193128K(1281344K), 0.0679320 secs]</p> <p> [GC 689640K-&gt;183168K(1289984K), 0.0333530 secs]</p> <p> [GC 679680K-&gt;193368K(1294400K), 0.0648580 secs]</p> <p> [GC 707480K-&gt;235464K(1300992K), 0.0840720 secs]</p> <p> [GC 749576K-&gt;236152K(1309888K), 0.0538260 secs]</p> <p> [GC 762744K-&gt;278272K(1267840K), 0.0650300 secs]</p> <p> [GC 804864K-&gt;261128K(1314304K), 0.0307420 secs]</p> <p> [GC 792648K-&gt;278632K(1260672K), 0.0557240 secs]</p> <p> [GC 810152K-&gt;320768K(1311808K), 0.0833860 secs]</p> <p> [GC 856576K-&gt;321520K(1310528K), 0.0548960 secs]</p> <p> [GC 857328K-&gt;363600K(1321344K), 0.0587450 secs]</p> <p> [GC 908496K-&gt;364896K(1287360K), 0.0562530 secs]</p> <p> [GC 909792K-&gt;364056K(1320064K), 0.0612910 secs]</p> <p> [GC 908760K-&gt;367456K(1320256K), 0.0250150 secs]</p> <p> [GC 912160K-&gt;422057K(1309184K), 0.0547310 secs]</p> <p> [GC 955561K-&gt;385465K(1315328K), 0.0136350 secs]</p> <p> [GC 918969K-&gt;422569K(1311552K), 0.0554950 secs]</p> <p> [GC 956393K-&gt;462569K(1313600K), 0.0911320 secs]</p> <p> [GC 996393K-&gt;464870K(1315136K), 0.0521750 secs]</p> <p> [GC 1003686K-&gt;463142K(1316672K), 0.0556580 secs]</p> <p> [GC 1001958K-&gt;503206K(1317376K), 0.0566890 secs]</p> <p> [GC 1044902K-&gt;503502K(1318464K), 0.0519200 secs]</p> <p> [GC 1045198K-&gt;508318K(1319936K), 0.0546740 secs]</p> <p> [GC 1052638K-&gt;504229K(1320320K), 0.0611710 secs]</p> <p> [GC 1048549K-&gt;536205K(1313856K), 0.0520250 secs]</p> <p> [GC 1082253K-&gt;562261K(1317248K), 0.0589470 secs]</p> <p> [GC 1108309K-&gt;564622K(1321600K), 0.0695830 secs]</p> <p> [GC 1109198K-&gt;562494K(1320128K), 0.0620580 secs]</p> <p> [GC 1107070K-&gt;601494K(1319104K), 0.0619220 secs]</p> <p> [GC 1146902K-&gt;601662K(1319936K), 0.0538310 secs]</p> <p> [GC 1147070K-&gt;601766K(1320000K), 0.0446910 secs]</p> <p> [GC 1151526K-&gt;580942K(1320896K), 0.0243140 secs]</p> <p> [GC 1130702K-&gt;602034K(1319104K), 0.0591850 secs]</p> <p> [GC 1158194K-&gt;641138K(1322368K), 0.0767270 secs]</p> <p> [GC 1197298K-&gt;630786K(1324672K), 0.0372820 secs]</p> <p> [GC 1196290K-&gt;628300K(1328192K), 0.0276420 secs]</p> <p> [GC 1193804K-&gt;648484K(1333824K), 0.0442390 secs]</p> <p> [GC 1221796K-&gt;628651K(1335232K), 0.0208530 secs]</p> <p> 2013-04-25 00:48:21,455: INFO&nbsp; [SearchIndex] - Index initialized: /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/index Version: 3</p> <p> 2013-04-25 00:48:21,846: INFO&nbsp; [SearchIndex] - Index initialized: /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/workspaces/default/index Version: 3</p> <p> 2013-04-25 00:48:21,846: INFO&nbsp; [RepositoryImpl] - workspace &#39;default&#39; initialized</p> <p> 2013-04-25 00:48:21,851: INFO&nbsp; [RepositoryImpl] - SecurityManager = class org.apache.jackrabbit.core.security.JahiaSecurityManager</p> <p> 2013-04-25 00:48:21,851: INFO&nbsp; [JahiaSecurityManager] - init: use Repository Login-Configuration for Jackrabbit</p> <p> [GC 1201963K-&gt;807001K(1266688K), 0.0658150 secs]</p> <p> [Full GC 807001K-&gt;335443K(1256640K), 0.5600780 secs]</p> <p> [GC 794488K-&gt;791964K(1313472K), 0.0473410 secs]</p> <p> [Full GC 791964K-&gt;791523K(1977472K), 0.3668870 secs]</p> <p> [GC 1192935K-&gt;1190487K(1750912K), 0.1137290 secs]</p> <p> [GC 1423172K-&gt;1422777K(1864192K), 0.0540780 secs]</p> <p> [Full GC 1422777K-&gt;1416784K(1864192K), 0.7023740 secs]</p> <p> [Full GC 1630115K-&gt;1630115K(1864192K), 0.3412670 secs]</p> <p> [Full GC 1630115K-&gt;1625952K(1864192K), 0.6828280 secs]</p> <p> [Full GC 1630515K-&gt;1630515K(1864192K), 0.3308000 secs]</p> <p> [Full GC 1630515K-&gt;1629811K(1864192K), 0.5731460 secs]</p> <p> java.lang.OutOfMemoryError: Java heap space</p> <p> Dumping heap to java_pid11100.hprof ...</p> <p> Heap dump file created [1736864994 bytes in 4.060 secs]</p> <p> [Full GC 1630844K-&gt;1630844K(1864192K), 3.6080660 secs]</p> <p> [Full GC 1630844K-&gt;1630844K(1864192K), 0.3309660 secs]</p> <p> [Full GC 1630844K-&gt;1630844K(1864192K), 0.3341580 secs]</p> <p> [Full GC 1630844K-&gt;1629815K(1864192K), 0.6051800 secs]</p> <p> 2013-04-25 00:48:41,093: ERROR [DbUtility] - failed to close Connection</p> <p> 2013-04-25 00:48:41,093: ERROR [DbUtility] -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Reason: Already closed.</p> <p> 2013-04-25 00:48:41,093: ERROR [DbUtility] -&nbsp;&nbsp;&nbsp; State/Code: null/0</p> <p> [Full GC 1630844K-&gt;222381K(1543744K), 0.3429920 secs]</p> <p> 2013-04-25 00:48:41,094: ERROR [DatabaseJournal] - failed to end batch</p> <p> com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.reflect.Constructor.newInstance(Constructor.java:513)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.Util.getInstance(Util.java:386)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1013)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:982)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1245)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1237)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.ConnectionImpl.commit(ConnectionImpl.java:1668)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;at org.apache.commons.dbcp.DelegatingConnection.commit(DelegatingConnection.java:334)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.commit(PoolingDataSource.java:211)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper.endBatch(ConnectionHelper.java:242)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.DatabaseJournal.endBatch(DatabaseJournal.java:513)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.DatabaseJournal.doSync(DatabaseJournal.java:454)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.AbstractJournal.internalSync(AbstractJournal.java:207)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.AbstractJournal.sync(AbstractJournal.java:190)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.cluster.ClusterNode.sync(ClusterNode.java:307)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.cluster.ClusterNode.start(ClusterNode.java:247)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.RepositoryImpl.&lt;init&gt;(RepositoryImpl.java:359)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.JahiaRepositoryImpl.&lt;init&gt;(JahiaRepositoryImpl.java:58)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.JahiaRepositoryImpl.create(JahiaRepositoryImpl.java:71)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.services.content.impl.jackrabbit.SpringJackrabbitRepository.createRepository(SpringJackrabbitRepository.java:130)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.services.content.impl.jackrabbit.SpringJackrabbitRepository.start(SpringJackrabbitRepository.java:144)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)</p> <p> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;at org.apache.pluto.driver.PortalStartupListener.contextInitialized(PortalStartupListener.java:108)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bin.listeners.JahiaContextLoaderListener.contextInitialized(JahiaContextLoaderListener.java:164)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;at org.apache.catalina.core.StandardService.start(StandardService.java:525)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.Catalina.start(Catalina.java:595)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)</p> <p> Caused by: java.lang.OutOfMemoryError: Java heap space</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3540)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3480)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4021)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:951)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1929)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3425)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:481)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3120)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2288)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2709)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2677)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2134)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1369)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper.execute(ConnectionHelper.java:438)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:359)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:339)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:335)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:451)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:335)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.DatabaseJournal.getRecords(DatabaseJournal.java:419)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.AbstractJournal.doSync(AbstractJournal.java:220)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.DatabaseJournal.doSync(DatabaseJournal.java:452)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.AbstractJournal.internalSync(AbstractJournal.java:207)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.AbstractJournal.sync(AbstractJournal.java:190)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.cluster.ClusterNode.sync(ClusterNode.java:307)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.cluster.ClusterNode.start(ClusterNode.java:247)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.RepositoryImpl.&lt;init&gt;(RepositoryImpl.java:359)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.JahiaRepositoryImpl.&lt;init&gt;(JahiaRepositoryImpl.java:58)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.JahiaRepositoryImpl.create(JahiaRepositoryImpl.java:71)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.services.content.impl.jackrabbit.SpringJackrabbitRepository.createRepository(SpringJackrabbitRepository.java:130)</p> <p> 2013-04-25 00:48:41,443: INFO&nbsp; [RepositoryImpl] - Shutting down repository...</p> <p> 2013-04-25 00:48:41,443: INFO&nbsp; [JahiaSecurityManager] - close</p> <p> 2013-04-25 00:48:41,443: INFO&nbsp; [DatabaseJournal] - Interrupted: stopping clean-up task.</p> <p> 2013-04-25 00:48:41,445: INFO&nbsp; [SearchIndex] - Index closed: /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/index</p> <p> 2013-04-25 00:48:41,445: INFO&nbsp; [RepositoryImpl] - shutting down workspace &#39;default&#39;...</p> <p> 2013-04-25 00:48:41,445: INFO&nbsp; [ObservationDispatcher] - Notification of EventListeners stopped.</p> <p> 2013-04-25 00:48:41,447: INFO&nbsp; [SearchIndex] - Index closed: /apps/tomcat/webapps/ROOT/WEB-INF/var/repository/workspaces/default/index</p> <p> 2013-04-25 00:48:41,447: INFO&nbsp; [JahiaSecurityManager] - dispose</p> <p> 2013-04-25 00:48:41,455: INFO&nbsp; [RepositoryImpl] - workspace &#39;default&#39; has been shutdown</p> <p> 2013-04-25 00:48:41,455: INFO&nbsp; [RepositoryImpl] - Repository has been shutdown</p> <p> Error dumped to file /apps/tomcat/temp/jahia-errors/2013_04_25/error-2013_04_25-00_48_41_460-1.txt in 18ms</p> <p> 2013-04-25 00:48:41,485: INFO&nbsp; [JahiaTemplateManagerService] - Stopping JahiaTemplateManagerService ...</p> <p> 2013-04-25 00:48:41,502: INFO&nbsp; [JahiaTemplateManagerService] - ... JahiaTemplateManagerService stopped successfully</p> <p> 2013-04-25 00:48:41,507: INFO&nbsp; [MailServiceImpl] - Mail Service successfully stopped</p> <p> 2013-04-25 00:48:41,510: INFO&nbsp; [QuartzScheduler] - Scheduler scheduler_$_mepwokprodlive021366865223506 shutting down.</p> <p> 2013-04-25 00:48:41,511: INFO&nbsp; [QuartzScheduler] - Scheduler scheduler_$_mepwokprodlive021366865223506 paused.</p> <p> 2013-04-25 00:48:41,511: INFO&nbsp; [QuartzScheduler] - Scheduler scheduler_$_mepwokprodlive021366865223506 shutdown complete.</p> <p> 2013-04-25 00:48:41,511: INFO&nbsp; [QuartzScheduler] - Scheduler ramScheduler_$_mepwokprodlive021366865223542 shutting down.</p> <p> 2013-04-25 00:48:41,511: INFO&nbsp; [QuartzScheduler] - Scheduler ramScheduler_$_mepwokprodlive021366865223542 paused.</p> <p> 2013-04-25 00:48:41,512: INFO&nbsp; [QuartzScheduler] - Scheduler ramScheduler_$_mepwokprodlive021366865223542 shutdown complete.</p> <p> 2013-04-25 00:48:41,512: INFO&nbsp; [SchedulerService$JahiaSchedulerFactoryBean] - Shutting down Quartz Scheduler</p> <p> 2013-04-25 00:48:41,512: INFO&nbsp; [SchedulerService$JahiaSchedulerFactoryBean] - Shutting down Quartz Scheduler</p> <p> 2013-04-25 00:48:41,528: INFO&nbsp; [EhCacheProvider] - Shutting down cache provider, serializing to disk if active. Please wait...</p> <p> 2013-04-25 00:48:41,528: ERROR [ContextLoader] - Context initialization failed</p> <p> org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;DefaulJCRStoreProvider&#39; defined in URL [jar:file:/apps/bin/apache-tomcat-6.0.35/webapps/ROOT/WEB-INF/lib/jahia-impl-6.6.1.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Cannot resolve reference to bean &#39;jackrabbit&#39; while setting bean property &#39;repository&#39;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;jackrabbit&#39; defined in URL [jar:file:/apps/bin/apache-tomcat-6.0.35/webapps/ROOT/WEB-INF/lib/jahia-impl-6.6.1.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.pluto.driver.PortalStartupListener.contextInitialized(PortalStartupListener.java:108)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.bin.listeners.JahiaContextLoaderListener.contextInitialized(JahiaContextLoaderListener.java:164)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardService.start(StandardService.java:525)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.Catalina.start(Catalina.java:595)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)</p> <p> Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#39;jackrabbit&#39; defined in URL [jar:file:/apps/bin/apache-tomcat-6.0.35/webapps/ROOT/WEB-INF/lib/jahia-impl-6.6.1.0.jar!/org/jahia/defaults/config/spring/jcr/applicationcontext-jcr.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: Java heap space</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ... 41 more</p> <p> Caused by: java.lang.OutOfMemoryError: Java heap space</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3540)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3480)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4021)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:951)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1929)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:3425)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:481)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3120)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2288)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2709)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2677)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2134)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1369)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:172)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper.execute(ConnectionHelper.java:438)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper.reallyExec(ConnectionHelper.java:359)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:339)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper$3.call(ConnectionHelper.java:335)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper$RetryManager.doTry(ConnectionHelper.java:451)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.util.db.ConnectionHelper.exec(ConnectionHelper.java:335)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.DatabaseJournal.getRecords(DatabaseJournal.java:419)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.AbstractJournal.doSync(AbstractJournal.java:220)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.DatabaseJournal.doSync(DatabaseJournal.java:452)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.AbstractJournal.internalSync(AbstractJournal.java:207)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.journal.AbstractJournal.sync(AbstractJournal.java:190)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.cluster.ClusterNode.sync(ClusterNode.java:307)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.cluster.ClusterNode.start(ClusterNode.java:247)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.RepositoryImpl.&lt;init&gt;(RepositoryImpl.java:359)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.JahiaRepositoryImpl.&lt;init&gt;(JahiaRepositoryImpl.java:58)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.apache.jackrabbit.core.JahiaRepositoryImpl.create(JahiaRepositoryImpl.java:71)</p> <p> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.jahia.services.content.impl.jackrabbit.SpringJackrabbitRepository.createRepository(SpringJackrabbitRepository.java:130)</p> <p> Apr 25, 2013 12:48:41 AM org.apache.catalina.core.StandardContext start</p> <p> SEVERE: Error listenerStart</p> <p> Error dumped to file /apps/tomcat/temp/jahia-errors/2013_04_25/error-2013_04_25-00_48_41_532-2.txt in 3ms</p> <p> Apr 25, 2013 12:48:41 AM org.apache.catalina.core.StandardContext start</p> <p> SEVERE: Context [] startup failed due to previous errors</p> <p> Shutting down error file dumper executor service...</p> <p> ...done shutting down error file dumper executor service.</p> <p> log4j:WARN No appenders could be found for logger (org.apache.pluto.driver.PortalStartupListener).</p> <p> log4j:WARN Please initialize the log4j system properly.</p> <p> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.</p> <p> Apr 25, 2013 12:48:41 AM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc</p> <p> SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.</p> <p> Apr 25, 2013 12:48:41 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads</p> <p> SEVERE: The web application [] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.</p> <p> _________________________________________________</p> <p> &nbsp;</p> <p> Thanks,</p> <p> Prasant Rana</p>

  • Number of messages  10
    Registration date Apr 25, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Getting error OutOfMemoryError : Java heap space and failed to start

    by  shyrkov »  2013/04/25 07:09

    Hello Prasant,

     

    from the exception stacktrace I see that when you are starting your Jahia it tries to synchroniized the changes from the JCR repository journal (you are using Enterprise Jahia cluster, as I see) and it seems there are a lot of them, leading to OOM error.

    Either you dedicate more memory to your Jahia or you do "manual" synchronization of the cluster nodes as described in http://wiki.apache.org/jackrabbit/Clustering#Easily_add_new_cluster_nodes

    Otherwise, as you are using Enterprise Jahia, you can for sure post a ticket into Jahia Support Area ( https://support.jahia.com/ ) and Jahia engineers will with pleasure help you further.

     

    Kind regards

    Sergiy

  • Re: Getting error OutOfMemoryError : Java heap space and failed to start
    2013/04/25 07:09

    shyrkov <p> Hello Prasant,</p> <p> &nbsp;</p> <p> from the exception stacktrace I see that when you are starting your Jahia it tries to synchroniized the changes from the JCR repository journal (you are using Enterprise Jahia cluster, as I see) and it seems there are a lot of them, leading to OOM error.</p> <p> Either you dedicate more memory to your Jahia or you do &quot;manual&quot; synchronization of the cluster nodes as described in http://wiki.apache.org/jackrabbit/Clustering#Easily_add_new_cluster_nodes</p> <p> Otherwise, as you are using Enterprise Jahia, you can for sure post a ticket into Jahia Support Area ( https://support.jahia.com/ ) and Jahia engineers will with pleasure help you further.</p> <p> &nbsp;</p> <p> Kind regards</p> <p> Sergiy</p>

  • Number of messages  407
    Registration date Apr 25, 2013
    0 (0 Good)
    0 (0 Bad)

    Re: Getting error OutOfMemoryError : Java heap space and failed to start

    by  lingmaaki@gmail.com »  2018/04/17 07:03

    The java.lang.OutOfMemoryError: Java heap space error will be triggered when the application attempts to add more data into the heap space area, but there is not enough room for it.

    Run Java with the command-line option -Xmx, which sets the maximum size of the heap.

    Increasing the heap size is not a "fix" it is a "plaster", 100% temporary. It will crash again in somewhere else. To avoid these issues, write high performance code.

    • Use local variables wherever possible.
    • Make sure you select the correct object (EX: Selection between String, StringBuffer and StringBuilder)
    • Use a good code system for your program(EX: Using static variables VS non static variables)
    • Other stuff which could work on your code.
    • Try to move with multy THREADING

      (lingmaaki@gmail.com)

    Number of messages  1
    Registration date
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page