#StackBounty: #java #spring #spring-boot #svg #batik Unable to make sense of URL for connection reading a svg file

Bounty: 50

I have a Spring Boot v2.1.2.RELEASE application.
I have a file in ../src/main/resources/icons/128/black/ae.png

which I want to read, But I got an error: Unable to make sense of URL for connection

public class SvgManagerApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(SvgManagerApplication.class, args);

    public void run(String... args) throws Exception {      

        try {

            String parser = XMLResourceDescriptor.getXMLParserClassName();
            SAXSVGDocumentFactory f = new SAXSVGDocumentFactory(parser);
            Document doc = f.createDocument("classpath:icons/128/black/ae.svg");


        } catch (IOException ex) {



Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.