ResultSet may only be accessed in a forward direction

原创 2012年03月30日 20:30:37

criteria.setFirstResult(x)
在sqlserver中,这个x不能为负数。
但是在oracle中,x为负数则没关系。它会当作从0开始的。
你可以debug一下,看看x是否为负数了

修改后

if (offset >= 0 && length >= 0) {
     query.setFirstResult(offset);
     query.setMaxResults(length);
    }

ResultSet may only be accessed in a forward direction

我遇到的这个问题前提是将SQLServer常用的JDBC换成JTDS造成的=============下面是转载===========欲流远之,必固其源泉,虽然现在有了Hibernate等工具,或许我们...

Only one Looper may be created per thread

在开发一套智能家居的APP时,因为要让APP自动根据用户操作过的数据来更新自己的状态。 出现大致一个这样的代码结构(该结构不是原项目中的,这是随便写了一个与项目代码结构一致): class Loo...
  • Kern_
  • Kern_
  • 2015年11月27日 15:14
  • 2708

ReactNative警告:bind(): React component methods may only be bound to the component instance

bind(): React component methods may only be bound to the component instance

R--安装reshape 报错:Package which is only available in source form, and may need compilation of C/C++/Fo

对变量进行重命名(比如data.frame的列名称),有如下几种方法。 假设data.frame 的数据mydata如下: 有4列,想把后两列名称修改为weight1,weight2。方法1:调用...

11.2 RAC: In "crsctl stat res -t" State Details May Be Missing or Incorrect [ID 1086563.1]

Applies to: Oracle Server - Enterprise Edition - Version: 11.2.0.1 and later   [Release: 11.2 and l...

Use MFC in a Static Library,This may be due to a corruption of the heap....

工程选择Use MFC in a Static Library 模式,编译出的程序较大,发布时可以不用带

FAIL - Context /SsmApp is defined in server.xml and may not be undeployed

Deploying /root/.jenkins/workspace/SsmApp/SsmApp/target/SsmApp.war to container Tomcat 7.x Remote ...

30 things that can each be done in only 30 seconds

Attitude is foundational to success. A generous person with a positive attitude will thrive. If yo...
  • pinuo
  • pinuo
  • 2011年01月25日 22:04
  • 293

Pods written in Swift can only be integrated as frameworks; add `use_frameworks!` to your Podfile or

在使用cocoapod导入swift第三方时出现这样的问题: Pods written in Swift can only be integrated as frameworks; add use_...

Windows Azure SDK for .NET Configuration And The certificate's private key could not be accessed

1. Windows Azure SDK for .NET Configuration You can download everything from the following website: ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:ResultSet may only be accessed in a forward direction
举报原因:
原因补充:

(最多只允许输入30个字)