apache / apache/servicecomb-java-chassis
使用gradle构建启动时有ServiceComb init failed 异常
- Dominant language
- Java
- Stars
- 1.9k
- Forks
- 814
- Avg merge
- 8d 23h
- Merged PRs (30d)
- 1
Description
Caused by: java.lang.IllegalStateException: parameter name is not present, method=com.rain.paas.gradle.sc.servlet.endpoint.rest.RestEndpoint:post
solution:
change pom.xml, add compiler argument: -parameters, for example:
```xml
org.apache.maven.plugins
maven-compiler-plugin
-parameters
```
gradle脚本中已添加添加compilerArgs,如下所示,但是没能解决此类问题
```gradle
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs += ["-parameters"]
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the Gradle startup failure and inspect RestEndpoint:post alongside the pom.xml and the Gradle JavaCompile compilerArgs shown in the report. Compare the effective compiler configuration with the generated parameter metadata; done means the ServiceComb initialization completes without the missing parameter-name exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100