Getting error if running YouTrack 3.0.4 with database from YouTrack 3.0.2

I downloaded YouTrack 3.0.4 and edited web.xml in war file for it to point to databases from YouTrack 3.0.2 and when I run it in tomcat I get an Exception

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customFieldsAccessControl' defined in file [/home/sandbox/tomcat/webapps/youtrack304/WEB-INF/classes/jetbrains/youtrack/workflow/rest/customFieldsAccessControlConfiguration.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelMetaData' defined in file [/home/sandbox/tomcat/webapps/youtrack304/WEB-INF/classes/jetbrains/charisma/persistent/modelMetaDataConfiguration.xml]: Cannot resolve reference to bean 'jetbrains.charisma.persistence.security.PermissionMetaData' while setting bean property 'entityMetaDatas' with key [26]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jetbrains.charisma.persistence.security.PermissionMetaData' defined in file [/home/sandbox/tomcat/webapps/youtrack304/WEB-INF/classes/jetbrains/charisma/persistence/security/entityMetaDataConfiguration.xml]: Initialization of bean failed; nested exception is java.lang.OutOfMemoryError: PermGen space
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
     java.security.AccessController.doPrivileged(Native Method)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
     org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
     webr.framework.controller.WebClasspathXmlServiceLocator.init(WebClasspathXmlServiceLocator.java:81)
     jetbrains.springframework.configuration.runtime.ServiceLocator.init(ServiceLocator.java:88)
     jetbrains.charisma.main.ServletImpl.init(ServletImpl.java:60)
     javax.servlet.GenericServlet.init(GenericServlet.java:160)
     org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
     org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279)
     org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
     org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     java.lang.Thread.run(Thread.java:619)

root cause

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'modelMetaData' defined in file [/home/sandbox/tomcat/webapps/youtrack304/WEB-INF/classes/jetbrains/charisma/persistent/modelMetaDataConfiguration.xml]: Cannot resolve reference to bean 'jetbrains.charisma.persistence.security.PermissionMetaData' while setting bean property 'entityMetaDatas' with key [26]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jetbrains.charisma.persistence.security.PermissionMetaData' defined in file [/home/sandbox/tomcat/webapps/youtrack304/WEB-INF/classes/jetbrains/charisma/persistence/security/entityMetaDataConfiguration.xml]: Initialization of bean failed; nested exception is java.lang.OutOfMemoryError: PermGen space
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
     java.security.AccessController.doPrivileged(Native Method)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:302)
     webr.framework.controller.WebLocalScope.get(WebLocalScope.java:32)
     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
     org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
     webr.framework.controller.WebClasspathXmlServiceLocator.getBean(WebClasspathXmlServiceLocator.java:104)
     jetbrains.springframework.configuration.runtime.ServiceLocator.getBean(ServiceLocator.java:55)
     jetbrains.youtrack.workflow.rest.CustomFieldsAccessControl.resolveClazz(CustomFieldsAccessControl.java:145)
     jetbrains.youtrack.workflow.rest.CustomFieldsAccessControl.init(CustomFieldsAccessControl.java:94)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     java.lang.reflect.Method.invoke(Method.java:597)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
     java.security.AccessController.doPrivileged(Native Method)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
     org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
     webr.framework.controller.WebClasspathXmlServiceLocator.init(WebClasspathXmlServiceLocator.java:81)
     jetbrains.springframework.configuration.runtime.ServiceLocator.init(ServiceLocator.java:88)
     jetbrains.charisma.main.ServletImpl.init(ServletImpl.java:60)
     javax.servlet.GenericServlet.init(GenericServlet.java:160)
     org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
     org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279)
     org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
     org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     java.lang.Thread.run(Thread.java:619)

root cause

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jetbrains.charisma.persistence.security.PermissionMetaData' defined in file [/home/sandbox/tomcat/webapps/youtrack304/WEB-INF/classes/jetbrains/charisma/persistence/security/entityMetaDataConfiguration.xml]: Initialization of bean failed; nested exception is java.lang.OutOfMemoryError: PermGen space
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
     java.security.AccessController.doPrivileged(Native Method)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
     java.security.AccessController.doPrivileged(Native Method)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     org.springframework.beans.factory.support.AbstractBeanFactory$2.getObject(AbstractBeanFactory.java:302)
     webr.framework.controller.WebLocalScope.get(WebLocalScope.java:32)
     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
     org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:880)
     webr.framework.controller.WebClasspathXmlServiceLocator.getBean(WebClasspathXmlServiceLocator.java:104)
     jetbrains.springframework.configuration.runtime.ServiceLocator.getBean(ServiceLocator.java:55)
     jetbrains.youtrack.workflow.rest.CustomFieldsAccessControl.resolveClazz(CustomFieldsAccessControl.java:145)
     jetbrains.youtrack.workflow.rest.CustomFieldsAccessControl.init(CustomFieldsAccessControl.java:94)
     sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     java.lang.reflect.Method.invoke(Method.java:597)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1414)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1375)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
     java.security.AccessController.doPrivileged(Native Method)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
     org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
     org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
     org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
     org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
     webr.framework.controller.WebClasspathXmlServiceLocator.init(WebClasspathXmlServiceLocator.java:81)
     jetbrains.springframework.configuration.runtime.ServiceLocator.init(ServiceLocator.java:88)
     jetbrains.charisma.main.ServletImpl.init(ServletImpl.java:60)
     javax.servlet.GenericServlet.init(GenericServlet.java:160)
     org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
     org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
     org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
     org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
     org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279)
     org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
     org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
     java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     java.lang.Thread.run(Thread.java:619)

root cause

java.lang.OutOfMemoryError: PermGen space
     java.lang.ClassLoader.defineClass1(Native Method)
     java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
     java.lang.ClassLoader.defineClass(ClassLoader.java:616)
     java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
     org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2820)
     org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1150)
     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645)
     org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1523)
     org.springframework.util.ClassUtils.forName(ClassUtils.java:211)
     org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:385)
     org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1138)
     org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1105)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:386)
     java.security.AccessController.doPrivileged(Native Method)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:117)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
     java.security.AccessController.doPrivileged(Native Method)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
     org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
     org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
     org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
     org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.20 logs.

1 comment
Comment actions Permalink

Hi Eugene,

Increase size of PermGen space.

--

Best regards,

Vyacheslav Lukianov

Software Developer

JetBrains, Inc.

http://www.jetbrains.com

"Develop with pleasure!"

java.lang.OutOfMemoryError: PermGen space

0

Please sign in to leave a comment.