You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by Joan <jo...@gmail.com> on 2011/06/20 17:37:08 UTC

Error Java

Hi,

Have a problem on server RedHat:

java -jar public/batik/batik-rasterizer.jar -m image/jpeg -d
temp/1e65d70655eb4f5838d8f137e93e1ae4.jpg -w 800
temp/1e65d70655eb4f5838d8f137e93e1ae4.svg

About to transcode 1 SVG file(s)
 
Converting 1e65d70655eb4f5838d8f137e93e1ae4.svg to
temp/1e65d70655eb4f5838d8f137e93e1ae4.jpg ... Exception in thread "main"
java.lang.Error: not implemented
   at java.awt.font.TextLayout.getCharacterLevel(libgcj.so.7rh)
   at
org.apache.batik.gvt.text.BidiAttributedCharacterIterator.<init>(BidiAttributedCharacterIterator.java:128)
   at
org.apache.batik.gvt.renderer.StrokingTextPainter.computeTextRuns(StrokingTextPainter.java:219)
   at
org.apache.batik.gvt.renderer.StrokingTextPainter.getTextRuns(StrokingTextPainter.java:198)
   at
org.apache.batik.gvt.renderer.StrokingTextPainter.getBounds2D(StrokingTextPainter.java:1085)
   at org.apache.batik.gvt.TextNode.getPrimitiveBounds(TextNode.java:245)
   at
org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBounds(AbstractGraphicsNode.java:854)
   at
org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(AbstractGraphicsNode.java:820)
   at
org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(CompositeGraphicsNode.java:224)
   at
org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(CompositeGraphicsNode.java:295)
   at
org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(AbstractGraphicsNode.java:820)
   at
org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(CompositeGraphicsNode.java:207)
   at
org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.getBounds2D(GraphicsNodeRable8Bit.java:156)
   at
org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.createRendering(GraphicsNodeRable8Bit.java:261)
   at
org.apache.batik.gvt.renderer.StaticRenderer.renderGNR(StaticRenderer.java:481)
   at
org.apache.batik.gvt.renderer.StaticRenderer.updateWorkingBuffers(StaticRenderer.java:508)
   at
org.apache.batik.gvt.renderer.StaticRenderer.repaint(StaticRenderer.java:375)
   at
org.apache.batik.gvt.renderer.StaticRenderer.repaint(StaticRenderer.java:344)
   at
org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:111)
   at
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
   at
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
   at
org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:1001)
   at
org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:717)
   at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
   at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)

CAN YOU HELP ME????????

THANK's


--
View this message in context: http://batik.2283329.n4.nabble.com/Error-Java-tp3611706p3611706.html
Sent from the Batik - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Re: Error Java

Posted by jonathan wood <jo...@gmail.com>.
Hi Joan,

   This sounds like a problem with the character encoding.  I'm a bit out of
my element there, but you might try specifying a different encoding (utf-8
perhaps?).
  Since you are using the rasterizer, you may be limited to specifying the
encoding in the xml...

<?xml version="1.0" encoding="utf-8"?>



On Thu, Jun 23, 2011 at 6:55 AM, Joan <jo...@gmail.com> wrote:

> Thank you Jonathan!!! :D
>
> Another question, I do graphics with highchart, when convert with batik,
> batik doesn't convert because the graphics content accents (á,í,ó,ò, ....)
>
> Why??? any solution with accents????
>
> Thank!!!!
>
> --
> View this message in context:
> http://batik.2283329.n4.nabble.com/Error-Java-tp3611706p3619478.html
> Sent from the Batik - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
>
>

Re: Error Java

Posted by Joan <jo...@gmail.com>.
Thank you Jonathan!!! :D

Another question, I do graphics with highchart, when convert with batik,
batik doesn't convert because the graphics content accents (á,í,ó,ò, ....) 

Why??? any solution with accents????

Thank!!!!

--
View this message in context: http://batik.2283329.n4.nabble.com/Error-Java-tp3611706p3619478.html
Sent from the Batik - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org


