cannot start teamcity-vmware-client

Hi

I am trying to use the teamcity-vmware plugin. I did everything as mentioned in http://confluence.jetbrains.net/display/TW/Cloud-VMWare+plugin

If I want to start teamcity-vmware-client, I get the following exception:

[2012-06-29 13:52:20,792]   WARN - ouds.vmware.client.ImagesStore - Failed to read: C:\VMWare\Win7-64.Professional-SP1-image-info.xml. Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
required-type       : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
path                : /jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
line number         : 1
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
required-type       : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
path                : /jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
line number         : 1
-------------------------------
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:861)
    at jetbrains.buildServer.clouds.vmware.client.ImagesStore.scan(ImagesStore.java:63)
    at jetbrains.buildServer.clouds.vmware.client.ImagesStore.<init>(ImagesStore.java:47)
    at jetbrains.buildServer.clouds.vmware.client.Main.main(Main.java:52)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at jetbrains.buildServer.clouds.vmware.client.CPMain.main(CPMain.java:44)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
    at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
    ... 16 more

The content of the -image-info.xml is:
<jetbrains.buildServer.clouds.vmware.settings.VMImageInfo>
  <!-- virtual machine unique id -->
  <myId>Win7-64.Professional.SP1</myId>

  <!-- local path to .vmx file -->
  <myImagePath>C:\VMWare\Windows 7 x64 Professional SP1\Clone of Windows 7 x64 Professional No SP.vmx</myImagePath>
    
  <!-- path to buildAgent.properties inside the virtual machine -->
  <myImageAgentConfigLocation>C:\BuildAgent\conf\buildAgent.properties</myImageAgentConfigLocation>
  
  <!-- login/password for the virtual machine administrator account -->
  <myUserName>DOMAIN\USERNAME</myUserName>
  <myPassword>PWD</myPassword>
</jetbrains.buildServer.clouds.vmware.settings.VMImageInfo>

I use the following:
- TeamCity Enterprise  7.0.3 (build 21424)
- VMware-player-3.0.1-227600
- VMware-vix-1.8.2-227600

What am I doing wrong?

Kind regards and thank for any help
Michael

31 comments
Comment actions Permalink

Hello,

That is really strange as I failed to reproduce the issue in test,
still I added no-arg constructor for the class in order to make XStream to recreated it.

Please check you use same version of XStream as we use inside TeamCity.

Have you comiled the plugin yourself or you used a build from http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt304&tab=buildTypeStatusDiv?
There you'll find a newer bits of the plugin

0
Comment actions Permalink

Hello

Thank you for the fast reply.

I downloaded both versions directly from your TeamCity.

The new version does not work either: I get this exception (from vmware-client.log):

[2012-07-03 06:34:02,961]   WARN - are.vmrun.remote.client.Client - Failed to fetch task list. Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
required-type       : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
line number         : 1
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
required-type       : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
line number         : 1
-------------------------------
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
 at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
 at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
 at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
 at jetbrains.buildServer.clouds.vmware.vmrun.remote.xmlrpc.XmRpcClient.getTasks(XmRpcClient.java:51)
 at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1.run(Client.java:56)
 at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:37)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
 at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
 ... 20 more
[2012-07-03 06:34:06,018]   WARN - are.vmrun.remote.client.Client - Failed to fetch task list. Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
required-type       : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
line number         : 1
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
required-type       : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
line number         : 1
-------------------------------
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
 at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
 at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
 at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
 at jetbrains.buildServer.clouds.vmware.vmrun.remote.xmlrpc.XmRpcClient.getTasks(XmRpcClient.java:51)
 at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1.run(Client.java:56)
 at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:37)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
 at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
 ... 20 more
