Issue #474 has been updated by Sébastien Bahloul.

Ok to fix the 2.0 branch first, but because it is linked to the fact that LSC 
is started with an unknown async task, it is not related or blocked by #465 in 
my understanding.
----------------------------------------
Bug #474: Error in LSC agent when LSC is launched with a unknown async task
http://tools.lsc-project.org/issues/474

Author: Clément OUDOT
Status: Feedback
Priority: Normal
Assigned to: Clément OUDOT
Category: Core
Target version: 2.0
Problem in version: 2.0-SNAPSHOT


If we launch LSC with an unknown async task, the LSC process is running, but 
when using LSC agent to get tasks list, we have:
<pre>
clement@ader:~/tmp/lsc-2.0-SNAPSHOT$ bin/lsc-agent -l
mai 21 14:52:56 - INFO  - Hostname parameter not specified, using localhost as 
default value.
mai 21 14:52:56 - INFO  - TCP Port parameter not specified, using 1099 as 
default value.
mai 21 14:52:56 - INFO  - Connecting to remote engine on : 
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
mai 21 14:52:56 - INFO  - Available asynchronous tasks are: 
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
        at $Proxy0.getAsyncTasksName(Unknown Source)
        at org.lsc.jmx.LscAgent.run(LscAgent.java:169)
        at org.lsc.jmx.LscAgent.main(LscAgent.java:133)
Caused by: javax.management.InstanceNotFoundException: 
org.lsc.jmx:type=LscServer
        at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1094)
        at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:662)
        at 
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:638)
        at 
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1404)
        at 
javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
        at 
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265)
        at 
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1360)
        at 
javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:600)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
        at sun.rmi.transport.Transport$1.run(Transport.java:159)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
        at 
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
        at 
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at 
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
        at 
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
        at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
        at 
javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown Source)
        at 
javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:880)
        at 
com.sun.jmx.mbeanserver.MXBeanProxy$GetHandler.invoke(MXBeanProxy.java:106)
        at com.sun.jmx.mbeanserver.MXBeanProxy.invoke(MXBeanProxy.java:148)
        at 
javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:248)
        ... 3 more
Last log file line: 2012/05/21 14:52:55 [lsc] Starting LSC Remote Agent
</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