AbhinavKartrocket / googlechartwrapper

Automatically exported from code.google.com/p/googlechartwrapper
0 stars 0 forks source link

Love the wrapper - unfortunately won't work with GAE apps... #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I would guess that this is WAY too big for a issue, but just wanted to
deliver a heads-up that since Google App Engine doesn't whitelist the vast
majority of java.awt.*, and this library uses certain classes extensively
(Dimension, Color, etc), this library can't be used in a GAE environment. 
While it would be great if this library could be used without the AWT
classes, this is more to ask you to add your weight to the issues marked
"please whitelist java.awt.*" to the GAE forums...

To Reproduce:
Try to create any chart in a GAE environment

Original issue reported on code.google.com by bitb...@gmail.com on 29 Apr 2010 at 4:38

GoogleCodeExporter commented 8 years ago
Oops, meant to add that as an issue, not a defect.  Sorry!

Original comment by bitb...@gmail.com on 29 Apr 2010 at 4:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thank you for your feedback. We wanted to develop our own color class for a 
long 
time although not for the same reason. This issue highlighted the importance of 
it. 
Thus we introduced our "own" color and dimension class in the current revision. 
(trunk)

It would be great if you could test the current revision if it works in the 
mentioned environment. We still have methods referring to java.awt classes. 
However 
those are not necessary to use the api anymore but are retained for 
compatibility 
reasons. Unfortunately I’m not sure whether this is enough modification for 
the 
mentioned environment. In normal circumstances our modifications would generate 
runtime exceptions if the java.awt.* class is not available but a method using 
it is 
called. As you can avoid the usage now it should work.

Status changed to feedback needed.

Original comment by mart-...@gmx.net on 30 Apr 2010 at 7:02

GoogleCodeExporter commented 8 years ago

Original comment by mart-...@gmx.net on 30 Apr 2010 at 7:02

GoogleCodeExporter commented 8 years ago
Just tried it out (simple stuff, just a couple of pie charts) and the 
replacements 
for Dimension and Color seem to work fine!  I'll let you know if I run into 
anything, but it looks like that fixed it... dang, you guys are fast!  Thanks 
for 
your help

Original comment by bitb...@gmail.com on 2 May 2010 at 10:01

GoogleCodeExporter commented 8 years ago
Allright! Thank you.

(We still hope that more classes from the java.awt. package will be whitelisted 
for use in an GAE environment if they are useful to the development community.)

Original comment by mart-...@gmx.net on 11 Aug 2010 at 5:29