-->
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.  [ 4 posts ] 
Author Message
 Post subject: Value cannot be null .. Parameter name: methodInfo
PostPosted: Wed Oct 25, 2006 4:18 pm 
Beginner
Beginner

Joined: Thu Oct 19, 2006 1:03 pm
Posts: 29
Getting an exception I have no idea what so ever, how to handle...

Hibernate version:
1.2.0.beta1

Code between sessionFactory.openSession() and session.close():
It gets thrown here:
Code:
factory = config.BuildSessionFactory();


Full stack trace of any exception that occurs:
Code:
[ArgumentNullException: Value cannot be null.
Parameter name: methodInfo]
   System.Reflection.Emit.DynamicILGenerator.EmitCall(OpCode opcode, MethodInfo methodInfo, Type[] optionalParameterTypes) +1607931
   NHibernate.Property.BasicSetter.Emit(ILGenerator il) +121
   NHibernate.Bytecode.Lightweight.ReflectionOptimizer.GenerateSetPropertyValuesMethod(IGetter[] getters, ISetter[] setters) +742
   NHibernate.Bytecode.Lightweight.ReflectionOptimizer..ctor(Type mappedType, IGetter[] getters, ISetter[] setters) +154
   NHibernate.Bytecode.Lightweight.BytecodeProviderImpl.GetReflectionOptimizer(Type mappedClass, IGetter[] getters, ISetter[] setters) +67
   NHibernate.Persister.Entity.AbstractEntityPersister..ctor(PersistentClass persistentClass, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory) +5669
   NHibernate.Persister.Entity.SingleTableEntityPersister..ctor(PersistentClass model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping mapping) +151
   NHibernate.Persister.PersisterFactory.CreateClassPersister(PersistentClass model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor factory, IMapping cfg) +154
   NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg, IMapping mapping, Settings settings) +1164
   NHibernate.Cfg.Configuration.BuildSessionFactory() +126
   _Default.GetEntries() in d:\WD\Experimentum\Default.aspx.cs:39
   _Default.btnListEntries_Click(Object sender, EventArgs e) in d:\WD\Experimentum\Default.aspx.cs:90


Name and version of the database you are using:
MySQL 5.0.16-nt-max

The generated SQL (show_sql=true):
I have no idea how to get this SQL, even if the show_sql=true in the config file.

Debug level Hibernate log excerpt:
Nor how I get this. How do I get the log?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 26, 2006 1:45 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Please submit a bug report to JIRA, including your classes and mappings.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 26, 2006 1:50 am 
Beginner
Beginner

Joined: Thu Oct 19, 2006 1:03 pm
Posts: 29
Alright, thanks. You you want me to do anything else to be able to resolve the problem?
http://jira.nhibernate.org/browse/NH-777


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 26, 2006 2:35 am 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
That's enough. By the way, the work-around is to disable the reflection optimizer (set hibernate.use_reflection_optimizer to false or hibernate.bytecode_provider to "none" in app.config).


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

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.