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.
copyTestResourceFile and writeStringToFile are catching Throwable. You should always catch only relevant exceptions. Moreover catched Throwable is lost (it is not even reported anywhere).