apache / servicecomb-java-chassis

ServiceComb Java Chassis is a Software Development Kit (SDK) for rapid development of microservices in Java, providing service registration, service discovery, dynamic routing, and service management features
Apache License 2.0
1.91k stars 813 forks source link

使用gradle构建启动时有ServiceComb init failed 异常 #3743

Open rainsun-sxy opened 1 year ago

rainsun-sxy commented 1 year ago

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:

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <configuration>
        <compilerArgument>-parameters</compilerArgument>
      </configuration>
    </plugin>

gradle脚本中已添加添加compilerArgs,如下所示,但是没能解决此类问题

tasks.withType(JavaCompile) {
    options.encoding = "UTF-8"
    options.compilerArgs += ["-parameters"]
}
lbc97 commented 1 year ago

com.rain.paas.gradle.sc.servlet.endpoint.rest.RestEndpoint:post 这个类是谁的类啊