function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

error :System.SerializationException: Not Serializable: LIST:Messaging.Email

When I am sending a mail i am getting a this exception.

System. : Not Serializable: LIST:Messaging.Email

Class.SendMailController.getIsSignature: line 280, column 9

The getIsSignature method has no relation with mail

    public boolean getIsSignature ()
        return this.isSignature;
        catch(Exception ex)
        return null;

I don't know why this error triggers.
can anybody help me. Thanks in advance.

i am getting a very similar exception in a seemingly benign piece of code.


System.SerializationException: Not Serializable: System.XmlStreamWriter

Class.pageCon: line 32, column 13


      public String selectedPageType {
             if (selectedPageType == null) selectedPageType = 'detail';
             return selectedPageType;  // this is line 32


nevermind.  had to mark my XMLStreamWriter wrapper class variable as transient in my controller.  then it worked fine.