126 [main] INFO datasource.DriverManagerDataSource - Loaded JDBC driver: org.postgresql.Driver
141 [main] INFO cfg.Environment - Hibernate 2.1.8
142 [main] INFO cfg.Environment - hibernate.properties not found
142 [main] INFO cfg.Environment - using CGLIB reflection optimizer
143 [main] INFO cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
2667 [main] INFO cfg.Binder - Mapping class: Employee -> EMPLOYEE
9306 [main] INFO cfg.Binder - Mapping class: Product -> EMPLOYEE
9306 [main] INFO hibernate.LocalSessionFactoryBean - Building new Hibernate SessionFactory
9307 [main] INFO cfg.Configuration - processing one-to-many association mappings
9307 [main] INFO cfg.Configuration - processing one-to-one association property references
9307 [main] INFO cfg.Configuration - processing foreign key constraints
9310 [main] WARN cfg.SettingsFactory - No dialect set - using GenericDialect: The dialect was not set. Set the property hibernate.dialect.
9310 [main] INFO dialect.Dialect - Using dialect: net.sf.hibernate.dialect.GenericDialect
9311 [main] INFO cfg.SettingsFactory - Use outer join fetching: true
9311 [main] INFO connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate.LocalDataSourceConnectionProvider
9313 [main] INFO transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
9332 [main] INFO cfg.SettingsFactory - Use scrollable result sets: true
9332 [main] INFO cfg.SettingsFactory - Use JDBC3 getGeneratedKeys(): false
9332 [main] INFO cfg.SettingsFactory - Optimize cache for minimal puts: false
9332 [main] INFO cfg.SettingsFactory - Query language substitutions: {}
9332 [main] INFO cfg.SettingsFactory - cache provider: net.sf.hibernate.cache.EhCacheProvider
9333 [main] INFO cfg.Configuration - instantiating and configuring caches
9335 [main] WARN config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/home/bob/backup/downloads1/spring-framework-2.0.8/lib/ehcache/ehcache-1.3.0.jar!/ehcache-failsafe.xml
9366 [main] INFO support.DefaultListableBeanFactory - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1c282a1: defining beans [datasource,exampleHibernateProperties,mySessionFactory,TestClass]; root of factory hierarchy
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
Caused by: java.lang.ExceptionInInitializerError
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:540)
at org.springframework.orm.hibernate.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:474)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1203)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:122)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:66)
at test.main(test.java:8)
Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:236)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:237)
... 15 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:218)
... 20 more
Caused by: java.lang.IllegalAccessError: class net.sf.hibernate.impl.SessionFactoryImpl$QueryCacheKeyFactory$$KeyFactoryByCGLIB$$601120ed cannot access its superinterface net.sf.hibernate.impl.SessionFactoryImpl$QueryCacheKeyFactory
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
... 26 more
|