cancel
Showing results for 
Search instead for 
Did you mean: 

StackOverFlow on startup

mirko27
Champ in-the-making
Champ in-the-making
My conf:
Windows vista amd64
JDK 6 amd64
alfresco 2.9 community

When running alf_start.bat I`m getting:
Starting Tomcat…
Using CATALINA_BASE:   c:\work\server\alfresco\tomcat
Using CATALINA_HOME:   c:\work\server\alfresco\tomcat
Using CATALINA_TMPDIR: c:\work\server\alfresco\tomcat\temp
Using JRE_HOME:        c:\work\server\java
CompilerOracle: exclude org/apache/lucene/index/IndexReader$1.doBody
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger.mergeIndexes
CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger.mergeDeletions
java.lang.StackOverflowError
        at java.lang.Exception.<init>(Exception.java:59)
        at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:65)
        at java.lang.ClassLoader.findBootstrapClass(Native Method)
        at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:891)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:222)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
2 REPLIES 2

steve
Champ in-the-making
Champ in-the-making
Hi,

There are no alfresco classes in your trace - can you try removing/renaming the alfresco.war file and restarting tomcat to see if you still get the error?
If you do, then it's not Alfresco related.
If you don't then we'd have to look further at what is going on.

Steve

fezpp
Champ in-the-making
Champ in-the-making
This is old but as I had same problem I thought I'd post a solution for future reference.

In my (old) version of Alfresco.bat the JAVA_OPTS include -Xss64k. This may be fine on 32bit OS but will generally not work on 64bit OS (causing StackOverflow on java startup).

Remove the option (or increase appropriately) and the problem should be fixed. Look for more information on JVM tuning if you have issues in PRD environments.