[jira] [Commented] (BATIK-1128) NoClassDefFoundError Could not initialize class org.apache.batik.ext.awt.color.NamedProfileCache

"simon steiner (JIRA)" <[email protected]>
Newsgroups gmane.text.xml.batik.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/BATIK-1128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16171584#comment-16171584 ] 

simon steiner commented on BATIK-1128:
--------------------------------------

Try using:
 <dependency>
  <groupId>org.apache.xmlgraphics</groupId>
  <artifactId>batik-rasterizer</artifactId>
  <version>1.8</version>
</dependency>	
  <dependency>
  <groupId>org.apache.xmlgraphics</groupId>
  <artifactId>xmlgraphics-commons</artifactId>
  <version>2.2</version>
</dependency> 

 <dependency>
  <groupId>org.apache.xmlgraphics</groupId>
  <artifactId>batik-codec</artifactId>
  <version>1.8</version>
</dependency> 

> 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}
> Maven Dependencies used:
> {code} <dependency>
>   <groupId>org.apache.xmlgraphics</groupId>
>   <artifactId>batik-transcoder</artifactId>
>   <version>1.8</version>
> </dependency>	
> <dependency>
>   <groupId>org.apache.xmlgraphics</groupId>
>   <artifactId>batik-codec</artifactId>
>   <version>1.8</version>
> </dependency> {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.4.14#64029)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.