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.
[ BUILD # : 6563on110128 ] [ JDK VERSION : 1.6.23 ] This error occur when trying to run a netbeans module, it does not always occur and when it does you just have to run again, but it is annoying... taskdefs: common-init: projectized-common.basic-init: basic-init: files-init: nbm-license-init: C:\NetBeans\harness\build.xml:151: java.io.FileNotFoundException: P:\netbeans\module1\build\no-license.txt (Åtkomst nekad) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:179) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.tools.ant.types.resources.FileResource.getOutputStream(FileResource.j ava:246) at org.apache.tools.ant.types.resources.FileResource.getOutputStream(FileResource.j ava:221) at org.apache.tools.ant.util.ResourceUtils.getOutputStream(ResourceUtils.java:778) at org.apache.tools.ant.util.ResourceUtils.copyResource(ResourceUtils.java:546) at org.apache.tools.ant.taskdefs.Echo.execute(Echo.java:66) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) at sun.reflect.GeneratedMethodAccessor222.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:390) at org.apache.tools.ant.Target.performTasks(Target.java:411) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) at org.apache.tools.ant.Project.executeTarget(Project.java:1368) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java: 41) at org.apache.tools.ant.Project.executeTargets(Project.java:1251) at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:284) at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:539) at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:154) BUILD FAILED (total time: 0 seconds)
Additional comment, line reading "P:\netbeans\module1\build\no-license.txt (Åtkomst nekad)" The text between parenthesises is (Access denied) when translated from swedish to english...
Not sure what this would be. Probably something specific to your version of Windows or how your P-drive is set up? The Ant script in question is not doing anything particularly special: <mkdir dir="${build.dir}"/> <property name="license.file" location="${build.dir}/no-license.txt"/> <echo file="${license.file}">[NO LICENSE SPECIFIED]</echo> And the <makenbm> which later uses ${license.file} does close the FileInputStream in a finally-block, so I don't expect it is an issue of an open stream.
Seen exactly the same problem at a customer site. Whenever the NB app is built, randomly a license-txt messages are shown.
If you can reproduce at least sometimes, you should be able to get some diagnostics.
I get the same error. Not sure if this will help, but here's what I did: Setup my Netbeans Platform Application project on a Linux machine. Added some Library Wrapper Module projects to the Platform Application. Copied the entire Platform Application folder to a Windows XP machine. Now when I compile, I get the error message mentioned for random Library Wrapper module projects in my Platform Application.
(In reply to comment #5) > Setup my Netbeans Platform Application project on a Linux machine. > Added some Library Wrapper Module projects to the Platform Application. > Copied the entire Platform Application folder to a Windows XP machine. Perhaps the permissions are somehow wrong? If you can reproduce somehow, it should be easy to track down the cause.