i have a problem, probably about proxy dll conflict (i'm writing here,
not in jira, becouse i think that is not a bug, only a configuration
problem).
i'm using .net 2.0, with the version 3.1.0.4000 all works, with the
new version (built by myself or downloaded by nhforge) i have a
problem when using Session.Get
for a class that has a property with lazy="true".

with the new nh version i have this exception
NHibernate.Exceptions.GenericADOException : could not load an entity:
***
  ----> System.NotSupportedException : Specified method is not
supported.
        at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session,
Object id, IType identifierType, Object optionalObject, String
optionalEntityName, Object optionalIdentifier, IEntityPersister
persister)
        at
NHibernate.Loader.Entity.AbstractEntityLoader.Load(ISessionImplementor
session, Object id, Object optionalObject, Object optionalId)
        at NHibernate.Loader.Entity.AbstractEntityLoader.Load(Object id,
Object optionalObject, ISessionImplementor session)
        at NHibernate.Persister.Entity.AbstractEntityPersister.Load(Object
id, Object optionalObject, LockMode lockMode, ISessionImplementor
session)
        at
NHibernate.Event.Default.DefaultLoadEventListener.LoadFromDatasource(LoadEvent
event, IEntityPersister persister, EntityKey keyToLoad, LoadType
options)
        at NHibernate.Event.Default.DefaultLoadEventListener.DoLoad(LoadEvent
event, IEntityPersister persister, EntityKey keyToLoad, LoadType
options)
        at NHibernate.Event.Default.DefaultLoadEventListener.Load(LoadEvent
event, IEntityPersister persister, EntityKey keyToLoad, LoadType
options)
        at
NHibernate.Event.Default.DefaultLoadEventListener.ProxyOrLoad(LoadEvent
event, IEntityPersister persister, EntityKey keyToLoad, LoadType
options)
        at NHibernate.Event.Default.DefaultLoadEventListener.OnLoad(LoadEvent
event, LoadType loadType)
        at NHibernate.Impl.SessionImpl.FireLoad(LoadEvent event, LoadType
loadType)
        at NHibernate.Impl.SessionImpl.Get(String entityName, Object id)
        at NHibernate.Impl.SessionImpl.Get(Type entityClass, Object id)
        at NHibernate.Impl.SessionImpl.Get[T](Object id)
        --NotSupportedException
        at
NHibernate.Proxy.AbstractProxyFactory.GetFieldInterceptionProxy(Object
instanceToWrap)
        at NHibernate.Tuple.PocoInstantiator.Instantiate()
        at NHibernate.Tuple.PocoInstantiator.Instantiate(Object id)
        at NHibernate.Tuple.Entity.AbstractEntityTuplizer.Instantiate(Object
id)
        at
NHibernate.Persister.Entity.AbstractEntityPersister.Instantiate(Object
id, EntityMode entityMode)
        at NHibernate.Impl.SessionImpl.Instantiate(IEntityPersister
persister, Object id)
        at NHibernate.Impl.SessionImpl.Instantiate(String clazz, Object id)
        at NHibernate.Loader.Loader.InstanceNotYetLoaded(IDataReader dr,
Int32 i, ILoadable persister, EntityKey key, LockMode lockMode, String
rowIdAlias, EntityKey optionalObjectKey, Object optionalObject, IList
hydratedObjects, ISessionImplementor session)
        at NHibernate.Loader.Loader.GetRow(IDataReader rs, ILoadable[]
persisters, EntityKey[] keys, Object optionalObject, EntityKey
optionalObjectKey, LockMode[] lockModes, IList hydratedObjects,
ISessionImplementor session)
        at NHibernate.Loader.Loader.GetRowFromResultSet(IDataReader
resultSet, ISessionImplementor session, QueryParameters
queryParameters, LockMode[] lockModeArray, EntityKey
optionalObjectKey, IList hydratedObjects, EntityKey[] keys, Boolean
returnProxies)
        at NHibernate.Loader.Loader.DoQuery(ISessionImplementor session,
QueryParameters queryParameters, Boolean returnProxies)
        at
NHibernate.Loader.Loader.DoQueryAndInitializeNonLazyCollections(ISessionImplementor
session, QueryParameters queryParameters, Boolean returnProxies)
        at NHibernate.Loader.Loader.LoadEntity(ISessionImplementor session,
Object id, IType identifierType, Object optionalObject, String
optionalEntityName, Object optionalIdentifier, IEntityPersister
persister)

i'm using this nhibernate cfg
  <session-factory>
    <property
name="connection.provider">NHibernate.Connection.DriverConnectionProvider</
property>
    <property
name="connection.driver_class">NHibernate.Driver.FirebirdClientDriver</
property>
    <property name="connection.isolation">ReadCommitted</property>
    <property name="connection.connection_string_name">FbConnection</
property>
    <property name="show_sql">false</property>
    <property name="dialect">NHibernate.Dialect.FirebirdDialect</
property>
    <property name="command_timeout">444</property>
    <property name="query.substitutions">true 1, false 0, yes 1, no 0</
property>
    <property
name="current_session_context_class">NHibernate.Context.CallSessionContext,
NHibernate</property>
    <property
name="proxyfactory.factory_class">NHibernate.ByteCode.Castle.ProxyFactoryFactory,
NHibernate.ByteCode.Castle</property>
     <mapping assembly="***" />
  </session-factory>

note (i think that the problem is here): i'm referencing
NHibernate.ByteCode.Castle.dll  3.1.0.4000 becouse i didn't find a new
version

do samebody knows what i have wrong?
thanks

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to