[2012-07-03 06:34:09,076]   WARN - are.vmrun.remote.client.Client - Failed to fetch task list. Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
required-type       : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
line number         : 1
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
required-type       : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
line number         : 1
-------------------------------
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
 at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
 at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
 at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
 at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
 at jetbrains.buildServer.clouds.vmware.vmrun.remote.xmlrpc.XmRpcClient.getTasks(XmRpcClient.java:51)
 at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1.run(Client.java:56)
 at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:37)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
 at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask as it does not have a no-args constructor
 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:71)
 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:308)
 at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:161)
 at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
 ... 20 more



For the update of the plugin: I did the following steps:
- delete the old *.zip file
- copy the new *.zip file
- restart TeamCity server service
- download new client zip
- copy it to the host machine and unzip
Is there anything special I have to check?


Kind regards
Michael
0
Comment actions Permalink

What JVM version do you use?

0
Comment actions Permalink

I have the following 2 Java packages installed:
Java 6 (Version 6 Update 25)
Java 7 (Version 7 Update 5)

Both of them are 64-bit and I have downloaded them from http://java.com/en/download

The host operating system is Windows 7, 64-bit.

0
Comment actions Permalink

Do you use some specific options to start JVM?
Please check what environment variables do you have for the process. ( my calling: cmd /c set)

The issue is that for some reason XStream failed to deserialize instances of classes.
We use this trick in many places in TeamCity.

Do you able to run builds on your TeamCity installation? (any build will do)

0
Comment actions Permalink

It looks like JVM/XStream issue.
Could you please try upgrading java to 1.6.0_33 (the latest 1.6) and try it once more.
Please make sure you use that version of java on agent, server and vmrun-client

0
Comment actions Permalink

here is the content of the SET command:

ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\11autotester\AppData\Roaming
CLIENTNAME=KAUFLIN
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=NICARAGUA
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\11autotester
LOCALAPPDATA=C:\Users\11autotester\AppData\Local
LOGONSERVER=\\NICARAGUA
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=RDP-Tcp#1
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\11AUTO~1\AppData\Local\Temp
TMP=C:\Users\11AUTO~1\AppData\Local\Temp
USERDOMAIN=NICARAGUA
USERNAME=11autotester
USERPROFILE=C:\Users\11autotester
windir=C:\Windows



Somehow, there is no JAVA_HOME path
0
Comment actions Permalink

I found the issue. It's because in plugin it still has older XStream jar. I'll create the fix for it and let you know

0
Comment actions Permalink

Please try the build from http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt383&tab=buildTypeStatusDiv
with latest 1.6.0 (33) java.
Please let me know the result

0
Comment actions Permalink

Hello Eugene

Thanks a lot, it works! Would it also work with newer VMWare versions?

Kind regards
Michael

0
Comment actions Permalink

We have not tested it with newer version.
What it uses are several commandline commands to run virual machines.
I believe this should not change in the newer versoins.
You may try it. If you have some issues, please let us know.
Make sure you use same version of VMWare VIX and VMWare player/workstation.

0
Comment actions Permalink

Hi, Eugene

I have the same issue
Exception is:

admin@build:~/teamcity-vmware-client> java -jar cloud-vmware-client.jar /server:http://build:8080 /vmrun:/usr/bin/vmrun /store:/home/admin/work/virtual_machines/ /maxInstances:3
Loading libraries from: /home/admin/teamcity-vmware-client/lib
Looking for images from: /home/admin/work/virtual_machines
Connecting to TeamCity server at: http://build:8080
Will use VMWare VIX from: /usr/bin/vmrun

[2013-03-06 18:09:56,605]   WARN - ouds.vmware.client.ImagesStore - Failed to read: /home/admin/work/virtual_machines/winxp_x64-image-info.xml. Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
required-type       : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
line number         : 1
version             : 21348
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
required-type       : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
line number         : 1
version             : 21348
-------------------------------
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
   at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:974)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:958)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:901)
   at jetbrains.buildServer.clouds.vmware.client.ImagesStore.scan(ImagesStore.java:63)
   at jetbrains.buildServer.clouds.vmware.client.ImagesStore.<init>(ImagesStore.java:47)
   at jetbrains.buildServer.clouds.vmware.client.Main.main(Main.java:52)
   at java.lang.reflect.Method.invoke(libgcj.so.13)
   at jetbrains.buildServer.clouds.vmware.client.CPMain.main(CPMain.java:44)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
   at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:70)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:356)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:193)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   ...13 more

