Exceptions during export with color gradients

0 votes
asked Oct 11, 2017 in Bug by Dresaan (810 points)
I found some more exceptions with gradients. It might be the same problem as here:

http://plantuml.sourceforge.net/qa/?qa=6481/exceptions-during-export-with-color-gradients

This time, the exception message is inserted into the exported file. The export doesn't fail.

The result looks like this:

\node at (5pt,5pt)[below right,color=black]{An error has occured : java.lang.ClassCastException: net.sourceforge.plantuml.graphic.HtmlColorGradient cannot be cast to net.sourceforge.plantuml.graphic.HtmlColorSimple};
\node at (5pt,20.2109pt)[below right,color=black]{If I cannot bring you comfort then at least I bring you hope};
\node at (5pt,35.4219pt)[below right,color=black]{ };
\node at (5pt,50.6328pt)[below right,color=black]{Diagram size: 17 lines / 168 characters.};
\node at (5pt,65.8438pt)[below right,color=black]{ };
\node at (5pt,81.0547pt)[below right,color=black]{PlantUML (1.2017.19beta3) cannot parse result from dot/GraphViz.};
\node at (5pt,96.2656pt)[below right,color=black]{ };

....

 

The exception was created with this diagram:

@startuml
skinparam package{
    BackgroundColor red-green
    packageStyle Rectangle    
}
namespace DefaultNamespace {
}
@enduml

1 Answer

0 votes
answered Oct 11, 2017 by plantuml (194,950 points)
selected Oct 12, 2017 by Dresaan
 
Best answer
Thanks for the report : should be fixed in last beta (beta4)

https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

Regards,
commented Oct 12, 2017 by Dresaan (810 points)
Works fine. Thank you :-)
...