apache/shardingsphere · error · SQLFeatureNotSupportedException
updateObject
Error message
updateObject
What it means
Error "updateObject" thrown in apache/shardingsphere.
Source
Thrown at kernel/sql-federation/core/src/main/java/org/apache/shardingsphere/sqlfederation/resultset/AbstractUnsupportedUpdateOperationSQLFederationResultSet.java:304
@Override
public final void updateNCharacterStream(final String columnLabel, final Reader x) throws SQLException {
throw new SQLFeatureNotSupportedException("updateNCharacterStream");
}
@Override
public final void updateNCharacterStream(final int columnIndex, final Reader x, final long length) throws SQLException {
throw new SQLFeatureNotSupportedException("updateNCharacterStream");
}
@Override
public final void updateNCharacterStream(final String columnLabel, final Reader x, final long length) throws SQLException {
throw new SQLFeatureNotSupportedException("updateNCharacterStream");
}
@Override
public final void updateObject(final int columnIndex, final Object x) throws SQLException {
throw new SQLFeatureNotSupportedException("updateObject");
}
@Override
public final void updateObject(final String columnLabel, final Object x) throws SQLException {
throw new SQLFeatureNotSupportedException("updateObject");
}
@Override
public final void updateObject(final int columnIndex, final Object x, final int scaleOrLength) throws SQLException {
throw new SQLFeatureNotSupportedException("updateObject");
}
@Override
public final void updateObject(final String columnLabel, final Object x, final int scaleOrLength) throws SQLException {
throw new SQLFeatureNotSupportedException("updateObject");
}
@OverrideView on GitHub (pinned to e952770a21)
Solutions
- Do not call updateObject on a SQL federation result set; it is read-only.
- Materialize the rows, update them locally, and write changes back with a separate DML statement.
When it happens
Trigger: An application invokes an updater method on a read-only SQL federation result set.
Common situations: ORM or legacy code using updatable ResultSet semantics against SQL federation queries.
AI-assisted analysis of apache/shardingsphere@e952770a21 (2026-08-14).
Data as JSON: /api/errors/5fb45d4b2fea3564.
Report an issue: GitHub.