[2013-03-06 18:09:56,618]   WARN - ouds.vmware.client.ImagesStore - Failed to read: /home/admin/work/virtual_machines/openSUSEx64-image-info.xml. Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
required-type       : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
line number         : 1
version             : 21348
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
---- Debugging information ----
message             : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message       : Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
class               : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
required-type       : jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
converter-type      : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
path                : /jetbrains.buildServer.clouds.vmware.settings.VMImageInfo
line number         : 1
version             : 21348
-------------------------------
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
   at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
   at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:974)
   at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:958)
   at com.thoughtworks.xstream.XStream.fromXML(XStream.java:901)
   at jetbrains.buildServer.clouds.vmware.client.ImagesStore.scan(ImagesStore.java:63)
   at jetbrains.buildServer.clouds.vmware.client.ImagesStore.<init>(ImagesStore.java:47)
   at jetbrains.buildServer.clouds.vmware.client.Main.main(Main.java:52)
   at java.lang.reflect.Method.invoke(libgcj.so.13)
   at jetbrains.buildServer.clouds.vmware.client.CPMain.main(CPMain.java:44)
Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Cannot construct jetbrains.buildServer.clouds.vmware.settings.VMImageInfo as it does not have a no-args constructor
   at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.newInstance(PureJavaReflectionProvider.java:70)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.instantiateNewInstance(AbstractReflectionConverter.java:356)
   at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:193)
   at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
   ...13 more

Client is waiting for commands from TeamCity server...
^Z
[5]+  Stopped                 java -jar cloud-vmware-client.jar /server:http://build:8080 /vmrun:/usr/bin/vmrun /store:/home/admin/work/virtual_machines/ /maxInstances:3
admin@build:~/teamcity-vmware-client>



Teamcity Server version 7.1.4 (build 24331)

VMWare plugin I took from here http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt304&tab=buildTypeStatusDiv

JDK version 2000:1.7.0_17-fcs-x86_64

OS openSUSE 12.2 x86_64


The content of the -image-info.xml is:
<jetbrains.buildServer.clouds.vmware.settings.VMImageInfo>
  <!-- virtual machine unique id -->
  <myId>Windows_XP_x64</myId>

  <!-- local path to .vmx file -->
  <myImagePath>/home/admin/work/virtual_machines/winxp_x64/Windows_XP_x64.vmx</myImagePath>
    
  <!-- path to buildAgent.properties inside the virtual machine -->
  <myImageAgentConfigLocation>F:/BuildAgent/conf/buildAgent.properties</myImageAgentConfigLocation>
  
  <!-- login/password for the virtual machine administrator account -->
  <myUserName>admin</myUserName>
  <myPassword>123</myPassword>
</jetbrains.buildServer.clouds.vmware.settings.VMImageInfo>

Thanks for any help.

0
Comment actions Permalink

Your current plugin uses too old version of XStream library. Please consider downgrading Java version or taking newer version of the plugin

0
Comment actions Permalink

I tried to use all combinations:
JDK ver. 6 update 43 + VMWare plugin (on 7.0.x)
JDK ver. 6 update 43 + VMWare plugin (on 6.0.x)
JDK ver. 7 update 17 + VMWare plugin (on 7.0.x)
JDK ver. 7 update 17 + VMWare plugin (on 6.0.x)

Everytime I got the same errors.

1. I tried to use OpenJDK and have no such error while starting teamcity-vmware-client. My *-info.xml file is fine. Any program can open it.
2. Can you add normal plugin version to this plugins?If you open teamcity-plugin.xml in both of them you will see SANPSHOT-201008101252. And they have similar size :)
3. P.S. Can I use russian? =)

0
Comment actions Permalink

