org.hibernate.loader.custom.CustomQuery

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • After upgrade from 2.5.2 to 2.5.4 I have ClassNotFoundException: org.hibernate.loader.custom.CustomQuery - see log below. In 2.5.2 there was DynamicImport-Package: * which is no more in 2.5.4. See SPR-4070 Log (with equinox loader traces): BundleClassLoader[org.springframework.bundle.spring.orm_2.5.4].loadClass(org.hibernate.loader.custom.CustomQuery) BundleLoader[org.springframework.bundle.spring.orm_2.5.4].loadBundleClass(org.hibernate.loader.custom.CustomQuery) BundleLoader[org.springframework.bundle.spring.orm_2.5.4].findLocalClass(org.hibernate.loader.custom.CustomQuery) BundleClassLoader[org.springframework.bundle.spring.orm_2.5.4].findClass(org.hibernate.loader.custom.CustomQuery) BundleClassLoader[org.springframework.bundle.spring.orm_2.5.4].loadClass(org.hibernate.loader.custom.CustomQuery) failed. java.lang.ClassNotFoundException: org.hibernate.loader.custom.CustomQuery at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at $Proxy67.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588) at org.springframework.orm.hibernate3.HibernateTemplate.createSessionProxy(HibernateTemplate.java:505) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:417) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at myapp.HibernateObjectStore.getHQLCount(HibernateObjectStore.java:122)
    via by Damian Gołda,
  • After upgrade from 2.5.2 to 2.5.4 I have ClassNotFoundException: org.hibernate.loader.custom.CustomQuery - see log below. In 2.5.2 there was DynamicImport-Package: * which is no more in 2.5.4. See SPR-4070 Log (with equinox loader traces): BundleClassLoader[org.springframework.bundle.spring.orm_2.5.4].loadClass(org.hibernate.loader.custom.CustomQuery) BundleLoader[org.springframework.bundle.spring.orm_2.5.4].loadBundleClass(org.hibernate.loader.custom.CustomQuery) BundleLoader[org.springframework.bundle.spring.orm_2.5.4].findLocalClass(org.hibernate.loader.custom.CustomQuery) BundleClassLoader[org.springframework.bundle.spring.orm_2.5.4].findClass(org.hibernate.loader.custom.CustomQuery) BundleClassLoader[org.springframework.bundle.spring.orm_2.5.4].loadClass(org.hibernate.loader.custom.CustomQuery) failed. java.lang.ClassNotFoundException: org.hibernate.loader.custom.CustomQuery at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at $Proxy67.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588) at org.springframework.orm.hibernate3.HibernateTemplate.createSessionProxy(HibernateTemplate.java:505) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:417) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at myapp.HibernateObjectStore.getHQLCount(HibernateObjectStore.java:122)
    via by Damian Gołda,
    • org.hibernate.loader.custom.CustomQuery at java.lang.ClassLoader.findClass(ClassLoader.java:358) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369) at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357) at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at $Proxy67.<clinit>(Unknown Source) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588) at org.springframework.orm.hibernate3.HibernateTemplate.createSessionProxy(HibernateTemplate.java:505) at org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:417) at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339) at myapp.HibernateObjectStore.getHQLCount(HibernateObjectStore.java:122)
    No Bugmate found.