It's not a secret anymore!
The moose likes Beginning Java and the fly likes UnsupportedOperationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "UnsupportedOperationException" Watch "UnsupportedOperationException" New topic


Joey Alencar
Ranch Hand

Joined: Jun 26, 2001
Posts: 43
Hi, what could cause this exception?
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
It means that whatever it is you're trying to do isn't supported by whatever you're trying to do it to.
What are you doing when it happens?
Try to catch it and then print the stack trace and the message from the exception.
If that doesn't help you out, post the results here and we'll give it a shot.

Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Hello Joey,
Tip: A lot of great information can be gleaned from The API Specification
(Just in case you hadn't run across it yet.)
Good Luck.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
I agree. Here's the link:
subject: UnsupportedOperationException
It's not a secret anymore!