This question is locked. New answers and comments are not allowed.
I'm seeing an exception in my server environment that I don't see in development, resulting in the following exception:
Telerik.OpenAccess.Exceptions.DataStoreException: Error executing query: Telerik.OpenAccess.RT.sql.SQLException: Could not find prepared statement with handle -1.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery()
at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute()
SQL:
SELECT b.[ContactId], c.[NoteId], c.[EmployeeId], c.[EmployeeId], c.[IsDeleted], c.[ModifiedDate], c.[NoteText] FROM [Contact] a JOIN [Contact_Note] AS b ON (a.[ContactId] = b.[ContactId]) JOIN [Note] AS c ON (b.[NoteId] = c.[NoteId]) WHERE a.[ContactId] = ? ORDER BY b.[ContactId] Telerik.OpenAccess.RT.sql.SQLException: Could not find prepared statement with handle -1.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery()
at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute() ---> Telerik.OpenAccess.RT.sql.SQLException: Could not find prepared statement with handle -1.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery()
at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute()
--- End of inner exception stack trace ---
at Telerik.OpenAccess.RT.ExceptionWrapper.Throw()
at OpenAccessRuntime.DataObjects.PCStateMan.handleException(Exception x)
at OpenAccessRuntime.DataObjects.PCStateMan.getObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd, Object currentValue)
at OpenAccessRuntime.DataObjects.PCStateMan.getObjectField(PersistenceCapable pc, Int32 field, Object currentValue)
Thanks in advance for any help.
Telerik.OpenAccess.Exceptions.DataStoreException: Error executing query: Telerik.OpenAccess.RT.sql.SQLException: Could not find prepared statement with handle -1.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery()
at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute()
SQL:
SELECT b.[ContactId], c.[NoteId], c.[EmployeeId], c.[EmployeeId], c.[IsDeleted], c.[ModifiedDate], c.[NoteText] FROM [Contact] a JOIN [Contact_Note] AS b ON (a.[ContactId] = b.[ContactId]) JOIN [Note] AS c ON (b.[NoteId] = c.[NoteId]) WHERE a.[ContactId] = ? ORDER BY b.[ContactId] Telerik.OpenAccess.RT.sql.SQLException: Could not find prepared statement with handle -1.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery()
at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute() ---> Telerik.OpenAccess.RT.sql.SQLException: Could not find prepared statement with handle -1.
at Telerik.OpenAccess.RT.Adonet2Generic.Impl.PreparedStatementImp.executeQuery()
at OpenAccessRuntime.Relational.conn.PooledPreparedStatement.executeQuery()
at OpenAccessRuntime.Relational.fetch.FetchResultImp.execute()
--- End of inner exception stack trace ---
at Telerik.OpenAccess.RT.ExceptionWrapper.Throw()
at OpenAccessRuntime.DataObjects.PCStateMan.handleException(Exception x)
at OpenAccessRuntime.DataObjects.PCStateMan.getObjectFieldImp(PersistenceCapable pc, FieldMetaData fmd, Object currentValue)
at OpenAccessRuntime.DataObjects.PCStateMan.getObjectField(PersistenceCapable pc, Int32 field, Object currentValue)
- What does it mean that the prepared statement couldn't be found?
- Why would this be happening on one machine and not another?
- What can I do to fix this?
Thanks in advance for any help.