You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(110) |
Nov
(296) |
Dec
(107) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(212) |
Feb
(263) |
Mar
(161) |
Apr
(183) |
May
(183) |
Jun
(75) |
Jul
(106) |
Aug
(88) |
Sep
(227) |
Oct
(143) |
Nov
(154) |
Dec
(53) |
2008 |
Jan
(77) |
Feb
|
Mar
|
Apr
(6) |
May
(103) |
Jun
(296) |
Jul
(54) |
Aug
|
Sep
(379) |
Oct
(283) |
Nov
(224) |
Dec
(214) |
2009 |
Jan
(129) |
Feb
(257) |
Mar
(136) |
Apr
(12) |
May
(329) |
Jun
(434) |
Jul
(375) |
Aug
(171) |
Sep
|
Oct
|
Nov
|
Dec
(54) |
2010 |
Jan
(198) |
Feb
(76) |
Mar
(3) |
Apr
(1) |
May
|
Jun
(62) |
Jul
(210) |
Aug
(447) |
Sep
(330) |
Oct
(257) |
Nov
(133) |
Dec
(453) |
2011 |
Jan
(240) |
Feb
(128) |
Mar
(442) |
Apr
(320) |
May
(428) |
Jun
(141) |
Jul
(13) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: NHibernate J. <mik...@us...> - 2006-11-20 15:13:35
|
External serializer ------------------- Key: NH-820 URL: http://jira.nhibernate.org/browse/NH-820 Project: NHibernate Type: Improvement Components: Core Versions: 1.2.0.Beta2 Reporter: Fabio Maulo Priority: Minor What about to add a config parameter to have an external serializer? In NHb we can actually use SerializationHelper, we can sill use SerializationHelper like default and we can have an external serializer. We can introduce a new interface: public interface ISerializer { byte[] Serialize(object obj); object Deserialize(byte[] data); } Using an adapter the user can have he's own optimized serializer. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 15:03:36
|
[ http://jira.nhibernate.org/browse/NH-815?page=all ] Sergey Koshcheyev closed NH-815: -------------------------------- Resolution: Fixed > SQLQueryImpl fails to bind parameter lists > ------------------------------------------ > > Key: NH-815 > URL: http://jira.nhibernate.org/browse/NH-815 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Peter Jaffe > Fix For: 1.2.0.CR1 > > The SQLQueryImpl class does not bind parameter lists properly. This is very easy to reproduce with a simple SQLQuery that has a single named parameter in the WHERE clause (e.g. "where id in (:idList)") and then use the ISQLQuery.SetParameterList("idList", someCollection). This works with an IQuery but fails with an ISQLQuery. > I debugged through the source of the 1.2.0 Beta2 and the fix appears very straightforward. See the code snippet below that indicates where the method argument "parameters" should probably be used instead of the class's NamedParams property. > public class SqlQueryImpl : AbstractQueryImpl, ISQLQuery > { > ... > public NativeSQLQuerySpecification GenerateQuerySpecification(IDictionary parameters) > { > return new NativeSQLQuerySpecification( > BindParameterLists(NamedParams), <-- ** Probably should have been "parameters" ** > GetQueryReturns(), > querySpaces); > } > ... > } > I'm using the MS SQL Server ADO.NET provider and running under .NET 2.0. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 14:47:40
|
[ http://jira.nhibernate.org/browse/NH-817?page=all ] Sergey Koshcheyev updated NH-817: --------------------------------- Description: DetachedCriteria is serializable in H3.2. I post the test for DetachedCriteria serializable (NHibernate.Test.Criteria.DetachedCriteriaSerializable). I'm working to pass the test. N.B. CriteriaImpl is marked serializable but can't be serialized because RootEntityResultTransformer is not serializable. was: DetechedCriteria is serializable in H3.2. I post the test for DetachedCriteria serializable (NHibernate.Test.Criteria.DetachedCriteriaSerializable). I'm working to pass the test. N.B. CriteriaImpl is marked serializable but can't be serialized because RootEntityResultTransformer is not serializable. Summary: DetachedCriteria Serializable (was: DetechedCriteria Serializable) > DetachedCriteria Serializable > ----------------------------- > > Key: NH-817 > URL: http://jira.nhibernate.org/browse/NH-817 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > Fix For: 1.2.0.CR1 > Attachments: DetachedCriteriaSerializable.patch > > DetachedCriteria is serializable in H3.2. > I post the test for DetachedCriteria serializable (NHibernate.Test.Criteria.DetachedCriteriaSerializable). > I'm working to pass the test. > N.B. CriteriaImpl is marked serializable but can't be serialized because RootEntityResultTransformer is not serializable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 14:47:40
|
[ http://jira.nhibernate.org/browse/NH-817?page=all ] Sergey Koshcheyev closed NH-817: -------------------------------- Resolution: Fixed > DetachedCriteria Serializable > ----------------------------- > > Key: NH-817 > URL: http://jira.nhibernate.org/browse/NH-817 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > Fix For: 1.2.0.CR1 > Attachments: DetachedCriteriaSerializable.patch > > DetachedCriteria is serializable in H3.2. > I post the test for DetachedCriteria serializable (NHibernate.Test.Criteria.DetachedCriteriaSerializable). > I'm working to pass the test. > N.B. CriteriaImpl is marked serializable but can't be serialized because RootEntityResultTransformer is not serializable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 14:01:33
|
[ http://jira.nhibernate.org/browse/NH-817?page=all ] Fabio Maulo updated NH-817: --------------------------- Attachment: DetachedCriteriaSerializable.patch Patch to pass the test. > DetechedCriteria Serializable > ----------------------------- > > Key: NH-817 > URL: http://jira.nhibernate.org/browse/NH-817 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > Fix For: 1.2.0.CR1 > Attachments: DetachedCriteriaSerializable.patch > > DetechedCriteria is serializable in H3.2. > I post the test for DetachedCriteria serializable (NHibernate.Test.Criteria.DetachedCriteriaSerializable). > I'm working to pass the test. > N.B. CriteriaImpl is marked serializable but can't be serialized because RootEntityResultTransformer is not serializable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 14:01:30
|
[ http://jira.nhibernate.org/browse/NH-818?page=all ] Sergey Koshcheyev closed NH-818: -------------------------------- > NHibernate.JetDriver Not Working at all in 1.2.0.Beta2 (encounters System.NullReferenceException) > ------------------------------------------------------------------------------------------------- > > Key: NH-818 > URL: http://jira.nhibernate.org/browse/NH-818 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Simon > Fix For: 1.2.0.CR1 > > Using simple test case (from ForumQuestions of NHibernate.Examples, changing driver to JetDriver) > ISession session = sessions.OpenSession(); > OfferType offerType = new OfferType(); > offerType.Key = 1; > offerType.Description = "somevalue"; > session.Save(offerType); > ==================== > STACK TRACE: > ==================== > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > at NHibernate.Impl.SessionImpl.Flush() > at NHibernate.Examples.ForumQuestions.OfferExample.OfferExample.TestExample() in d:\PathTo\nhibernate.examples\forumquestions\offerexample\offerexample.cs:line 83 > --ADOException > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > ==================== > LOG4NET LOG: > ==================== > 2006-11-19 22:25:11,906 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Inserting entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Opened new IDbCommand, open IDbCommands: 1 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Building an IDbCommand object for the SqlString: INSERT INTO OfferType (description, id_) VALUES (?, ?) > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Dehydrating entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.StringType [(null)] <(null)> - binding 'somevalue' to parameter: 0 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.Int32Type [(null)] <(null)> - binding '1' to parameter: 1 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.SQL [(null)] <(null)> - INSERT INTO OfferType (description, id_) VALUES (?, ?); @p0 = 'somevalue', @p1 = '1' > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Connection.DriverConnectionProvider [(null)] <(null)> - Obtaining IDbConnection from Driver > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Closed IDbCommand, open IDbCommands: 0 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] [INSERT INTO OfferType (description, id_) VALUES (?, ?)] > System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] WARN NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - Object reference not set to an instance of an object. > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session > NHibernate.ADOException: could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1][SQL: INSERT INTO OfferType (description, id_) VALUES (?, ?)] ---> System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > --- End of inner exception stack trace --- > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > ==================== > Error occurs irregardless of query type, insert, select, and irrespective of using Find() or CreateQuery(). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 13:38:31
|
[ http://jira.nhibernate.org/browse/NH-818?page=comments#action_14443 ] Simon commented on NH-818: -------------------------- Hi Sergey, thanks you got it. It's fixed. > NHibernate.JetDriver Not Working at all in 1.2.0.Beta2 (encounters System.NullReferenceException) > ------------------------------------------------------------------------------------------------- > > Key: NH-818 > URL: http://jira.nhibernate.org/browse/NH-818 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Simon > Fix For: 1.2.0.CR1 > > Using simple test case (from ForumQuestions of NHibernate.Examples, changing driver to JetDriver) > ISession session = sessions.OpenSession(); > OfferType offerType = new OfferType(); > offerType.Key = 1; > offerType.Description = "somevalue"; > session.Save(offerType); > ==================== > STACK TRACE: > ==================== > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > at NHibernate.Impl.SessionImpl.Flush() > at NHibernate.Examples.ForumQuestions.OfferExample.OfferExample.TestExample() in d:\PathTo\nhibernate.examples\forumquestions\offerexample\offerexample.cs:line 83 > --ADOException > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > ==================== > LOG4NET LOG: > ==================== > 2006-11-19 22:25:11,906 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Inserting entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Opened new IDbCommand, open IDbCommands: 1 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Building an IDbCommand object for the SqlString: INSERT INTO OfferType (description, id_) VALUES (?, ?) > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Dehydrating entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.StringType [(null)] <(null)> - binding 'somevalue' to parameter: 0 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.Int32Type [(null)] <(null)> - binding '1' to parameter: 1 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.SQL [(null)] <(null)> - INSERT INTO OfferType (description, id_) VALUES (?, ?); @p0 = 'somevalue', @p1 = '1' > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Connection.DriverConnectionProvider [(null)] <(null)> - Obtaining IDbConnection from Driver > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Closed IDbCommand, open IDbCommands: 0 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] [INSERT INTO OfferType (description, id_) VALUES (?, ?)] > System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] WARN NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - Object reference not set to an instance of an object. > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session > NHibernate.ADOException: could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1][SQL: INSERT INTO OfferType (description, id_) VALUES (?, ?)] ---> System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > --- End of inner exception stack trace --- > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > ==================== > Error occurs irregardless of query type, insert, select, and irrespective of using Find() or CreateQuery(). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 11:36:30
|
[ http://jira.nhibernate.org/browse/NH-813?page=comments#action_14442 ] Sergey Koshcheyev commented on NH-813: -------------------------------------- A better fix would be to alter MemCachedClient.KeyAsString method to do the right thing for keys of type CacheKey instead of just calling their ToString method. > CacheKey key is invalid - memcached fails to store objects. > ----------------------------------------------------------- > > Key: NH-813 > URL: http://jira.nhibernate.org/browse/NH-813 > Project: NHibernate > Type: Patch > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Stuart Carnie > Fix For: 1.2.0.CR1 > Attachments: cachekey-fix.patch > > The CacheKey derives from IdentifierSpace, which is EntityMetaModel.RootTypeAssemblyQualifiedName. This name contains spaces, which causes an issue with MemCache, in the 'set' command. With the spaces in the key, an invalid command is sent to the memcached server. > I have provided a patch that exposes a new property on EntityMetaModel, RootName (to match the property name in Hibernate), which simply replaces the spaces with underscores '_'. Now memcached caching works fine. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 10:37:27
|
[ http://jira.nhibernate.org/browse/NH-793?page=all ] Sergey Koshcheyev closed NH-793: -------------------------------- Resolution: Fixed > NHybridDataReader.ReadIntoMemory fails when the result is 0 records. "Invalid attempt to read when no data is present". > ----------------------------------------------------------------------------------------------------------------------- > > Key: NH-793 > URL: http://jira.nhibernate.org/browse/NH-793 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.0.2, 1.0.3 > Reporter: dstefanov > Priority: Trivial > Fix For: 1.2.0.CR1 > > public bool Read() > { > // DS 6/30/06 - If the result is 0 records the read will always return false > // and the _isMidstream should be false so we don't attempt to read from the > // reader when we do ReadIntoMemory. We were getting an error > // "Invalid attempt to read when no data is present" when trying to get data > // from the reader is such cases. > // > //_isMidstream = true; > //return _reader.Read(); > // > _isMidstream = _reader.Read(); > return _isMidstream; > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 10:23:28
|
[ http://jira.nhibernate.org/browse/NH-818?page=all ] Sergey Koshcheyev resolved NH-818: ---------------------------------- Resolution: Fixed I believe I fixed it now in SVN. Can you please check? > NHibernate.JetDriver Not Working at all in 1.2.0.Beta2 (encounters System.NullReferenceException) > ------------------------------------------------------------------------------------------------- > > Key: NH-818 > URL: http://jira.nhibernate.org/browse/NH-818 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Simon > Fix For: 1.2.0.CR1 > > Using simple test case (from ForumQuestions of NHibernate.Examples, changing driver to JetDriver) > ISession session = sessions.OpenSession(); > OfferType offerType = new OfferType(); > offerType.Key = 1; > offerType.Description = "somevalue"; > session.Save(offerType); > ==================== > STACK TRACE: > ==================== > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > at NHibernate.Impl.SessionImpl.Flush() > at NHibernate.Examples.ForumQuestions.OfferExample.OfferExample.TestExample() in d:\PathTo\nhibernate.examples\forumquestions\offerexample\offerexample.cs:line 83 > --ADOException > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > ==================== > LOG4NET LOG: > ==================== > 2006-11-19 22:25:11,906 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Inserting entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Opened new IDbCommand, open IDbCommands: 1 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Building an IDbCommand object for the SqlString: INSERT INTO OfferType (description, id_) VALUES (?, ?) > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Dehydrating entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.StringType [(null)] <(null)> - binding 'somevalue' to parameter: 0 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.Int32Type [(null)] <(null)> - binding '1' to parameter: 1 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.SQL [(null)] <(null)> - INSERT INTO OfferType (description, id_) VALUES (?, ?); @p0 = 'somevalue', @p1 = '1' > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Connection.DriverConnectionProvider [(null)] <(null)> - Obtaining IDbConnection from Driver > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Closed IDbCommand, open IDbCommands: 0 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] [INSERT INTO OfferType (description, id_) VALUES (?, ?)] > System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] WARN NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - Object reference not set to an instance of an object. > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session > NHibernate.ADOException: could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1][SQL: INSERT INTO OfferType (description, id_) VALUES (?, ?)] ---> System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > --- End of inner exception stack trace --- > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > ==================== > Error occurs irregardless of query type, insert, select, and irrespective of using Find() or CreateQuery(). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 10:01:28
|
Memcached.Client library is using log4net 1.2.9, instead of 1.2.10 ------------------------------------------------------------------ Key: NH-819 URL: http://jira.nhibernate.org/browse/NH-819 Project: NHibernate Type: Bug Components: Contrib Versions: 1.2.0.Beta2 Reporter: Ayende Rahien Assigned to: Ayende Rahien Fix For: 1.2.0.CR1 This disable the use of MemCached caching with NH 1.2 Temporary solution may be to compile Memcached client ourself, but we lose the strong name that way. I am going to contact the developers and see if they can push a version with 1.2.10, and then move to that. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 09:49:28
|
[ http://jira.nhibernate.org/browse/NH-818?page=all ] Sergey Koshcheyev updated NH-818: --------------------------------- Fix Version: 1.2.0.CR1 > NHibernate.JetDriver Not Working at all in 1.2.0.Beta2 (encounters System.NullReferenceException) > ------------------------------------------------------------------------------------------------- > > Key: NH-818 > URL: http://jira.nhibernate.org/browse/NH-818 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Simon > Fix For: 1.2.0.CR1 > > Using simple test case (from ForumQuestions of NHibernate.Examples, changing driver to JetDriver) > ISession session = sessions.OpenSession(); > OfferType offerType = new OfferType(); > offerType.Key = 1; > offerType.Description = "somevalue"; > session.Save(offerType); > ==================== > STACK TRACE: > ==================== > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > at NHibernate.Impl.SessionImpl.Flush() > at NHibernate.Examples.ForumQuestions.OfferExample.OfferExample.TestExample() in d:\PathTo\nhibernate.examples\forumquestions\offerexample\offerexample.cs:line 83 > --ADOException > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > ==================== > LOG4NET LOG: > ==================== > 2006-11-19 22:25:11,906 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Inserting entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Opened new IDbCommand, open IDbCommands: 1 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Building an IDbCommand object for the SqlString: INSERT INTO OfferType (description, id_) VALUES (?, ?) > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Dehydrating entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.StringType [(null)] <(null)> - binding 'somevalue' to parameter: 0 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.Int32Type [(null)] <(null)> - binding '1' to parameter: 1 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.SQL [(null)] <(null)> - INSERT INTO OfferType (description, id_) VALUES (?, ?); @p0 = 'somevalue', @p1 = '1' > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Connection.DriverConnectionProvider [(null)] <(null)> - Obtaining IDbConnection from Driver > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Closed IDbCommand, open IDbCommands: 0 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] [INSERT INTO OfferType (description, id_) VALUES (?, ?)] > System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] WARN NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - Object reference not set to an instance of an object. > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session > NHibernate.ADOException: could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1][SQL: INSERT INTO OfferType (description, id_) VALUES (?, ?)] ---> System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > --- End of inner exception stack trace --- > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > ==================== > Error occurs irregardless of query type, insert, select, and irrespective of using Find() or CreateQuery(). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 08:36:27
|
[ http://jira.nhibernate.org/browse/NH-817?page=all ] Sergey Koshcheyev updated NH-817: --------------------------------- Fix Version: 1.2.0.CR1 > DetechedCriteria Serializable > ----------------------------- > > Key: NH-817 > URL: http://jira.nhibernate.org/browse/NH-817 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > Fix For: 1.2.0.CR1 > > DetechedCriteria is serializable in H3.2. > I post the test for DetachedCriteria serializable (NHibernate.Test.Criteria.DetachedCriteriaSerializable). > I'm working to pass the test. > N.B. CriteriaImpl is marked serializable but can't be serialized because RootEntityResultTransformer is not serializable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 08:36:26
|
[ http://jira.nhibernate.org/browse/NH-693?page=all ] Sergey Koshcheyev updated NH-693: --------------------------------- Summary: Better error message when user forgets to supply table name (was: Better Error Msg) > Better error message when user forgets to supply table name > ----------------------------------------------------------- > > Key: NH-693 > URL: http://jira.nhibernate.org/browse/NH-693 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Dru Sellers > Priority: Minor > Fix For: 1.2.0.CR1 > > Can we have better error msg for this error? > "NHibernate.MappingException: Index was outside the bounds of the array. ---> System.IndexOutOfRangeException: Index was outside the bounds of the array. > at NHibernate.Mapping.Table.set_Name(String value) > at NHibernate.Cfg.Mappings.AddTable(String schema, String name) > at NHibernate.Cfg.Binder.BindRootClass(XmlNode node, RootClass model, Mappings mappings) > at NHibernate.Cfg.Binder.BindRoot(XmlDocument doc, Mappings model) > at NHibernate.Cfg.Configuration.AddValidatedDocument(XmlDocument doc) > at NHibernate.Cfg.Configuration.AddXmlReader(XmlTextReader hbmReader) > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) > --- End of inner exception stack trace --- > at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream) > at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly, Boolean skipOrdering) > at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly) > at NHibernate.Cfg.Configuration.AddAssembly(String assemblyName) > I would be happy to code it up, but not sure where to best put the check? > NHibernate.Mapping.Table.set_Name (least amount of code repeat.) > or > NHibernate.Cfg.Mappings.AddTable(String schema, String name) best place to provide the most info possible. Actually this is a bad place too. > --Thoughts?-- -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 08:34:34
|
[ http://jira.nhibernate.org/browse/NH-816?page=all ] Sergey Koshcheyev closed NH-816: -------------------------------- Resolution: Fixed Fixed, but I simplified the piece of code in CriteriaQueryTranslator a bit. > Criteria using class with discriminator > --------------------------------------- > > Key: NH-816 > URL: http://jira.nhibernate.org/browse/NH-816 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > Fix For: 1.2.0.CR1 > Attachments: CriteriaWithClassProperties.patch > > session.CreateCriteria(typeof(MaterialUnit),"mu") > .CreateAlias("mu.Material", "ma") > .Add(Expression.Property.ForName("ma.class").Eq(typeof(MaterialUnitable))) > .List(); > The problem is in CriteriaQueryTranslator.GetTypedValue because the method use the DiscriminatorSQLValue istead DicriminatorValue. > I'm working on it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-20 08:34:31
|
[ http://jira.nhibernate.org/browse/NH-812?page=all ] Sergey Koshcheyev closed NH-812: -------------------------------- Resolution: Fixed > PostgreSQL - for update no wait > ------------------------------- > > Key: NH-812 > URL: http://jira.nhibernate.org/browse/NH-812 > Project: NHibernate > Type: Bug > Components: Data Providers > Versions: 1.2.0.Beta2 > Reporter: Bernhard Adelsmair > Priority: Trivial > Fix For: 1.2.0.CR1 > Attachments: PostgreSQL81Dialect.cs > > Hello!! > In the PostgreSQL Version 8.1 it is possible to Lock with Mode "FOR UPDATE NO WAIT". > But there was a mistake in the PostgreSQL81Dialect.cs file. There is a missing backspace before the "for". > yours sincerely > Bernhard Adelsmair > P.S.: > The file should look like: > using System; > namespace NHibernate.Dialect > { > /// <summary> > /// An SQL dialect for PostgreSQL 8.1 and above. > /// </summary> > /// <remarks> > /// PostgreSQL 8.1 supports <c>FOR UPDATE ... NOWAIT</c> syntax. > /// See <see cref="PostgreSQLDialect" /> for more information. > /// </remarks> > public class PostgreSQL81Dialect : PostgreSQLDialect > { > public override string ForUpdateNowaitString > { > get { return " for update nowait"; } > } > public override string GetForUpdateNowaitString( string aliases ) > { > return " for update of " + aliases + " nowait"; > } > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-19 17:21:23
|
[ http://jira.nhibernate.org/browse/NH-816?page=comments#action_14433 ] Fabio Maulo commented on NH-816: -------------------------------- Note: the patch include test but tests was committed. > Criteria using class with discriminator > --------------------------------------- > > Key: NH-816 > URL: http://jira.nhibernate.org/browse/NH-816 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > Fix For: 1.2.0.CR1 > Attachments: CriteriaWithClassProperties.patch > > session.CreateCriteria(typeof(MaterialUnit),"mu") > .CreateAlias("mu.Material", "ma") > .Add(Expression.Property.ForName("ma.class").Eq(typeof(MaterialUnitable))) > .List(); > The problem is in CriteriaQueryTranslator.GetTypedValue because the method use the DiscriminatorSQLValue istead DicriminatorValue. > I'm working on it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-19 17:16:30
|
[ http://jira.nhibernate.org/browse/NH-817?page=comments#action_14432 ] Fabio Maulo commented on NH-817: -------------------------------- Work done!! Before post the patch please commit patch for NH-816. Thanks. > DetechedCriteria Serializable > ----------------------------- > > Key: NH-817 > URL: http://jira.nhibernate.org/browse/NH-817 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > > DetechedCriteria is serializable in H3.2. > I post the test for DetachedCriteria serializable (NHibernate.Test.Criteria.DetachedCriteriaSerializable). > I'm working to pass the test. > N.B. CriteriaImpl is marked serializable but can't be serialized because RootEntityResultTransformer is not serializable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-19 14:59:26
|
[ http://jira.nhibernate.org/browse/NH-818?page=comments#action_14431 ] Simon commented on NH-818: -------------------------- Just a note that the example work fine in 1.2.0.Beta1 (with JetDriver from the SVN trunk, as the JetDriver has a bug in Beta1 resolved under NH-757 in the SVN trunk) > NHibernate.JetDriver Not Working at all in 1.2.0.Beta2 (encounters System.NullReferenceException) > ------------------------------------------------------------------------------------------------- > > Key: NH-818 > URL: http://jira.nhibernate.org/browse/NH-818 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Simon > > Using simple test case (from ForumQuestions of NHibernate.Examples, changing driver to JetDriver) > ISession session = sessions.OpenSession(); > OfferType offerType = new OfferType(); > offerType.Key = 1; > offerType.Description = "somevalue"; > session.Save(offerType); > ==================== > STACK TRACE: > ==================== > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > at NHibernate.Impl.SessionImpl.Flush() > at NHibernate.Examples.ForumQuestions.OfferExample.OfferExample.TestExample() in d:\PathTo\nhibernate.examples\forumquestions\offerexample\offerexample.cs:line 83 > --ADOException > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > ==================== > LOG4NET LOG: > ==================== > 2006-11-19 22:25:11,906 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Inserting entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Opened new IDbCommand, open IDbCommands: 1 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Building an IDbCommand object for the SqlString: INSERT INTO OfferType (description, id_) VALUES (?, ?) > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Dehydrating entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.StringType [(null)] <(null)> - binding 'somevalue' to parameter: 0 > 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.Int32Type [(null)] <(null)> - binding '1' to parameter: 1 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.SQL [(null)] <(null)> - INSERT INTO OfferType (description, id_) VALUES (?, ?); @p0 = 'somevalue', @p1 = '1' > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Connection.DriverConnectionProvider [(null)] <(null)> - Obtaining IDbConnection from Driver > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Closed IDbCommand, open IDbCommands: 0 > 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] [INSERT INTO OfferType (description, id_) VALUES (?, ?)] > System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] WARN NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - Object reference not set to an instance of an object. > 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session > NHibernate.ADOException: could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1][SQL: INSERT INTO OfferType (description, id_) VALUES (?, ?)] ---> System.NullReferenceException: Object reference not set to an instance of an object. > at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 > at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) > at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) > at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) > at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > --- End of inner exception stack trace --- > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) > at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) > at NHibernate.Impl.ScheduledInsertion.Execute() > at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) > at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) > at NHibernate.Impl.SessionImpl.Execute() > ==================== > Error occurs irregardless of query type, insert, select, and irrespective of using Find() or CreateQuery(). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-19 14:42:26
|
NHibernate.JetDriver Not Working at all in 1.2.0.Beta2 (encounters System.NullReferenceException) ------------------------------------------------------------------------------------------------- Key: NH-818 URL: http://jira.nhibernate.org/browse/NH-818 Project: NHibernate Type: Bug Components: Core Versions: 1.2.0.Beta2 Reporter: Simon Using simple test case (from ForumQuestions of NHibernate.Examples, changing driver to JetDriver) ISession session = sessions.OpenSession(); OfferType offerType = new OfferType(); offerType.Key = 1; offerType.Description = "somevalue"; session.Save(offerType); ==================== STACK TRACE: ==================== at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) at NHibernate.Impl.ScheduledInsertion.Execute() at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) at NHibernate.Impl.SessionImpl.Execute() at NHibernate.Impl.SessionImpl.Flush() at NHibernate.Examples.ForumQuestions.OfferExample.OfferExample.TestExample() in d:\PathTo\nhibernate.examples\forumquestions\offerexample\offerexample.cs:line 83 --ADOException at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) ==================== LOG4NET LOG: ==================== 2006-11-19 22:25:11,906 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Inserting entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Opened new IDbCommand, open IDbCommands: 1 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Building an IDbCommand object for the SqlString: INSERT INTO OfferType (description, id_) VALUES (?, ?) 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Persister.Entity.AbstractEntityPersister [(null)] <(null)> - Dehydrating entity: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.StringType [(null)] <(null)> - binding 'somevalue' to parameter: 0 2006-11-19 22:25:11,916 [TestRunnerThread] DEBUG NHibernate.Type.Int32Type [(null)] <(null)> - binding '1' to parameter: 1 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.SQL [(null)] <(null)> - INSERT INTO OfferType (description, id_) VALUES (?, ?); @p0 = 'somevalue', @p1 = '1' 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Connection.DriverConnectionProvider [(null)] <(null)> - Obtaining IDbConnection from Driver 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Impl.BatcherImpl [(null)] <(null)> - Closed IDbCommand, open IDbCommands: 0 2006-11-19 22:25:11,926 [TestRunnerThread] DEBUG NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1] [INSERT INTO OfferType (description, id_) VALUES (?, ?)] System.NullReferenceException: Object reference not set to an instance of an object. at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) 2006-11-19 22:25:11,936 [TestRunnerThread] WARN NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - System.NullReferenceException: Object reference not set to an instance of an object. at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Util.ADOExceptionReporter [(null)] <(null)> - Object reference not set to an instance of an object. 2006-11-19 22:25:11,936 [TestRunnerThread] ERROR NHibernate.Impl.SessionImpl [(null)] <(null)> - could not synchronize database state with session NHibernate.ADOException: could not insert: [NHibernate.Examples.ForumQuestions.OfferExample.OfferType#1][SQL: INSERT INTO OfferType (description, id_) VALUES (?, ?)] ---> System.NullReferenceException: Object reference not set to an instance of an object. at NHibernate.JetDriver.JetDbCommand.set_Transaction(IDbTransaction value) in c:\net\nhibernate\nhibernate\src\NHibernate.JetDriver\JetDbCommand.cs:line 190 at NHibernate.Transaction.AdoTransaction.Enlist(IDbCommand command) at NHibernate.Impl.BatcherImpl.Prepare(IDbCommand cmd) at NHibernate.Impl.BatcherImpl.ExecuteNonQuery(IDbCommand cmd) at NHibernate.Impl.NonBatchingBatcher.AddToBatch(IExpectation expectation) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) --- End of inner exception stack trace --- at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Boolean[] notNull, Int32 j, SqlCommandInfo sql, Object obj, ISessionImplementor session) at NHibernate.Persister.Entity.AbstractEntityPersister.Insert(Object id, Object[] fields, Object obj, ISessionImplementor session) at NHibernate.Impl.ScheduledInsertion.Execute() at NHibernate.Impl.SessionImpl.Execute(IExecutable executable) at NHibernate.Impl.SessionImpl.ExecuteAll(IList list) at NHibernate.Impl.SessionImpl.Execute() ==================== Error occurs irregardless of query type, insert, select, and irrespective of using Find() or CreateQuery(). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-19 05:50:26
|
[ http://jira.nhibernate.org/browse/NH-769?page=comments#action_14430 ] Fabio Maulo commented on NH-769: -------------------------------- http://www.codeproject.com/csharp/CompactSerialization.asp > Improve serialization of Session > -------------------------------- > > Key: NH-769 > URL: http://jira.nhibernate.org/browse/NH-769 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Peter Smulovics > Priority: Minor > Fix For: LATER > > Serialization of Session object is done using the default methods, resulting in time and space consuming binary objects. Technologies like FastSerializer ( http://www.codeproject.com/dotnet/FastSerializer.asp ) may help a lot. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-19 05:24:28
|
DetechedCriteria Serializable ----------------------------- Key: NH-817 URL: http://jira.nhibernate.org/browse/NH-817 Project: NHibernate Type: Improvement Components: Core Versions: 1.2.0.Beta2 Reporter: Fabio Maulo Priority: Minor DetechedCriteria is serializable in H3.2. I post the test for DetachedCriteria serializable (NHibernate.Test.Criteria.DetachedCriteriaSerializable). I'm working to pass the test. N.B. CriteriaImpl is marked serializable but can't be serialized because RootEntityResultTransformer is not serializable. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-17 21:43:31
|
[ http://jira.nhibernate.org/browse/NH-814?page=3Dcomments#action_1442= 7 ] =20 Ayende Rahien commented on NH-814: ---------------------------------- Accessing the fields directly usually means either reflection or dynamic co= de generaion, not something that your everyday code is going to be able to = do. I don't agree with this approach of handling security, since if you have ma= licious code in your appdomain that is able to make calls, you are in a bad= state already. But, this discussion is not for the JIRA. Given the constraints that you have set, I would create an access strategy = where the strategy would inform the object that it is being modified by NHi= bernate, and disallow any modifications not done this way. A simple approach may be setting a flag to say that NHibernate is now doing= modification to the object, and having the object check that flag. Securing this approach is possible by putting the flag in a base class and = making it internal, so only the access strategy could access it. > Resetting of properties after initial set violates constraints we want to= protect > -------------------------------------------------------------------------= -------- > > Key: NH-814 > URL: http://jira.nhibernate.org/browse/NH-814 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.0.2 > Reporter: Jim Showalter > Fix For: LATER > > We have properties on objects that are supposed to be set only once, when= first reading an object back from the database. Once in memory, they are n= ot supposed to be set again, and attempting to do so is supposed to throw a= n exception. Unfortunately, nhibernate's behavior appears to be less predic= table than we had thought. It assigns properties more than once. For exampl= e, when merging a disconnected object, it loads one from the database (thus= setting the properties), and then sets them again from the other object, t= hus violating the set-once rule. There are other cases similar to this. We = modified our rule to allow setting to null (or some other value indicating = not-yet-set) as many times as desired, then setting to some actual value, a= nd allowing setting to that same value as many times as desired. Setting to= a different value once set throws an exception. This seems to pacify nhibe= rnate, but we're not certain that it will work in all cases, and the behavi= or of nhibernate as far as resetting properties is concerned is undefined. = Our request is for nhibernate to be enhanced to have a notion of set-once, = which would be stated in the HBM file. This would make a property immutable= , with the sole setting of that property to be done on reading in from the = database. On save, a set-once property would be assumed to have already bee= n set--nhibernate would not set it itself when saving, only when reading. > This same request has been filed for hibernate as HHH-2245. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-17 19:27:30
|
[ http://jira.nhibernate.org/browse/NH-814?page=3Dcomments#action_1442= 6 ] =20 Jim Showalter commented on NH-814: ---------------------------------- If nhibernate can access fields directly, then so can anyone/anything else.= If they can do that, then the constraints aren't protected. So field acces= s is deliberately shut off using declarative security. So nosetter doesn't = work. Think of nhibernate in the context of a high-security application. For exam= ple, a banking application. We don't want malicious code to be able to call= a method to change a person's account balance. But we have to allow nhiber= nate to set that balance when it reads an object back from the database. So= we have to allow the balance to be set once by nhibernate. But we don't wa= nt anything that isn't authorized to do so to set that balance again. > Resetting of properties after initial set violates constraints we want to= protect > -------------------------------------------------------------------------= -------- > > Key: NH-814 > URL: http://jira.nhibernate.org/browse/NH-814 > Project: NHibernate > Type: Improvement > Components: Core > Versions: 1.0.2 > Reporter: Jim Showalter > Fix For: LATER > > We have properties on objects that are supposed to be set only once, when= first reading an object back from the database. Once in memory, they are n= ot supposed to be set again, and attempting to do so is supposed to throw a= n exception. Unfortunately, nhibernate's behavior appears to be less predic= table than we had thought. It assigns properties more than once. For exampl= e, when merging a disconnected object, it loads one from the database (thus= setting the properties), and then sets them again from the other object, t= hus violating the set-once rule. There are other cases similar to this. We = modified our rule to allow setting to null (or some other value indicating = not-yet-set) as many times as desired, then setting to some actual value, a= nd allowing setting to that same value as many times as desired. Setting to= a different value once set throws an exception. This seems to pacify nhibe= rnate, but we're not certain that it will work in all cases, and the behavi= or of nhibernate as far as resetting properties is concerned is undefined. = Our request is for nhibernate to be enhanced to have a notion of set-once, = which would be stated in the HBM file. This would make a property immutable= , with the sole setting of that property to be done on reading in from the = database. On save, a set-once property would be assumed to have already bee= n set--nhibernate would not set it itself when saving, only when reading. > This same request has been filed for hibernate as HHH-2245. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: NHibernate J. <mik...@us...> - 2006-11-17 19:13:28
|
[ http://jira.nhibernate.org/browse/NH-816?page=all ] Sergey Koshcheyev updated NH-816: --------------------------------- Fix Version: 1.2.0.CR1 > Criteria using class with discriminator > --------------------------------------- > > Key: NH-816 > URL: http://jira.nhibernate.org/browse/NH-816 > Project: NHibernate > Type: Bug > Components: Core > Versions: 1.2.0.Beta2 > Reporter: Fabio Maulo > Priority: Minor > Fix For: 1.2.0.CR1 > Attachments: CriteriaWithClassProperties.patch > > session.CreateCriteria(typeof(MaterialUnit),"mu") > .CreateAlias("mu.Material", "ma") > .Add(Expression.Property.ForName("ma.class").Eq(typeof(MaterialUnitable))) > .List(); > The problem is in CriteriaQueryTranslator.GetTypedValue because the method use the DiscriminatorSQLValue istead DicriminatorValue. > I'm working on it. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.nhibernate.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |