cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Cahill (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-1173) ConsoleProxyResource instantiation exception
Date Wed, 20 Feb 2013 09:41:13 GMT


Dave Cahill commented on CLOUDSTACK-1173:

After a long and messy debugging session, I think I see what's wrong here.

Using jdb, I traced the source of the exception to this line:
                ServerResource resource = (ServerResource) constructor

constructor in this case has a clazz of,
and this line fails.

The line is trying to create an instance of,
however during the Spring refactor, this class was changed to be abstract - see commit [1].
I'm guessing trying to instantiate an abstract class would cause an InstantiationException:

diff --git a/agent/src/com/cloud/agent/resource/consoleproxy/ b/agent/src/com/cloud/agent/resource/consoleproxy/
index 48f5079..8a3a271 100644
--- a/agent/src/com/cloud/agent/resource/consoleproxy/
+++ b/agent/src/com/cloud/agent/resource/consoleproxy/
@@ -77,7 +77,7 @@ import;
  * server.
-public class ConsoleProxyResource extends ServerResourceBase implements
+public abstract class ConsoleProxyResource extends ServerResourceBase implements
         ServerResource {
     static final Logger s_logger = Logger.getLogger(ConsoleProxyResource.class);
So my guess is that either this abstract modifier needs ro be removed again, or we need to
change systemvm/conf/, which points ConsoleProxy at this abstract class:

root@v-2-VM:/usr/local/cloud/systemvm# tail -3 conf/ 


The Spring commit is Kelven's, so hopefully he'll know whether the above guess makes sense,
and which fix is better.


> ConsoleProxyResource instantiation exception
> --------------------------------------------
>                 Key: CLOUDSTACK-1173
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: VNC Proxy
>    Affects Versions: 4.1.0
>         Environment: devcloud
>            Reporter: Marcus Sorensen
>             Fix For: 4.1.0
> Looks like ConsoleProxy software is not coming up in the latest branches:
> log4j:WARN No appenders could be found for logger (org.apache.commons.httpclient.params.DefaultHttpParams).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See for more info.
> Unable to start agent: Instantiation excetion when loading resource:
due to: java.lang.InstantiationException

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message