Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » Cannot launch eny tests
Cannot launch eny tests [message #24250] Tue, 02 August 2005 10:46 Go to next message
Janne Kario is currently offline Janne KarioFriend
Messages: 12
Registered: July 2009
Junior Member
Cannot launch any tests. All test types (URL, TPTP Junit etc.) report
this same NPE and refuse to start (Right click -> Run As -> Test). TPTP
version 4.0. Linux FC4 with 2.6.11 kernel. Sun Java 1.4.2_08.

The second stack trace is also interesting because I do have an agent
controller running on port 10002 and I have verified that I can connect
to it using telnet.

!ENTRY org.eclipse.core.runtime 4 2 2005-08-02 13:40:11.522
!MESSAGE An internal error occurred during: "SimpleTest".
!STACK 0
java.lang.NullPointerException
at
org.eclipse.hyades.execution.harness.TestExecutionHarness$2. run(TestExecutionHarness.java:750)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)

!ENTRY org.eclipse.hyades.test.core 4 0 2005-08-02 13:40:26.467
!MESSAGE IWAT4039E The Test Execution Harness reported the following
problems:org.eclipse.core.runtime.CoreException
!STACK 1
org.eclipse.core.runtime.CoreException: IWAT4039E The Test Execution
Harness reported the following problems:IWAT0016E The Agent Controller
is not available on
host localhost.
Make sure that:
* the Agent Controller is installed.
* the Agent Controller is configured to communicate with your machine.
* you have the correct host name and port number for the Agent Controller.
at
org.eclipse.hyades.test.core.launch.delegates.AbstractLaunch ConfigurationDelegate2.launch(AbstractLaunchConfigurationDel egate2.java:178)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:590)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:515)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:733)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:931)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
!SUBENTRY 1 org.eclipse.hyades.test.core 4 0 2005-08-02 13:40:26.472
!MESSAGE IWAT4039E The Test Execution Harness reported the following
problems:IWAT0016E The Agent Controller is not available on host localhost.
Make sure that:
* the Agent Controller is installed.
* the Agent Controller is configured to communicate with your machine.
* you have the correct host name and port number for the Agent Controller.
W
Re: Cannot launch eny tests [message #24292 is a reply to message #24250] Tue, 02 August 2005 14:08 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 404
Registered: July 2009
Senior Member
Hello Janne,

There is a known problem with the execution harness failing (without any
indication) when the Agent Controller's file server is not running. Can you
please open the serviceconfig.xml file under the 'config' directory of your
agent controller and change the 'filePort' attribute to another port that is
not in use. Restart the Agent Controller and try to launch the tests again.

I'm assuming that the current filePort is busy on your machine, causing the
file server not run. That causes line 655 to return null and line 750 to
throw an NPE.

Thanks,

Ali Mehregani

"Janne Kario" <kario@mermit.fi> wrote in message
news:dcnip1$8hg$1@news.eclipse.org...
> Cannot launch any tests. All test types (URL, TPTP Junit etc.) report this
> same NPE and refuse to start (Right click -> Run As -> Test). TPTP version
> 4.0. Linux FC4 with 2.6.11 kernel. Sun Java 1.4.2_08.
>
> The second stack trace is also interesting because I do have an agent
> controller running on port 10002 and I have verified that I can connect to
> it using telnet.
>
> !ENTRY org.eclipse.core.runtime 4 2 2005-08-02 13:40:11.522
> !MESSAGE An internal error occurred during: "SimpleTest".
> !STACK 0
> java.lang.NullPointerException
> at
> org.eclipse.hyades.execution.harness.TestExecutionHarness$2. run(TestExecutionHarness.java:750)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
>
> !ENTRY org.eclipse.hyades.test.core 4 0 2005-08-02 13:40:26.467
> !MESSAGE IWAT4039E The Test Execution Harness reported the following
> problems:org.eclipse.core.runtime.CoreException
> !STACK 1
> org.eclipse.core.runtime.CoreException: IWAT4039E The Test Execution
> Harness reported the following problems:IWAT0016E The Agent Controller is
> not available on
> host localhost.
> Make sure that:
> * the Agent Controller is installed.
> * the Agent Controller is configured to communicate with your machine.
> * you have the correct host name and port number for the Agent Controller.
> at
> org.eclipse.hyades.test.core.launch.delegates.AbstractLaunch ConfigurationDelegate2.launch(AbstractLaunchConfigurationDel egate2.java:178)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:590)
> at
> org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:515)
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:733)
> at
> org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlu gin.java:931)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:76)
> !SUBENTRY 1 org.eclipse.hyades.test.core 4 0 2005-08-02 13:40:26.472
> !MESSAGE IWAT4039E The Test Execution Harness reported the following
> problems:IWAT0016E The Agent Controller is not available on host
> localhost.
> Make sure that:
> * the Agent Controller is installed.
> * the Agent Controller is configured to communicate with your machine.
> * you have the correct host name and port number for the Agent Controller.
> W
Re: Cannot launch any tests (WAS: Cannot launch eny tests) [message #24631 is a reply to message #24292] Tue, 02 August 2005 23:13 Go to previous messageGo to next message
Janne Kario is currently offline Janne KarioFriend
Messages: 12
Registered: July 2009
Junior Member
news.eclipse.org wrote:
> Hello Janne,
>
> There is a known problem with the execution harness failing (without any
> indication) when the Agent Controller's file server is not running. Can you
> please open the serviceconfig.xml file under the 'config' directory of your
> agent controller and change the 'filePort' attribute to another port that is
> not in use. Restart the Agent Controller and try to launch the tests again.
>
> I'm assuming that the current filePort is busy on your machine, causing the
> file server not run. That causes line 655 to return null and line 750 to
> throw an NPE.
>

I tried changing the port (10005 -> 10007) but it did not help. Before
starting RAServer I checked with telnet that port 10007 was free and
after I started RAServer I checked with telnet that 10007 was responding.

Below is a log line that presumably tells that file server is alive.

<CommonBaseEvent creationTime="2005-08-02T22:57:31.677486Z"
globalInstanceId="A2EFFA5B000A566419D8511D07E170F8" msg="Insecure File
Server started on port 10007" severity="10" version="1.0.1">
<sourceComponentId component="Data Collection Engine"
componentIdType="Application" location="xx.xx.xx.xx" locationType="IPV4"
processId="24050" subComponent="framework/RAServer/RACommS.c"
componentType="Eclipse_TPTP"/>
<situation categoryName="ReportSituation">
<situationType
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ReportSituation" reasoningScope="INTERNAL" reportCategory="LOG"/>
</situation>
</CommonBaseEvent>

* Janne Kario
Re: Cannot launch any tests (WAS: Cannot launch eny tests) [message #24670 is a reply to message #24631] Wed, 03 August 2005 00:30 Go to previous messageGo to next message
Janne Kario is currently offline Janne KarioFriend
Messages: 12
Registered: July 2009
Junior Member
Janne Kario wrote:
> news.eclipse.org wrote:
>
>> Hello Janne,
>>
>> There is a known problem with the execution harness failing (without
>> any indication) when the Agent Controller's file server is not
>> running. Can you please open the serviceconfig.xml file under the
>> 'config' directory of your agent controller and change the 'filePort'
>> attribute to another port that is not in use. Restart the Agent
>> Controller and try to launch the tests again.
>>
>> I'm assuming that the current filePort is busy on your machine,
>> causing the file server not run. That causes line 655 to return null
>> and line 750 to throw an NPE.
>>
>

This is somehow related to the fact that I cannot connect to the agent
controller from eclipse.

1) Start RAServer
2) Start JBoss with -XrunpiAgent:server=enabled
3) servicelog.xml tells me that JBoss agent is connected and that
configuration of length 180 has been sent
4) Open the profile view and create new "Attach Java process" profile
configuration
5) Define host "localhost:10002" in the host tab and press "Test
connection". Dialog with error "IWAT0284E" appears. No connection
attempt in the servicelog.xml.
6) Open console and test using netcat "nc localhost 10002". Connection
attempt appears in the servicelog.xml log.

