#1016 Troubles with new JAVA JRE release 1.6.0_21

closed-rejected
nobody
General (896)
5
2011-11-12
2010-10-12
nodules
No

In a HTML page I launch Java Applet(s) with a PHP code. It could be only one or more Applets, actually depends on the number of parameter I'd like to plot :

for ($i=0;$i<count($parameter);$i++) {
echo "<APPLET\n";
echo "CODEBASE=\"./applets\"";
echo "CODE=\"applet.init.AppletGraph\" WIDTH=100% HEIGHT=".$height."\n";
echo "ARCHIVE=\"jcommon-1.0.16.jar, jfreechart-1.0.13.jar, jxl.jar, iText-5.0.1.jar, javacsv.jar, sAppletGraph.jar\">\n";
echo "<PARAM NAME=parameter VALUE=\"".$parameter[$i]."\">\n";
echo "<PARAM NAME=\"valeur\" VALUE=\"".$string."\">\n";
echo "</APPLET>\n";
}

So, one parameter to plot gives one applet and two gives two applets ...

My applets are created with the following code :

package applet.init;

import org.jfree.chart.JFreeChart;
import javax.swing.JApplet;

public class AppletGraph extends JApplet {

private static final long serialVersionUID = 8499358800188936023L;

public JFreeChart jFreeChart;

//Init empty \!\!\!
public void init\(\) \{

\}

// method never called \!\!\!
public JFreeChart toto\(\)\{

    JFreeChart chart = null;
    return chart;
\}

}

Troubles :
when I deal with only one parameter (thus only one Applet) works well !
when I deal with more than one parameter (thus more than one Applet on JVM), the first Applet still works well, but the other(s) not and I get back the following error:
basic: exception : java.lang.ClassCircularityError: org/jfree/chart/JFreeChart.
java.lang.RuntimeException: java.lang.ClassCircularityError: org/jfree/chart/JFreeChart

This appears only with JRE 1.6.0_21 since works well with 1.6.0_18 and previous.

Error sounds like incompatibilities between JFreeChart and new JAVA release since everything is fine when suppressing the toto() method from the code... but in that case why does it work when having only one applet ... ?
Is it normal that a method which is compiled but never called causes errors during execution ?

Discussion

  • Martin Höller

    Martin Höller - 2011-11-12
    • status: open --> closed-rejected
     
  • Martin Höller

    Martin Höller - 2011-11-12

    As noone else seems to have any problems with JRE 1.6.0_21 it is very likely to be a usage problem.
    I'll close th bug for now. Please reopen and add comments if you feel it is really a bug.

     

Log in to post a comment.