-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate.use_reflection_optimizer=true not working?
PostPosted: Fri Nov 18, 2005 5:32 am 
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


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.