The version encodes data and time of build. I do not think it's necessary to change it now.

I created a build against 7.1.x. Please give it a try
http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt383

0
Comment actions Permalink

Unfortunately, the same situation.

I use JDK ver. 7.0_17
TeamCity ver. 7.1.4(build 24331)
VMWare plugin (on 7.1.x)

0
Comment actions Permalink

You may also use russian ;)

I want to make sure that you updated plugin client also

0
Comment actions Permalink

Please also check you wiped older files from lib folder of the client

0
Comment actions Permalink

Удалил все, связанное с java.
Переустановил:
JDK ver. 7_17
Teamcity Server ver 7.1
VMWare plugin (on 7.1.x)
teamcity-vmware-client - новый


Ошибка осталась.
Счас пытаюсь поставить на win7_x64

0
Comment actions Permalink

Какие файлы есть в папке либ vm-run?

0
Comment actions Permalink

Сейчас вычистил все, относящееся к java. Теперь ошибка, которая была при использовании OpenJDK.

[2013-03-07 16:31:41,249]   INFO - are.vmrun.local.LocalVMCommand - Starting command: /usr/bin/vmrun -T player list
[2013-03-07 16:31:41,433]   INFO - are.vmrun.local.LocalVMCommand - Result: Total running VMs: 0
[2013-03-07 16:31:41,433]   INFO - are.vmrun.local.LocalVMCommand - Result:  
[2013-03-07 16:31:41,434]   INFO - are.vmrun.local.LocalVMCommand - Code: 0
[2013-03-07 16:31:41,434]   INFO - .vmware.vmrun.local.LocalVMRun - Currently running machines: 0 of 1
[2013-03-07 16:31:41,435]   INFO - .vmware.vmrun.local.LocalVMRun - Starting image: VMRunParameters{myImageId='build-OpenSUSEx64', myLocationId='wm-dFjuWxbgFmIjAveAEPG5lVj7tT5Uf3z2', myInstanceId='build-OpenSUSEx64-i', myImageInfo=VMImageInfo{myId='OpenSUSEx64', myImagePath='/home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx'}}
[2013-03-07 16:31:41,437]   INFO - are.vmrun.local.LocalVMCommand - Starting command: /usr/bin/vmrun -T player start /home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx  
[2013-03-07 16:31:41,726]   INFO - are.vmrun.local.LocalVMCommand - Result: Error: One of the parameters was invalid
[2013-03-07 16:31:41,726]   INFO - are.vmrun.local.LocalVMCommand - Result:  
[2013-03-07 16:31:41,726]   INFO - are.vmrun.local.LocalVMCommand - Code: 255
[2013-03-07 16:31:41,727]   WARN - .vmware.vmrun.local.LocalVMRun - Failed to start image: VMImageInfo{myId='OpenSUSEx64', myImagePath='/home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx'}. Failed to start image VMImageInfo{myId='OpenSUSEx64', myImagePath='/home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx'}, resultCode was 255, Error: One of the parameters was invalid,  
jetbrains.buildServer.clouds.vmware.vmrun.local.VMRunException: Failed to start image VMImageInfo{myId='OpenSUSEx64', myImagePath='/home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx'}, resultCode was 255, Error: One of the parameters was invalid,
        at jetbrains.buildServer.clouds.vmware.vmrun.local.StartCommand.processResult(StartCommand.java:48)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMCommand.startVMRun(LocalVMCommand.java:85)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.doStartMachine(LocalVMRun.java:118)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.lockedStartMachine(LocalVMRun.java:84)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.startMachine(LocalVMRun.java:65)
        at jetbrains.buildServer.clouds.vmware.client.DownloadingVMRun.startMachine(DownloadingVMRun.java:98)
        at jetbrains.buildServer.clouds.vmware.client.LoggingVMRun.startMachine(LoggingVMRun.java:86)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1$1.run2(Client.java:135)
        at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1$1.run(Client.java:119)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