Re: Error Java

Posted by jonathan wood <jo...@gmail.com>.
Hi Joan,

   You've likely encountered an unimplemented method in the stock gnu
implementation...

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24402

  I'd suggest you try another Java VM implemetation ... easiest and least
painful would likely be the Sun (Oracle) jdk/jre.  (http://java.sun.com)

   Using Redhat, you'll want the jdk*.bin instead of the jdk*.bin.rpm...be
sure to select the appropriate arch (64/32) or grab the 32 bit if unsure.

  OpenJDK or Apache's own Harmony may be interesting to you also.



On Mon, Jun 20, 2011 at 11:37 AM, Joan <jo...@gmail.com> wrote:

> Hi,
>
> Have a problem on server RedHat:
>
> java -jar public/batik/batik-rasterizer.jar -m image/jpeg -d
> temp/1e65d70655eb4f5838d8f137e93e1ae4.jpg -w 800
> temp/1e65d70655eb4f5838d8f137e93e1ae4.svg
>
> About to transcode 1 SVG file(s)
>
> Converting 1e65d70655eb4f5838d8f137e93e1ae4.svg to
> temp/1e65d70655eb4f5838d8f137e93e1ae4.jpg ... Exception in thread "main"
> java.lang.Error: not implemented
>   at java.awt.font.TextLayout.getCharacterLevel(libgcj.so.7rh)
>   at
>
> org.apache.batik.gvt.text.BidiAttributedCharacterIterator.<init>(BidiAttributedCharacterIterator.java:128)
>   at
>
> org.apache.batik.gvt.renderer.StrokingTextPainter.computeTextRuns(StrokingTextPainter.java:219)
>   at
>
> org.apache.batik.gvt.renderer.StrokingTextPainter.getTextRuns(StrokingTextPainter.java:198)
>   at
>
> org.apache.batik.gvt.renderer.StrokingTextPainter.getBounds2D(StrokingTextPainter.java:1085)
>   at org.apache.batik.gvt.TextNode.getPrimitiveBounds(TextNode.java:245)
>   at
>
> org.apache.batik.gvt.AbstractGraphicsNode.getTransformedPrimitiveBounds(AbstractGraphicsNode.java:854)
>   at
>
> org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(AbstractGraphicsNode.java:820)
>   at
>
> org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(CompositeGraphicsNode.java:224)
>   at
>
> org.apache.batik.gvt.CompositeGraphicsNode.getTransformedPrimitiveBounds(CompositeGraphicsNode.java:295)
>   at
>
> org.apache.batik.gvt.AbstractGraphicsNode.getTransformedBounds(AbstractGraphicsNode.java:820)
>   at
>
> org.apache.batik.gvt.CompositeGraphicsNode.getPrimitiveBounds(CompositeGraphicsNode.java:207)
>   at
>
> org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.getBounds2D(GraphicsNodeRable8Bit.java:156)
>   at
>
> org.apache.batik.gvt.filter.GraphicsNodeRable8Bit.createRendering(GraphicsNodeRable8Bit.java:261)
>   at
>
> org.apache.batik.gvt.renderer.StaticRenderer.renderGNR(StaticRenderer.java:481)
>   at
>
> org.apache.batik.gvt.renderer.StaticRenderer.updateWorkingBuffers(StaticRenderer.java:508)
>   at
>
> org.apache.batik.gvt.renderer.StaticRenderer.repaint(StaticRenderer.java:375)
>   at
>
> org.apache.batik.gvt.renderer.StaticRenderer.repaint(StaticRenderer.java:344)
>   at
>
> org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:111)
>   at
>
> org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
>   at
>
> org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
>   at
>
> org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:1001)
>   at
>
> org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:717)
>   at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
>   at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)
>
> CAN YOU HELP ME????????
>
> THANK's
>
>
> --
> View this message in context:
> http://batik.2283329.n4.nabble.com/Error-Java-tp3611706p3611706.html
> Sent from the Batik - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org
>
>