Hi, I placed the the exact same Chart.java from http://wiki.apache.org/tapestry/Tapestry5HowToCreateGenericGraphComponent under the package 'com.mycompany.myproject.webapp.components'. My tapestry version is 5.1.0.5. And I use jfreechart 1.0.12.
here is my \src\main\webapp\reports\LineChartPage.tml; <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"> <body> <h1>Line Chart</h1> <t:chart width="200" height="150" chart="lineChart"/> </body> </html> And below is the LineChartPage.java under package com.mycompany.myproject.webapp.pages.reports; public class LineChartPage { public JFreeChart getLineChart() { XYSeries series = new XYSeries("Average Size"); series.add(20.0, 10.0); series.add(40.0, 20.0); series.add(70.0, 50.0); XYDataset xyDataset = new XYSeriesCollection(series); final JFreeChart chart = ChartFactory.createXYLineChart ("Sample XY Chart", // Title "Height", // X-Axis label "Weight", // Y-Axis label xyDataset, // Dataset PlotOrientation.HORIZONTAL, true, // Show legend true, // Tooltips true // Urls ); return chart; } } Everything seems to be right but I get the exception; 20:39:44,240 ERROR [RequestExceptionHandler] Processing of request failed with uncaught exception: Sanity check - neither a stream response nor a redirect response was generated for this action request. java.lang.IllegalStateException: Sanity check - neither a stream response nor a redirect response was generated for this action request. at org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:63) at $ComponentEventRequestHandler_12a675b8084.handle($ComponentEventRequestHandler_12a675b8084.java) at org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42) at $ComponentEventRequestHandler_12a675b8084.handle($ComponentEventRequestHandler_12a675b8084.java) at org.apache.tapestry5.upload.internal.services.UploadExceptionFilter.handle(UploadExceptionFilter.java:75) at $ComponentEventRequestHandler_12a675b8084.handle($ComponentEventRequestHandler_12a675b8084.java) at org.apache.tapestry5.services.TapestryModule$36.handle(TapestryModule.java:2164) at $ComponentEventRequestHandler_12a675b8084.handle($ComponentEventRequestHandler_12a675b8084.java) at $ComponentEventRequestHandler_12a675b7fca.handle($ComponentEventRequestHandler_12a675b7fca.java) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43) -----Original Message----- From: Chuck Kring [mailto:cjkr...@pacbell.net] Sent: Tuesday, August 10, 2010 8:28 PM To: users@tapestry.apache.org Subject: Re: Stream redirection problem when using JFreeChart with Tapestry Hi. I use JfreeChart extensively with T 5.0.1.5 and I'm very happy with it. Most likely your exception is caused by a bug in your .tml or the underlying class. If you could reduce the template and the class to the minimum size that still shows the bug and post both to a follow up email, somebody on the list will probably be able to help you. Chuck On 8/10/2010 2:10 AM, Ruksen Inanir wrote: > Hi, > I want to display a line-chart for my application. I tested > chenille-kit chart component it worked quite good, but it does not > support Dates on the x-axis. I want to to draw time-series on the > chart. So I decided to use JFreeChart. The link > http://wiki.apache.org/tapestry/Tapestry5HowToCreateGenericGraphCompon > ent describes the usage of JFreeChart with Tapestry. I used to code as > it is, I put the Chart.java under components package, Prepared the > LineChartPage.java and LineChartPage.tml. The page rendered, displayed > but the chart is not displayed. When I look at the Jboss console I saw > the "neither a stream response nor a redirect response was generated > for this action request." exception; > > [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandler] > Processing of request failed with uncaught exception: Sanity check - neither > a stream response nor a redirect response was generated for this action > request. > java.lang.IllegalStateException: Sanity check - neither a stream response nor > a redirect response was generated for this action request. > at > org.apache.tapestry5.internal.services.ImmediateActionRenderResponseFilter.handle(ImmediateActionRenderResponseFilter.java:63) > at > $ComponentEventRequestHandler_12a5b36106e.handle($ComponentEventRequestHandler_12a5b36106e.java) > at > org.apache.tapestry5.internal.services.AjaxFilter.handle(AjaxFilter.java:42) > at > $ComponentEventRequestHandler_12a5b36106e.handle($ComponentEventRequestHandler_12a5b36106e.java) > at > org.apache.tapestry5.upload.internal.services.UploadExceptionFilter.handle(UploadExceptionFilter.java:75) > at > $ComponentEventRequestHandler_12a5b36106e.handle($ComponentEventRequestHandler_12a5b36106e.java) > at > org.apache.tapestry5.services.TapestryModule$36.handle(TapestryModule.java:2164) > at > $ComponentEventRequestHandler_12a5b36106e.handle($ComponentEventRequestHandler_12a5b36106e.java) > at > $ComponentEventRequestHandler_12a5b361006.handle($ComponentEventRequestHandler_12a5b361006.java) > at > org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handleComponentEvent(ComponentRequestHandlerTerminator.java:43) > at > $ComponentRequestHandler_12a5b360ff8.handleComponentEvent($ComponentRequestHandler_12a5b360ff8.java) > at > org.apache.tapestry5.internal.services.ComponentEventDispatcher.dispat > ch(ComponentEventDispatcher.java:46) > > Did anyone encountered this exception? Or do you have any idea of the cause? > Or a better solution to display time-series charts, which contain time > information on x-axis. > > Regars, > Ruksen > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org