[2013-03-07 16:31:41,729]   WARN - are.vmrun.remote.client.Client - Failed to perform command.  
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1$1.run2(Client.java:135)
        at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1$1.run(Client.java:119)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:722)
Caused by: jetbrains.buildServer.clouds.vmware.vmrun.local.VMRunException: Failed to start image: VMImageInfo{myId='OpenSUSEx64', myImagePath='/home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx'}. Failed to start image VMImageInfo{myId='OpenSUSEx64', myImagePath='/home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx'}, resultCode was 255, Error: One of the parameters was invalid,
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.lockedStartMachine(LocalVMRun.java:89)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.startMachine(LocalVMRun.java:65)
        at jetbrains.buildServer.clouds.vmware.client.DownloadingVMRun.startMachine(DownloadingVMRun.java:98)
        at jetbrains.buildServer.clouds.vmware.client.LoggingVMRun.startMachine(LoggingVMRun.java:86)
        ... 14 more
Caused by: jetbrains.buildServer.clouds.vmware.vmrun.local.VMRunException: Failed to start image VMImageInfo{myId='OpenSUSEx64', myImagePath='/home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx'}, resultCode was 255, Error: One of the parameters was invalid,
        at jetbrains.buildServer.clouds.vmware.vmrun.local.StartCommand.processResult(StartCommand.java:48)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMCommand.startVMRun(LocalVMCommand.java:85)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.doStartMachine(LocalVMRun.java:118)
        at jetbrains.buildServer.clouds.vmware.vmrun.local.LocalVMRun.lockedStartMachine(LocalVMRun.java:84)
        ... 17 more

При работающих виртуалках все норм.

Вроде не работает LocalVMCommand.mySettings.getUserGui();



file:///home/admin/teamcity-vmware-client/lib/annotations.jar
file:///home/admin/teamcity-vmware-client/lib/cloud-interface.jar
file:///home/admin/teamcity-vmware-client/lib/cloud-shared.jar
file:///home/admin/teamcity-vmware-client/lib/cloud-vmware-client.jar
file:///home/admin/teamcity-vmware-client/lib/cloud-vmware-common.jar
file:///home/admin/teamcity-vmware-client/lib/cloud-vmware-vmrun.jar
file:///home/admin/teamcity-vmware-client/lib/common-api.jar
file:///home/admin/teamcity-vmware-client/lib/commons-beanutils-core.jar
file:///home/admin/teamcity-vmware-client/lib/commons-cli-1.0.jar
file:///home/admin/teamcity-vmware-client/lib/commons-codec-1.3.jar
file:///home/admin/teamcity-vmware-client/lib/commons-collections-3.2.1.jar
file:///home/admin/teamcity-vmware-client/lib/commons-compress-1.3-SNAPSHOT.jar
file:///home/admin/teamcity-vmware-client/lib/commons-dbcp-1.3.jar
file:///home/admin/teamcity-vmware-client/lib/commons-fileupload-1.2.2.jar
file:///home/admin/teamcity-vmware-client/lib/commons-httpclient-3.1.jar
file:///home/admin/teamcity-vmware-client/lib/commons-io-1.3.2.jar
file:///home/admin/teamcity-vmware-client/lib/commons-logging.jar
file:///home/admin/teamcity-vmware-client/lib/jdom.jar
file:///home/admin/teamcity-vmware-client/lib/log4j-1.2.12.jar
file:///home/admin/teamcity-vmware-client/lib/openapi.jar
file:///home/admin/teamcity-vmware-client/lib/resources_en.jar
file:///home/admin/teamcity-vmware-client/lib/spring.jar
file:///home/admin/teamcity-vmware-client/lib/trove4j.jar
file:///home/admin/teamcity-vmware-client/lib/util.jar
file:///home/admin/teamcity-vmware-client/lib/xmlrpc-2.0.1.jar
file:///home/admin/teamcity-vmware-client/lib/xpp3-1.1.4c.jar
file:///home/admin/teamcity-vmware-client/lib/xstream-1.4-20110423.112604-3.jar

