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.

Bug 194832 - Intermittent error when trying to run netbeans module
Summary: Intermittent error when trying to run netbeans module
Status: RESOLVED INCOMPLETE
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 7.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2011-01-29 04:39 UTC by Chiana
Modified: 2011-08-10 20:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chiana 2011-01-29 04:39:42 UTC
[ 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)
Comment 1 Chiana 2011-01-29 04:42:04 UTC
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...
Comment 2 Jesse Glick 2011-01-31 16:13:12 UTC
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.
Comment 3 Geertjan Wielenga 2011-07-27 16:52:32 UTC
Seen exactly the same problem at a customer site. Whenever the NB app is built, randomly a license-txt messages are shown.
Comment 4 Jesse Glick 2011-07-27 17:03:50 UTC
If you can reproduce at least sometimes, you should be able to get some diagnostics.
Comment 5 jo_vark 2011-08-07 01:45:03 UTC
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.
Comment 6 Jesse Glick 2011-08-10 20:17:55 UTC
(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.