Bug 1709773

Summary: Uncaught exception while adding an host
Product: [oVirt] ovirt-engine Reporter: Sandro Bonazzola <sbonazzo>
Component: Frontend.WebAdminAssignee: Tomasz Barański <tbaransk>
Status: CLOSED CURRENTRELEASE QA Contact: samuel macko <smacko>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.3.7CC: bugs, lleistne, matthias.leopold, michal.skrivanek, rbarry, tbaransk, tnisan
Target Milestone: ovirt-4.3.5Flags: pm-rhel: ovirt-4.3+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-30 14:08:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sandro Bonazzola 2019-05-14 09:59:40 UTC
I was adding an host to the system and got:

2019-05-14 11:54:44,989+02 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-6) [] Permutation name: B001EDFDF07E92514BEFE4469C246170
2019-05-14 11:54:44,990+02 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-6) [] Uncaught exception: com.google.gwt.event.shared.UmbrellaException: Exception caught: (TypeError) : a.J.o is null
        at java.lang.Throwable.Throwable(Throwable.java:70) [rt.jar:1.8.0_212]
        at java.lang.RuntimeException.RuntimeException(RuntimeException.java:32) [rt.jar:1.8.0_212]
        at com.google.web.bindery.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:64) [gwt-servlet.jar:]
        at com.google.gwt.event.shared.UmbrellaException.UmbrellaException(UmbrellaException.java:25) [gwt-servlet.jar:]
        at com.google.gwt.event.shared.HandlerManager.$fireEvent(HandlerManager.java:117) [gwt-servlet.jar:]
        at com.google.gwt.view.client.SelectionChangeEvent.fire(SelectionChangeEvent.java:67) [gwt-servlet.jar:]
        at org.ovirt.engine.ui.uicommonweb.models.OrderedMultiSelectionModel.$resolveChanges(OrderedMultiSelectionModel.java:123)
        at org.ovirt.engine.ui.uicommonweb.models.OrderedMultiSelectionModel.isSelected(OrderedMultiSelectionModel.java:91)
        at org.ovirt.engine.ui.uicommonweb.models.OvirtSelectionModel.$isSelected(OvirtSelectionModel.java:38)
        at org.ovirt.engine.ui.uicommonweb.models.OvirtSelectionModel.isSelected(OvirtSelectionModel.java:38)
        at com.google.gwt.user.cellview.client.HasDataPresenter.$resolvePendingState(HasDataPresenter.java:1062) [gwt-servlet.jar:]
        at com.google.gwt.user.cellview.client.HasDataPresenter$2.execute(HasDataPresenter.java:981) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.SchedulerImpl.runScheduledTasks(SchedulerImpl.java:167) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.SchedulerImpl.$flushFinallyCommands(SchedulerImpl.java:272) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.exit(Impl.java:313) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:275) [gwt-servlet.jar:]
        at Unknown.Su/<(https://ovirt4.home/ovirt-engine/webadmin/?locale=en_US line 9 > scriptElement)
        at Unknown.d(https://ovirt4.home/ovirt-engine/webadmin/?locale=en_US line 9 > scriptElement)
        at Unknown.anonymous(Unknown)
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : a.J.o is null
        at org.ovirt.engine.core.common.businessentities.VDS.$hasSmtDiscrepancyAlert(VDS.java:1731) [common.jar:]
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel.$updateAlerts(HostGeneralModel.java:1046)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel.onEntityChanged(HostGeneralModel.java:912)
        at org.ovirt.engine.ui.uicommonweb.models.EntityModel.$setEntity(EntityModel.java:35)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel.$setEntity(HostGeneralModel.java:117)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel.setEntity(HostGeneralModel.java:117)
        at org.ovirt.engine.ui.uicommonweb.models.ListWithDetailsModel.$activeDetailModelChanging(ListWithDetailsModel.java:67)
        at org.ovirt.engine.ui.uicommonweb.models.ListWithDetailsModel.$setActiveDetailModel(ListWithDetailsModel.java:45)
        at org.ovirt.engine.ui.uicommonweb.models.ListWithDetailsModel.$onSelectedItemChanged(ListWithDetailsModel.java:89)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.onSelectedItemChanged(HostListModel.java:1773)
        at org.ovirt.engine.ui.uicommonweb.models.ListModel.$setSelectedItem(ListModel.java:82)
        at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.$setSelectedItem(SearchableListModel.java:407)
        at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.setSelectedItem(SearchableListModel.java:407)
        at org.ovirt.engine.ui.uicommonweb.models.ListModel.$synchronizeSelection(ListModel.java:361)
        at org.ovirt.engine.ui.uicommonweb.models.ListModel$lambda$0$Type.onSelectionChange(ListModel.java:155)
        at com.google.gwt.view.client.SelectionChangeEvent.dispatch(SelectionChangeEvent.java:98) [gwt-servlet.jar:]
        at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:76) [gwt-servlet.jar:]
        at com.google.web.bindery.event.shared.SimpleEventBus.$doFire(SimpleEventBus.java:173) [gwt-servlet.jar:]
        ... 15 more

ovirt-engine-4.3.3.7-1.el7.noarch

Comment 3 Lucie Leistnerova 2019-05-28 09:44:27 UTC
What are the verification steps here please?

Comment 4 Tomasz Barański 2019-05-28 11:58:03 UTC
Steps:

1. Add a new host to the engine.

Expected result:

Host added without UI errors.


Buggy result:

The bug caused the UI to show Null Pointer error.

Comment 5 matthias.leopold 2019-06-11 15:02:48 UTC
I saw the same error when installing a host (ovirt-release43-4.3.4-1.el7.noarch) with a 4.3.3 engine. Host installation succeeded, but web interface showed the error mentioned above.

Comment 6 Tomasz Barański 2019-06-12 09:18:48 UTC
(In reply to matthias.leopold from comment #5)
> I saw the same error when installing a host
> (ovirt-release43-4.3.4-1.el7.noarch) with a 4.3.3 engine. Host installation
> succeeded, but web interface showed the error mentioned above.

Does the same stack trace show in the ui.log?

Comment 7 matthias.leopold 2019-06-12 16:17:29 UTC
it looks "largely" the same:

2019-06-11 17:21:58,127+02 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-10218) [] Permutation name: B001EDFDF07E92514BEFE4469C246170
2019-06-11 17:21:58,127+02 ERROR [org.ovirt.engine.ui.frontend.server.gwt.OvirtRemoteLoggingService] (default task-10218) [] Uncaught exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : a.J.o is null
        at org.ovirt.engine.core.common.businessentities.VDS.$hasSmtDiscrepancyAlert(VDS.java:1731) [common.jar:]
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel.$updateAlerts(HostGeneralModel.java:1046)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel.onEntityChanged(HostGeneralModel.java:912)
        at org.ovirt.engine.ui.uicommonweb.models.EntityModel.$setEntity(EntityModel.java:35)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel.$setEntity(HostGeneralModel.java:117)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostGeneralModel.setEntity(HostGeneralModel.java:117)
        at org.ovirt.engine.ui.uicommonweb.models.ListWithDetailsModel.$activeDetailModelChanging(ListWithDetailsModel.java:67)
        at org.ovirt.engine.ui.uicommonweb.models.ListWithDetailsModel.$setActiveDetailModel(ListWithDetailsModel.java:45)
        at org.ovirt.engine.ui.uicommonweb.models.ListWithDetailsModel.$onSelectedItemChanged(ListWithDetailsModel.java:89)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel.onSelectedItemChanged(HostListModel.java:1773)
        at org.ovirt.engine.ui.uicommonweb.models.SearchableListModel.$setItems(SearchableListModel.java:708)
        at org.ovirt.engine.ui.uicommonweb.models.hosts.HostListModel$lambda$2$Type.run(HostListModel.java:525)
        at org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider.lambda$55(AsyncDataProvider.java:3341)
        at org.ovirt.engine.ui.uicommonweb.dataprovider.AsyncDataProvider$lambda$55$Type.executed(AsyncDataProvider.java:3341)
        at org.ovirt.engine.ui.frontend.Frontend$2.$onSuccess(Frontend.java:319) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.Frontend$2.onSuccess(Frontend.java:319) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.$onSuccess(OperationProcessor.java:170) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.OperationProcessor$2.onSuccess(OperationProcessor.java:170) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.$onSuccess(GWTRPCCommunicationProvider.java:270) [frontend.jar:]
        at org.ovirt.engine.ui.frontend.communication.GWTRPCCommunicationProvider$5$1.onSuccess(GWTRPCCommunicationProvider.java:270) [frontend.jar:]
        at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:198) [gwt-servlet.jar:]
        at com.google.gwt.http.client.Request.$fireOnResponseReceived(Request.java:233) [gwt-servlet.jar:]
        at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:409) [gwt-servlet.jar:]
        at Unknown.onreadystatechange<(https://ovc-engine.meduniwien.ac.at/ovirt-engine/webadmin/?locale=en_US line 9 > scriptElement)
        at com.google.gwt.core.client.impl.Impl.apply(Impl.java:236) [gwt-servlet.jar:]
        at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:275) [gwt-servlet.jar:]
        at Unknown.Su/<(https://ovc-engine.foo.bar/ovirt-engine/webadmin/?locale=en_US line 9 > scriptElement)
        at Unknown.anonymous(Unknown)

Comment 10 samuel macko 2019-06-26 11:20:19 UTC
Verified on ovirt engine 4.3.5.1-0.1.el7.
Verified by following the reproducer.

Comment 11 Tal Nisan 2019-07-09 12:52:45 UTC
It will be included in ovirt-engine-4.3.4.2

Comment 12 Sandro Bonazzola 2019-07-30 14:08:29 UTC
This bugzilla is included in oVirt 4.3.5 release, published on July 30th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.5 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.