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

  1. Pass a non-null pattern with % wildcards as needed
  2. Omit the filter instead of passing null when no pattern exists
  3. 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

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


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)