com.ddtek.xquery3.XQException: [DataDirect][XQuery]Error during fetching: [SQLServer JDBC Driver]Value can not be converted to requested type.
at com.ddtek.xquery3.xqj.Util.createXQException(Util.java:238) 	
at com.ddtek.xquery3.xqj.DDXQAbstractSequence.writeSequence(DDXQAbstractSequence.java:466)
Caused by: com.ddtek.xquery.util.XQueryException: [EX5400][DataDirect][XQuery]Error during fetching: [SQLServer JDBC Driver]Value can not be converted to requested type.
at com.ddtek.xquery.extractor.util.SqlUtil.createXQueryException(SqlUtil.java:202)
at com.ddtek.xquery.extractor.resultset.JdbcStatement.getObject(JdbcStatement.java:189)
at com.ddtek.xquery.extractor.resultset.JdbcStatement.fetchRow(JdbcStatement.java:100)
at com.ddtek.xquery.extractor.resultset.MergeResultSet.enter(MergeResultSet.java:66)
at com.ddtek.xquery.extractor.resultset.TreeOfTreeResultSets.enter(TreeOfTreeResultSets.java:264)
at com.ddtek.xquery.extractor.resultset.MergeResultSet.enter(MergeResultSet.java:57)
at com.ddtek.xquery.extractor.resultset.events.QdbStartDummyEventObject.doRuntimeStuff(QdbStartDummyEventObject.java:128)
at com.ddtek.xquery.extractor.resultset.EventGenerator._next(EventGenerator.java:171)
at com.ddtek.xquery.stream.AbstractXQueryStreamReader.next(AbstractXQueryStreamReader.java:85)
at com.ddtek.xquery.serialize.Serializer.doXMLSerialization(Serializer.java:969)
at com.ddtek.xquery.serialize.Serializer.serialize(Serializer.java:592)
at com.ddtek.xquery.serialize.Serializer.serialize(Serializer.java:574)
at com.ddtek.xquery3.xqj.DDXQAbstractSequence.writeSequence(DDXQAbstractSequence.java:463)
Caused by: java.sql.SQLException: [XQuery][SQLServer JDBC Driver]Value can not be converted to requested type.
at com.ddtek.xquery.jdbc.sqlserverbase.BaseExceptions40.createAppropriateSQLExceptionInstance(Unknown Source)
at com.ddtek.xquery.jdbc.sqlserverbase.BaseExceptions40.createSQLException(Unknown Source)
at com.ddtek.xquery.jdbc.sqlserverbase.BaseExceptions.createException(Unknown Source)
at com.ddtek.xquery.jdbc.sqlserverbase.BaseExceptions.getException(Unknown Source)
at com.ddtek.xquery.jdbc.sqlserverbase.BaseData.getInteger(Unknown Source)
at com.ddtek.xquery.jdbc.sqlserverbase.BaseResultSet.getInt(Unknown Source)
at com.ddtek.xquery.extractor.resultset.JdbcStatement.getObject(JdbcStatement.java:120)
... 11 more

com.ddtek.xquery3.XQException: [DataDirect][XQuery]Error during fetching: [SQLServer JDBC Driver]Value can not be converted to requested type. 	at com.ddtek.xquery3.xqj.Util.createXQException(Util.java:238) 	at com.ddtek.xquery3.xqj.DDXQAbstractSequence.writeSequence(DDXQAbstractSequence.java:466) Caused by: com.ddtek.xquery.util.XQueryException: [EX5400][DataDirect][XQuery]Error during fetching: [SQLServer JDBC Driver]Value can not be converted to requested type. 	at com.ddtek.xquery.extractor.util.SqlUtil.createXQueryException(SqlUtil.java:202) 	at com.ddtek.xquery.extractor.resultset.JdbcStatement.getObject(JdbcStatement.java:189) 	at com.ddtek.xquery.extractor.resultset.JdbcStatement.fetchRow(JdbcStatement.java:100) 	at com.ddtek.xquery.extractor.resultset.MergeResultSet.enter(MergeResultSet.java:66) 	at com.ddtek.xquery.extractor.resultset.TreeOfTreeResultSets.enter(TreeOfTreeResultSets.java:264) 	at com.ddtek.xquery.extractor.resultset.MergeResultSet.enter(MergeResultSet.java:57) 	at com.ddtek.xquery.extractor.resultset.events.QdbStartDummyEventObject.doRuntimeStuff(QdbStartDummyEventObject.java:128) 	at com.ddtek.xquery.extractor.resultset.EventGenerator._next(EventGenerator.java:171) 	at com.ddtek.xquery.stream.AbstractXQueryStreamReader.next(AbstractXQueryStreamReader.java:85) 	at com.ddtek.xquery.serialize.Serializer.doXMLSerialization(Serializer.java:969) 	at com.ddtek.xquery.serialize.Serializer.serialize(Serializer.java:592) 	at com.ddtek.xquery.serialize.Serializer.serialize(Serializer.java:574) 	at com.ddtek.xquery3.xqj.DDXQAbstractSequence.writeSequence(DDXQAbstractSequence.java:463) Caused by: java.sql.SQLException: [XQuery][SQLServer JDBC Driver]Value can not be converted to requested type. 	at com.ddtek.xquery.jdbc.sqlserverbase.BaseExceptions40.createAppropriateSQLExceptionInstance(Unknown Source) 	at com.ddtek.xquery.jdbc.sqlserverbase.BaseExceptions40.createSQLException(Unknown Source) 	at com.ddtek.xquery.jdbc.sqlserverbase.BaseExceptions.createException(Unknown Source) 	at com.ddtek.xquery.jdbc.sqlserverbase.BaseExceptions.getException(Unknown Source) 	at com.ddtek.xquery.jdbc.sqlserverbase.BaseData.getInteger(Unknown Source) 	at com.ddtek.xquery.jdbc.sqlserverbase.BaseResultSet.getInt(Unknown Source) 	at com.ddtek.xquery.extractor.resultset.JdbcStatement.getObject(JdbcStatement.java:120) 	... 11 more