Quantcast

Image Parsing Exception with Rendering Plugin

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Image Parsing Exception with Rendering Plugin

PaulWaldo
Hi all,

I'm trying to create a PDF out of a page that I am rendering.  The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5.  The page renders to the browser just fine, but when I try to create a PDF I get this error:
Class
org.xml.sax.SAXParseException
Message
The reference to entity "chd" must end with the ';' delimiter.

I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer:

<img src="http://localhost:8080/MyClass/chart?
chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" />

In the GSP, I'm calling the chart thusly:
               
<g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>

Any ideas on how I can keep the SAX parser from barfing on the image?  Thanks in advance!

Paul
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Image Parsing Exception with Rendering Plugin

bdrhoa
Did you ever get this to work? What's the secret?

Thanks!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Image Parsing Exception with Rendering Plugin

bdrhoa
Here's the original question that reported the same problem I'm having:

Hi all, 

I'm trying to create a PDF out of a page that I am rendering.  The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5.  The page renders to the browser just fine, but when I try to create a PDF I get this error: 
Class
org.xml.sax.SAXParseException 
Message
The reference to entity "chd" must end with the ';' delimiter. 

I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer: 

<img src="<a href="http://localhost:8080/MyClass/chart?
chs=400x200&amp;chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&amp;chtt=Weights&amp;chl=2012-02-19">http://localhost:8080/MyClass/chart?
chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" />

In the GSP, I'm calling the chart thusly: 
               
<g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>

Any ideas on how I can keep the SAX parser from barfing on the image?  Thanks in advance! 

Paul 

---------------------------
www.maf.org/rhoads
www.ontherhoads.org


On Sat, Jun 30, 2012 at 2:55 PM, bdrhoa <[hidden email]> wrote:
Did you ever get this to work? What's the secret?

Thanks!

--
View this message in context: http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630913.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Image Parsing Exception with Rendering Plugin

PaulWaldo
Sorry, never had any resolution. I gave up on google charts anyway, because I didn't want to be reliant on a third party.  

Sent from my iPhone

On Jun 30, 2012, at 6:51 PM, "bdrhoa [via Grails]" <[hidden email]> wrote:

Here's the original question that reported the same problem I'm having:

Hi all, 

I'm trying to create a PDF out of a page that I am rendering.  The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5.  The page renders to the browser just fine, but when I try to create a PDF I get this error: 
Class
org.xml.sax.SAXParseException 
Message
The reference to entity "chd" must end with the ';' delimiter. 

I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer: 

<img src="<a href="http://localhost:8080/MyClass/chart?
chs=400x200&amp;chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&amp;chtt=Weights&amp;chl=2012-02-19">http://localhost:8080/MyClass/chart?
chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" />

In the GSP, I'm calling the chart thusly: 
               
<g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>

Any ideas on how I can keep the SAX parser from barfing on the image?  Thanks in advance! 

Paul 

---------------------------
www.maf.org/rhoads
www.ontherhoads.org


On Sat, Jun 30, 2012 at 2:55 PM, bdrhoa <[hidden email]> wrote:
Did you ever get this to work? What's the secret?

Thanks!

--
View this message in context: http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630913.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email






If you reply to this email, your message will be added to the discussion below:
http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630914.html
To unsubscribe from Image Parsing Exception with Rendering Plugin, click here.
NAML
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Image Parsing Exception with Rendering Plugin

bdrhoa
Did you find any server side charting solution?
---------------------------
www.maf.org/rhoads
www.ontherhoads.org


On Sun, Jul 1, 2012 at 10:34 AM, PaulWaldo <[hidden email]> wrote:
Sorry, never had any resolution. I gave up on google charts anyway, because I didn't want to be reliant on a third party.  

Sent from my iPhone

On Jun 30, 2012, at 6:51 PM, "bdrhoa [via Grails]" <[hidden email]> wrote:

Here's the original question that reported the same problem I'm having:

Hi all, 

I'm trying to create a PDF out of a page that I am rendering.  The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5.  The page renders to the browser just fine, but when I try to create a PDF I get this error: 
Class
org.xml.sax.SAXParseException 
Message
The reference to entity "chd" must end with the ';' delimiter. 

I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer: 

<img src="<a href="http://localhost:8080/MyClass/chart?
chs=400x200&amp;chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&amp;chtt=Weights&amp;chl=2012-02-19">http://localhost:8080/MyClass/chart?
chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" />

In the GSP, I'm calling the chart thusly: 
               
<g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>

Any ideas on how I can keep the SAX parser from barfing on the image?  Thanks in advance! 

Paul 

---------------------------
www.maf.org/rhoads
www.ontherhoads.org



On Sat, Jun 30, 2012 at 2:55 PM, bdrhoa <[hidden email]> wrote:
Did you ever get this to work? What's the secret?

Thanks!

--
View this message in context: http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630913.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email






