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.
Attached exception was thrown while upgrading from 3.2.1 (98) to NB3.3 beta 1 or 200111090100. It looks pretty deterministic on my userdir, so I can attach it here if necessary.
Created attachment 3347 [details] Exception thrown.
Culprit will be probably some filesystem trying to replace itself with null during serialization. Please run upgrade again with following patch. It should provide more details about culprit.
Created attachment 3351 [details] patch core-am-patch.jar
Created attachment 3352 [details] New (annotated) exception.
Aha org.apache.tools.ant.module.AntModule$GlobalJarFileSystem (see source, it is deprecated now) returns null in writeReplace. I'm not sure if AutomountSupport has to handle such cases or none filesystem can implement such behavior.
What should this filesystem do instead? It is quite useless (made redundant by a layer entry) and needs to somehow delete itself during a restore. I'm pretty sure writeReplace -> null did use to work before AutomountSupport. Also I think the advice to do this is given in the 3.3 upgrade guide, this will have to be replaced if A.S. will not handle nulls.
I'll catch the exception in AutomountSupport.
AutomountSupport rev. 1.35
Thanks, though the patch to AutomountSupport is a workaround, not a real fix. Fixing in the Ant module. The problem only seems to occur if the ant-api.zip from the old installation still exists when you run the new build, which is probably why this was not noticed before. I changed also apisupport's installer in the same way. Note that the new code is much more complex; it has to make several attempts to remove the filesystem from the repository (it is added by the projects module long after the filesystem is read). I changed also the 3.3 upgrade guide to not recommend returning null from writeReplace. committed * Up-To-Date 1.10 ant/src/org/apache/tools/ant/module/AntModule.java committed * Up-To-Date 1.48 apisupport/src/org/netbeans/modules/apisupport/APIModule.java
No exceptions thrown from 200111130100. Verified.
Resolved for 3.3.x or earlier, no new info since then -> closing.