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.
Summary: | AssertionError at org.netbeans.modules.nbform.FormDesignerTC.loadForm | ||
---|---|---|---|
Product: | guibuilder | Reporter: | MackSix |
Component: | Code | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | CC: | MackSix |
Priority: | P4 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 181448 |
Attachments: |
stacktrace
Project messages.log file |
Description
MackSix
2011-09-28 05:10:54 UTC
Created attachment 111262 [details]
stacktrace
This is repeatable. Each time I create a new JFrame or JPanel form in <default package> and then drag and drop it to another package, I get this AssertionError. I am sorry, I am not able to reproduce this problem. I must be doing something in a different way. Are you still able to reproduce it? If so, could you, please, describe _exact_ steps to reproduce. Thank you in advance. Do you use refactoring when you are "correcting" the package? Do you leave the form opened? If so, do you leave it with Design or Source shown? etc. Use the project I uploaded. If I do not have any existing project files open in editor, the error does not occur. 1. Open attached project. 2. Open both JavaApplication4.java and NewJFrame.java source files in editor. (Leave the NewJFrame.java open in design view.) 3. Right click on "Source Packages" in Projects Window and then New>>JFrame Form. 4. Change Class Name to NewJFrame2 and click "Finish". (NewJFrame2 should now be open in design view.) 5. Drag and Drop NewJFrame2 from <default package> to javaapplication4 package. 6. Choose "Refactor" button on pop-up. If I restart NetBeans before moving NewJFrame2, it pops up the exception dialog box very fast and I can hardly see it, but it records it in messages.log. I will upload messages.log file. Created attachment 111397 [details]
Project
Created attachment 111398 [details]
messages.log file
I am sorry, I am still not able to reproduce this issue. I used Windows and NetBeans build from September 26th (i.e., the environment that you used when you reported this exception for the first time). I did the following steps: 1. Downloaded and expanded the attached project. 2. Deleted non-portable nbproject/private directory. 3. Started the mentioned NetBeans build with a new user directory. 4. Opened the mentioned project. 5. Double-clicked JavaApplication4.java to open it. 6. Double-clicked NewJFrame.java to open it. 7. Created NewJFrame.java in a default package according to point 3 of your description. 8. Selected the newly created form and invoked Refactor > Rename, entered NewJFrame2 and pressed Refactor. 9. Moved NewJFrame2 into javapplication4 according to points 5 and 6 of your description. Everything worked fine. Could you, please, tell me what steps are you doing in a different way to obtain the exception? I found the culprit. ESET Smart Security 4.2.71.2 real-time file system protection running causes it to happen. I disable it, and no error. There is no problem with NetBeans 7.0.1 with it running. I guess this bug can be closed. |