quarkusio/quarkus · error · IllegalArgumentException

${methodName} is not a getter

Error message

${methodName} is not a getter

What it means

IllegalArgumentException from JavaBeanUtil.getPropertyNameFromGetter: the given method name does not follow the JavaBean getter convention (it starts with neither 'get' nor 'is'), so no property name can be derived. This is a sentinel guard for non-getter input; the method name at fault replaces the placeholder.

Source

Thrown at independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/JavaBeanUtil.java:70

                return new String(chars);
            }
        } else {
            return name;
        }
    }

    /**
     * Returns the corresponding property name for a getter method name
     *
     * @throws IllegalArgumentException if the method name does not follow the getter name convention
     */
    public static String getPropertyNameFromGetter(String methodName) {
        if (methodName.startsWith(GET)) {
            return decapitalize(methodName.substring(GET.length()));
        } else if (methodName.startsWith(IS)) {
            return decapitalize(methodName.substring(IS.length()));
        } else {
            throw new IllegalArgumentException(methodName + " is not a getter");
        }
    }
}

View on GitHub (pinned to e1c734241f)

Solutions

  1. Rename the method to follow the get/is getter convention
  2. Skip non-getter methods before calling property-name derivation
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at independent-projects/resteasy-reactive/common/processor/src/main/java/org/jboss/resteasy/reactive/common/processor/JavaBeanUtil.java:70 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of quarkusio/quarkus@e1c734241f (2026-09-05). Data as JSON: /api/errors/170e4645390bed5c. Report an issue: GitHub.