How come netcat gives me connection attempt in the logs but "Test
connection" button doesn't?

* Janne Kario
Re: Cannot launch any tests (WAS: Cannot launch eny tests) [message #25320 is a reply to message #24670] Thu, 04 August 2005 17:30 Go to previous message
Janne Kario is currently offline Janne KarioFriend
Messages: 12
Registered: July 2009
Junior Member
Janne Kario wrote:
> Janne Kario wrote:
>
>> news.eclipse.org wrote:
>>
>>> Hello Janne,
>>>
>>> There is a known problem with the execution harness failing (without
>>> any indication) when the Agent Controller's file server is not
>>> running. Can you please open the serviceconfig.xml file under the
>>> 'config' directory of your agent controller and change the 'filePort'
>>> attribute to another port that is not in use. Restart the Agent
>>> Controller and try to launch the tests again.
>>>
>>> I'm assuming that the current filePort is busy on your machine,
>>> causing the file server not run. That causes line 655 to return null
>>> and line 750 to throw an NPE.
>>>
>>
>
> This is somehow related to the fact that I cannot connect to the agent
> controller from eclipse.
>
> 1) Start RAServer
> 2) Start JBoss with -XrunpiAgent:server=enabled
> 3) servicelog.xml tells me that JBoss agent is connected and that
> configuration of length 180 has been sent
> 4) Open the profile view and create new "Attach Java process" profile
> configuration
> 5) Define host "localhost:10002" in the host tab and press "Test
> connection". Dialog with error "IWAT0284E" appears. No connection
> attempt in the servicelog.xml.
> 6) Open console and test using netcat "nc localhost 10002". Connection
> attempt appears in the servicelog.xml log.
>
> How come netcat gives me connection attempt in the logs but "Test
> connection" button doesn't?

I haven't confirmed this yet but I think this is a issue with Fedora
Core 4 and Java 1.4.2_08 (All network operations throw IOException). The
resolution is to upgrade to Java 1.5.



* Janne Kario
Previous Topic:New TPTP "News" Mailing List Created
Next Topic:naming a piAgent possible?
Goto Forum:
  


Current Time: Wed Nov 26 14:57:57 GMT 2014

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

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