Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » IWAT0005E The host localhost was not found.?
IWAT0005E The host localhost was not found.? [message #141017] Fri, 06 March 2009 10:02 Go to next message
David  is currently offline David Friend
Messages: 88
Registered: July 2009
Member
I completed the AGR setup and tried to run this through an ANT script.

testing the AGR inside Eclipse works fine in quick and standard mode. When
using it in an ant script i get this very weird error:

output from ant script:

Buildfile: F:\workspace001\se.rsv.eclipse.testing\test.xml
platform-verification:
[echo] Verifying connection...
[condition] Verification started!
[condition] Verifying connection:
[condition] {connectionString=tptp:rac://localhost:10002/default,
specification=tptp, serverClass=rac, host=localhost, port=10002,
serverInstance=/default, user=null, password=null}
[condition] The specified agent controller
'tptp:rac://localhost:10002/default' is up and running!
[condition] Verification completed!
test-execution:
[tptp:execution] Adding file
"F:\workspace001\se.rsv.eclipse.testing\Testsuite.testsuite".
[tptp:execution] Test execution started.
[tptp:execution] Test 'Testsuite.testsuite' started.
[tptp:execution] Preparing launch delegate...
[tptp:execution] Performing pre-launch check...
[tptp:execution] Performing final launch validation...
[tptp:execution] Initializing source locator...
[tptp:execution] Launching delegate...
[tptp:execution] org.eclipse.core.runtime.CoreException: IWAT4039E The
Test Execution Harness reported the following problems: IWAT0005E The host
localhost was not found.
[tptp:execution] at
org.eclipse.hyades.test.core.launch.delegates.AbstractLaunch ConfigurationDelegate2.launch(AbstractLaunchConfigurationDel egate2.java:225)
[tptp:execution] at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:764)
[tptp:execution] at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:614)
[tptp:execution] at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:607)
[tptp:execution] at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.launch(AbstractTestExecutionService.java:822)
[tptp:execution] at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:592)
[tptp:execution] at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
[tptp:execution] at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:139)
[tptp:execution] at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
[tptp:execution] at java.lang.Thread.run(Unknown Source)

anyone have a clue what can cause this? as i do try to use localhost as an
condition before the test is started!
Re: IWAT0005E The host localhost was not found.? [message #141028 is a reply to message #141017] Fri, 06 March 2009 11:19 Go to previous messageGo to next message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi David,
What version of TPTP? Are you using the Intergrated Agent Controller or
Agent Controller? Is there a firewall on your local machine?

If using an earlier version than TPTP 4.5, you may be running into:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=221278

Paul
"David " <david.samuelsson@skatteverket.se> wrote in message
news:ccbdbcfabebbcfc4af70e68f2effaf7c$1@www.eclipse.org...
>I completed the AGR setup and tried to run this through an ANT script.
>
> testing the AGR inside Eclipse works fine in quick and standard mode. When
> using it in an ant script i get this very weird error:
>
> output from ant script:
>
> Buildfile: F:\workspace001\se.rsv.eclipse.testing\test.xml
> platform-verification:
> [echo] Verifying connection...
> [condition] Verification started!
> [condition] Verifying connection:
> [condition] {connectionString=tptp:rac://localhost:10002/default,
> specification=tptp, serverClass=rac, host=localhost, port=10002,
> serverInstance=/default, user=null, password=null}
> [condition] The specified agent controller
> 'tptp:rac://localhost:10002/default' is up and running!
> [condition] Verification completed!
> test-execution:
> [tptp:execution] Adding file
> "F:\workspace001\se.rsv.eclipse.testing\Testsuite.testsuite".
> [tptp:execution] Test execution started.
> [tptp:execution] Test 'Testsuite.testsuite' started.
> [tptp:execution] Preparing launch delegate...
> [tptp:execution] Performing pre-launch check...
> [tptp:execution] Performing final launch validation...
> [tptp:execution] Initializing source locator...
> [tptp:execution] Launching delegate...
> [tptp:execution] org.eclipse.core.runtime.CoreException: IWAT4039E The
> Test Execution Harness reported the following problems: IWAT0005E The host
> localhost was not found.
> [tptp:execution] at
> org.eclipse.hyades.test.core.launch.delegates.AbstractLaunch ConfigurationDelegate2.launch(AbstractLaunchConfigurationDel egate2.java:225)
> [tptp:execution] at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:764)
> [tptp:execution] at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:614)
> [tptp:execution] at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:607)
> [tptp:execution] at
> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.launch(AbstractTestExecutionService.java:822)
> [tptp:execution] at
> org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:592)
> [tptp:execution] at
> org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
> [tptp:execution] at
> org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:139)
> [tptp:execution] at
> org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
> [tptp:execution] at java.lang.Thread.run(Unknown Source)
>
> anyone have a clue what can cause this? as i do try to use localhost as an
> condition before the test is started!
>
>
Re: IWAT0005E The host localhost was not found.? [message #141039 is a reply to message #141028] Fri, 06 March 2009 11:54 Go to previous messageGo to next message
David  is currently offline David Friend
Messages: 88
Registered: July 2009
Member
TPTP platform 4.5.2

I have not installed any additional agent controllers so its the
integrated.

I have an firewall on the machine, tested disabling the services and tried
to rerun with the same result. I was using the "suite" command but had
problems with it and used the "fileset" instead which made me go further
but ran into other probs instead.

ant script---- snipp

<project name="se.rsv.eclipse.testing" default="main"
xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">


<!-- Global configuration: -->
<property name="ECLIPSE_HOME" value="C:\temp\eclipse"/>
<property name="ECLIPSE_WORKSPACE_HOME" value="F:\workspace001"/>



<!-- Requirements:
1) Add the following dependencies to the Ant classpath or lib
directory before running:
-${tptp.automation.eclipse}\plugins\org.eclipse.hyades.execu tion_ <version>\ant-tptp.jar
2) Set the above global configuration.
-->



