Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Possible solution for 'Error logged from Ant UI'(I found a different way to fix this nagging problem that others have had)
Possible solution for 'Error logged from Ant UI' [message #802412] Sun, 19 February 2012 23:37 Go to next message
Chris Arsenault is currently offline Chris ArsenaultFriend
Messages: 1
Registered: February 2012
Junior Member
I was attempting to run an Ant build configuration with no environment variables and I kept getting the following error:

!ENTRY org.eclipse.ant.launching 4 120 2012-02-19 17:36:57.314
!MESSAGE Error logged from Ant UI:
!STACK 0 Accept timed out
at Method)
at Source)
at Source)
at Source)
at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener$

The only environment variable in my Ant build configuration was the ANT_HOME variable and it was set to the Ant plugin directory in Eclipse.

If I switched to 'Append environment to native environment', my build configuration ran successfully. However, when I ran with 'Replace native environment with specified environment' and only the ANT_HOME variable set, the error above would be written to the eclipse log and the configuration would terminate with nothing written to the console.

In my searching for an answer to this issue, I found that many other people also hit this issue and there were several different suggestions, some of them worked for some people but not for everyone. All those suggestions did not work for me so I decided to experiment with the environmental variables.

I added all the environment variables available via the 'Select...' button and it worked fine. So, then I whittled down the list until I found that I needed only one other environment variable for the configuration to run successfully and that variable was the 'SystemRoot' variable.

So, I thought I would post this topic in case this solution helps others. I'm not sure why it works for me but it did. If anyone has any thoughts on why this worked, please reply to this message with the answer.

As for my system specs:

HP Pavilion dv7 laptop
Windows 64-bit system
Eclipse Helios 3.6.1 (64-bit)

I hope this helps

Re: Possible solution for 'Error logged from Ant UI' [message #825347 is a reply to message #802412] Tue, 20 March 2012 18:52 Go to previous message
Robb Jones is currently offline Robb JonesFriend
Messages: 1
Registered: March 2012
Junior Member
We had the same issue trying to connect to an Oracle database running via an Eclipse Java Application configuration (Run As) on several machines. On one machine, setting SystemRoot resolves the problem (Env mode = replace + explicit setting or Env mode = append and pull from the system environment). The other machine fails, regardless.

I've also been able to duplicate this outside of Eclipse, running in Ant.
<java classname="com.myclass.EtlStart"
will trigger the problem. Setting newenvironment = false resolves the issue (likely b/c SystemRoot is then defined).

I'm fairly sure the error text originates from the Oracle driver ("Io exception: The Network Adapter could not establish the connection")

Putting our experiences together, I'd say this suggests some underlying network code is dependent on this environment setting, and therefore likely limited to Windows some/all platforms.

Anyway, here is what such a stack trace looks like: is calling BasicDataSource.getConnection().

13:27:17 ERROR ( - Exception in EtlStart.main(): Cannot create PoolableConnectionFactory (Io exception: The Network Adapter could not establish the connection)
org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io exception: The Network Adapter could not establish the connection)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(
at org.apache.commons.dbcp.BasicDataSource.getConnection(
at com.myclass.etl.main.EtlStart.main(
Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.driver.OracleConnection.<init>(
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(
at oracle.jdbc.driver.OracleDriver.connect(
at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(
at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(
at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(
at org.apache.commons.dbcp.BasicDataSource.createDataSource(
... 2 more

WinXP 32-bit
Oracle Java 1.6.0_30
Both Eclipse 3.3.2 & 3.7
Oracle server
Oracle jdbc driver
Previous Topic:The system cannot find the file specified.
Next Topic:Internal Web Browser and canvas tag (html5)
Goto Forum:

Current Time: Mon May 21 03:26:38 GMT 2018

Powered by FUDForum. Page generated in 0.03120 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top