Here is the log generated by log4net. Hope this helps.
17:31:16.620 [3596] INFO NHibernate.Cfg.Configuration - processing one-to-many association mappings
17:31:16.670 [3596] INFO NHibernate.Cfg.Configuration - processing one-to-one association property references
17:31:16.670 [3596] INFO NHibernate.Cfg.Configuration - processing foreign key constraints
17:31:16.690 [3596] INFO NHibernate.Dialect.Dialect - Using dialect: NHibernate.Dialect.Oracle9Dialect
17:31:16.690 [3596] INFO NHibernate.Cfg.SettingsFactory - use outer join fetching: True
17:31:16.690 [3596] INFO NHibernate.Connection.ConnectionProviderFactory - Intitializing connection provider: NHibernate.Connection.DriverConnectionProvider
17:31:16.690 [3596] INFO NHibernate.Connection.ConnectionProvider - Configuring ConnectionProvider
17:31:16.710 [3596] INFO NHibernate.Cfg.SettingsFactory - Optimize cache for minimal puts: False
17:31:16.710 [3596] INFO NHibernate.Cfg.SettingsFactory - echoing all SQL to stdout
17:31:16.720 [3596] INFO NHibernate.Cfg.SettingsFactory - Query language substitutions: {}
17:31:16.720 [3596] INFO NHibernate.Cfg.SettingsFactory - cache provider: NHibernate.Cache.HashtableCacheProvider
17:31:16.720 [3596] INFO NHibernate.Cfg.Configuration - instantiating and configuring caches
17:31:16.740 [3596] INFO NHibernate.Impl.SessionFactoryImpl - building session factory
17:31:16.740 [3596] DEBUG NHibernate.Impl.SessionFactoryImpl - instantiating session factory with properties: {show_sql=true, connection.provider=NHibernate.Connection.DriverConnectionProvider, dialect=NHibernate.Dialect.Oracle9Dialect, connection.driver_class=NHibernate.Driver.OracleClientDriver, hibernate.session_factory_name=NHibernate.Test, hibernate.use_reflection_optimizer=True, hibernate.connection.connection_string=Server=ezlap1; UID=schroderweb; PWD=password;, hibernate.connection.driver_class=NHibernate.Driver.OracleClientDriver, connection.connection_string=Server=ezlap1; UID=schroderweb; PWD=password;, hibernate.connection.provider=NHibernate.Connection.DriverConnectionProvider, hibernate.dialect=NHibernate.Dialect.Oracle9Dialect, hibernate.show_sql=true}
17:31:16.821 [3596] DEBUG NHibernate.Persister.GetSetHelperFactory - Init compiler for class NHibernateApp.Users
17:31:16.821 [3596] DEBUG NHibernate.Persister.GetSetHelperFactory - Adding referenced assembly d:\work\dotnet projects\nhibernate\nhibernateapp\bin\nhibernate.dll
17:31:16.821 [3596] DEBUG NHibernate.Persister.GetSetHelperFactory - Adding referenced assembly D:\Work\dotnet projects\NHibernate\NHibernateApp\bin\NHibernateApp.exe
17:31:16.831 [3596] DEBUG NHibernate.Persister.GetSetHelperFactory - Adding referenced assembly c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll
17:31:17.031 [3596] DEBUG NHibernate.Persister.GetSetHelperFactory - Compiled ok:
using System;
using NHibernate.Property;
namespace NHibernate.Persister {
public class GetSetHelper_NHibernateApp_Users : IGetSetHelper {
ISetter[] setters;
IGetter[] getters;
public GetSetHelper_NHibernateApp_Users(ISetter[] setters, IGetter[] getters) {
this.setters = setters;
this.getters = getters;
}
public void SetPropertyValues(object obj, object[] values) {
NHibernateApp.Users t = (NHibernateApp.Users)obj;
t.Telephone = values[0] == null ? new System.Int32() : (System.Int32)values[0];
t.Lastname = (System.String)values[1];
t.Firstname = (System.String)values[2];
}
public object[] GetPropertyValues(object obj) {
NHibernateApp.Users t = (NHibernateApp.Users)obj;
object[] ret = new object[3];
ret[0] = t.Telephone;
ret[1] = t.Lastname;
ret[2] = t.Firstname;
return ret;
}
}
}
17:31:17.072 [3596] DEBUG NHibernate.Impl.SessionFactoryObjectFactory - initializing class SessionFactoryObjectFactory
17:31:17.072 [3596] DEBUG NHibernate.Impl.SessionFactoryObjectFactory - registered: f31c6efb673e4ae7b3ac51e8c32a868c(NHibernate.Test)
17:31:17.072 [3596] INFO NHibernate.Impl.SessionFactoryObjectFactory - Factory name:NHibernate.Test
17:31:17.072 [3596] DEBUG NHibernate.Impl.SessionFactoryImpl - Instantiated session factory
17:31:17.082 [3596] DEBUG NHibernate.Impl.SessionImpl - opened session
17:31:17.082 [3596] DEBUG NHibernate.Transaction.AdoTransaction - begin
17:31:17.082 [3596] DEBUG NHibernate.Connection.DriverConnectionProvider - Obtaining IDbConnection from Driver
17:31:19.431 [3596] DEBUG NHibernate.Impl.SessionImpl - loading [Users#2]
17:31:19.431 [3596] DEBUG NHibernate.Impl.SessionImpl - attempting to resolve [Users#2]
17:31:19.431 [3596] DEBUG NHibernate.Impl.SessionImpl - object not resolved in any cache [NHibernateApp.Users#2]
17:31:19.431 [3596] DEBUG NHibernate.Persister.EntityPersister - Materializing entity: NHibernateApp.Users#2
17:31:19.481 [3596] DEBUG NHibernate.Impl.BatcherImpl - Opened new IDbCommand, open IDbCommands :1
17:31:19.481 [3596] DEBUG NHibernate.Impl.BatcherImpl - Building an IDbCommand object for the SqlString: SELECT users0_.USER_ID as USER_ID0_, users0_.Telephone as Telephone0_, users0_.Lastname as Lastname0_, users0_.Firstname as Firstname0_ FROM Users users0_ WHERE users0_.USER_ID=:USER_ID
17:31:19.491 [3596] INFO NHibernate.Loader.Loader - SELECT users0_.USER_ID as USER_ID0_, users0_.Telephone as Telephone0_, users0_.Lastname as Lastname0_, users0_.Firstname as Firstname0_ FROM Users users0_ WHERE users0_.USER_ID=:p0
17:31:19.491 [3596] DEBUG NHibernate.SQL - SELECT users0_.USER_ID as USER_ID0_, users0_.Telephone as Telephone0_, users0_.Lastname as Lastname0_, users0_.Firstname as Firstname0_ FROM Users users0_ WHERE users0_.USER_ID=:p0
17:31:19.491 [3596] DEBUG NHibernate.SQL - SELECT users0_.USER_ID as USER_ID0_, users0_.Telephone as Telephone0_, users0_.Lastname as Lastname0_, users0_.Firstname as Firstname0_ FROM Users users0_ WHERE users0_.USER_ID=:p0
17:31:19.551 [3596] DEBUG NHibernate.Impl.BatcherImpl - Opened Reader, open Readers :1
17:31:19.551 [3596] DEBUG NHibernate.Loader.Loader - processing result set
17:31:19.571 [3596] DEBUG NHibernate.Loader.Loader - result row: 2
17:31:19.581 [3596] DEBUG NHibernate.Loader.Loader - Initializing object from DataReader: 2
17:31:19.591 [3596] DEBUG NHibernate.Loader.Loader - Hydrating entity: NHibernateApp.Users#2
17:31:19.612 [3596] DEBUG NHibernate.Loader.Loader - done processing result set (1 rows)
17:31:19.612 [3596] DEBUG NHibernate.Impl.BatcherImpl - Closed Reader, open Readers :0
17:31:19.612 [3596] DEBUG NHibernate.Impl.BatcherImpl - Closed IDbCommand, open IDbCommands :0
17:31:19.612 [3596] DEBUG NHibernate.Loader.Loader - total objects hydrated: 1
17:31:19.612 [3596] DEBUG NHibernate.Impl.SessionImpl - resolving associations for: [NHibernateApp.Users#2]
17:31:20.626 [3596] DEBUG NHibernate.Util.ADOExceptionReporter - could not load: [NHibernateApp.Users#2]
System.InvalidCastException: Specified cast is not valid.
at NHibernate.Persister.GetSetHelper_NHibernateApp_Users.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Persister.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj)
at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object[] values, IType[] types, Object optionalObject, Object optionalID)
at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id, IType identifierType, Object optionalObject, Object optionalIdentifier)
at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Object id, Object optionalObject, Object optionalId)
at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Object id, Object optionalObject)
at NHibernate.Persister.EntityPersister.Load(Object id, Object optionalObject, LockMode lockMode, ISessionImplementor session)
17:31:20.636 [3596] WARN NHibernate.Util.ADOExceptionReporter - System.InvalidCastException: Specified cast is not valid.
at NHibernate.Persister.GetSetHelper_NHibernateApp_Users.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Persister.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj)
at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object[] values, IType[] types, Object optionalObject, Object optionalID)
at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id, IType identifierType, Object optionalObject, Object optionalIdentifier)
at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Object id, Object optionalObject, Object optionalId)
at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Object id, Object optionalObject)
at NHibernate.Persister.EntityPersister.Load(Object id, Object optionalObject, LockMode lockMode, ISessionImplementor session)
17:31:20.636 [3596] ERROR NHibernate.Util.ADOExceptionReporter - Specified cast is not valid.
17:31:20.636 [3596] ERROR NHibernate.ADOException - could not load: [NHibernateApp.Users#2]
System.InvalidCastException: Specified cast is not valid.
at NHibernate.Persister.GetSetHelper_NHibernateApp_Users.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Persister.AbstractEntityPersister.SetPropertyValues(Object obj, Object[] values)
at NHibernate.Impl.SessionImpl.InitializeEntity(Object obj)
at NHibernate.Loader.Loader.InitializeEntitiesAndCollections(IList hydratedObjects, Object resultSetId, ISessionImplementor session)
at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor session, QueryParameters queryParameters, Object optionalObject, Object optionalId, Object[] optionalCollectionKeys, Boolean returnProxies)
at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object[] values, IType[] types, Object optionalObject, Object optionalID)
at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session, Object id, IType identifierType, Object optionalObject, Object optionalIdentifier)
at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Object id, Object optionalObject, Object optionalId)
at NHibernate.Loader.EntityLoader.Load(ISessionImplementor session, Object id, Object optionalObject)
at NHibernate.Persister.EntityPersister.Load(Object id, Object optionalObject, LockMode lockMode, ISessionImplementor session)
|