cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daan Hoogland (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CLOUDSTACK-6133) consolevm not found by uuid or id
Date Tue, 18 Feb 2014 09:57:21 GMT
Daan Hoogland created CLOUDSTACK-6133:
-----------------------------------------

             Summary: consolevm not found by uuid or id
                 Key: CLOUDSTACK-6133
                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6133
             Project: CloudStack
          Issue Type: Bug
      Security Level: Public (Anyone can view this level - this is the default.)
          Components: VNC Proxy
    Affects Versions: 4.3.0
            Reporter: Daan Hoogland


when opening a console-proxy the following exeption is thrown:

WARN  [c.c.a.m.AgentManagerImpl] (AgentManager-Handler-7:null) Caught: 
java.lang.NumberFormatException: For input string: "4141ed24-ae19-4cea-8b8a-df4244fe6e0a"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Long.parseLong(Unknown Source)
	at java.lang.Long.parseLong(Unknown Source)
	at com.cloud.consoleproxy.AgentHookBase.onConsoleAccessAuthentication(AgentHookBase.java:137)
	at com.cloud.consoleproxy.ConsoleProxyListener.processControlCommand(ConsoleProxyListener.java:61)
	at com.cloud.agent.manager.AgentManagerImpl.handleControlCommand(AgentManagerImpl.java:279)
	at com.cloud.agent.manager.AgentManagerImpl.access$100(AgentManagerImpl.java:117)
	at com.cloud.agent.manager.AgentManagerImpl$AgentHandler.processRequest(AgentManagerImpl.java:1182)
	at com.cloud.agent.manager.AgentManagerImpl$AgentHandler.doTask(AgentManagerImpl.java:1270)
	at com.cloud.agent.manager.ClusteredAgentManagerImpl$ClusteredAgentHandler.doTask(ClusteredAgentManagerImpl.java:677)
	at com.cloud.utils.nio.Task.run(Task.java:83)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)


The following sequence is the culprit:

        VirtualMachine vm = _instanceDao.findByUuid(cmd.getVmId());
        if (vm == null) {
            vm = _instanceDao.findById(Long.parseLong(cmd.getVmId()));
        }

cmd.getVmId() returns a uuid but it is not found in the instance tabel. next it is parsed
as a long which it is not (it contains '-' folowing uuid format conventions) 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message