Hello,
After having downloaded NHibernate 1.0.1 I get the following errors during building of the factory in this call:
_nHibSessionFactory = cfg.BuildSessionFactory();
It seems reflection optimization is turned off for all all mapped classes.
The error causing the problem is "Unexpected character '`'."
If I set hibernate.use_reflection_optimizer=false no errors are reported.
Am I doing something wrong?
Thank you for any help.
This is the first part of the error-log:
2005-11-18 10:26:20,377 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Compiled with error:
using System;
using NHibernate.Property;
namespace NHibernate.Persister {
public class GetSetHelper_PI_Lib_Server_BO_MsgLoglevelconfig : IGetSetHelper {
ISetter[] setters;
IGetter[] getters;
public GetSetHelper_PI_Lib_Server_BO_MsgLoglevelconfig(ISetter[] setters, IGetter[] getters) {
this.setters = setters;
this.getters = getters;
}
public void SetPropertyValues(object obj, object[] values) {
PI.Lib.Server.BO.MsgLoglevelconfig t = (PI.Lib.Server.BO.MsgLoglevelconfig)obj;
t.ModifyNr = values[0] == null ? new System.Nullable`1[[System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]() : (System.Nullable`1[[System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])values[0];
t.Modifytime = values[1] == null ? new System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]() : (System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])values[1];
t.ProgramName = (System.String)values[2];
t.Createuser = (System.String)values[3];
t.Createtime = values[4] == null ? new System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]() : (System.Nullable`1[[System.DateTime, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])values[4];
t.LogLevel = (System.String)values[5];
t.Msgnr = values[6] == null ? new System.Nullable`1[[System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]() : (System.Nullable`1[[System.Decimal, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]])values[6];
t.Modifyuser = (System.String)values[7];
}
public object[] GetPropertyValues(object obj) {
PI.Lib.Server.BO.MsgLoglevelconfig t = (PI.Lib.Server.BO.MsgLoglevelconfig)obj;
object[] ret = new object[8];
ret[0] = t.ModifyNr;
ret[1] = t.Modifytime;
ret[2] = t.ProgramName;
ret[3] = t.Createuser;
ret[4] = t.Createtime;
ret[5] = t.LogLevel;
ret[6] = t.Msgnr;
ret[7] = t.Modifyuser;
return ret;
}
}
}
2005-11-18 10:26:20,617 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Line:13, Column:55 Message:Unexpected character '`'
2005-11-18 10:26:20,617 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Line:13, Column:173 Message:Unexpected character '`'
2005-11-18 10:26:20,617 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Line:14, Column:57 Message:Unexpected character '`'
2005-11-18 10:26:20,617 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Line:14, Column:176 Message:Unexpected character '`'
2005-11-18 10:26:20,617 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Line:17, Column:57 Message:Unexpected character '`'
2005-11-18 10:26:20,617 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Line:17, Column:176 Message:Unexpected character '`'
2005-11-18 10:26:20,827 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Line:19, Column:52 Message:Unexpected character '`'
2005-11-18 10:26:20,827 [4080] ERROR NHibernate.Persister.GetSetHelperFactory [(null)] <(null)> - Line:19, Column:170 Message:Unexpected character '`'
A first chance exception of type 'System.InvalidOperationException' occurred in NHibernate.dll
|