This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 21115 - Form with TableModel created on JDK1.3.x vanish after opening in NB on JDK1.4 {InvalidClassException}
Summary: Form with TableModel created on JDK1.3.x vanish after opening in NB on JDK1.4...
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Tomas Pavek
URL:
Keywords:
: 32579 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-04 09:23 UTC by Marian Mirilovic
Modified: 2003-06-30 18:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
java.io.InvalidClassException (2.66 KB, text/plain)
2002-03-04 09:25 UTC, Marian Mirilovic
Details
Form file (3.41 KB, text/plain)
2002-03-04 09:28 UTC, Marian Mirilovic
Details
Java file - generated by form from build [nb_3.2.1](98) (2.01 KB, text/plain)
2002-03-04 09:34 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2002-03-04 09:23:39 UTC
[nb_dev](20020304), [jdk1.4](92)

Steps to reproduce:
- open attached form file 
-> during opening file arise 

java.io.InvalidClassException: javax.swing.table.AbstractTableModel; local class
incompatible: stream classdesc serialVersionUID = -5486166237079630578, local
class serialVersionUID = -5798593159423650347 (attachment)

- if you now save and reopen form file , table initialization vanish.
Comment 1 Marian Mirilovic 2002-03-04 09:25:35 UTC
Created attachment 4913 [details]
java.io.InvalidClassException
Comment 2 Marian Mirilovic 2002-03-04 09:28:37 UTC
Created attachment 4914 [details]
Form file
Comment 3 Marian Mirilovic 2002-03-04 09:34:55 UTC
Created attachment 4915 [details]
Java file - generated by form from build [nb_3.2.1](98)
Comment 4 Tomas Pavek 2002-03-04 10:58:24 UTC
This is a serialization issue between JDK 1.3 and 1.4.
Comment 5 Tomas Pavek 2002-03-04 17:00:27 UTC
This can be solved only by moving to XML storing/reading of the table 
model. I'm going to implement issue 19069. Serialized data from 
previous version forms will be read, but then stored in XML, so it 
won't be readable for older IDEs... But I don't see another solution.
Comment 6 Marian Mirilovic 2002-03-04 17:07:55 UTC
Ok, I agree with this one, your described solution is the best what we
can do now.
Comment 7 Tomas Pavek 2002-03-04 17:51:25 UTC
Fixed.
Comment 8 Marian Mirilovic 2002-03-05 09:04:23 UTC
verified in [nb_dev](20020305), now table model storing is xml-ized.

We cannot make anything else with the exception.

================================

Work Arround:
1. open form file with JTable in NetBeans (oldest than 5th March 2002)
on JDK1.3.x and save it
(table model have saved as xml - not serialized)

2. open the same file in NetBeans runned on JDK1.4

========================

Good job Tomas, thanks. 
Comment 9 Patrick Keegan 2002-05-06 19:51:48 UTC
Does this problem appear in NB 3.3.2/Orion?
Comment 10 Tomas Pavek 2002-05-15 11:15:24 UTC
The fix was made only for 3.4 dev, so the problem appears in 3.3.3/Orion.
Comment 11 Patrick Keegan 2002-07-23 15:50:37 UTC
removing relnote keyword
Comment 12 Tomas Pavek 2003-04-04 15:53:20 UTC
*** Issue 32579 has been marked as a duplicate of this issue. ***
Comment 13 Quality Engineering 2003-06-30 18:32:12 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.