Bug 529010 - Error launching an Ant
Summary: Error launching an Ant
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 4.7.1a   Edit
Hardware: PC Windows 10
: P3 blocker (vote)
Target Milestone: ---   Edit
Assignee: Platform-Ant-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2017-12-20 07:39 EST by Daniel Carretas CLA
Modified: 2018-12-06 04:54 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Carretas CLA 2017-12-20 07:39:43 EST
When trying to launch a Ant it gives me a popup window telling:
Java virtual machine launcher: A java Exception has occurred.


Message:
Error logged from Ant UI:


Exception Stack Trace:
java.net.SocketTimeoutException: Accept timed out
	at java.net.DualStackPlainSocketImpl.waitForNewConnection(Native Method)
	at java.net.DualStackPlainSocketImpl.socketAccept(DualStackPlainSocketImpl.java:135)
	at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
	at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:199)
	at java.net.ServerSocket.implAccept(ServerSocket.java:545)
	at java.net.ServerSocket.accept(ServerSocket.java:513)
	at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:89)

-- Configuration Details --
Product: Eclipse 4.7.1.20171005-1200 (org.eclipse.epp.package.jee.product)Installed Features:
 org.eclipse.pde 3.13.1.v20171009-0537
Comment 1 Sarika Sinha CLA 2017-12-20 08:05:49 EST
Can you try 4.7.2 or 4.8 I build as we have resolved couple of issues related to this.
Comment 2 Daniel Carretas CLA 2017-12-20 08:15:38 EST
(In reply to Sarika Sinha from comment #1)
> Can you try 4.7.2 or 4.8 I build as we have resolved couple of issues
> related to this.

Where can I get 4.7.2?
Comment 3 Sarika Sinha CLA 2018-01-23 03:50:23 EST
Sorry for the delay
https://www.eclipse.org/downloads/eclipse-packages/
Comment 4 Davide Vichi CLA 2018-12-05 10:13:17 EST
Hi all,
this problem is still present in rev 4.9 

eclipse.buildId=4.9.0.I20180906-0745
java.version=1.8.0_65
java.vendor=Oracle Corporation
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=it_IT

Could you tell me how work around this?

Thanks in advance

Davide
Comment 5 Daniel Carretas CLA 2018-12-05 10:30:14 EST
Hi,

I've moved to version 4.7.3a (https://www.eclipse.org/downloads/packages/release/oxygen/3a)

Regards
Daniel
Comment 6 Davide Vichi CLA 2018-12-06 03:14:34 EST
Hi Daniel,
I RESOLVE. It works also with the last version 4.9. You have to change the Ant JRE from Java7 to Java8.

Right click on XML ant file -> Run As.. -> Select JRE TAB -> Change Java7 to Java8

However, it's a workaround.

Regards

Davide
Comment 7 Sarika Sinha CLA 2018-12-06 04:54:31 EST
If you want to use Java 7, you can change the Ant Home to an older Ant version after downloading from Ant site.