0

I'm using grails burning image plugin and it works fine on my Windows development environment and on the linux pre-production server. Unfortunately, the production server is a FreeBsd server based on openJDK 1.7.0_65.

When I want to upload a picture which is a '.jpg' or '.jpeg' file, I get a com.sun.image.codec.jpeg.ImageFormatException.

After looking on stackoverflow, I found these two posts which seem to say that I have to add -XDignore.symbol.file option launching the java compiler.

Source:

How can I add this option to my grails application?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
Snite
  • 85
  • 9

1 Answers1

-1

This sun package is not supported in OpenJDK. See these links for further reference:

Issue 28: fails under OpenJDK-7++

difference between Sun JDK and open JDK

Sadly, this renders the plugin virtually useless with OpenSDK's.

Edit: What I found as a solution is this plugin: hd-image-utils

Fair warning thou, it has problems working with CMYK images.

Community
  • 1
  • 1
petko
  • 153
  • 2
  • 14
  • Not implied from question. I could not find a workaround for this issue. Thought I share my experience and save others some time. – petko Nov 03 '15 at 15:22
  • Not enough reputation to comment on posts other than my own. If you find this exhaustive, please, remove your negative feedback. – petko Nov 05 '15 at 10:36
  • Looking more closely, I'm persuaded that your answer is indeed the only possible answer. I'll remove my other comments. I'm willing to upvote the answer, too, but I can't until it is edited. – Erick G. Hagstrom Nov 05 '15 at 13:17