Invalid argument to native writeImage Finished invalidation session. No sessions were stopped.

异常信息

Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6bef3b3]
18:35:48.398 [schedule-pool-2] INFO  c.r.f.s.w.s.OnlineWebSessionManager - [validateSessions,159] - Finished invalidation session. No sessions were stopped.
18:35:48.559 [https-jsse-nio-443-exec-4] ERROR c.r.f.w.e.GlobalExceptionHandler - [handleException,73] - Invalid argument to native writeImage
javax.imageio.IIOException: Invalid argument to native writeImage

网上有说判断文件名后缀 之类的方法,但如果你使用了:**ImageIO.write()**这个方法 我希望你检查下你所用的jdk是
oracle JDk 还是OpenJdk 换句话说该方法是jdk的扩展包rt.jar里所包含的
在openjdk默认是没有rt.jar的

解决方式:
到了这里相信不用说也知道怎么解决了吧

1.使用OracleJdk
2.对你的openjdk引入rt.jar

你可能感兴趣的:(Invalid argument to native writeImage Finished invalidation session. No sessions were stopped.)