[ https://issues.apache.org/jira/browse/BATIK-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chandra Sekhar Kakarla updated BATIK-1128: ------------------------------------------ Description: Facing issue while using Batik 1.8(SVG to PNG Conversion using java) and converting image from svg to png. bq. Not sure what is the issue with NamedProfileCache classes initialization My code is like below: {code} ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); Reader stringReader = new StringReader(svgContent); TranscoderInput inputSvgImage = new TranscoderInput(stringReader); TranscoderOutput outputPngImage = new TranscoderOutput(byteArrayOutputStream); PNGTranscoder pngTranscoder = new PNGTranscoder(); pngTranscoder.transcode(inputSvgImage , outputPngImage); {code} Getting below errow message while converting from SVG to PNG: {code}java.lang.NoClassDefFoundError: Could not initialize class org.apache.batik.ext.awt.color.NamedProfileCache{code} Please let me know what should we need to do to make it work properly... was: Facing issue while using Batik 1.7(SVG to PNG Conversion using java) and YUI Compressor 2.4.7 together causing build failure issue. bq. Not sure any dependency conflicts with the jars. (YUICompressor and Batik-js calling package structure *org.mozilla.javascript* ) {code} [yuicompress] 1:0:Compilation produced 8 syntax errors. org.mozilla.javascript.EvaluatorException: Compilation produced 8 syntax errors. at com.yahoo.platform.yui.compressor.YUICompressTask$1.runtimeError(YUIC ompressTask.java:225) at org.mozilla.javascript.Parser.parse(Unknown Source) at org.mozilla.javascript.Parser.parse(Unknown Source) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScri ptCompressor.java:312) at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScr iptCompressor.java:533) at com.yahoo.platform.yui.compressor.YUICompressTask.doCompression(YUICo mpressTask.java:202) at com.yahoo.platform.yui.compressor.YUICompressTask.execute(YUICompress Task.java:101) {code} bq. By using Batik 1.8 svg to png converstion itself is not working, getting below issues.. {code}java.lang.NoClassDefFoundError: Could not initialize class org.apache.batik.ext.awt.color.NamedProfileCache{code} {code} Exception : java.lang.NoSuchMethodError: org.apache.batik.util.SoftReferenceCache.<init>(Z)V {code} Please let me know what should I need to do to make it work properly... > NoClassDefFoundError Could not initialize class > org.apache.batik.ext.awt.color.NamedProfileCache > ------------------------------------------------------------------------------------------------ > > Key: BATIK-1128 > URL: https://issues.apache.org/jira/browse/BATIK-1128 > Project: Batik > Issue Type: Bug > Components: javadoc, Samples, Scripting, SVG DOM, Utilities > Affects Versions: 1.8 > Environment: Windows7, Maven 3.0, Batik 1.8 > Reporter: Chandra Sekhar Kakarla > Priority: Blocker > Labels: batik, java, png, svg > Original Estimate: 168h > Remaining Estimate: 168h > > Facing issue while using Batik 1.8(SVG to PNG Conversion using java) and > converting image from svg to png. > bq. Not sure what is the issue with NamedProfileCache classes initialization > My code is like below: > {code} > ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(); > Reader stringReader = new StringReader(svgContent); > TranscoderInput inputSvgImage = new TranscoderInput(stringReader); > > TranscoderOutput outputPngImage = new > TranscoderOutput(byteArrayOutputStream); > PNGTranscoder pngTranscoder = new PNGTranscoder(); > pngTranscoder.transcode(inputSvgImage , outputPngImage); {code} > Getting below errow message while converting from SVG to PNG: > {code}java.lang.NoClassDefFoundError: Could not initialize class > org.apache.batik.ext.awt.color.NamedProfileCache{code} > Please let me know what should we need to do to make it work properly... -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org