io.swagger.models.Model

This exception has no message.

Samebug tips4

You're inputing information in a way the Json Parser can't understand. This page might enlighten you a little: https://goo.gl/g5wrvy

Check if you forgot to set the "data" field inside your request. If you did set it, check if it's being serialized before sending, and if it's being serialized the right way.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Google Groups by Pradeep Kumar Reddy, 1 year ago
    This exception has no message.
  • Stack trace

    • io.swagger.models.Model at io.swagger.parser.util.DeserializationUtils.deserialize(DeserializationUtils.java:54) at io.swagger.parser.ResolverCache.loadRef(ResolverCache.java:102) at io.swagger.parser.processors.ExternalRefProcessor.processRefToExternalDefinition(ExternalRefProcessor.java:26) at io.swagger.parser.processors.ModelProcessor.processRefModel(ModelProcessor.java:92) at io.swagger.parser.processors.ModelProcessor.processModel(ModelProcessor.java:33) at io.swagger.parser.processors.DefinitionsProcessor.processDefinitions(DefinitionsProcessor.java:40) at io.swagger.parser.SwaggerResolver.resolve(SwaggerResolver.java:41) at io.swagger.parser.SwaggerParser.read(SwaggerParser.java:66) at io.swagger.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:383) at io.swagger.codegen.cmd.Generate.run(Generate.java:221) at io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:36) Caused by: com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'type': was expecting 'null', 'true', 'false' or NaN at [Source: type: object properties: moduleUnitName: type: string description: name of module unit moduleUnits: type: integer description: number of module units isModule: type: string description: isModule true or false moduleItem: $ref: './moduleItem.yml'; line: 1, column: 6] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1419) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:508) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._reportInvalidToken(ReaderBasedJsonParser.java:2300) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._reportInvalidToken(ReaderBasedJsonParser.java:2277) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._matchToken(ReaderBasedJsonParser.java:2129) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._matchTrue(ReaderBasedJsonParser.java:2080) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:651) at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3105) at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3051) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2161) at io.swagger.parser.util.DeserializationUtils.deserialize(DeserializationUtils.java:48) ... 10 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    6 times, 22 hours ago
    36 times, 1 week ago
    Once, 3 weeks ago
    3 times, 1 month ago
    Once, 1 month ago
    109 more bugmates