0
votes

I've been tasked to update a few BIRT reports, and every time I try and preview my BIRT report in Eclipse I get the the following error:

java.lang.ClassCastException: java.lang.OutOfMemoryError cannot cast to java.lang.Exception

Java version: 1.8.0_25

Tomcat: version 7

Eclipse: Juno Service Release 2 Build id 20130225-0426

I've increased the memory, and still nothing.

I'm on Windows 7

1
Did you try modding the catalina.sh file? - bholagabbar

1 Answers

0
votes
  1. in tomcat/bin/catalina.sh

  2. add following in the beginning

JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"



Add it in the following way:

#
#   LOGGING_MANAGER (Optional) Override Tomcat's logging manager
#                   Example (all one line)
#                   LOGGING_MANAGER="-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager"
#
# $Id: catalina.sh 1146069 2011-07-13 14:47:32Z markt $
# -----------------------------------------------------------------------------

JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms512m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"

# OS specific support.  $var _must_ be set to either true or false.
cygwin=false
darwin=false
os400=false
case "`uname`" in
CYGWIN*) cygwin=true;;
Darwin*) darwin=true;;
OS400*) os400=true;;
esac



Now, Restart TomCat. See if that does it