Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1058078 - Update vm OS type throws an NPE
Summary: Update vm OS type throws an NPE
Status: CLOSED DUPLICATE of bug 1059780
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.4.0
Assignee: Roy Golan
QA Contact:
Whiteboard: virt
Depends On:
TreeView+ depends on / blocked
Reported: 2014-01-26 21:45 UTC by Ohad Basan
Modified: 2014-02-03 15:10 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2014-02-03 15:10:55 UTC
oVirt Team: ---
Target Upstream Version:

Attachments (Terms of Use)

Description Ohad Basan 2014-01-26 21:45:45 UTC
Description of problem:
REST query sent: 

2014-01-26 22:48:17,216 - MainThread - vms - DEBUG - PUT request content is --  url:/ovirt-engine/api/vms/84e1a52a-bc9f-4764-ae0f-f843dca51c7d body:<vm>
    <os type="windows_xp"/>
2014-01-26 22:48:17,385 - MainThread - core_api - DEBUG - Request PUT response time: 0.040
2014-01-26 22:48:17,385 - MainThread - vms - DEBUG - Response body for PUT request is: 
    <reason>Operation Failed</reason>
    <detail>[General command validation failure.]</detail>

[org.ovirt.engine.core.bll.UpdateVmCommand] (ajp-/ [418] Error during CanDoActionFailure.: java.lang.NullPointerException
	at org.ovirt.engine.core.bll.UpdateVmCommand.isValidPciAndIdeLimit( [bll.jar:]
	at org.ovirt.engine.core.bll.UpdateVmCommand.canDoAction( [bll.jar:]
	at org.ovirt.engine.core.bll.CommandBase.internalCanDoAction( [bll.jar:]
	at org.ovirt.engine.core.bll.CommandBase.executeAction( [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.runAction( [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.runActionImpl( [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.runAction( [bll.jar:]
	at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source) [:1.7.0_51]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke( [rt.jar:1.7.0_51]
	at java.lang.reflect.Method.invoke( [rt.jar:1.7.0_51]
	at$ManagedReferenceMethodInterceptor.processInvocation( [jboss-as-ee.jar:7.3.0.Final-redhat-14]
	at org.jboss.invocation.InterceptorContext.proceed( [jboss-invocation.jar:1.1.2.Final-redhat-1]
	at org.jboss.invocation.WeavedInterceptor.processInvocation( [jboss-invocation.jar:1.1.2.Final-redhat-1]
	at$1.processInvocation( [jboss-as-ee.jar:7.3.0.Final-redhat-14]
	at org.jboss.invocation.InterceptorContext.proceed( [jboss-invocation.jar:1.1.2.Final-redhat-1]
	at org.jboss.invocation.InterceptorContext$Invocation.proceed( [jboss-invocation.jar:1.1.2.Final-redhat-1]
	at org.ovirt.engine.core.bll.interceptors.ThreadLocalSessionCleanerInterceptor.injectWebContextToThreadLocal( [bll.jar:]
	at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) [:1.7.0_51]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke( [rt.jar:1.7.0_51]
	at java.lang.reflect.Method.invoke( [rt.jar:1.7.0_51]

Comment 2 Michal Skrivanek 2014-02-03 15:10:55 UTC

*** This bug has been marked as a duplicate of bug 1059780 ***

Note You need to log in before you can comment on or make changes to this bug.