java не может записать transparent jpg. При разработке на винде все ок. А на сервере выдает ошибку.
Вот лог:
2015-08-23 15:01:26 INFO http-bio-80-exec-7 LogServiceImpl:write:87 - Log(id=null, action=ERROR, date=Sun Aug 23 15:01:26 MSK 2015, user=null, quest=null, organisation=null, office=null, remote=IP.IP.IP.IP, request=http://XXX.ru/api/XXX/XXX/2, referer=http://XXX.ru/admin/XXX/edit/2, data=[javax.imageio.IIOException] Invalid argument to native writeImage
[Ljava.lang.StackTraceElement;@31ec7995)
2015-08-23 15:01:50 ERROR http-bio-80-exec-5 GlobalExceptionHandler:DefaultExceptionHandler:29 - Invalid argument to native writeImage
2015-08-23 15:01:50 ERROR http-bio-80-exec-5 GlobalExceptionHandler:DefaultExceptionHandler:31 - com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeImage(Native Method)
2015-08-23 15:01:50 ERROR http-bio-80-exec-5 GlobalExceptionHandler:DefaultExceptionHandler:31 - com.sun.imageio.plugins.jpeg.JPEGImageWriter.writeOnThread(JPEGImageWriter.java:1058)
2015-08-23 15:01:50 ERROR http-bio-80-exec-5 GlobalExceptionHandler:DefaultExceptionHandler:31 - com.sun.imageio.plugins.jpeg.JPEGImageWriter.write(JPEGImageWriter.java:360)
2015-08-23 15:01:50 ERROR http-bio-80-exec-5 GlobalExceptionHandler:DefaultExceptionHandler:31 - javax.imageio.ImageWriter.write(ImageWriter.java:615)
2015-08-23 15:01:50 ERROR http-bio-80-exec-5 GlobalExceptionHandler:DefaultExceptionHandler:31 - javax.imageio.ImageIO.doWrite(ImageIO.java:1612)
2015-08-23 15:01:50 ERROR http-bio-80-exec-5 GlobalExceptionHandler:DefaultExceptionHandler:31 - javax.imageio.ImageIO.write(ImageIO.java:1536)
инфа о сервере:
$ java -version
java version "1.7.0_79"
OpenJDK Runtime Environment (IcedTea 2.5.5) (7u79-2.5.5-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
$ dpkg -l | grep tomcat
ii libtomcat7-java 7.0.56-3 all Servlet and JSP engine -- core libraries
ii tomcat7 7.0.56-3 all Servlet and JSP engine
ii tomcat7-admin 7.0.56-3 all Servlet and JSP engine -- admin web applications
ii tomcat7-common 7.0.56-3 all Servlet and JSP engine -- common files
ii tomcat7-docs 7.0.56-3 all Servlet and JSP engine -- documentation
ii tomcat7-examples 7.0.56-3 all Servlet and JSP engine -- example web applications
$ cat /etc/debian_version
8.1
Может какую либу-пакет доставить надо?
пишут, что: OpenJDK does not have a native JPEG encoder, try using Sun's JDK, or using a library (such as JAI