#5 cewolf-0.10.a3

closed
nobody
None
5
2005-02-23
2004-02-18
No

Took the cewolf-0.10.a2 code base and upgraded to
support JFreeChart-0.9.16. This code also includes the
following changes

* Includes Patch 854139
* Includes bug fix for BugID 845362

This code has only been tested against TimeSeries

- Kristina

Discussion

  • Kristina Tripp

    Kristina Tripp - 2004-02-19

    Logged In: YES
    user_id=872335

    Here's the file

     
  • Kristina Tripp

    Kristina Tripp - 2004-02-19

    Logged In: YES
    user_id=872335

    Having trouble loading the file getting an error. I'm
    trying to fix this.

    - Kristina

     
  • Kristina Tripp

    Kristina Tripp - 2004-02-19

    cewolf.jar file

     
  • Kristina Tripp

    Kristina Tripp - 2004-02-19

    Source files changes from 0.10.a2

     
  • Kristina Tripp

    Kristina Tripp - 2004-02-19

    Logged In: YES
    user_id=872335

    There's a limit on patch sizes so I can't install this as a
    complete release. Follow the steps outlined in the
    Instructions.txt file to get a cewolf-10.a3 release.

    - Kristina

     
  • Kristina Tripp

    Kristina Tripp - 2004-02-19

    Instructions

     
  • Nobody/Anonymous

    Logged In: NO

    Error: can nof find org.jfree.chart.TextTitle
    while compile

     
  • Brian Fox

    Brian Fox - 2004-04-02

    Logged In: YES
    user_id=805618

    I'm getting a null pointer exception here:

    ----- Root Cause -----
    java.lang.NullPointerException
    at
    de.laures.cewolf.taglib.tags.ChartImgTag.doStartTag(ChartImgTag.java:74)
    at
    org.apache.jsp.ohchart_jsp._jspx_meth_cewolf_img_0(ohchart_jsp.java:574)
    at org.apache.jsp.ohchart_jsp._jspService(ohchart_jsp.java:251)
    at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

    It looks like this storage is null after this call:

    Storage storage =
    Configuration.getInstance(pageContext.getServletContext()).getStorage();
    try {
    this.sessionKey =
    storage.storeChartImage(chartImageDefinition, pageContext);

    Any hints? Everything was working on the stable version of
    cewolf, but the examples seem to work. I'm not sure where to
    look next.

    Thanks!

     
  • Brian Fox

    Brian Fox - 2004-04-02

    Logged In: YES
    user_id=805618

    oh, and my jsp looks like this:
    <jsp:useBean id="TotalBySyndrome"
    class="com.stchome.stems.datasets.OHChartTotalBySyndromeDataset"/>
    <cewolf:chart
    id="line"
    title="Encounters By Syndrome"
    type="timeseries"
    xaxislabel="Date"
    yaxislabel="Total">
    <cewolf:data>
    <cewolf:producer id="TotalBySyndrome" usecache="false">
    </cewolf:producer>
    </cewolf:data>
    <cewolf:chartpostprocessor id="TotalBySyndrome">

    </cewolf:chartpostprocessor>
    </cewolf:chart>
    <p>
    <cewolf:img chartid="line" renderer="/cewolf"
    width="640" height="480">
    </cewolf:img>

     
  • Brian Fox

    Brian Fox - 2004-04-02

    Logged In: YES
    user_id=805618

    Solved it. I needed to set something in the web.xml to load
    on startup.

    I did have to make a fix to get the linkgenerator working.
    The new method is pasted below. (It was previously trying to
    treat xyplots as piecharts)

    private String generateLink( Dataset dataset, ChartEntity ce )
    {
    String link = null;
    if ( dataset instanceof CategoryDataset )
    {
    CategoryItemEntity catEnt = (CategoryItemEntity) ce;
    link = ((CategoryItemLinkGenerator)
    linkGenerator).generateLink(dataset,
    catEnt.getSeries(), catEnt.getCategory());
    }
    else if ( linkGenerator instanceof XYItemLinkGenerator
    && ce instanceof XYItemEntity )
    {
    XYItemEntity xyEnt = (XYItemEntity) ce;
    link = ((XYItemLinkGenerator)
    linkGenerator).generateLink(dataset, xyEnt
    .getSeries(), xyEnt.getItem());

    }
    else if ( dataset instanceof XYDataset )
    {
    PieSectionEntity pieEnt = (PieSectionEntity) ce;
    link = ((PieSectionLinkGenerator)
    linkGenerator).generateLink(dataset,
    pieEnt.getSectionKey());
    }
    return link;
    }

     
  • marcel maatkamp

    marcel maatkamp - 2004-05-13

    Logged In: YES
    user_id=1041127

    Sender: brianfox
    "Solved it. I needed to set something in the web.xml to
    load on startup."

    What he meant was:
    provide in web.xml a <load-on-startup>number</load-on-startup>

    where number is a number not already present in your
    web.xml. Therefor pick a number which is quite high to avoid
    conflicts or number your servlets in descending order.

     
  • Nobody/Anonymous

    Logged In: NO

    Hello.
    I'm gettin a Null Pinter Exception on the marked line below:

    public int doAfterBody() throws JspException {
    try {
    // double checking for null as Resin had
    problems with that
    final BodyContent body = getBodyContent();
    **** final JspWriter writer = getPreviousOut();
    if (body != null && writer != null) {
    body.writeOut(writer);
    }
    } catch (IOException ioex) {
    throw new JspException(ioex.getMessage());
    }
    return SKIP_BODY;
    }

    I'm using Oracle IAS to deploy this.
    Any hint?

    Thank you

     
  • Nobody/Anonymous

    Logged In: NO

    Ahn, looks like my registration on SourceForge failed..
    If anyone can give me a help, plz contact me at leonardo
    at ibiz com br

    Thank you

     
  • Nobody/Anonymous

    Logged In: NO

    Ahn, looks like my registration on SourceForge failed..
    If anyone can give me a help, plz contact me at leonardo
    at ibiz com br

    Thank you

     
  • Brian Fox

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

Log in to post a comment.