File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes IllegalStateException: Metadata is read-only Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "IllegalStateException: Metadata is read-only" Watch "IllegalStateException: Metadata is read-only" New topic

IllegalStateException: Metadata is read-only

Luis Oliveira

Joined: Jun 04, 2012
Posts: 6
Hi all.

I'm getting an exception on this instruction:

The exception is as follow:

This exception start to show after a migration from Jboss 4 to jboss 7 and a change in JDK from 1.5 to 1.7.

Is this exception familiar to anyone?
Stephan van Hulst

Joined: Sep 20, 2010
Posts: 4627

Hi Luis.

You're not giving us much to work with. We don't even know the type of meta. Please take a look here: HowToAskQuestionsOnJavaRanch.

The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.
Luis Oliveira

Joined: Jun 04, 2012
Posts: 6
Ok ok, sorry, I will try to give a little more info.

I'm trying to change a bmp image. Like I said before, this was working code, until I migrate it to a new server.

The error happens on this function:

The metadata comes from the image which I'm trying to change:

Really thanks
I agree. Here's the link:
subject: IllegalStateException: Metadata is read-only
It's not a secret anymore!