spring-cloud / spring-cloud/spring-cloud-gateway
config error: Reason: java.lang.IllegalArgumentException: 'name' must not be null
Open
Nobody has claimed this yet.
waiting-for-triage
- Dominant language
- Java
- Stars
- 4.9k
- Forks
- 3.5k
- Avg merge
- 20h 57m
- Merged PRs (30d)
- 8
Description
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-08-20T00:04:54.692+08:00 ERROR 16930 --- [trace-java-gw-demo] [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'spring.cloud.gateway.server.webflux.routes[0].filters' to java.util.List<org.springframework.cloud.gateway.filter.FilterDefinition>:
Reason: java.lang.IllegalArgumentException: 'name' must not be null
Action:
Update your application's configuration
Process finished with exit code 1
spring:
cloud:
gateway:
server:
webflux:
routes:
- id: user-service
uri: http://localhost:8081
predicates:
- Path=/gw/**
filters:
- AddRequestHeader=X-Request-Id, rpcid-${random.value}
- StripPrefix=1
when i write some config, start application.
help! thx
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the application startup failure with the Spring Cloud Gateway YAML shown in the issue, focusing on the routes[0].filters binding and the AddRequestHeader and StripPrefix entries. Done means the configuration binds successfully and the application starts without the null-name IllegalArgumentException.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100