NKXLAB / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
Other
1 stars 0 forks source link

Settings dialog produces "Invalid Managed Object Reference" error. #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
>> What steps will reproduce the problem?
1. Select a VM and click "Settings"

>> What is the expected output? What do you see instead?

I expect to see the settings dialog without errors.  An error message pops up 
about every second until I stop the vboxwebsrv process on the server.  

>> What version of phpVirtualBox, VirtualBox, and PHP are you using? On what
operating system?

phpVirtualBox - 0.5 and snv (r59)
VirtualBox - 3.2.8r64453
PHP - 5.3.1
OS - Oracle Enterprise Linux 5.5

>> Please provide any additional information below.

Here is the error message:

SoapFault Object
(
    [message:protected] => VirtualBox error: Invalid managed object reference "acd293fb2e89cf73-000000000000002d"
    [string:Exception:private] => 
    [code:protected] => 0
    [file:protected] => /opt/lampp/htdocs/phpvb/lib/vboxServiceWrappers.php
    [line:protected] => 807
    [trace:Exception:private] => Array
        (
            [0] => Array
                (
                    [file] => /opt/lampp/htdocs/phpvb/lib/vboxServiceWrappers.php
                    [line] => 807
                    [function] => __soapCall
                    [class] => SoapClient
                    [type] => ->
                    [args] => Array
                        (
                            [0] => IVirtualBox_getMachines
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [_this] => acd293fb2e89cf73-000000000000002d
                                        )

                                )

                        )

                )

            [1] => Array
                (
                    [file] => /opt/lampp/htdocs/phpvb/lib/vboxServiceWrappers.php
                    [line] => 54
                    [function] => getMachines
                    [class] => IVirtualBox
                    [type] => ->
                    [args] => Array
                        (
                        )

                )

            [2] => Array
                (
                    [file] => /opt/lampp/htdocs/phpvb/lib/vboxconnector.php
                    [line] => 1765
                    [function] => __get
                    [class] => VBox_ManagedObject
                    [type] => ->
                    [args] => Array
                        (
                            [0] => machines
                        )

                )

            [3] => Array
                (
                    [file] => /opt/lampp/htdocs/phpvb/lib/vboxconnector.php
                    [line] => 218
                    [function] => getVMsCached
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [fn] => getVMs
                                )

                            [1] => Array
                                (
                                    [data] => 
                                    [errors] => Array
                                        (
                                        )

                                    [persist] => Array
                                        (
                                        )

                                )

                        )

                )

            [4] => Array
                (
                    [function] => __call
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => getVMs
                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [fn] => getVMs
                                        )

                                    [1] => Array
                                        (
                                            [0] => Array
                                                (
                                                    [data] => 
                                                    [errors] => Array
                                                        (
                                                        )

                                                    [persist] => Array
                                                        (
                                                        )

                                                )

                                        )

                                )

                        )

                )

            [5] => Array
                (
                    [file] => /opt/lampp/htdocs/phpvb/lib/ajax.php
                    [line] => 93
                    [function] => getVMs
                    [class] => vboxconnector
                    [type] => ->
                    [args] => Array
                        (
                            [0] => Array
                                (
                                    [fn] => getVMs
                                )

                            [1] => Array
                                (
                                    [0] => Array
                                        (
                                            [data] => 
                                            [errors] => Array
                                                (
                                                )

                                            [persist] => Array
                                                (
                                                )

                                        )

                                )

                        )

                )

        )

    [previous:Exception:private] => 
    [faultstring] => VirtualBox error: Invalid managed object reference "acd293fb2e89cf73-000000000000002d"
    [faultcode] => SOAP-ENV:Sender
    [detail] => stdClass Object
        (
            [InvalidObjectFault] => stdClass Object
                (
                    [badObjectID] => acd293fb2e89cf73-000000000000002d
                )

        )

)

Original issue reported on code.google.com by gdwar...@gmail.com on 6 Sep 2010 at 3:52

GoogleCodeExporter commented 9 years ago
Hello,

Are you sure this only happens when you click on the Settings button? Can you 
start vboxwebsrv manually and see if any errors are printed to the screen from 
vboxwebsrv when this happens?

Original comment by imooreya...@gmail.com on 7 Sep 2010 at 1:53

GoogleCodeExporter commented 9 years ago
I've only seen it when clicking the Settings button.  The only other things 
I've done with phpvirtualbox are starting/stopping VMs, and changing the 
settings in the File->Settings dialog.

