We use JFreeChart.  http://www.jfree.org/jfreechart/


----- Original Message ----
From: Rob Lockstone <[EMAIL PROTECTED]>
To: Caucho Resin <resin-interest@caucho.com>
Sent: Friday, August 15, 2008 5:46:20 PM
Subject: [Resin-interest] 3.1.6 Pro and JpGraph

I went looking for a simple graphing package today and found JpGraph  
(PHP5 v2.3.3) <http://www.aditus.nu/jpgraph/>. Seeing that it was PHP,  
I thought to myself, "Cool! I'll be able to use this with Resin's  
Quercus/PHP Engine." Which is something I haven't yet had an  
opportunity to play with.

So I downloaded JpGraph, got everything set up, and then tried to run  
my first test, conveniently named "example0.php", only to see:

500 Servlet Exception

[show] java.lang.NullPointerException

     at com.caucho.quercus.lib.ImageModule 
[...rest of stack trace deleted...]

A quick search for the error reveals:


Which is fixed, but only in the 3.2 development branch. That kind of  
sucks. :-(  We're running a shop with a 100 server Pro license serving  
tens of millions of hits per day and can't afford to run a development  
branch of resin. So my questions are:

1. Anyone know of a decent graphing package that I can use with Resin  
3.1.6 Pro (standalone, no apache or IIS front-end)? I just need to be  
able to grab some stats from a database and create some simple graphs  
(line, pie, bar, simple stuff). I don't care if it's PHP, but I'd  
rather not write an applet to do it.

2. I know that the 3.1.x branch is closed to new features. But  
couldn't this be classified as a bug in Quercus? I don't know how  
complex the fix was, but if it could be ported back into 3.1.7, that  
would be very helpful.


resin-interest mailing list


resin-interest mailing list

Reply via email to