2006-12-06 13:36:38,984 INFO hibernate.cfg.Environment -> Hibernate 3.2.1
2006-12-06 13:36:38,984 INFO hibernate.cfg.Environment -> hibernate.properties not found
2006-12-06 13:36:38,984 INFO hibernate.cfg.Environment -> Bytecode provider name : cglib
2006-12-06 13:36:39,000 INFO hibernate.cfg.Environment -> using JDK 1.4 java.sql.Timestamp handling
2006-12-06 13:36:39,109 INFO hibernate.cfg.Configuration -> configuring from resource: /hibernate.cfg.xml
2006-12-06 13:36:39,109 INFO hibernate.cfg.Configuration -> Configuration resource: /hibernate.cfg.xml
2006-12-06 13:36:39,625 INFO hibernate.cfg.Configuration -> Reading mappings from resource : hib/Message.hbm.xml
2006-12-06 13:36:39,765 INFO hibernate.cfg.HbmBinder -> Mapping class: Message -> MESSAGE
2006-12-06 13:36:39,796 INFO hibernate.cfg.Configuration -> Configured SessionFactory: null
2006-12-06 13:36:39,890 INFO hibernate.connection.C3P0ConnectionProvider -> C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/hibernate
2006-12-06 13:36:39,890 INFO hibernate.connection.C3P0ConnectionProvider -> Connection properties: {user=root, password=}
2006-12-06 13:36:39,890 INFO hibernate.connection.C3P0ConnectionProvider -> autocommit mode: false
2006-12-06 13:36:40,000 INFO v2.log.MLog -> MLog clients using log4j logging.
2006-12-06 13:36:40,031 INFO v2.c3p0.C3P0Registry -> Initializing c3p0-0.9.0 [built 11-July-2005 00:43:29 -0400; debug? true; trace: 10]
2006-12-06 13:36:40,296 INFO v2.c3p0.PoolBackedDataSource -> Initializing c3p0 pool… com.mchange.v2.c3p0.PoolBackedDataSource@50988 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@1acd47 [ acquireIncrement -> 2, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 1acd47, idleConnectionTestPeriod -> 3000, initialPoolSize -> 2, maxIdleTime -> 5000, maxPoolSize -> 10, maxStatements -> 10, maxStatementsPerConnection -> 0, minPoolSize -> 2, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@f8f7db [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> f8f7db, jdbcUrl -> jdbc:mysql://localhost:3306/hibernate, properties -> {user=**, password=******} ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ], factoryClassLocation -> null, identityToken -> 50988, numHelperThreads -> 3 ]
2006-12-06 13:36:40,734 INFO hibernate.cfg.SettingsFactory -> RDBMS: MySQL, version: 5.0.20-nt
2006-12-06 13:36:40,734 INFO hibernate.cfg.SettingsFactory -> JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.3 ( $Date: 2006-07-26 17:26:47 +0200 (Wed, 26 Jul 2006) $, $Revision: 5553 $ )
2006-12-06 13:36:40,781 INFO hibernate.dialect.Dialect -> Using dialect: org.hibernate.dialect.MySQLDialect
2006-12-06 13:36:40,796 INFO hibernate.transaction.TransactionFactoryFactory -> Using default transaction strategy (direct JDBC transactions)
2006-12-06 13:36:40,796 INFO hibernate.transaction.TransactionManagerLookupFactory -> No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2006-12-06 13:36:40,796 INFO hibernate.cfg.SettingsFactory -> Automatic flush during beforeCompletion(): disabled
2006-12-06 13:36:40,796 INFO hibernate.cfg.SettingsFactory -> Automatic session close at end of transaction: disabled
2006-12-06 13:36:40,796 INFO hibernate.cfg.SettingsFactory -> JDBC batch size: 15
2006-12-06 13:36:40,796 INFO hibernate.cfg.SettingsFactory -> JDBC batch updates for versioned data: disabled
2006-12-06 13:36:40,796 INFO hibernate.cfg.SettingsFactory -> Scrollable result sets: enabled
2006-12-06 13:36:40,796 INFO hibernate.cfg.SettingsFactory -> JDBC3 getGeneratedKeys(): enabled
2006-12-06 13:36:40,796 INFO hibernate.cfg.SettingsFactory -> Connection release mode: auto
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Maximum outer join fetch depth: 2
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Default batch fetch size: 1
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Generate SQL with comments: enabled
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Order SQL updates by primary key: disabled
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2006-12-06 13:36:40,812 INFO hql.ast.ASTQueryTranslatorFactory -> Using ASTQueryTranslatorFactory
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Query language substitutions: {}
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> JPA-QL strict compliance: disabled
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Second-level cache: enabled
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Query cache: disabled
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Cache provider: org.hibernate.cache.NoCacheProvider
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Optimize cache for minimal puts: disabled
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Structured second-level cache entries: disabled
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Echoing all SQL to stdout
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Statistics: enabled
2006-12-06 13:36:40,812 INFO hibernate.cfg.SettingsFactory -> Deleted entity synthetic identifier rollback: disabled
2006-12-06 13:36:40,828 INFO hibernate.cfg.SettingsFactory -> Default entity-mode: pojo
2006-12-06 13:36:40,859 INFO hibernate.impl.SessionFactoryImpl -> building session factory
org.hibernate.MappingException: entity class not found: Message
at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:99)
at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:168)
at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:118)
at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:425)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
at hib.messageDAO.(messageDAO.java:31)
at hib.Main.main(Main.java:30)
Caused by: java.lang.ClassNotFoundException: Message
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
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:164)
at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:96)
… 10 more
java.lang.NullPointerException
at hib.messageDAO.insert(messageDAO.java:42)
at hib.Main.main(Main.java:33)