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-reports | Assignee: | Oved Ourfali <oourfali> | ||||||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | David Botzer <dbotzer> | ||||||||
| Severity: | high | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 3.1.0 | CC: | 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: |
|
||||||||||
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. Commit: a9e98ea09cdb318189d3d0d9c0707e8a608dd683 http://gerrit.ovirt.org/gitweb?p=ovirt-reports.git;a=commit;h=a9e98ea09cdb318189d3d0d9c0707e8a608dd683 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 Created attachment 617951 [details]
Web-Except
Created attachment 617952 [details]
si18.1_Exception
it looks like connection problems with the DB (complains on I/O errors). Is your DB available when it happens? 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 Fixed, 3.1/si20 Tested on si20 with Chrome, Ok, Fixed, 3.1/si20 Fixed, 3.1/si20 Tested on si20 with Chrome, Ok, Fixed, 3.1/si20 |
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