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
That is caused by typo in named sql query. Fixed in spacewalk.git f3de94301264ab54fce401d4422faaafa1c9b617
http://git.fedorahosted.org/git/?p=spacewalk.git;a=commitdiff;h=f3de94301264ab54fce401d4422faaafa1c9b617 Wow - case sensitive typo :/
Is there an errata scheduled for that?
yes, likely in next 1 -> 4 months.
Reproduced and fix verified.
Hello, does anybody have some info on how to trigger this issue? Thanks, Jan
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