Here is a sample of the output from vboxwebsrv.  For every popup dialog I get 
in the web browser, it seems to spit out a Request line (this happens probably 
2-3 times a second.  I said once a second above, but I was wrong).

[This is taken from the moment I click "Settings"]

2010-09-06 23:42:37 [  2] Processing connection from IP=127.0.0.1 socket=11 (1 o
ut of 2 threads idle)
API return code:            0x80004004 (NS_ERROR_ABORT)
COM error info result code: 0x0
COM error info text:
2010-09-06 23:42:37 [ P ] Request 23 on socket 12 queued for processing (1 items
 on Q)
2010-09-06 23:42:37 [  1] Processing connection from IP=127.0.0.1 socket=12 (1 o
ut of 2 threads idle)
2010-09-06 23:42:41 [ P ] Request 24 on socket 11 queued for processing (1 items
 on Q)

Original comment by gdwar...@gmail.com on 7 Sep 2010 at 3:39

GoogleCodeExporter commented 9 years ago
Are you able to open the settings dialog from the VirtualBox GUI? Can you use 
VBoxManage to print the VM's settings like so:

VBoxManage showvminfo VMNAME

?

Original comment by imooreya...@gmail.com on 7 Sep 2010 at 10:26

GoogleCodeExporter commented 9 years ago
See below.  I created the 'foobar' machine just for this test and left it as 
vanilla as possible:

[gwarner@ns-az-j ~]$ VBoxManage showvminfo foobar
Oracle VM VirtualBox Command Line Management Interface Version 3.2.8
(C) 2005-2010 Oracle Corporation
All rights reserved.

Name:            foobar
Guest OS:        Linux 2.2
UUID:            0c63c933-d7ff-488e-9770-f4d715629ee7
Config file:     /home/gwarner/.VirtualBox/Machines/foobar/foobar.xml
Hardware UUID:   0c63c933-d7ff-488e-9770-f4d715629ee7
Memory size:     64MB
Page Fusion:     off
VRAM size:       8MB
HPET:            off
Number of CPUs:  1
Synthetic Cpu:   off
CPUID overrides: None
Boot menu mode:  message and menu
Boot Device (1): Floppy
Boot Device (2): DVD
Boot Device (3): HardDisk
Boot Device (4): Not Assigned
ACPI:            on
IOAPIC:          off
PAE:             off
Time offset:     0 ms
RTC:             UTC
Hardw. virt.ext: on
Hardw. virt.ext exclusive: on
Nested Paging:   on
Large Pages:     off
VT-x VPID:       on
State:           powered off (since 2010-09-07T13:33:33.000000000)
Monitor count:   1
3D Acceleration: off
2D Video Acceleration: off
Teleporter Enabled: off
Teleporter Port: 0
Teleporter Address: 
Teleporter Password: 
Storage Controller Name (0):            IDE Controller
Storage Controller Type (0):            PIIX4
Storage Controller Instance Number (0): 0
Storage Controller Max Port Count (0):  2
Storage Controller Port Count (0):      2
IDE Controller (1, 0): Empty
NIC 1:           MAC: 0800279A5998, Attachment: NAT, Cable connected: on, 
Trace: off (file: none), Type: Am79C973, Reported speed: 0 Mbps, Boot priority: 
0
NIC 1 Settings:  MTU: 0, Socket( send: 64, receive: 64), TCP Window( send:64, 
receive: 64)
NIC 2:           disabled
NIC 3:           disabled
NIC 4:           disabled
NIC 5:           disabled
NIC 6:           disabled
NIC 7:           disabled
NIC 8:           disabled
Pointing Device: PS/2 Mouse
Keyboard Device: PS/2 Keyboard
UART 1:          disabled
UART 2:          disabled
Audio:           enabled (Driver: ALSA, Controller: AC97)
Clipboard Mode:  Bidirectional
VRDP:            disabled
USB:             enabled

USB Device Filters:

<none>

Shared folders:  <none>  

Guest:

Configured memory balloon size:      0 MB

Original comment by gdwar...@gmail.com on 7 Sep 2010 at 10:32

GoogleCodeExporter commented 9 years ago
Then I must say that I am stumped. It looks like an error between vboxwebsrv 
and VirtualBox. Something is causing communication between the two to stop, 
which causes phpVirtualBox to spew the errors you are seeing.

Original comment by imooreya...@gmail.com on 9 Sep 2010 at 3:10

GoogleCodeExporter commented 9 years ago
Hello,

If you are still seeing this issue, it should go to virtualbox.org.

Original comment by imooreya...@gmail.com on 10 Jan 2011 at 12:16