Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7059313

error with javax.swing.ImageIcon in 6.26? where programm compile with 6.24

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 6u25, 6u26
    • client-libs
    • x86
    • linux, windows_7

      FULL PRODUCT VERSION :
      jre 6.26
      jdk 6.24
      javaDB
      eclipselink-2.2.0.v20110202

      ADDITIONAL OS VERSION INFORMATION :
      Windows 7 32 bit

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      no problem

      A DESCRIPTION OF THE PROBLEM :
      Internal Exception: java.io.InvalidClassException: javax.swing.ImageIcon; local class incompatible: stream classdesc serialVersionUID = 532615968316031794, local class serialVersionUID = -962022720109015502

      error occurs when there is a reading blob (imageicon) from the database

      REGRESSION. Last worked in version 6u26


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Internal Exception: java.io.InvalidClassException: javax.swing.ImageIcon; local class incompatible: stream classdesc serialVersionUID = 532615968316031794, local class serialVersionUID = -962022720109015502

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
         @Lob
          @Basic(fetch = FetchType.LAZY)
          @Column(name = "PICT", columnDefinition="BLOB(512K)")
          private Serializable pict;


          public Serializable getPict() {
              return pict;
          }
          public void setPict(Serializable pict) {
              Serializable oldPict = this.pict;
              this.pict = pict;
              changeSupport.firePropertyChange("pict", oldPict, pict);
          }
      ---------- END SOURCE ----------

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: