整合ActicitiModeler成功后,保存模型出现如下错误
Unexpected error: could not save model
后台报错
org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: Could not write PNG file because no WriteAdapter is availble at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:132) ~[batik-transcoder-1.9.1.jar:na] at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142) ~[batik-transcoder-1.9.1.jar:na] at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156) ~[batik-transcoder-1.9.1.jar:na]
原来是缺少batik包,尤其是batik-codec
加入如下依赖即可解决
compile group: 'org.apache.xmlgraphics', name: 'batik-codec', version: '1.7' compile group: 'org.apache.xmlgraphics', name: 'batik-css', version: '1.7' compile group: 'org.apache.xmlgraphics', name: 'batik-svg-dom', version: '1.7' compile group: 'org.apache.xmlgraphics', name: 'batik-svggen', version: '1.7'
爆款云服务器s6 2核4G 低至0.46/天,具体规则查看活动详情