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 254603 - ant won't clean and build because of NPE
Summary: ant won't clean and build because of NPE
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant Project (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-21 20:02 UTC by dslomer64
Modified: 2016-07-06 10:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE project tree (17.49 KB, image/png)
2015-08-21 20:02 UTC, dslomer64
Details
IDE files tree (21.99 KB, image/png)
2015-08-21 20:03 UTC, dslomer64
Details
Ant window (86.57 KB, image/png)
2015-08-21 20:03 UTC, dslomer64
Details
Stack trace (3.03 KB, text/plain)
2015-08-21 20:08 UTC, dslomer64
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dslomer64 2015-08-21 20:02:29 UTC
Created attachment 155536 [details]
IDE project tree

The error is replicable.

The message is attached, as are pix of IDE.

I CAN clean and build project IF I DO NOT USE LARGE (huge) LIBRARY tika-app.1.10.jar, instead using tika-core-1.10.jar and tika-parsers-1.10.jar.

If I remove those small library .jar files and add the huge one, I WILL get the attached errors.

I NEED the huge library .jar because without it my program cannot properly process .pdf files.
Comment 1 dslomer64 2015-08-21 20:03:15 UTC
Created attachment 155537 [details]
IDE files tree
Comment 2 dslomer64 2015-08-21 20:03:56 UTC
Created attachment 155538 [details]
Ant window
Comment 3 dslomer64 2015-08-21 20:08:48 UTC
Created attachment 155539 [details]
Stack trace
Comment 4 dslomer64 2015-08-21 20:24:59 UTC
I just learned at StackOverflow (http://stackoverflow.com/questions/32147796/ant-1-9-4-wont-clean-and-build-netbeans-8-0-2-project-using-java-8-gives-null) that Ant 1.9.5 (and so 1.9.6, the latest) fixes this as bug 57533, but I don't know how to make Netbeans 8.0.2 use newer Ant, whose download does NOT contain nblib.
Comment 5 dslomer64 2015-08-21 20:42:01 UTC
Downloading Ant 1.9.6 just changed the error message:

Attempt to copy C:\Users\Dov\Downloads\tika-app-1.10.jar to C:\Users\Dov\Google Drive\NetBeansProjects\Find\dist\lib\tika-app-1.10.jar using NIO Channels failed due to 'C:\Users\Dov\Google Drive\NetBeansProjects\Find\dist\lib\tika-app-1.10.jar (Access is denied)'.  Falling back to streams.
C:\Users\Dov\Google Drive\NetBeansProjects\Find\nbproject\build-impl.xml:994: The following error occurred while executing this line:
C:\Users\Dov\Google Drive\NetBeansProjects\Find\nbproject\build-impl.xml:838: 
java.io.FileNotFoundException: C:\Users\Dov\Google Drive\NetBeansProjects\Find\dist\lib\tika-app-1.10.jar (Access is denied)
	at java.io.FileOutputStream.open0(Native Method)
Comment 6 Tomas Stupka 2016-07-06 10:34:39 UTC
could not reproduce with a simple java project and tika-app.1.10.jar

bundled ant was upgraded to 1.9.7 in dev builds
feel free to reopen if the problem still occurs