Problems with java.lang.NoClassDefFound error *solved*

realising my stupidity I have solved the problem
I am quite new to java and I have been using the Java for Dummies book to help me to learn it. I decided to use the command line tools instead of an IDE and hadn't encountered any problems until recently. I took a break from learning Java after reaching the end of the book but have decided to come back to it. The problem now is that when I run my programs I get the following error:
Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong anme: HelloWorld)
     at java.lang.ClassLoader.defineClass1(Native Method)
     at java.lang.ClassLoader.defineClass(Unknown Source)
     at java.security.SecureClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.defineClass(Unknown Source)
     at java.net.URLClassLoader.access$000(Unknown Source)
     at java.net.URLClassLoader$1.run(Unknown Source)
     at java.security.AccessController.doPriviledged(Native Method)
     at java.net.URLClassLoader.findClass(Unknown Source)
     at sun.misc.Launcher$AppClassLoader.localClass(Unknown Source)
     at java.lang.ClassLoader.loadClass(Unknown Source)
     at java.lang.ClassLoader.loadClassInternal(Unknown Source)
This occurs from a simple hello world program:
class HelloWorld
   public static void main(String[] args)
      System.out.println("Hello, World!");
}I have no idea what the problem is, although by looking at similar threads it would appear that it may be something to do with the classpath variables however I do not know much about this as I followed a tutorial on the internet to set the classpath up.
Edited by: this_is_phil on Jun 19, 2008 11:11 AM

this_is_phil wrote:
Exception in thread "main" java.lang.NoClassDefFoundError: helloworld (wrong anme: HelloWorld)This part of the error message means you typed in "helloworld" but the class that java found was named HelloWorld. In Java, those are different - java is case sensitive. It will work if you enter HelloWorld.

