From: SourceForge.net <no...@so...> - 2011-11-12 23:22:13
|
Bugs item #3086037, was opened at 2010-10-12 10:09 Message generated for change (Comment added) made by matinh You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115494&aid=3086037&group_id=15494 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: nodules (nodules) Assigned to: Nobody/Anonymous (nobody) Summary: Troubles with new JAVA JRE release 1.6.0_21 Initial Comment: 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 ? ---------------------------------------------------------------------- >Comment By: Martin Höller (matinh) Date: 2011-11-12 15:22 Message: 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. ---------------------------------------------------------------------- Comment By: Martin Höller (matinh) Date: 2010-10-14 07:44 Message: See forum thread for further discussion: http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=31391 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115494&aid=3086037&group_id=15494 |