This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java in General and the fly likes closing ObjectOutputStream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "closing ObjectOutputStream" Watch "closing ObjectOutputStream" New topic

closing ObjectOutputStream

Mark Stein
Ranch Hand

Joined: May 20, 2002
Posts: 75
It may be because I've been staring at the screen too long, but I keep getting an compiler error telling me I haven't caught an IOException error with the following code:

Anyone see the problem?
Michael Morris
Ranch Hand

Joined: Jan 30, 2002
Posts: 3451
It's in your finally block on the close() calls.

Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: closing ObjectOutputStream
Similar Threads
Appending an object to a file does not work
serialization + no valid constructor
why StackOverflowError?
save an object
Exception in java