Re: Error



Andrew, all my classes are serializable so I don't understand why it is doing
this.

In line 29 I am writing the object to an objectoutputstream.

Any comments gratefully appreciated.

Thank you.

..

Andrew Thompson wrote:
>> Can anyone comment on this error message ?
>
>Technically, it is an exception message, if you tried to 'catch'
>an Exception only, it would fail to catch an Error.
>
>> All classes currently implement Serializable.
>
>Not according to your exception message..
>
>> java.io.NotSerializableException: sun.awt.image.OffScreenImage
>
><http://jsourcery.com/output/sun/j2se/j2sdk/1.4.2_04/sun/awt/image/OffScreenImage.html>
>
>"All Implemented Interfaces:
> RenderedImage, WritableRenderedImage "
>
>> at ObjectHandler.saveObject(ObjectHandler.java:29)
>..
>What are you doing at line 29 of ObjectHandler?
>

--
Message posted via http://www.javakb.com
.



Relevant Pages

  • RE: MailMessage-Object error - net 1.1 , VS 2003
    ... According to this error message, I've performed some research, it seems ... this exception message is quite general (may be raised by different kind of ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework)
  • Re: Evaluating Exceptions, Try Except and Try Finally
    ... >> nearly everything in a normal program. ... By default, an error message ... exception message. ...
    (alt.comp.lang.borland-delphi)
  • new to debug... howto save debug to file
    ... with an exception message. ... (telling me somthing about JIT... ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Exception message problem
    ... When my app raises an exception I get the following exception message ... "An error message cannot be displayed because an optional resource ... So where can I find this "optional resource assembly"? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: List user group in my pc
    ... My OS is not English version, I will try to translate the error message. ... Please post the exception message and possibly your code. ...
    (microsoft.public.dotnet.languages.csharp)