Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception
java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception [message #735029] Mon, 10 October 2011 17:02 Go to next message
Anurag  is currently offline Anurag Friend
Messages: 47
Registered: September 2011
Member
I am using Red Hat Enterprise Linux Server release 5.6 (Tikanga) for staging tomcat 6.0.26 server. I am using Eclipse Reporting Indigo Win32, Birt Runtime 3.7.0.

Till 7th October it was working fine. Now suddenly I am getting this error.

Thank you.

Anurag
  • Attachment: logs.zip
    (Size: 155.78KB, Downloaded 487 times)
Re: java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception [message #735071 is a reply to message #735029] Mon, 10 October 2011 20:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Are you starting tomcat with -XX:MaxPermSize=256m?

Jason

On 10/10/2011 1:02 PM, Anurag wrote:
> I am using Red Hat Enterprise Linux Server release 5.6 (Tikanga) for staging tomcat 6.0.26 server. I am using Eclipse Reporting Indigo Win32, Birt Runtime 3.7.0.
>
> Till 7th October it was working fine. Now suddenly I am getting this error.
>
> Thank you.
>
> Anurag
Re: java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception [message #735155 is a reply to message #735071] Tue, 11 October 2011 06:24 Go to previous messageGo to next message
Anurag  is currently offline Anurag Friend
Messages: 47
Registered: September 2011
Member
Thank you Jason for your assistance. My problem is solved. I increased the memory by making changes in catalina.sh file

I followed these steps

1. in tomcat/bin/catalina.sh

2. added 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"


as follows

#
#   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



Restarted tomcat, and done.

Thanks,

Anurag

[Updated on: Tue, 11 October 2011 06:25]

Report message to a moderator

Re: java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception [message #742809 is a reply to message #735029] Thu, 20 October 2011 21:25 Go to previous messageGo to next message
Ritika  is currently offline Ritika Friend
Messages: 1
Registered: October 2011
Junior Member
Thanks for the tip to add a line in catalina.sh. I was also getting similar kind of exception in my Birt Report which is using crosstabs and has around 126100 rows expected. But due to large amount of rows, initially I was getting this exception. On adding the line mentioned in catalina.sh, I cannot see that problem anymore but then sometimes a popup box appears that the script becomes unresponsive and most of the times, I was able to upload the page but the load is incomplete. Not all the records appear and it kind of starts showing tags like "le_15" style=" text-align:center;">C at the end of the page..

Re: java.lang.ClassCastException: java.lang.OutOfMemoryError cannot be cast to java.lang.Exception [message #748269 is a reply to message #742809] Mon, 24 October 2011 15:45 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Can you open a bugzilla entry for this?

Jason

On 10/20/2011 5:25 PM, Ritika wrote:
> Thanks for the tip to add a line in catalina.sh. I was also getting
> similar kind of exception in my Birt Report which is using crosstabs and
> has around 126100 rows expected. But due to large amount of rows,
> initially I was getting this exception. On adding the line mentioned in
> catalina.sh, I cannot see that problem anymore but then sometimes a
> popup box appears that the script becomes unresponsive and most of the
> times, I was able to upload the page but the load is incomplete. Not all
> the records appear and it kind of starts showing tags like "le_15"
> style=" text-align:center;">C at the end of the page..
>
>
Previous Topic:Run/view reports/dashboards on tomcat staging server.
Next Topic:Using the result of a dataset in another dataset
Goto Forum:
  


Current Time: Fri Mar 29 11:49:15 GMT 2024

Powered by FUDForum. Page generated in 0.02627 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top