0
Comment actions Permalink

Сейчас стоит
JDK ver. 7_17
Teamcity Server ver 7.1
VMWare plugin (on 7.1.x)
teamcity-vmware-client - новый

0
Comment actions Permalink

Проблема, я так полагаю была в том, что новая версия плагина была установлена "по верх" текущей. В итоге ЖВМ загружал старую версию библиотеки вместо новой.
Стоит убедиться, что в других местах небыло сделано такого-же апгрейда.

По поводу новой ошибки. Я так понимаю, команда
/usr/bin/vmrun -T player start /home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx  
не сработала.

Проверьте, что эта команда работает под пользователем, которым вы запускаете vmrun-client
Возможно проблема в правах доступа

0
Comment actions Permalink

Команда
/usr/bin/vmrun -T player start /home/admin/work/virtual_machines/openSUSEx64/OpenSUSE_64-bit.vmx

запущенная под пользователем запускает виртуалку.

По моему проблема в
LocalVMCommandClass  str 62       this.myCommandLine.addParameters(addArguments());



StartCommandClass   str39
  @NotNull
  protected List<String> addArguments()
  {
    if (!this.myInfo.isLocal()) {
      throw new VMRunException("Failed to start non-local image: " + this.myInfo);
    }
    return Arrays.asList(new String[] { "start", this.myInfo.getImagePath(), this.mySettings.getUseGui() ? "" : "nogui" });
  }

0
Comment actions Permalink

Спасибо. Действительно я собираю комманд-лайн в этом месте не очень акуратно.
Поправил.
Возьмите свежий билд
http://teamcity.jetbrains.com/viewLog.html?buildId=78980&tab=buildResultsDiv&buildTypeId=bt441

0
Comment actions Permalink

Что то та же ошибка. Эти изменения в teamcity-vmware-client?

0
Comment actions Permalink

да, однако лучше обновить все целиком

0
Comment actions Permalink

Все взлетело)
Спасибо

0
Comment actions Permalink

Добрый день!

JDK 1.7.0_25
Teamcity Server 8.0.4
VMWare plugin 7.1.x - http://teamcity.jetbrains.com/viewLog.html?buildId=86281&tab=buildResultsDiv&buildTypeId=bt441
VMWare player 5.0.2 build-1031769


Машина видна во вкладке Cloud, но не может стартануть. выдавая в лог:

[2013-10-10 19:34:08,733]   INFO - uds.vmware.client.LoggingVMRun - Pinging running instances...
[2013-10-10 19:34:08,733]   INFO - are.vmrun.local.LocalVMCommand - Starting command: "C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe" -T player list
[2013-10-10 19:34:09,170]   INFO - are.vmrun.local.LocalVMCommand - Result: Total running VMs: 0
[2013-10-10 19:34:09,170]   INFO - are.vmrun.local.LocalVMCommand - Result:  
[2013-10-10 19:34:09,170]   INFO - are.vmrun.local.LocalVMCommand - Code: 0
[2013-10-10 19:34:09,170]   INFO - uds.vmware.client.LoggingVMRun - Found 0 running instances
[2013-10-10 19:34:11,759]   WARN - are.vmrun.remote.client.Client - Failed to fetch task list. TreeMap does not contain <comparator> element
---- Debugging information ----
class               : java.util.TreeMap
required-type       : java.util.TreeMap
converter-type      : com.thoughtworks.xstream.converters.collections.TreeMapConverter
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask/myParameters/jetbrains.buildServer.clouds.CloudInstanceUserData/myCustomAgentConfigurationParameters/entry
line number         : 25
class[1]            : jetbrains.buildServer.clouds.CloudInstanceUserData
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : [Ljava.lang.Object;
converter-type[2]   : com.thoughtworks.xstream.converters.collections.ArrayConverter
class[3]            : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
version             : 21348
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: TreeMap does not contain <comparator> element
---- Debugging information ----
class               : java.util.TreeMap
required-type       : java.util.TreeMap
converter-type      : com.thoughtworks.xstream.converters.collections.TreeMapConverter
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask/myParameters/jetbrains.buildServer.clouds.CloudInstanceUserData/myCustomAgentConfigurationParameters/entry
line number         : 25
class[1]            : jetbrains.buildServer.clouds.CloudInstanceUserData
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : [Ljava.lang.Object;
converter-type[2]   : com.thoughtworks.xstream.converters.collections.ArrayConverter
class[3]            : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
version             : 21348
-------------------------------
    at com.thoughtworks.xstream.converters.collections.TreeMapConverter.unmarshalComparator(TreeMapConverter.java:105)
    at com.thoughtworks.xstream.converters.collections.TreeMapConverter.unmarshal(TreeMapConverter.java:87)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:294)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:266)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:194)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
    at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
    at com.thoughtworks.xstream.converters.collections.ArrayConverter.unmarshal(ArrayConverter.java:55)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:294)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:266)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:194)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:974)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:958)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:892)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:883)
    at jetbrains.buildServer.clouds.vmware.vmrun.remote.xmlrpc.XmRpcClient.getTasks(XmRpcClient.java:51)
    at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1.run(Client.java:56)
    at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:37)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
