#94 cewolf-0.10.1 broke with jfreechart-0.9.21

closed
nobody
None
5
2005-02-23
2005-02-09
Anonymous
No

cewolf-0.10.1 references org/jfree/data/Dataset, but
that class (and others) have been moved/reorganized in
jfreechart-0.9.21. It is now
org/jfree/data/general/Dataset.

It's strange that Cewolf would compile with the new
version, so I suppose it was compiled with an older
jar, and then the new version was just thrown in with
the 0.10.1 release, not expecting any problems.

-------------------------------------------------
Stack Trace:

java.lang.NoClassDefFoundError: Lorg/jfree/data/Dataset;
java.lang.Class.getDeclaredFields0(Native Method)
java.lang.Class.privateGetDeclaredFields(Class.java:1514)
java.lang.Class.getDeclaredField(Class.java:1206)
java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1474)
java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)
java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)
java.security.AccessController.doPrivileged(Native Method)
java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)
java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1010)
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
de.laures.cewolf.taglib.util.KeyGenerator.generateKey(KeyGenerator.java:51)
de.laures.cewolf.storage.AbstractSessionStorage.getKey(AbstractSessionStorage.java:80)
de.laures.cewolf.storage.AbstractSessionStorage.contains(AbstractSessionStorage.java:75)
de.laures.cewolf.storage.AbstractSessionStorage.storeChartImage(AbstractSessionStorage.java:53)
de.laures.cewolf.taglib.tags.ChartImgTag.doStartTag(ChartImgTag.java:78)
org.apache.jsp.test_jsp._jspx_meth_cewolf_img_0(test_jsp.java:227)
org.apache.jsp.test_jsp._jspService(test_jsp.java:196)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I've run into the same problem. I'm new to Cewolf so thanks
    for the good explanation of why this isn't working.

    Is there a way to get the previous rev?

     
  • Nobody/Anonymous

    Logged In: NO

    I tried reverting jfreechart to version 0.9.20, but that
    caused a different problem: a NoClassDefFoundError
    exception for DefaultCategoryDataset because Cewolf is
    referencing the new jfreechart-0.9.21 package location for
    that class. Doh. Actually, this may be a jfreechart
    issue.. hard to tell.

    Anyway I did find a workaround -- use some other Dataset
    type, like org.jfree.data.time.TimeSeriesCollection. But
    you must use jfreechart version 0.9.20. Get it from
    sourceforge.

    http://sourceforge.net/projects/jfreechart

    In my experience Cewolf 0.10.1 does not work in any way with
    jfreechart version 0.9.21, which ironically is the version
    supplied with the Cewolf 0.10.1 download. Maybe it has
    something do with my environment, but it's a standard
    install of Tomcat 5.0.x so I find that hard to believe.

     
  • Brian Fox

    Brian Fox - 2005-02-16

    Logged In: YES
    user_id=805618

    I inadvertantly released the update without updating the jar
    file. Rebuild it using ant and the problems should be fixed.
    It was built with .9.21.

     
  • Brian Fox

    Brian Fox - 2005-02-23
    • status: open --> closed
     
  • Brian Fox

    Brian Fox - 2005-02-23

    Logged In: YES
    user_id=805618

    fixed in 10.2

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks