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.
When running junit tests of a netbeans module from the IDE (test-single), I occasionally get this (very infrequently, maybe once every 50 runs): basic-init: files-init: build-init: init: test-preinit: test-init: compile: Compiling 1 source file to /space/nb_another/contrib/ navigator/build/classes /space/nb_another/nbbuild/templates/projectized.xml:121: Could not create task or type of type: copy. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'copy'.
I've never seen it, nor can I guess what would cause it. If you can reproduce it at least occasionally, try running with Verbose or Debug mode on until it happens again. Only happens with this kind of target? Are you running other builds in parallel? What OS? (The bug is marked All/All, which is assume is not really true.)
I'm only sure I've seen it on test-single. No other builds running, just repeatedly making small changes to one file and re-running the unit test, adding test cases and re-running the unit test, and so forth. Running the test again works fine.
OK, leaving open for now but I can't really do anything to investigate it, I think. You can try running with -J-Dorg.apache.tools.ant.module=0 to see if anything special happens when it fails, but I can't guarantee that that logging will reveal the problem. (Note: this logging will slow down Ant builds considerably, so you may want to turn off sublogging of slower components - can be identified by name of logger in [].)
Haven't heard any more about it, sorry.
closed