[2013-10-10 19:34:14,848]   WARN - are.vmrun.remote.client.Client - Failed to fetch task list. TreeMap does not contain <comparator> element
---- Debugging information ----
class               : java.util.TreeMap
required-type       : java.util.TreeMap
converter-type      : com.thoughtworks.xstream.converters.collections.TreeMapConverter
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask/myParameters/jetbrains.buildServer.clouds.CloudInstanceUserData/myCustomAgentConfigurationParameters/entry
line number         : 25
class[1]            : jetbrains.buildServer.clouds.CloudInstanceUserData
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : [Ljava.lang.Object;
converter-type[2]   : com.thoughtworks.xstream.converters.collections.ArrayConverter
class[3]            : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
version             : 21348
-------------------------------
com.thoughtworks.xstream.converters.ConversionException: TreeMap does not contain <comparator> element
---- Debugging information ----
class               : java.util.TreeMap
required-type       : java.util.TreeMap
converter-type      : com.thoughtworks.xstream.converters.collections.TreeMapConverter
path                : /jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask/myParameters/jetbrains.buildServer.clouds.CloudInstanceUserData/myCustomAgentConfigurationParameters/entry
line number         : 25
class[1]            : jetbrains.buildServer.clouds.CloudInstanceUserData
converter-type[1]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
class[2]            : [Ljava.lang.Object;
converter-type[2]   : com.thoughtworks.xstream.converters.collections.ArrayConverter
class[3]            : jetbrains.buildServer.clouds.vmware.vmrun.remote.RemoteTask
version             : 21348
-------------------------------
    at com.thoughtworks.xstream.converters.collections.TreeMapConverter.unmarshalComparator(TreeMapConverter.java:105)
    at com.thoughtworks.xstream.converters.collections.TreeMapConverter.unmarshal(TreeMapConverter.java:87)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:294)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:266)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:194)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
    at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
    at com.thoughtworks.xstream.converters.collections.ArrayConverter.unmarshal(ArrayConverter.java:55)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:294)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:266)
    at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:194)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
    at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
    at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
    at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:974)
    at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:958)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:892)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:883)
    at jetbrains.buildServer.clouds.vmware.vmrun.remote.xmlrpc.XmRpcClient.getTasks(XmRpcClient.java:51)
    at jetbrains.buildServer.clouds.vmware.vmrun.remote.client.Client$1.run(Client.java:56)
    at jetbrains.buildServer.util.ExceptionUtil$1.run(ExceptionUtil.java:37)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
    at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Если машина запущена, то останавливается из вкладки Cloud корректно.

0

Please sign in to leave a comment.