<!-- Define common properties for all automatable services -->
<property name="tptp.automation.eclipse" value="${ECLIPSE_HOME}"/>
<property name="tptp.test.workspace" value="${ECLIPSE_WORKSPACE_HOME}"/>
<property name="tptp.test.project" value="se.rsv.eclipse.testing" />
<property name="tptp.test.connection"
value="tptp:rac://localhost:10002/default"/>
<property name="project.dir"
value="${tptp.test.workspace}\${tptp.test.project}" />


<!-- Define script-local properties, that vary by installation -->
<!-- <property name="project.dir"
value="${tptp.test.workspace}\${tptp.test.project}" /> -->
<!-- process start -->
<target name="main" depends="platform-verification, test-execution" />

<!-- Verify agent controller availability using condition task -->
<target name="platform-verification">
<echo message="Verifying connection..." />
<condition property="tptp.platform.available">
<tptp:verification />
</condition>
<fail unless="tptp.platform.available" message="The agent controller
is not available using the specified connection string!!" />

</target>
<target name="test-execution" description="Executes:
Sample*Test.testsuite">
<tptp:execution resultsrefid="tptp.test.results">
<fileset dir="${project.dir}">
<include name="*.testsuite"/>
</fileset>
</tptp:execution>
</target>

</project>
Re: IWAT0005E The host localhost was not found.? [message #141106 is a reply to message #141039] Mon, 09 March 2009 10:24 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 975
Registered: July 2009
Senior Member
Hi David,
Assuming your paths are correct (e.g.
F:\workspace001\se.rsv.eclipse.testing\), this symptom appears to be a new
defect. Please open a TPTP Bugzilla against the TPTP ASF product and
ASF.Runtime component. Can you try running a sample TPTP JUnit test suite
(e.g. see
/org.eclipse.hyades.test.core.services.tests/resources/Ant/b uild.xml) and
report the results in the defect?

Paul
"David " <david.samuelsson@skatteverket.se> wrote in message
news:95763899ff513bb7a716cee3890b0ec1$1@www.eclipse.org...
> TPTP platform 4.5.2
>
> I have not installed any additional agent controllers so its the
> integrated.
>
> I have an firewall on the machine, tested disabling the services and tried
> to rerun with the same result. I was using the "suite" command but had
> problems with it and used the "fileset" instead which made me go further
> but ran into other probs instead.
>
> ant script---- snipp
>
> <project name="se.rsv.eclipse.testing" default="main"
> xmlns:tptp="antlib:org.eclipse.hyades.automation.client.adapters.ant ">
>
>
> <!-- Global configuration: -->
> <property name="ECLIPSE_HOME" value="C:\temp\eclipse"/>
> <property name="ECLIPSE_WORKSPACE_HOME" value="F:\workspace001"/>
>
>
>
> <!-- Requirements:
> 1) Add the following dependencies to the Ant classpath or lib directory
> before running:
> -${tptp.automation.eclipse}\plugins\org.eclipse.hyades.execu tion_ <version>\ant-tptp.jar
> 2) Set the above global configuration.
> -->
>
>
>
> <!-- Define common properties for all automatable services -->
> <property name="tptp.automation.eclipse" value="${ECLIPSE_HOME}"/>
> <property name="tptp.test.workspace" value="${ECLIPSE_WORKSPACE_HOME}"/>
> <property name="tptp.test.project" value="se.rsv.eclipse.testing" />
> <property name="tptp.test.connection"
> value="tptp:rac://localhost:10002/default"/>
> <property name="project.dir"
> value="${tptp.test.workspace}\${tptp.test.project}" />
>
>
> <!-- Define script-local properties, that vary by installation -->
> <!-- <property name="project.dir"
> value="${tptp.test.workspace}\${tptp.test.project}" /> -->
> <!-- process start -->
> <target name="main" depends="platform-verification, test-execution" />
>
> <!-- Verify agent controller availability using condition task -->
> <target name="platform-verification">
> <echo message="Verifying connection..." /> <condition
> property="tptp.platform.available">
> <tptp:verification />
> </condition>
> <fail unless="tptp.platform.available" message="The agent controller is
> not available using the specified connection string!!" />
>
> </target> <target name="test-execution" description="Executes:
> Sample*Test.testsuite">
> <tptp:execution resultsrefid="tptp.test.results"> <fileset
> dir="${project.dir}">
> <include name="*.testsuite"/>
> </fileset>
> </tptp:execution>
> </target>
>
> </project>
>
>
Previous Topic:TPTP&TopLink essentials: Entities with composite primary keys don't work?
Next Topic:Other Java code reviews?
Goto Forum:
  


Current Time: Fri Mar 29 09:51:45 GMT 2024

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

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

Back to the top