SmartClient Version: v13.1p_2026-04-24/Enterprise Deployment (built 2026-04-24)
I’m encountering an intermittent NullPointerException in my custom server dataSource when working with SQLDataSource.getSQLClause:
The exception occurs when executing:
where dsRequest is built server-side, of type update, with criteria composed of a single primary key and some dynamic fields.
In some cases, these values contain only one field to update, but that field may be customSQL, so it will not appear in the generated SQL (and that’s exactly what I want to detect, to avoid executing a useless update).
Normally everything works, but I’d say I can frequently reproduce this error if I trigger two requests close together. The dataSource uses my custom serverConstructor via Spring.
Do you happen to have any idea what could be causing the problem? I’m not really sure how to debug this further.
I’m encountering an intermittent NullPointerException in my custom server dataSource when working with SQLDataSource.getSQLClause:
Code:
Caused by: java.lang.NullPointerException
at com.isomorphic.datasource.IncludeFromDefinition.create(IncludeFromDefinition.java:118)
at com.isomorphic.datasource.DSRequest.buildIncludeFromDefinitions(DSRequest.java:8527)
at com.isomorphic.datasource.DSRequest.buildFieldData(DSRequest.java:5947)
at com.isomorphic.sql.SQLDataSource.getSQLClause(SQLDataSource.java:5707)
at com.isomorphic.sql.SQLDataSource.getSQLClause(SQLDataSource.java:5671)
Code:
SQLDataSource.getSQLClause(SQLClauseType.Values, dsRequest)
In some cases, these values contain only one field to update, but that field may be customSQL, so it will not appear in the generated SQL (and that’s exactly what I want to detect, to avoid executing a useless update).
Normally everything works, but I’d say I can frequently reproduce this error if I trigger two requests close together. The dataSource uses my custom serverConstructor via Spring.
Do you happen to have any idea what could be causing the problem? I’m not really sure how to debug this further.
Comment