Caused by: java.lang.ArithmeticException: / by zero at org.eclipse.scout.rt.server.services.common.jdbc.internal.exec.StatementProcessor.processResultRows(StatementProcessor.java:230) at org.eclipse.scout.rt.server.services.common.jdbc.internal.exec.StatementProcessor.processSelect(StatementProcessor.java:265) ... 70 more
protected List<Object[]> processResultRows(ResultSet rs, int maxRowCount) throws SQLException, ProcessingException { boolean isDynamicPrefetch = false; int rowCount = 0; int initialFetchSize = 0; int dynamicFetchSize = 0; if (m_callerService.getSqlStyle() != null && m_callerService.getSqlStyle() instanceof OracleSqlStyle) { // init prefetch params isDynamicPrefetch = true; initialFetchSize = rs.getFetchSize(); dynamicFetchSize = initialFetchSize; } ArrayList<Object[]> rows = new ArrayList<Object[]>(); while (rs.next()) { if (isDynamicPrefetch && ++rowCount % dynamicFetchSize == 0 && dynamicFetchSize < getMaxFetchSize(rs)) { dynamicFetchSize = Math.min(Math.max(initialFetchSize, rowCount / 2), getMaxFetchSize(rs)); rs.setFetchSize(dynamicFetchSize); } Object[] row = processResultRow(rs); rows.add(row); if (maxRowCount > 0 && rows.size() >= maxRowCount) { break; } } return rows; }