flowable/flowable-engine · error · FlowableIllegalArgumentException
deploymentNameLike is null
Error message
deploymentNameLike is null
What it means
Fluent-setter validation in EventDeploymentQueryImpl.deploymentNameLike: the LIKE pattern for the deployment name is null and is rejected by the query builder before SQL generation.
Solutions
- Pass a non-null pattern with % wildcards as needed
- Omit the filter instead of passing null when no pattern exists
- Use a sensible default pattern if the prefix is optional
Example fix
// before
query.deploymentNameLike(prefix + "%"); // prefix may be null
// after
if (prefix != null) {
query.deploymentNameLike(prefix + "%");
} Defensive patterns
Strategy: validation
Validate before calling
if (pattern == null || pattern.isEmpty()) { throw new IllegalArgumentException("pattern required for deploymentNameLike()"); } Type guard
boolean hasText(String s) { return s != null && !s.trim().isEmpty(); } Try / catch
try { q.deploymentNameLike(pattern).list(); } catch (FlowableIllegalArgumentException e) { log.warn("pattern null, skipping filter"); } Prevention
- Build LIKE patterns defensively from non-null prefixes only
- Validate search inputs from UIs before mapping to query filters
- Centralize pattern construction with defaults
When it happens
Trigger: Calling deploymentNameLike(null), e.g. building a pattern like 'events-%' from an optional prefix that is null.
Common situations: Wildcard search built from user/config input that is missing, copy-paste errors, default pattern constants removed in refactor.
Related errors
- Deployment id is null
- Deployment id is null
- deploymentCategory is null
- deploymentCategoryExclude is null
- deploymentName is null
AI-assisted analysis of flowable/flowable-engine@d6d39ce1c6 (2026-09-11).
Data as JSON: /api/errors/266a761815ed22d6.
Report an issue: GitHub.
Appendix: source
Thrown at modules/flowable-event-registry/src/main/java/org/flowable/eventregistry/impl/EventDeploymentQueryImpl.java:81
throw new FlowableIllegalArgumentException("Deployment id is null");
}
this.deploymentId = deploymentId;
return this;
}
@Override
public EventDeploymentQueryImpl deploymentName(String deploymentName) {
if (deploymentName == null) {
throw new FlowableIllegalArgumentException("deploymentName is null");
}
this.name = deploymentName;
return this;
}
@Override
public EventDeploymentQueryImpl deploymentNameLike(String nameLike) {
if (nameLike == null) {
throw new FlowableIllegalArgumentException("deploymentNameLike is null");
}
this.nameLike = nameLike;
return this;
}
@Override
public EventDeploymentQueryImpl deploymentCategory(String deploymentCategory) {
if (deploymentCategory == null) {
throw new FlowableIllegalArgumentException("deploymentCategory is null");
}
this.category = deploymentCategory;
return this;
}
@Override
public EventDeploymentQueryImpl deploymentCategoryNotEquals(String deploymentCategoryNotEquals) {
if (deploymentCategoryNotEquals == null) {
throw new FlowableIllegalArgumentException("deploymentCategoryExclude is null");View on GitHub (pinned to d6d39ce1c6)