[jira] [Commented] (BATIK-1181) JDK URL is corrupt or unsupported variant

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (BATIK-1181) JDK URL is corrupt or unsupported variant

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/BATIK-1181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15936883#comment-15936883 ]

jeffrey thomas commented on BATIK-1181:
---------------------------------------

I made a few more attempts debugging. All i can conclude that when looking in the image cache there seems to be an empty DeferRable object. Don't understand when this gets added. Which thread works in the background. I could be on a completely wrong path too. Hope someone here can help. Thanks.

> JDK URL is corrupt or unsupported variant
> -----------------------------------------
>
>                 Key: BATIK-1181
>                 URL: https://issues.apache.org/jira/browse/BATIK-1181
>             Project: Batik
>          Issue Type: Bug
>    Affects Versions: 1.8
>         Environment: osx
>            Reporter: jeffrey thomas
>         Attachments: c1_bldg_janrges.svg
>
>
> I'm using the PNGTranscoder object to try to convert a few svg images to png. For a some images i am getting error similar to below:
> {code}
> org.apache.batik.bridge.BridgeException: null:0
> The URI "https://embassysuites3.hilton.com/skins/en_US/ES/img/floorplans/icon-elevator.svg"
> on element <image> can't be opened because:
> JDK URL is corrupt or unsupported variant
> at org.apache.batik.bridge.UserAgentAdapter.getBrokenLinkDocument(UserAgentAdapter.java:448)
> at org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(SVGImageElementBridge.java:643)
> at org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(SVGImageElementBridge.java:340)
> at org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(SVGImageElementBridge.java:180)
> at org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(SVGImageElementBridge.java:122)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:213)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
> at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:208)
> at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:92)
> at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
> at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
> at com.hilton.hms.efp.render.floorplan.FloorPlanRenderTask.renderFloorPlanFile(FloorPlanRenderTask.java:162)
> at com.hilton.hms.efp.render.floorplan.FloorPlanRenderTask.call(FloorPlanRenderTask.java:118)
> at com.hilton.hms.efp.render.floorplan.FloorPlanRenderTask.call(FloorPlanRenderTask.java:26)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> org.apache.batik.bridge.BridgeException: null:0
> {code}
> I then tried to use the batik rasterizer as follows:
> java -jar ../batik-1.8/batik-rasterizer-1.8.jar c1_bldg_janrges.svg and was getting the same error:
> {code}
> About to transcode 1 SVG file(s)
> Converting c1_bldg_janrges.svg to c1_bldg_janrges.png ... org.apache.batik.bridge.BridgeException: file:/Users/jeffreypthomas/Projects/misc/batik-1.8/svg_test/c1_bldg_janrges.svg:0
> The URI "https://embassysuites3.hilton.com/skins/en_US/ES/img/floorplans/icon-elevator.svg"
> on element <image> can't be opened because:
> JDK URL is corrupt or unsupported variant
> at org.apache.batik.bridge.UserAgentAdapter.getBrokenLinkDocument(UserAgentAdapter.java:448)
> at org.apache.batik.bridge.SVGImageElementBridge.createRasterImageNode(SVGImageElementBridge.java:643)
> at org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(SVGImageElementBridge.java:340)
> at org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(SVGImageElementBridge.java:180)
> at org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(SVGImageElementBridge.java:122)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:213)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
> at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
> at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
> at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:208)
> at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:92)
> 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)
> org.apache.batik.transcoder.TranscoderException: null
> Enclosed Exception:
> file:/Users/jeffreypthomas/Projects/misc/batik-1.8/svg_test/c1_bldg_janrges.svg:0
> The URI "https://embassysuites3.hilton.com/skins/en_US/ES/img/floorplans/icon-elevator.svg"
> on element <image> can't be opened because:
> JDK URL is corrupt or unsupported variant
> at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:227)
> at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:92)
> 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)
> ... error (SVGConverter.error.while.rasterizing.file)
> {code}
> I tried to debug to figure out the code but could not still explain the cause. Attached the svg image here that i can reproduce the issue.
> Noticed another similar ticket BATIK-650. Tried to increase memory as described here. This did not solve the issue.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]