phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Li Li <fancye...@gmail.com>
Subject PhoenixIOException: end index (1) must not be less than start index (7)
Date Mon, 10 Feb 2014 10:16:19 GMT
what's wrong with it?
exception stack:
com.salesforce.phoenix.exception.PhoenixIOException: end index (1)
must not be less than start index (7)
        at com.salesforce.phoenix.util.ServerUtil.parseServerException(ServerUtil.java:107)
        at com.salesforce.phoenix.iterate.ParallelIterators.getIterators(ParallelIterators.java:217)
        at com.salesforce.phoenix.iterate.MergeSortResultIterator.getIterators(MergeSortResultIterator.java:58)
        at com.salesforce.phoenix.iterate.MergeSortResultIterator.minIterator(MergeSortResultIterator.java:73)
        at com.salesforce.phoenix.iterate.MergeSortResultIterator.next(MergeSortResultIterator.java:100)
        at com.salesforce.phoenix.jdbc.PhoenixResultSet.next(PhoenixResultSet.java:741)

my code:
public static String getHtml(PhoenixConnection conn,String url) throws
SQLException, MalformedURLException{
PreparedStatement pstmt=null;
ResultSet rs=null;
try{
String host=getReversedHostFromUrl(url);
pstmt=conn.prepareStatement("SELECT html FROM vc.webpage where host=?
and url=?");
pstmt.setString(1, host);
pstmt.setString(2, url);
rs=pstmt.executeQuery();
if(rs.next()) return rs.getString(1);
else return null;
}finally{
DbTools.closeAll(null, pstmt, rs);
}
}

Mime
View raw message