some error with stackedVerticalbar3D

2006-03-02
2013-01-13
  • m wrking on a cewolf chart renderer it gives the following message can any one help what is wrong with the code

    code is

    IN JSP

    <cewolf:chart id="verticalBar" title="" type="stackedVerticalBar3D" xaxislabel="Dept name" yaxislabel="Compliances" antialias="true"
    showlegend="true" background="#FFFFFF" >
    <cewolf:data>
    <cewolf:producer id="barGraphData" usecache="false" />
    </cewolf:data>
    </cewolf:chart>

    <cewolf:img chartid="verticalBar" renderer="/cewolf" width="600" height="160" style="background: #FFFFFF" htmltitle="Click more Graphs for furthure Queries">

    </cewolf:img>

    and in java action class

    DatasetProducer dspBarGraphData = new DatasetProducer()

    {ArrayList[] arrLstBar = new ArrayList[getBarData().length];

    public Object produceDataset(Map params)
    { try
    {
    arrLstBar = getBarData();
    }
    catch(Exception e)
    {
    e.printStackTrace();
    }
    final String[] dept = new String[10];
    if(arrLstBar.length<=10)
    { for(int i = 0;i<arrLstBar.length;i++)
    dept[i] = arrLstBar[1].get(i).toString();
    for(int i =arrLstBar.length;i<10;i++ )
    dept[i] = " ";
    }
    else
    {
    for(int i = 0;i<10;i++)
    dept[i] = arrLstBar[1].get(i).toString();
    }
    int j =0;
    String[] strSeries = new String[4];
    strSeries = getLegends();
    final Integer[][] startValues = new Integer[4][dept.length];
    final Integer[][] endValues = new Integer[4][dept.length];
    String strGORY[] = new String[4];
    for (int series = 0; series < strSeries.length; series++)
    {
    for (int i = 0; i < dept.length; i++)
    {
    startValues[series][i] = new Integer(0);
    endValues[series][i] = new Integer(0);
    }
    }
    for (int series = 0; series < strSeries.length; series++)
    {
    for (int i = 0; i < dept.length; i++)
    {
    if(i<arrLstBar.length)
    {
    strGORY = arrLstBar[0].get(i).toString().split(",");
    endValues[series][i] = Integer.valueOf(strGORY[series]);
    }
    else
    {
    endValues[series][i] = Integer.valueOf("0");
    }
    }
    System.out.println("["+endValues[series][0]+","+endValues[series][0]+"]");
    }

    DefaultIntervalCategoryDataset ds = new DefaultIntervalCategoryDataset(strSeries, dept, startValues, endValues);
    return ds;
    }
    ]

    public String getProducerId()
    {
    return "BarDataProducer";
    }

    public boolean hasExpired(Map arg0,java.util.Date arg1)
    {
    return false;
    }

    public String[] getLegends()
    {
    String[] legends = null;
    {
    legends = new String[4];
    {
    legends[2] = ConfigurationsKeys.RED;
    legends[1] = ConfigurationsKeys.ORANGE;
    legends[0] = ConfigurationsKeys.GREEN;
    legends[3] = ConfigurationsKeys.YELLOW;
    }
    }
    return legends;
    }
    };

    request.setAttribute("barGraphData",dspBarGraphData);

    Error given by the websphere is

    [3/1/06 10:47:54:700 IST] 7ccc1117 WebGroup I SRVE0181I: [Struts Blank Application] [/CD] [Servlet.LOG]: CewolfServlet: org/jfree/chart/axis/CategoryAxis3D: java.lang.NoClassDefFoundError: org/jfree/chart/axis/CategoryAxis3D
    at org.jfree.chart.ChartFactory.createStackedBarChart3D(ChartFactory.java:797)
    at de.laures.cewolf.taglib.CewolfChartFactory.getChartInstance(CewolfChartFactory.java:111)
    at de.laures.cewolf.taglib.SimpleChartDefinition.produceChart(SimpleChartDefinition.java:30)
    at de.laures.cewolf.taglib.AbstractChartDefinition.getChart(AbstractChartDefinition.java:121)
    at de.laures.cewolf.taglib.ChartImageDefinition.ensureRendered(ChartImageDefinition.java:137)
    at de.laures.cewolf.taglib.ChartImageDefinition.getSize(ChartImageDefinition.java:146)
    at de.laures.cewolf.CewolfRenderer.doGet(CewolfRenderer.java:144)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

    [3/1/06 10:47:54:710 IST] 7ccc1117 WebGroup E SRVE0026E: [Servlet Error]-[java/awt/Font]: java.lang.NoClassDefFoundError: java/awt/Font
    at sun.java2d.SunGraphicsEnvironment.createGraphics(SunGraphicsEnvironment.java:320)
    at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1073)
    at java.awt.image.BufferedImage.getGraphics(BufferedImage.java:1061)
    at de.laures.cewolf.util.RenderingHelper.renderException(RenderingHelper.java:64)
    at de.laures.cewolf.CewolfRenderer.logAndRenderException(CewolfRenderer.java:198)
    at de.laures.cewolf.CewolfRenderer.doGet(CewolfRenderer.java:158)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:443)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)