Similar Messages

  • Could not find the main class. & java.lang.NoClassDefFound error:

    sir / madam
    I am facing problems with j2ksdk1.4.0 beta instalation on my windows 2000 advance server.
    while installing pops up a message saying could not find the main class.
    while using java or javac it says
    Exception in thread main
    java.lang.NoClassDefFound error:
    com/sun/tools/javac/main
    even when double clicking java plugin from the control panel
    I get the Java virtual machine launcher saying could not find the main class.
    I don't have any other java sdk installed.
    And i have my environment variables (classpath, path and java_home) set correctly.
    this same j2sdk1.4.0 version is installed in the windows 98 system and it's working fine.
    Kindly do help me to solve this problem.
    eagerly awaiting for your response.
    Thanking you
    Sajeev Nair
    [email protected]

    you must check with the classpath
    please see that you have not repeated %classpath%
    at the end of the class path like you do in win98.
    similiarly with %path%
    in win2000 it is automatically taken care off.

  • Error:"exception in thread main:java.lang.noclassdeffound error.

    Hi,
    I am new to this java tech and programming. I just started learning and installed j2sdk1.4.0_03. I wrote a small hello world program and compiled it without any errors. When I execute the same using java hello command, I am getting an error like this: exception in thread "main" java.lang.noclassdeffound error. I am not able to resolve this issue. Please let me know the sol.
    thanks
    venkatraman

    send the program u have typedUmm... Why?
    Anyway @NovaKane: Welcome. Together with seifist and sunny we have at
    least three new posters who show enough intelligence to find chuck's
    solution (or one of the many hundreds of others like it) and the politeness
    to thank him for it. What's the forum coming to?
    If you need it there is a description of the classpath here:
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/classpath.html
    Again, welcome. And thanks for raising the intelligence level (and politeness
    quotient) of the fora.

  • App world is showing this error "Uncaught exception: java.lang.NoClassDefFound Error"

    Few days back I received some App world updates through wireless network. After installing those updates and restarting mobile when I clicked on App world icon following error is being displayed "Uncaught exception: java.lang.NoClassDefFound Error". In fact I can't enter into appworld.
    Please suggest remedy
    Regards,
    Hitendra SIngh

    Hello hitmech07,
    Go to www.blackberry.com/appworld on your BlackBerry smartphone browser and attempt to reinstall the appliction.
    Cheers,
    -FB
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click "Accept as a Solution" for posts that have solved your issue(s)!

  • "Exception in thread "main" java.lang.NoClassDefFound Error" in XP

    I was creating programs just fine for awhile. Then, for some unknown reason, I start getting the runtime error message, "Exception in thread "main" java.lang.NoClassDefFound Error." I set my PATH in the following manner:
    Start | Control Panel | Performance and Maintenance | System | Advanced | Environment Variables | Use Variables for Owner | PATH | Edit | C:\j2sdk1.4.2_04;C:\j2sdk1.4.2_04\bin;C:\j2sdk1.4.2_04\jre\bin | Ok | Ok | Ok
    I then closed the dialog boxes and restarted my computer. I then tried to run a program that ran before, only to get the same runtime error! Can someone please help me???

    NoClassDefFoundError happens because the JVM cannot find some class from your program, not because the OS cannot find your JVM (PATH regulates the latter, but not the former). JVM looks up classes in directories (or JAR files) specified through the -classpath option, like "java -classpath c:\myclasses MyMainClass". Read the online doc for the "java" launcher for more info.

  • Java.lang.NoClassDefFound Error:msgsend

    Hi,
    I am trying to run my first Java Mail program, sending mail.
    I had compiled the source - no Errors.
    Now, when i try to execute it says
    Exception in thread 'main' java.lang.NoClassDefFound Error:
    I have download the JavaMail and JAF and has put the files under proper dir and verified the class variable. I am using Jdk1.3.

    The reason of this run time error is : Java is not able to locate main method of specified class File. or class file itself is not locatable.
    Check :
    1. Either u are not in same folder where ur class file is.
    2. or If u are running from some other directory, ur class file path is not in CLASSPATH.
    3.or There will be some mistake in definition of main method.
    Bye,
    Shaan

  • Epa2sda  java.lang.NoClassDefFound error..?

    hi,
    <b>I am using nwds 7.0.0 and ep 7 and j2sdk1.4.2_07</b>
    I have set all the class path variable as per the blog -
    https://service.sap.com/sap/support/notes/696084.
    but when i am writing the command to convert epa file to sda-
    "epa2sda ab.epa abc.sda"
    it gives  <b>Exception in thread "main"java.lang.NoClassDefFound error:</b> org/apache/tools/ant/main.
    what should i do to convert the epa file into sda file.

    hi Harini,
    my ndwd version is "7.0.0"
    This is the "sapmake.bat" file which i have been using.(giving error)
    <------->
    echo off
    setlocal
    if "%JAVA_HOME%" == "" goto nojavahome
    if "%SAPIDE_HOME%" == "" goto nosapidehome
    goto start
    :nojavahome
    echo JAVA_HOME environment variable is not set
    goto end
    :nosapidehome
    echo SAPIDE_HOME environment variable is not set
    goto end
    :start
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\org.apache.ant_1.5.3\ant.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\org.apache.ant_1.5.3\optional.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.tssap.sap.libs.xmltoolkit\lib\sapxmltoolkit.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.tssap.sap.libs.logging\lib\logging.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.sap.ide.eclipse.jarsap\lib\SLUtil.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.sap.ide.eclipse.jarsap\lib\SDMutil.jar;%ANTCLASSPATH%
    set ANTCLASSPATH=%SAPIDE_HOME%\IDE\IDE70\eclipse\plugins\com.sap.ide.eclipse.jarsap\lib\jar4sap.jar;%ANTCLASSPATH%
    if exist "%JAVA_HOME%\lib\tools.jar" set ANTCLASSPATH=%JAVA_HOME%\lib\tools.jar;%ANTCLASSPATH%
    %JAVA_HOME%\bin\java.exe -classpath "%ANTCLASSPATH%" org.apache.tools.ant.Main -Dsapmake.home="%SAPIDE_HOME%/sapmake_util" -Dbasedir="." -buildfile "%SAPIDE_HOME%/sapmake_util/build.xml" %1 %2 %3 %4 %5 %6 %7 %8 %9
    :end
    set ANTCLASSPATH=
    <----
    >

  • Java.lang.noclassdeffound error when installing oracle BI EE 10g

    Hello,
    I am trying to install Oracle BI EE 10g and I am getting an error "java.lang.noclassdeffound in thread main" The install shield closes on clicking OK on the error message box.
    I have installed JDK1.6.
    Please help.
    Thanks,
    Krishna.

    Have you actually started the OC4J? Test that your webservice is running by access the root home page.

  • URI:/OA_HTML/AppsLocalLogin.jsp Exception java.lang.NoclassDefFound error

    Hi,
    Users are getting Request URI:/OA_HTML/AppsLocalLogin.jsp Exception java.lang.NoclassDefFoundError error, when they are trying to login to EBS,
    They cleared Cache at browser level and Cleared Cache Jinitiator, Do i need to check anything else
    EBS version is : 11i.
    OS : Linux

    Sawwan,
    We have not made changes .
    client denied by server configuration: /u09/dev/comn/java/oracle/jdbc
    [Mon Jan 18 14:38:45 2010] [error] client denied by server configuration: /u09/dev/comn/java/oracle/jdbc
    [Mon Jan 18 14:41:39 2010] [error] client denied by server configuration: /u09/dev/comn/java/java
    [Mon Jan 18 14:41:39 2010] [error] client denied by server configuration: /u09/dev/comn/java/java
    [[Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.xml
    [Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.xml
    [Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.properties
    [Mon Jan 18 14:41:42 2010] [error] File does not exist: /u09/dev/comn/java/log4j.properties
    Edited by: HumanDBA on Jan 18, 2010 11:48 AM

  • Problems with java.lang.Class in JDK1.3

    Hi,
    I have 3 problems with the reflection in java.lang.Class:
    1) In the specification of method java.lang.Class.getDeclaredFields() is wrote:
    "Returns .... This includes public, protected, default (package) access, and private fields ..."
    This means, that all private fields should be return too. But some private methods are not given back. ????
    2) In java.lang.Class.getDeclaredMethods()
    some public methods are not return. ????
    3) In java.lang.Class.getDeclaredMethods()
    If Class is an interface. The same problem like 2) ????
    Are they errors of java.lang.Class in JDK1.3 ????
    Thanks & sincerely.

    Not sure it makes a difference, but you left off the last part of the quote:
    This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces.
    Are these missing methods from inherited classes, or are they declared in the class itself?

  • App World Java.lang.NoClassDefFound Error

    Hi Everyone,
    Lately i have downloaded updates for App Wolrd. After reboot, the arror Uncaught exception: java.lang.NoClassFoundError appear and i could not porceed. How could i get rid of this message.
    Using Bold 9700.
    Please help.
    This problem has been posted and please ignore it.

    Hey All.
    We are investigating this error and there is no estimated time when it will be resolved.
    I will provide an update once I have one 
    www.blackberry.com/btsc/KB29364 - Article relating to the issue.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • Problems with java.lang.Double in a Pojo

    Hi!
    I'm getting some problems with a Double (wrapper class) in a sub-report related with a Pojo.
    The exception has more than 100 lines.
    It's starts with:
    at com.crystaldecisions.sdk.occa.report.application.ds.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.if(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
         at br.inf.teorema.javautils.util.CrystalReportsUtils.export(CrystalReportsUtils.java:520)
    Caused by: com.crystaldecisions.sdk.occa.report.application.b6: Valor nulo inesperado localizado para o membro Produto.getAliquotaICMS. (UNEXPECTED NULL VALUE ... )
    at com.crystaldecisions.sdk.occa.report.application.b6.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.de.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.de.if(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.de.getDouble(Unknown Source)
    and ends with:
    [JRCCommunicationAdapter]  detected an exception: Erro inesperado do conector do banco de dados (UNEXPECTED ERROR WITH DATABASE CONNECTOR )
         at com.crystaldecisions.reports.queryengine.Row.char(Unknown Source)
         at com.crystaldecisions.reports.queryengine.Row.getValue(Unknown Source)
         at com.crystaldecisions.reports.datalayer.a$d.getValue(Unknown Source)
         at com.crystaldecisions.reports.saveddata.saveddata.SavedData.a(Unknown Source)
         at com.crystaldecisions.reports.saveddata.a.a(Unknown Source)
         at com.crystaldecisions.reports.saveddata.a.a(Unknown Source)
         at com.crystaldecisions.reports.basicdataengine.a.p(Unknown Source)
         at com.crystaldecisions.reports.basicdataengine.a.a(Unknown Source)
    It occurs when my Double has null value. When I put "0.0", there are no problems.
    Anyway, in specifics contexts, null != 0.0.
    I think it's a bug. Someone encountered the same problem?

    Sorry for my insistence, but this problem occurs only for me?
    I will explain better.
    If I have a report that show the value of a Double field, the getter method should be:
    public Double getMyField() {
        return myField;
    But if myField == null, I can't generate the report.
    So, I did:
    public Double getMyField() {
        if (myField == null) {
            myField = 0.0d;
        return myField;
    I wish don't need to do this correction in getter method.
    CR do not works this way with Double?
    I have tested, and String works fine.

  • Ugly problem with java.lang.reflect.InvocationTargetException

    Hello,
    I am writing a web service which connects to WebSphere MQ queue manager and puts a message on a queue.
    I use Eclipse and as usual I followed more or less the hints given at:
    http://www.eclipse.org/webtools/jst/components/ws/1.5/tutorials/BottomUpWebService/BottomUpWebService.html
    I have chosen Tomcat 5.5.20 as target server (had to, because otherwise it does not create a server-config.wsdd file), the web service WSDL thingies and the client were created successfully.
    I have created WAR files and everything went fine when I tested the thing on JBoss.
    Bad things started after I deployed the things on the Tomcat server. When I start the client I receive java.lang.reflect.InvocationTargetException as a result. The web service itself does not generate any exception, but the client does (I'll post the dump later..).
    During the debug it turned that the exception is generated at the moment when the web service program tries to call any of the WebSphere functions.
    Now - 1st obvious thing was to check if I have com.ibm.mq.jar in the WEB-INF/lib directory inside my WAR files. Yep! There it was.
    So.. if the thing works just fine on JBoss and it booms on Tomcat I wonder whats the hack here? I copied all of the MQ libraries i have from JBOSS_HOME/lib to CATALINA_HOME/shared/lib and CATALINA_HOME/common/lib. Well.. that's quite ugly, because all necessary jars are inside the WEB-INF/lib directory. Anyway nothing of the above helped me running the thing on Tomcat.
    Do you have any suggestions or have anyone of you ever had such problem?
    Here are the exception dump and part of the code:
      - Setting up MQ environment:
         - Setting hostname...
    An AxisFault exception occured: java.lang.reflect.InvocationTargetException
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: java.lang.reflect.InvocationTargetException
    faultActor:
    faultNode:
    faultDetail:
         {http://xml.apache.org/axis/}hostname:ghjvk0j
    java.lang.reflect.InvocationTargetException
         at org.apache.axis.message.SOAPFaultBuilder.create
    Fault(SOAPFaultBuilder.java:222)
         at org.apache.axis.message.SOAPFaultBuilder.endElement(
    SOAPFaultBuilder.java:129)
         at org.apache.axis.encoding.DeserializationContext.endElement(
    DeserializationContext.java:1087)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(
    Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.
    scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScanne
    rImpl$Fragment ContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerI
    mpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
    Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
    Source)
         at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse
    (Unknown Source)
         at javax.xml.parsers.SAXParser.parse(Unknown Source)
         at org.apache.axis.encoding.DeserializationContext.parse(
    DeserializationContext.java:227)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
         at org.apache.axis.handlers.soap.
    MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
         at org.apache.axis.client.Call.invoke(Call.java:2767)
         at org.apache.axis.client.Call.invoke(Call.java:2443)
         at org.apache.axis.client.Call.invoke(Call.java:2366)
         at org.apache.axis.client.Call.invoke(Call.java:1812)
         at pl.pzu.services.TfiAuthenticationSoapBindingStub.
    verify(TfiAuthenticationSoapBindingStub.java:245)
         at pl.pzu.services.TfiAuthenticationProxy.
    verify(TfiAuthenticationProxy.java:45)
         at org.apache.jsp.sampleTfiAuthenticationProxy.
    Result_jsp._jspService(Result_jsp.java:158)
         at org.apache.jasper.runtime.HttpJspBase.
    service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.
    service(HttpServlet.java:802)
         at org.apache.jasper.servlet.JspServletWrapper.
    service(JspServletWrapper.java:334)
         at org.apache.jasper.servlet.JspServlet.
    serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.
    service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
    (ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(
    StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke
    (StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(
    StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(
    ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(
    StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(
    CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(
    Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11Connec
    tionHandler.processConnection(Http11BaseProtocol.java:664)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Pool
    TcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(Lea
    derFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
    ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)There is the part of the web service code where the event occurs:
         public void writeMessage(String message,
    String message_ID) throws Exception
              System.out.println("      - Setting up MQ environment: ");
              try
                   System.out.println("      - Setting hostname...");
         NEXT LINE CAUSES THE CLIENT TO THROW
         This is the first call to any WebSphere assets.
         During debug It says the it is unable to inspect the MQEnvironment
         object...
                   MQEnvironment.hostname = m_config.getQMHost();
                   System.out.println("      - Setting port...");
                   MQEnvironment.port = m_config.getQMPort();
                   System.out.println("      - Setting channel...");
                   MQEnvironment.channel = m_config.getQMChannel();
         }I think that if it works on JBoss and it doesn't on Tomcat it is not coding problem, but rather a configuration...
    Thanx for any ideas or help from ur side.

    Did you have any success on this?
    I also have the same problem with Tomcat 6.
    I had Tomcat 5.0 working with this code, but when we migrated to Tomcat 6.0, I am getting this exception on the clent side. I figured out that it is occuring on invoking WebSphere MQ call from the code.
    Thanks

  • Problem with java.lang.OutOfMemoryError

    hi
    i am developping a web application
    i am using jfreechart in my jsf application to generate statistic diagrams
    to update my diagrams i am calling the methode ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null) every 10 seconds
    my application become more and more slow and the cpnsommatio of memory is more and more important until getting this exception:
    javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: Java heap space
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at javax.faces.component.UICommand.broadcast(UICommand.java:387)
         at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
         at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
         at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
         at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
         at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at TimeoutFilter.doFilter(TimeoutFilter.java:64)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.OutOfMemoryError: Java heap space
         at java.awt.image.DataBufferInt.<init>(Unknown Source)
         at java.awt.image.Raster.createPackedRaster(Unknown Source)
         at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
         at java.awt.image.BufferedImage.<init>(Unknown Source)
         at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1407)
         at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1389)
         at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:183)
         at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:320)
         at SWIMLogStatistiques.generateChartMethod(SWIMLogStatistiques.java:98)
         at SWIMmoduleStatistiques.generateChartMethod(SWIMmoduleStatistiques.java:39)
         at ListModules.mesServicesAttributs(ListModules.java:199)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.el.parser.AstValue.invoke(AstValue.java:172)
         at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
         at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
         at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at javax.faces.component.UICommand.broadcast(UICommand.java:387)
         at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
         at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
         at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
         at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
         at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
         at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    after doing some searches, i found that the solution is to change the memory allocated for the JVM but in my case, the memory consommed by my application is increasing along with time.
    i think that the problem is with:*ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null);*:does this instruction consume a lot of memory and how can i resolve thos problem?

    riadhhwajdii wrote:
    i am using jfreechart in my jsf application to generate statistic diagrams
    to update my diagrams i am calling the methode ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null) every 10 seconds
    my application become more and more slow and the cpnsommatio of memory is more and more important until getting this exception:This bit (slowing down over several cycles of the code)..and this bit:
    after doing some searches, i found that the solution is to change the memory allocated for the JVM but in my case, the memory consommed by my application is increasing along with time.(increasing memory simply delays the exception), are usually a pointer that you have a memory leak somewhere.
    i think that the problem is with:*ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null);*:does this instruction consume a lot of memory and how can i resolve thos problem?Take some heap dumps (especially when the out of memory occurs) and stick them in a memory analyser. Just because the exception is being thrown during saveChartAsPNG() does not mean that's the culprit. All that means is it was the final straw.

  • 8i on RH7.1 with java.lang.System error

    Hi all,
    Please excuse me if this is the incorrect forum for this message.
    I've installed 8i on redhat 7.1 quite a few times, but have never experienced this problem. When I try to start dbassist, netca or any GUI driven app that requires a JVM, I get the following error:
    Can't not find java.lang.System
    Can't not create JVM
    I've installed blackdown 1.1.8_v3, and have changed the JRE symlink in $ORACLE_HOME to point ot where blackdown is located.
    I've already tried unset LANG and unset NLS_LANG. Any suggestions will be greatly appreciated!! Thanks in advance.
    Ed

    Hi
    I'll say that you have to post this message to the "Installation" forum, i.e. Database Installation
    Chris

Maybe you are looking for

  • External Hard Drive Shared By 2 Computers

    I have been reading post after post and haven't figured out a good method to achieve my goal. I currently have two computers (Windows XP) at home wired using a router (Linksys). I installed iTunes on both computers. My iTunes music library is stored

  • TS3297 Problem with locating a digital music booklet in iTunes library

    Good morning to all. I have purchased and downloaded a music album yesterday from Tunes which was accompanied by a digital music booklet featuring information on the singer and the composers but I don't seem able to locate it anywhere in my iTunes li

  • Print Preview class

    I'm trying to build a WordProcessor and i'm stuck on the print preview. I've been using the Manning book, Swing. I think they have some typo's in the print chapter or I'm missing something. Well here the problem: Wordwrite.java:103: cannot resolve sy

  • St22 Dump in Mail

    Dear All, I want to configure the St22 dump in mail , With criteria if Mail is more than 150 in a day it should send a mail.Please Let me know the steps need to be done. RK

  • Outlook Web Dialer

    When trying to dial from Outlook Contacts I get error message : "Internal Error in the Automatic Phone Dialer". Was this ever resolved? Regards, Rich.