From: Joao B. (JIRA) <nh...@gm...> - 2011-01-21 02:26:34
|
CLONE -log4net DEBUG enabled and the query parameters Log parameters problem ---------------------------------------------------------------------------- Key: NH-2514 URL: http://216.121.112.228/browse/NH-2514 Project: NHibernate Issue Type: Bug Components: Core Affects Versions: 3.0.0.Alpha1 Reporter: Joao Braganca Priority: Major Hi, You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) when the log debug is on. if (log.IsDebugEnabled) { log.Debug("find: " + SourceQuery); queryParameters.LogParameters(session.Factory); } LogParameters method is throwing an exception in certain cases. The exception is the following: Could not execute query[SQL: SQL not available] NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following settings: <log4net debug="true"> <root> <priority value="DEBUG" /> <appender-ref ref="console" /> </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Joao B. (JIRA) <nh...@gm...> - 2011-01-21 02:28:45
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20492#action_20492 ] Joao Braganca commented on NH-2514: ----------------------------------- Could not figure out a way to reopen the issue so I had to clone it. Will attach a failing test soon. > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-01-26 11:38:40
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20510#action_20510 ] Fabio Maulo commented on NH-2514: --------------------------------- Without the failing test we will re-close the issue soon. > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-01-26 12:12:31
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20511#action_20511 ] Fabio Maulo commented on NH-2514: --------------------------------- To activate the log for a specific test you can use SqlLogSpy. Have a look to NHibernate.Test.NHSpecificTest.NH1444.Fixture as example. > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Hans O. (JIRA) <nh...@gm...> - 2011-02-17 11:41:39
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20562#action_20562 ] Hans Olav commented on NH-2514: ------------------------------- I've experienced the same problem when changing from NHibernate 3.0.0.2001 to 3.0.0.4000 and logging is activated. > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Paul C. (JIRA) <nh...@gm...> - 2011-02-23 12:14:06
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20582#action_20582 ] Paul Coleman commented on NH-2514: ---------------------------------- This happens for me in the following LINQ where clause: where someBoolValue == false > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-03-08 18:24:52
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20639#action_20639 ] Fabio Maulo commented on NH-2514: --------------------------------- 4 votes and no one that has experienced the issue can recreate the situation in a simple failing test ? > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Jiri S. (JIRA) <nh...@gm...> - 2011-03-15 16:49:47
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20658#action_20658 ] Jiri Sofka commented on NH-2514: -------------------------------- I was experiencing the same issue as the original poster (just with 'System.Boolean' instead of 'System.Int32'). The stack trace is exactly the same. It was caused by evaluating the following query: (from rec in Find() where rec.Finished == false select rec.Id) Suprisingly, changing 'rec.Finished == false' into '!rec.Finished' fixed the issue. While it is just a workaround, it may help somebody. > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Patrick E. (JIRA) <nh...@gm...> - 2011-03-15 17:26:58
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20659#action_20659 ] Patrick Earl commented on NH-2514: ---------------------------------- I'm working on the x == false problem in the linked issue. > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-03-25 16:56:14
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20744#action_20744 ] Fabio Maulo commented on NH-2514: --------------------------------- I can't recreate the issue. Should I close this ticket with "Cannot Reproduce" ? > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Alexey G. (JIRA) <nh...@gm...> - 2011-04-08 13:02:49
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alexey Gorbach updated NH-2514: ------------------------------- Attachment: gorbach-NHibernateSandbox-d80415c.zip The project with falling test is available here git://github.com/gorbach/NHibernateSandbox.git (branch NH-2514) > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > Attachments: gorbach-NHibernateSandbox-d80415c.zip > > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Fabio M. (JIRA) <nh...@gm...> - 2011-04-08 14:20:14
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20862#action_20862 ] Fabio Maulo commented on NH-2514: --------------------------------- Thanks to attach the test in our JIRA avoiding us yo jump around the NET to see a test. NET jumping is our preferred sport and we are payed to play it. > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > Attachments: gorbach-NHibernateSandbox-d80415c.zip > > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Alexey G. (JIRA) <nh...@gm...> - 2011-04-09 21:34:14
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20868#action_20868 ] Alexey Gorbach commented on NH-2514: ------------------------------------ I cannot reproduce it on NHibernate 3.1, so it is not obsolete. > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > Attachments: gorbach-NHibernateSandbox-d80415c.zip > > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: Julian M. (JIRA) <nh...@gm...> - 2011-04-10 00:30:54
|
[ http://216.121.112.228/browse/NH-2514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Julian Maughan resolved NH-2514. -------------------------------- Resolution: Cannot Reproduce > CLONE -log4net DEBUG enabled and the query parameters Log parameters problem > ---------------------------------------------------------------------------- > > Key: NH-2514 > URL: http://216.121.112.228/browse/NH-2514 > Project: NHibernate > Issue Type: Bug > Components: Core > Affects Versions: 3.0.0.Alpha1 > Reporter: Joao Braganca > Priority: Major > Attachments: gorbach-NHibernateSandbox-d80415c.zip > > > Hi, > You have a problem in for example HQLQueryPlan class for example method void PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) > when the log debug is on. > if (log.IsDebugEnabled) > { > log.Debug("find: " + SourceQuery); > queryParameters.LogParameters(session.Factory); > } > LogParameters method is throwing an exception in certain cases. The exception is the following: > Could not execute query[SQL: SQL not available] > NHibernate.Exceptions.GenericADOException: Could not execute query[SQL: SQL not available] ---> System.InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'. > at NHibernate.Type.AbstractStringType.ToString(Object val) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\AbstractStringType.cs:line 32 > at NHibernate.Type.NullableType.ToLoggableString(Object value, ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Type\NullableType.cs:line 109 > at NHibernate.Impl.Printer.ToString(IDictionary`2 namedTypedValues) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\Printer.cs:line 71 > at NHibernate.Engine.QueryParameters.LogParameters(ISessionFactoryImplementor factory) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\QueryParameters.cs:line 213 > at NHibernate.Engine.Query.HQLQueryPlan.PerformList(QueryParameters queryParameters, ISessionImplementor session, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Engine\Query\HQLQueryPlan.cs:line 254 > at NHibernate.Impl.SessionImpl.List(String query, QueryParameters queryParameters, IList results) in C:\Program Files\NHibernatesvn\trunk\nhibernate\src\NHibernate\Impl\SessionImpl.cs:line 629 > > Do you want me to create the unit test? I did not want to since the unit test will simply pass since for it not to pass, you must change the App.config to use the following > settings: > <log4net debug="true"> > <root> > <priority value="DEBUG" /> > <appender-ref ref="console" /> > </root> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |