Issue #425 has been updated by Clément OUDOT.

Problem in version set to 2.0rc2

Is seems there is a bug in LscAgent.java, in method protected int 
parseOptions(final String[] args):
<pre>
                options.addOption("s", "status", false, "Get a task status");
</pre>

The 3rd argument should be "true":
<pre>
                options.addOption("s", "status", true, "Get a task status");
</pre>
----------------------------------------
Bug #425: Unable to use lsc-agent to get task status
http://tools.lsc-project.org/issues/425

Author: Clément OUDOT
Status: Assigned
Priority: Normal
Assigned to: Sébastien Bahloul
Category: Core
Target version: 2.0
Problem in version: 2.0rc2


It seems the task name is not passed to the Java code:
<pre>
clement@ader:~/Programmes/lsc$ bin/lsc-agent -s password
avr. 05 17:12:19 - INFO  - Hostname parameter not specified, using localhost as 
default value.
avr. 05 17:12:19 - INFO  - TCP Port parameter not specified, using 1099 as 
default value.
avr. 05 17:12:19 - INFO  - Connecting to remote engine on : 
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
avr. 05 17:12:19 - ERROR - Unknown or synchronous task name: null
Last log file line: 2012/04/05 17:12:18 [lsc] Starting LSC Remote Agent
</pre>

But lsc-agent is able to list available tasks:
<pre>
clement@ader:~/Programmes/lsc$ bin/lsc-agent -l
avr. 05 17:13:51 - INFO  - Hostname parameter not specified, using localhost as 
default value.
avr. 05 17:13:51 - INFO  - TCP Port parameter not specified, using 1099 as 
default value.
avr. 05 17:13:51 - INFO  - Connecting to remote engine on : 
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
avr. 05 17:13:51 - INFO  - Available asynchronous tasks are: 
avr. 05 17:13:51 - INFO  -  - password
avr. 05 17:13:51 - INFO  - Available synchronous tasks are:
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to