Changes from svg to png do not apply

I had an SVG, I changed it and created a gradient.

Then I converted it to a PNG, but the gradient is not in the new PNG.

I tried to convert the SVG to PNG with an internet converter, but the gradient is still not forwarded.

When I open SVG with Illustrator, I can not see the gradient. In the preview of the SVG I can see the color gradient.

I get the following error: org.apache.batik.bridge.BridgeException The attribute & # 39; d & # 39; of the element is invalid.

My question is:

If someone has found this or similar error or has an idea how to fix it, can you give me some advice on how to fix it?

My converter:

public void svgToPng () throws MalformedURLException {

String svg = "/ Users / userName / svg /";
File Folder = New File (svg);

for (file fileEntry: folder.listFiles ()) {

string[] codeAux = fileEntry.getName (). split ("\.");

if (codeAux[0].isEmpty ()) {

LOGGER.debug ("name of file is empty");

} else {
tries {

PNG Transcoder Transcoder = new PNG Transcoder ();

String svgURI = fileEntry.toURI (). ToURL (). ToString ();
Transcoder input input = new transcoder input (svgURI);

String outputPath = "/ Users / userName / png /";

OutputStream ostream = new FileOutputStream (outputPath + codigoAux[0] + ".png");
TranscoderOutput output = new TranscoderOutput (ostream);

transcoder.transcode (input, output);

ostream.flush ();
ostream.close ();

} catch (TranscoderException ex) {

LOGGER.error (ex);

} catch (IOException ex) {

LOGGER.error (ex);





And here is my path element:

The expected result is a PNG with the gradient.