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 110356 - The form file format is not recognized. The form cannot be opened.
Summary: The form file format is not recognized. The form cannot be opened.
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: Other Windows XP
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-20 06:25 UTC by mespedil
Modified: 2013-09-16 16:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
no se puede abrir (161.00 KB, application/octet-stream)
2013-09-16 16:46 UTC, jair94
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mespedil 2007-07-20 06:25:59 UTC
Error: The form file is not recognized. The form cannot be

FULL PRODUCT VERSION :
Java Version 1.6.0
Java(TM) Se Runtime Environment (build 1.6.0.-b105)
Java HotSpot(TM) client VM (build 1.6.0.-b105, mixed mode, sharing)
Microsoft Windows XP Professional Version 2002 Service Pack 2.

PROBLEM DESCRIPTION:
Actually I used the Netbeans  5.5 as my IDE but then I someway around this bug seem to appear. I wasn't able to reopened
the form. I used the Drag and Drop JFame of Netbeans.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
I forget how to reproduce this issue. I know there is a related bug about this. And cannot reproduce this error again.
My only problem is I cannot open the form for editing even if the whole project is copied to another computer. And it
seems that the project works fine.

ACTUAL BEHAVIOR:
Error: The form file is not recognized. The form cannot be opened.

EXPECTED BEHAVIOR:
Able to open the JFrame window for editing.

REPRODUCIBILITY :
I actually produce this and I cannot reproduce it now since I forget what are the changes that I made.
Comment 1 Tomas Pavek 2007-07-20 09:14:50 UTC
You apparently have a corrupted form, can you attach it here?
Comment 2 Tomas Pavek 2007-07-24 13:18:12 UTC
We've found out this was an encoding problem of String property values. I've made a fix to use different encoding when
the string contains invalid xml characters.

/cvs/form/src/org/netbeans/modules/form/GandalfPersistenceManager.java
new revision: 1.183; previous revision: 1.182
Comment 3 RobbieW 2011-08-11 02:18:19 UTC
Error: This appears to be similar to BUG 110356 but may have a different cause.

FULL PRODUCT VERSION :
Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Windows XP version 5.1 running on x86; Cp1252; en_AU (nb)

PROBLEM DESCRIPTION:
A global search and replace operation replaced a combo box string item in the application's .form file. After that the form would not open in design mode. 

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Create a combo box which has a model with the following items: "Interval & Ratio Scales, Bi-polar Scale, Boolean Selections, Nominal & Ordinal Scales" in a custom class which extends FrameView.

2. Select the project on the "Projects" tab. Go to the "Edit" menu and then "Replace in Projects..." submenu. Replace "Bi-polar Scale" with 
"Bi-polar & Likert Scales".

3. Try and edit the form with the combo box on it. 

ACTUAL BEHAVIOR:
Error: The form file is not recognized. The form cannot be opened.

EXPECTED BEHAVIOR:
Able to open the FrameView's Design window.

WORKAROUND:
Replaced the .Form file with a backup and replaced the combo box item manually using the Properties Editor.

The .Form file is being used in a prototype application that is subject to a non-disclosure agreement so I can't send the .Form file. Whether setps above will reproduce the problem outside my project I don't know.
Comment 4 Jan Stola 2011-08-15 09:57:36 UTC
> This appears to be similar to BUG 110356 but may have a different cause.

Yes, the root of your problem is completely different. In fact, what you describe is more a bug in search and replace than in GUI Builder. I am restoring FIXED status of this issue. Please, fill a separate issue against utilities/Search (<- Product/Component).
Comment 5 jair94 2013-09-16 16:46:18 UTC
Created attachment 140140 [details]
no se puede abrir