Posted on 2006-03-22
Last Modified: 2008-01-09
i have this error, how can i resovled this:

Caused by: com.mysql.jdbc.Blob

this is the object class:

import java.sql.Blob;
import java.util.Date;

public class IncidentObject implements Serializable {

      public IncidentObject() {


      private Blob attachment;

      private Blob xml_parse_date;

       * @return Returns the attachment.
      public Blob getAttachment()   {
            return attachment;

       * @return Returns the xml_parse_date.
      public Blob getXml_parse_date() {
            return xml_parse_date;

Question by:poweranger77
    LVL 6

    Expert Comment

    can u post the complete stack trace ? i mean complete exception ?
    LVL 35

    Accepted Solution

        private Blob attachment;

    You can't serialize a Blob

    You have two choices...

    1) change the Blob into a serializable datatype (byte array?)
    2) Don't serialize out the blob field:

         private transient Blob attachment;

    will stop the serializer running on it


    Author Comment

    ok. i dont understand what doest it mean by serialized the BLOB?

    this error will only prompt when i keep my application server running and i am trying to amend the program code in Eclipse development platform.

    what is this serialized? means?

    and also, how can i transfrom this BLOB datatype to another form of datatype such as String?

    TimYates, can you help to share you view in this thread?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    After several days of searching and hunting for limited documentation, I wanted to share this guide to hopefully save someone the hassle of trying to figure this out on their own. I have tested this on Xendesktop 7.1 and PS 4.5 running simultaneous…
    These days socially coordinated efforts have turned into a critical requirement for enterprises.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now