org.hibernate.loader.custom.CustomQuery

Spring JIRA | Damian Gołda | 9 years ago
  1. 0

    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)

    Spring JIRA | 9 years ago | Damian Gołda
    org.hibernate.loader.custom.CustomQuery
  2. 0

    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)

    Spring JIRA | 9 years ago | Damian Gołda
    org.hibernate.loader.custom.CustomQuery

    Root Cause Analysis

    1. org.hibernate.loader.custom.CustomQuery

      No message provided

      at java.lang.ClassLoader.findClass()
    2. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.findClass(ClassLoader.java:358)
      2. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      3. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      3 frames
    3. Eclipse OSGi
      DefaultClassLoader.loadClass
      1. org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)
      2. org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
      3. org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
      4. org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
      4 frames
    4. Java RT
      Class.forName
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
      2. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      3. java.lang.Class.forName0(Native Method)
      4. java.lang.Class.forName(Class.java:169)
      4 frames
    5. Unknown
      $Proxy67.<clinit>
      1. $Proxy67.<clinit>(Unknown Source)
      1 frame
    6. Java RT
      Proxy.newProxyInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      5. java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588)
      5 frames
    7. Hibernate
      HibernateTemplate.execute
      1. org.springframework.orm.hibernate3.HibernateTemplate.createSessionProxy(HibernateTemplate.java:505)
      2. org.springframework.orm.hibernate3.HibernateTemplate.doExecute(HibernateTemplate.java:417)
      3. org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:339)
      3 frames
    8. myapp
      HibernateObjectStore.getHQLCount
      1. myapp.HibernateObjectStore.getHQLCount(HibernateObjectStore.java:122)
      1 frame