Hi Support Team,
All Date seaches broken in upgrade version of application
Getting : com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting datetime from binary/varbinary string.
Below are sample of manual filter and list gird filter
Tried with three different way.
Criterion dateCr = new Criterion("startDate", OperatorId.GREATER_OR_EQUAL,RelativeDate.TODAY);
Criterion dateCr = new Criterion("startDate", OperatorId.GREATER_OR_EQUAL,DateUtil.create());
Criterion dateCr = new Criterion("startDate", OperatorId.GREATER_OR_EQUAL,new Date());
Attached List Grid search..
List Grid Query and Error:
12:04:10,020 INFO [STDOUT] 29-11-2024 12:04:10.020 [DefaultQuartzScheduler_Worker-7] INFO com.legaledge.harmony.index.Updater - Closing persister...
12:04:19,128 INFO [STDOUT] 29-11-2024 12:04:19.128 [http-0.0.0.0-8080-3] DEBUG org.hibernate.util.JDBCExceptionReporter - could not execute query [select count(*) as col_0_0_ from hwe.my_open_events myopeneven0_ where (((myopeneven0_.start_date_>=? )and(myopeneven0_.start_date_ is not null ))and((myopeneven0_.start_date_<=? )or(myopeneven0_.start_date_ is null ))and(myopeneven0_.person_id=? )and(myopeneven0_.person_id is not null ))]
com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting datetime from binary/varbinary string.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:262) ~[mssql-jdbc-8.4.1.jre8.jar:?]
at com.microsoft.sqlserver.jdbc.SQLServerResultSet$FetchBuffer.nextRow(SQLServerResultSet.java:5448) ~[mssql-jdbc-8.4.1.jre8.jar:?]
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.fetchBufferNext(SQLServerResultSet.java:1771) ~[mssql-jdbc-8.4.1.jre8.jar:?]
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(SQLServerResultSet.java:1029) ~[mssql-jdbc-8.4.1.jre8.jar:?]
at org.jboss.resource.adapter.jdbc.WrappedResultSet.next(WrappedResultSet.java:520) ~[jboss-common-jdbc-wrapper.jar:4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)]
at org.hibernate.loader.Loader.doQuery(Loader.java:825) ~[hibernate3.jar:3.6.10.Final]
All Date seaches broken in upgrade version of application
Getting : com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting datetime from binary/varbinary string.
Below are sample of manual filter and list gird filter
Tried with three different way.
Criterion dateCr = new Criterion("startDate", OperatorId.GREATER_OR_EQUAL,RelativeDate.TODAY);
Criterion dateCr = new Criterion("startDate", OperatorId.GREATER_OR_EQUAL,DateUtil.create());
Criterion dateCr = new Criterion("startDate", OperatorId.GREATER_OR_EQUAL,new Date());
Attached List Grid search..
List Grid Query and Error:
12:04:10,020 INFO [STDOUT] 29-11-2024 12:04:10.020 [DefaultQuartzScheduler_Worker-7] INFO com.legaledge.harmony.index.Updater - Closing persister...
12:04:19,128 INFO [STDOUT] 29-11-2024 12:04:19.128 [http-0.0.0.0-8080-3] DEBUG org.hibernate.util.JDBCExceptionReporter - could not execute query [select count(*) as col_0_0_ from hwe.my_open_events myopeneven0_ where (((myopeneven0_.start_date_>=? )and(myopeneven0_.start_date_ is not null ))and((myopeneven0_.start_date_<=? )or(myopeneven0_.start_date_ is null ))and(myopeneven0_.person_id=? )and(myopeneven0_.person_id is not null ))]
com.microsoft.sqlserver.jdbc.SQLServerException: Conversion failed when converting datetime from binary/varbinary string.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:262) ~[mssql-jdbc-8.4.1.jre8.jar:?]
at com.microsoft.sqlserver.jdbc.SQLServerResultSet$FetchBuffer.nextRow(SQLServerResultSet.java:5448) ~[mssql-jdbc-8.4.1.jre8.jar:?]
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.fetchBufferNext(SQLServerResultSet.java:1771) ~[mssql-jdbc-8.4.1.jre8.jar:?]
at com.microsoft.sqlserver.jdbc.SQLServerResultSet.next(SQLServerResultSet.java:1029) ~[mssql-jdbc-8.4.1.jre8.jar:?]
at org.jboss.resource.adapter.jdbc.WrappedResultSet.next(WrappedResultSet.java:520) ~[jboss-common-jdbc-wrapper.jar:4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)]
at org.hibernate.loader.Loader.doQuery(Loader.java:825) ~[hibernate3.jar:3.6.10.Final]
Comment