Uploaded image for project: 'AdMaxLocal'
  1. AdMaxLocal
  2. AML-786

Tomcat out of memory exception creating a merchant.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: Aquidneck
    • Component/s: None
    • Labels:
      None
    • Environment:

      SAPI 214

    • Sprint:
      Sprint 12, Sprint 13, Sprint 14

      Description

      I got an Out of Memory exception during normal operation on AML. I was trying to save a merchant and got the following exception in Tomcat. I didn't have any Merchants in the list. This was the first one I created.

      2012-11-12 21:38:19,239-15798 [ContainerBackgroundProcessor[StandardEngine[Catalina]]] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
      org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sapi-rest-service' defined in file [/var/lib/tomcat6/webapps/sapi/WEB-INF/classes/sapi-cxf-configuration.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen space
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)
      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:294)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:609)
      at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918)
      at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:469)
      at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
      at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
      at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500)
      at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1345)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:303)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
      at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
      at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
      at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
      at java.lang.Thread.run(Thread.java:679)
      Caused by: java.lang.OutOfMemoryError: PermGen space
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2331)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:976)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1451)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:264)
      at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:113)
      at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125)
      at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49)
      at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:388)
      at sun.reflect.annotation.AnnotationParser.parseClassValue(AnnotationParser.java:369)
      at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:671)
      at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:478)
      at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:304)
      at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:240)
      at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:87)
      at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
      at java.lang.Class.initAnnotationsIfNecessary(Class.java:3093)
      at java.lang.Class.getAnnotation(Class.java:3050)
      at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:131)
      at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:84)
      at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:220)
      at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:87)
      at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
      at java.lang.reflect.Field.declaredAnnotations(Field.java:1034)
      at java.lang.reflect.Field.getDeclaredAnnotations(Field.java:1027)
      at java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObject.java:193)
      at com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getAllFieldAnnotations(RuntimeInlineAnnotationReader.java:69)
      at com.sun.xml.bind.v2.model.annotation.RuntimeInlineAnnotationReader.getAllFieldAnnotations(RuntimeInlineAnnotationReader.java:53)
      Nov 12, 2012 9:38:19 PM org.apache.catalina.core.StandardContext start
      SEVERE: Error listenerStart

        Attachments

          Activity

            People

            • Assignee:
              root Jonah Edwards
              Reporter:
              jeff.brown Jeff Brown (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: