Nikolay,<br><br>Thanks for the reply, I am able to rename that directory and the application that I am creating is itself creating and modifying virtual machines so I do not think its a permissions issue. I can create and modify virtual machines thorough the regular GUI also. <br>

<br>I have since restarted the vboxwebservice process and the problem has gone. I have seen this in the past however so I it must be something that appears after a certain amount of time or usage of the webservice.<br><br>

This is really not critical for me now as i can resolve with a restart and the application using vbox will not be a production one, however if you have any more troubleshooting that I could try to find the cause I would be delighted to try it.  <br>

<br>Regards,<br><br>Gerry Egan<br><br><div class="gmail_quote">On 16 April 2010 13:06, Nikolay Igotti <span dir="ltr"><<a href="mailto:Nikolay.Igotti@sun.com">Nikolay.Igotti@sun.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

   Hi Gerry,<br>
<br>
<br>
Are you sure that user starting vboxweb.exe indeed is allowed to access and modify your virtual machine files? Just for test, can you try to rename .VirtualBox directory in your home directory, and create few new VMs from scratch, and see if problem persists.<br>


If not, then likely some of your xmls/vdis are corrupted or not accessible. Can you access VMs from the VBox own GUI?<br>
<br>
Nikolay.<br>
<br>
<br>
Gerry Egan wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">
Hello.<br>
<br>
I am trying to get the names and OS types of virtual machines using the Java webservice API. I am able to get the names but I get an exception every time and I cannot find the cause of this. The code I am running is:<br>


<br>
public void getVmNames()<br>
    {<br>
        mgr = new IWebsessionManager("<a href="http://localhost:18083/" target="_blank">http://localhost:18083/</a>");<br>
        vbox = mgr.logon("test", "test");<br>
        try<br>
        {<br>
            List<IMachine> machines=vbox.getMachines();<br>
            for (IMachine m : machines)<br>
            {<br>
                vmListModel.addElement(m.getName()+" "+m.getOSTypeId());<br>
            }<br>
        }<br>
        catch (Exception e)<br>
        {<br>
            e.printStackTrace();<br>
        }<br>
        cleanup();<br>
     }<br>
<br>
The printout from the exception is:<br>
<br>
javax.xml.ws.WebServiceException: org.virtualbox_3_1.RuntimeFaultMsg: VirtualBox error: The object functionality is limited (0x2147942405)<br>
        at com.sun.xml.ws.commons.virtualbox_3_1.IMachine.getName(IMachine.java:98)<br>
        at project.VBench.getVmNames(VBench.java:623)<br>
        at project.VBench.NewTestButtonActionPerformed(VBench.java:634)<br>
        at project.VBench.access$300(VBench.java:16)<br>
        at project.VBench$4.actionPerformed(VBench.java:429)<br>
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)<br>
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)<br>
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)<br>
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)<br>
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)<br>
        at java.awt.Component.processMouseEvent(Component.java:6263)<br>
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3255)<br>
        at java.awt.Component.processEvent(Component.java:6028)<br>
        at java.awt.Container.processEvent(Container.java:2041)<br>
        at java.awt.Component.dispatchEventImpl(Component.java:4630)<br>
        at java.awt.Container.dispatchEventImpl(Container.java:2099)<br>
        at java.awt.Component.dispatchEvent(Component.java:4460)<br>
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)<br>
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)<br>
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)<br>
        at java.awt.Container.dispatchEventImpl(Container.java:2085)<br>
        at java.awt.Window.dispatchEventImpl(Window.java:2475)<br>
        at java.awt.Component.dispatchEvent(Component.java:4460)<br>
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)<br>
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)<br>
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)<br>
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)<br>
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)<br>
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)<br>
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)<br>
Caused by: org.virtualbox_3_1.RuntimeFaultMsg: VirtualBox error: The object functionality is limited (0x2147942405)<br>
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br>
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br>
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br>
        at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:130)<br>
        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)<br>
        at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)<br>
        at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)<br>
        at $Proxy33.iMachineGetName(Unknown Source)<br>
        at com.sun.xml.ws.commons.virtualbox_3_1.IMachine.getName(IMachine.java:93)<br>
        ... 29 more<br>
<br>
A similar piece of code can be found in the clienttest.java example, when I run the clienttest show vms code I get the same exception.<br>
I am using VirtualBox 3.6 and the host is Windows server 2003. Any help would be greatly appreciated!<br>
<br>
<br>
Regards,<br>
<br>
Gerry Egan<br></div></div>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
vbox-dev mailing list<br>
<a href="mailto:vbox-dev@virtualbox.org" target="_blank">vbox-dev@virtualbox.org</a><br>
<a href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target="_blank">http://vbox.innotek.de/mailman/listinfo/vbox-dev</a><br>
  <br>
</blockquote>
<br>
</blockquote></div><br>