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 269557 - IllegalAccessError at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
Summary: IllegalAccessError at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: Dev
Hardware: All All
: P1 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-14 06:26 UTC by Exceptions Reporter
Modified: 2017-02-06 10:22 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227680


Attachments
stacktrace (265 bytes, text/plain)
2017-01-14 06:27 UTC, Exceptions Reporter
Details
stacktrace (468 bytes, text/plain)
2017-02-06 08:51 UTC, Martin Balin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2017-01-14 06:26:58 UTC
This bug was originally marked as duplicate of bug 227069, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.1 (Build 20160828-debian-8.1)
VM: OpenJDK 64-Bit Server VM, 25.111-b14, OpenJDK Runtime Environment, 1.8.0_111-8u111-b14-3-b14
OS: Linux

User Comments:
GUEST: Created generic app, changed class to extend javafx Application, implemented override for start function (blank body), ran build via toolbar... Failure with progress bar still spinning.  Ant build via shell works fine.




Stacktrace: 
java.lang.IllegalAccessError
   at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:0)
   at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:0)
   at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:0)
Comment 1 Exceptions Reporter 2017-01-14 06:27:00 UTC
Created attachment 163397 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-01-24 10:59:42 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=227680
Comment 3 Exceptions Reporter 2017-01-30 22:00:22 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=227680
Comment 4 Martin Balin 2017-02-06 08:51:22 UTC
Created attachment 163577 [details]
stacktrace

Changed Options | Java | Ant location to external Ant 1.10.0 located at /opt/ (read-only for user running NB IDE)
Then run a Build action of JavaFX project.
Comment 5 Martin Balin 2017-02-06 08:53:14 UTC
This happens for all Ant project types when Ant 1.10.0 is used.
Comment 6 Martin Balin 2017-02-06 08:53:42 UTC
IDE running on top of JDK9 EA.
Comment 7 Tomas Zezula 2017-02-06 10:21:07 UTC
Ant bug https://bz.apache.org/bugzilla/show_bug.cgi?id=60582.
The problem is caused by the external Apache Ant 1.10.0 or 1.9.8.
Already fixed by Stefan Bodewig in https://github.com/apache/ant/commit/1348ebb91c17cbc8506d2a1e323c3bff408348c8
The fix will be available in Ant 1.10.1 and 1.9.9 which is expected to be released this week:

http://mail-archives.apache.org/mod_mbox/ant-dev/201702.mbox/%3C87o9yks84s.fsf%40v45346.1blu.de%3E

http://mail-archives.apache.org/mod_mbox/ant-dev/201702.mbox/%3C87k298s805.fsf%40v45346.1blu.de%3E
Comment 8 Tomas Zezula 2017-02-06 10:22:24 UTC
The bug does not affect NB bundled Ant (1.10.0alpha).