Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Test and Performance Tools Platform (TPTP) » [AGR] java.lang.NullPointerException, AbstractTestExecutionService
[AGR] java.lang.NullPointerException, AbstractTestExecutionService [message #110099] Mon, 27 August 2007 07:10 Go to next message
Pierre is currently offline PierreFriend
Messages: 27
Registered: July 2009
Junior Member
Hello all !

I'm trying to run a test with the AutomationClientAdapter, but when I run
the test I have an error:

java.lang.NullPointerException
at
org.eclipse.hyades.test.core.services.AbstractTestExecutionS ervice.execute(AbstractTestExecutionService.java:507)
at
org.eclipse.hyades.automation.server.AbstractService.execute (AbstractService.java:43)
at
org.eclipse.hyades.automation.server.ServiceProxy$1.run(Serv iceProxy.java:141)
at
org.eclipse.hyades.automation.core.utils.ReusableThread.run( ReusableThread.java:131)
at java.lang.Thread.run(Unknown Source)

My code is:

package test;

import java.util.Properties;

import
org.eclipse.hyades.automation.client.adapters.java.Automatio nClientAdapter;

public class Lanc {

static String eclipsePath = new String("C:\\Program Files\\tptp\\eclipse");
static String ModemPath = new String("C:\\ProgramFiles\\Modem\\Modem");

/**
* @param args
*/
public static void main(String[] args) {
// Create the Java adapter associated with the specified Eclipse home
AutomationClientAdapter automation = new
AutomationClientAdapter(eclipsePath.toString());

// Create and configure a properties object
Properties properties = new Properties();
properties.setProperty("workspace", ModemPath.toString());
properties.setProperty("project", "Modem");
properties.setProperty("suite", "mod.testsuite");

// Execute the service named below using the configured properties
automation.execute("org.eclipse.hyades.test.tools.core.execute ",
properties);
}
}

Thanks for your help !
Pierre
Re: [AGR] java.lang.NullPointerException, AbstractTestExecutionService [message #110472 is a reply to message #110099] Tue, 28 August 2007 08:07 Go to previous messageGo to next message
Pierre is currently offline PierreFriend
Messages: 27
Registered: July 2009
Junior Member
I do not know why, but it runs now !
Re: [AGR] java.lang.NullPointerException, AbstractTestExecutionService [message #110752 is a reply to message #110472] Thu, 30 August 2007 11:30 Go to previous message
Paul Slauenwhite is currently offline Paul SlauenwhiteFriend
Messages: 970
Registered: July 2009
Senior Member
Hi Pierre,
If you are able to consistency reproduce this problem, please provide
the steps so we can investigate further.

Paul
"Pierre" <pns57@hotmail.com> wrote in message
news:ca93291614daeac120451c4f8eace72b$1@www.eclipse.org...
>I do not know why, but it runs now !
>
Previous Topic:How to add third-party jars to TPTP/JUnit test?
Next Topic:Missing Constraint: Require-Bundle... for org.eclipse.tptp.platform.profile.server.wst
Goto Forum:
  


Current Time: Sat Nov 29 09:12:15 GMT 2014

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

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