Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 855865

Summary: [rhevm-reports] - Reports - open reports via webadmin - host or vm gives exception (org.ovirt.authentication.EngineUserDetails)
Product: Red Hat Enterprise Virtualization Manager Reporter: David Botzer <dbotzer>
Component: ovirt-engine-reportsAssignee: Oved Ourfali <oourfali>
Status: CLOSED CURRENTRELEASE QA Contact: David Botzer <dbotzer>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: acathrow, dyasny, iheim, mkenneth, pstehlik, Rhev-m-bugs, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: SI19.1 - rhevm-reports-3.1.0-14.el6ev.noarch.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 19:58:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
exeption
none
Web-Except
none
si18.1_Exception none

Description David Botzer 2012-09-10 13:15:02 UTC
Created attachment 611423 [details]
exeption

Description of problem:
Not in a specific scenario, Just open reports via webadmin - select a host or
vm and open report

Version-Release number of selected component (if applicable):
3.1/si17

How reproducible:
always

Steps to Reproduce:
1.install rhevm+dwh+reports
2.create at least 1 entity of a kind
3.run reports via webadmin
  
Actual results:
Reports Portal gives exception

Expected results:
should display the report correctly

Additional info:

java.lang.ClassCastException:
org.ovirt.authentication.EngineUserDetails
cannot be cast to
com.jaspersoft.jasperserver.api.metadata.user.domain.User
Error Trace

java.lang.ClassCastException:
org.ovirt.authentication.EngineUserDetails
cannot be cast to
com.jaspersoft.jasperserver.api.metadata.user.domain.User at

Comment 3 Oved Ourfali 2012-09-12 09:01:16 UTC
Posted fix:
http://gerrit.ovirt.org/#/c/7945/

Hard to tell whether it fixes the issue or not, as it didn't reproduce always, and not by doing something specific.

Done some tests with it, and it seems to be working properly.

Asked David to do some more tests with this fix, to see if the issue reproduces.

Comment 5 Oved Ourfali 2012-09-16 06:49:27 UTC
Commit: a9e98ea09cdb318189d3d0d9c0707e8a608dd683

http://gerrit.ovirt.org/gitweb?p=ovirt-reports.git;a=commit;h=a9e98ea09cdb318189d3d0d9c0707e8a608dd683

Comment 7 David Botzer 2012-09-27 08:37:35 UTC
Reproduced 3.1/si18.1 (97.24)
org.springframework.dao.DataAccessResourceFailureException: could not execute query; nested exception is org.hibernate.exception.JDBCConnectionException: could not execute query
	org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:629)
	org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)
	org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:411)
	org.springframework.orm.hibernate3.HibernateTemplate.executeWithNativeSession(HibernateTemplate.java:374)
	org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:1046)
	org.springframework.orm.hibernate3.HibernateTemplate.findByCriteria(HibernateTemplate.java:1039)
	com.jaspersoft.jasperserver.api.metadata.tenant.service.impl.TenantServiceImpl.getRepoTenant(TenantServiceImpl.java:85)
	com.jaspersoft.jasperserver.api.metadata.tenant.service.impl.TenantServiceImpl.getPersistentTenant(TenantServiceImpl.java:345)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

3.1/si18.1

Comment 8 David Botzer 2012-09-27 08:38:39 UTC
Created attachment 617951 [details]
Web-Except

Comment 9 David Botzer 2012-09-27 08:40:21 UTC
Created attachment 617952 [details]
si18.1_Exception

Comment 10 Oved Ourfali 2012-09-27 08:46:18 UTC
it looks like connection problems with the DB (complains on I/O errors).
Is your DB available when it happens?

Comment 11 David Botzer 2012-09-27 09:09:53 UTC
you're right,

For now all is ok, I will give it couple of more tries and if not reproduced I will close the bug

Comment 12 David Botzer 2012-10-07 10:18:33 UTC
Fixed, 3.1/si20
Tested on si20 with Chrome, Ok,
Fixed, 3.1/si20

Comment 13 David Botzer 2012-10-07 10:21:04 UTC
Fixed, 3.1/si20
Tested on si20 with Chrome, Ok,
Fixed, 3.1/si20