Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
java-chassis-1.3.0
-
None
Description
for examples:
@RequestMapping(value = "/events2/{project_id}", method = RequestMethod.GET) public ResponseEntity<Object> queryEvents2(@PathVariable(value = "project_id") String projectId, @RequestHeader(value = "x-auth22") Integer token2, @RequestHeader(value = "x-auth") Integer token, Person person) { return null; }
err:
Caused by: java.lang.NullPointerException
at org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerArgumentsMapperFactory.generateDefaultParamMapper(ProducerArgumentsMapperFactory.java:118)
at org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerArgumentsMapperFactory.generateParamMapperByName(ProducerArgumentsMapperFactory.java:103)
at org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerArgumentsMapperFactory.collectSwaggerArgumentsMapper(ProducerArgumentsMapperFactory.java:96)
at org.apache.servicecomb.swagger.invocation.arguments.ArgumentsMapperFactory.collectArgumentsMapper(ArgumentsMapperFactory.java:90)
at org.apache.servicecomb.swagger.invocation.arguments.producer.ProducerArgumentsMapperFactory.createArgumentsMapper(ProducerArgumentsMapperFactory.java:65)
at org.apache.servicecomb.swagger.engine.SwaggerEnvironment.createProducer(SwaggerEnvironment.java:192)
at org.apache.servicecomb.core.definition.schema.ProducerSchemaFactory.getOrCreateProducerSchema(ProducerSchemaFactory.java:78)
at org.apache.servicecomb.provider.rest.common.RestProducerProvider.init(RestProducerProvider.java:45)
at org.apache.servicecomb.core.provider.producer.ProducerProviderManager.init(ProducerProviderManager.java:54)
at org.apache.servicecomb.core.SCBEngine.doInit(SCBEngine.java:264)
at org.apache.servicecomb.core.SCBEngine.init(SCBEngine.java:219)
... 13 more