If you reply to this email, your message will be added to the discussion below:
http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630914.html
To unsubscribe from Image Parsing Exception with Rendering Plugin, click here.
NAML


View this message in context: Re: Image Parsing Exception with Rendering Plugin

Sent from the Grails - user mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Image Parsing Exception with Rendering Plugin

wwwclaes
In reply to this post by bdrhoa
I believe the Rendering plugin uses XHTMLRenderer underneath, so I think the ampersands may cause your problem:

http://java.net/projects/xhtmlrenderer/lists/users/archive/2008-03/message/25

/Claes


Date: Sat, 30 Jun 2012 16:49:36 -0600
From: [hidden email]
To: [hidden email]
Subject: Re: [grails-user] Re: Image Parsing Exception with Rendering Plugin

Here's the original question that reported the same problem I'm having:

Hi all, 

I'm trying to create a PDF out of a page that I am rendering.  The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5.  The page renders to the browser just fine, but when I try to create a PDF I get this error: 
Class
org.xml.sax.SAXParseException 
Message
The reference to entity "chd" must end with the ';' delimiter. 

I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer: 

<img src="http://localhost:8080/MyClass/chart?
chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" />

In the GSP, I'm calling the chart thusly: 
               
<g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>

Any ideas on how I can keep the SAX parser from barfing on the image?  Thanks in advance! 

Paul 

---------------------------
www.maf.org/rhoads
www.ontherhoads.org


On Sat, Jun 30, 2012 at 2:55 PM, bdrhoa <[hidden email]> wrote:
Did you ever get this to work? What's the secret?

Thanks!

--
View this message in context: http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630913.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Image Parsing Exception with Rendering Plugin

PaulWaldo
In reply to this post by bdrhoa
I'm current looking at BIRT (http://www.eclipse.org/birt/phoenix/intro/) It looks very promising!

On Mon, Jul 2, 2012 at 12:22 AM, bdrhoa [via Grails] <[hidden email]> wrote:
Did you find any server side charting solution?
---------------------------
www.maf.org/rhoads
www.ontherhoads.org


On Sun, Jul 1, 2012 at 10:34 AM, PaulWaldo <[hidden email]> wrote:
Sorry, never had any resolution. I gave up on google charts anyway, because I didn't want to be reliant on a third party.  

Sent from my iPhone

On Jun 30, 2012, at 6:51 PM, "bdrhoa [via Grails]" <[hidden email]> wrote:

Here's the original question that reported the same problem I'm having:

Hi all, 

I'm trying to create a PDF out of a page that I am rendering.  The page contains some charts using google-chart-0.5.2 and eastwood-chart-0.5.  The page renders to the browser just fine, but when I try to create a PDF I get this error: 
Class
org.xml.sax.SAXParseException 
Message
The reference to entity "chd" must end with the ';' delimiter. 

I think the reason for this is that the HTML to create the image contains "chd" as a parameter to the chart renderer: 

<img src="<a href="http://localhost:8080/MyClass/chart?
chs=400x200&amp;chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&amp;chtt=Weights&amp;chl=2012-02-19">http://localhost:8080/MyClass/chart?
chs=400x200&chd=t:154.00,150.00,152.00,164.00,162.00,156.00,168.00,160.00,166.00,158.00&chtt=Weights&chl=2012-02-19 15:40:13.844|2012-02-05 15:40:13.844|2012-02-12 15:40:13.844|2012-03-25 15:40:13.844|2012-03-18 15:40:13.844|2012-02-26 15:40:13.844|2012-04-08 15:40:13.844|2012-03-11 15:40:13.844|2012-04-01 15:40:13.844|2012-03-04 15:40:13.844&cht=p3" />

In the GSP, I'm calling the chart thusly: 
               
<g:pieChart type="3d" title="Weights" labels="${labels}" dataType="text" data="${data}"/>

Any ideas on how I can keep the SAX parser from barfing on the image?  Thanks in advance! 

Paul 

---------------------------
www.maf.org/rhoads
www.ontherhoads.org



On Sat, Jun 30, 2012 at 2:55 PM, bdrhoa <[hidden email]> wrote:
Did you ever get this to work? What's the secret?

Thanks!

--
View this message in context: http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630913.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email






If you reply to this email, your message will be added to the discussion below:
http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630914.html
To unsubscribe from Image Parsing Exception with Rendering Plugin, click here.
NAML


View this message in context: Re: Image Parsing Exception with Rendering Plugin

Sent from the Grails - user mailing list archive at Nabble.com.




If you reply to this email, your message will be added to the discussion below:
http://grails.1312388.n4.nabble.com/Image-Parsing-Exception-with-Rendering-Plugin-tp4359824p4630926.html
To unsubscribe from Image Parsing Exception with Rendering Plugin, click here.
NAML



--
Paul Waldo
http://paulwaldo.com

Loading...