Bug 652626

Summary: org.hibernate.MappingException: Named query not known: KickstartableTree.findByCobblerIdorXenId
Product: Red Hat Satellite 5 Reporter: Miroslav Suchý <msuchy>
Component: ServerAssignee: Miroslav Suchý <msuchy>
Status: CLOSED ERRATA QA Contact: Jan Hutař <jhutar>
Severity: high Docs Contact:
Priority: medium    
Version: 540CC: cperry, jhutar, jpazdziora, marcus.moeller, sandro, tlestach, xdmoon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-03-17 14:12:05 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 646488    

Description Miroslav Suchý 2010-11-12 11:17:11 UTC
Description of problem:
I find in log this error message:
org.hibernate.MappingException: Named query not known: KickstartableTree.findByCobblerIdorXenId
I dunno how it was coused (I recently synced RHEL and created 4 new Ks).

Version-Release number of selected component (if applicable):
sat540

How reproducible:
happen to me

Steps to Reproduce:
1. ??
  
Actual results:
INFO   | jvm 3    | 2010/11/12 12:01:43 | com.redhat.rhn.common.hibernate.HibernateRuntimeException: Mapping not found for KickstartableTree.findByCobblerIdorXenId
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.common.hibernate.HibernateFactory.lookupObjectByNamedQuery(HibernateFactory.java:185)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.common.hibernate.HibernateFactory.lookupObjectByNamedQuery(HibernateFactory.java:158)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.domain.kickstart.KickstartFactory.lookupKickstartTreeByCobblerIdOrXenId(KickstartFactory.java:186)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerProfileSyncCommand.syncProfileToSpacewalk(CobblerProfileSyncCommand.java:139)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.manager.kickstart.cobbler.CobblerProfileSyncCommand.store(CobblerProfileSyncCommand.java:107)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute(CobblerSyncTask.java:102)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:80)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:168)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at org.quartz.core.JobRunShell.run(JobRunShell.java:214)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
INFO   | jvm 3    | 2010/11/12 12:01:43 | Caused by:
INFO   | jvm 3    | 2010/11/12 12:01:43 | org.hibernate.MappingException: Named query not known: KickstartableTree.findByCobblerIdorXenId
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:70)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       at com.redhat.rhn.common.hibernate.HibernateFactory.lookupObjectByNamedQuery(HibernateFactory.java:179)
INFO   | jvm 3    | 2010/11/12 12:01:43 |       ... 9 more

Comment 1 Miroslav Suchý 2010-11-12 11:23:22 UTC
That is caused by typo in named sql query.
Fixed in spacewalk.git f3de94301264ab54fce401d4422faaafa1c9b617

Comment 3 Marcus Moeller 2010-12-13 14:26:15 UTC
Is there an errata scheduled for that?

Comment 4 Clifford Perry 2010-12-13 14:35:28 UTC
yes, likely in next 1 -> 4 months.

Comment 5 Sandro Mathys 2010-12-13 17:38:24 UTC
Reproduced and fix verified.

Comment 12 Jan Hutař 2011-02-28 12:20:11 UTC
Hello,
does anybody have some info on how to trigger this issue?

Thanks,
Jan

Comment 17 errata-xmlrpc 2011-03-17 14:12:05 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0362.html