com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'swagger': was expecting ('true', 'false' or 'null') at [Source: bad_example.yaml; line: 1, column: 9]

GitHub | kevinoid | 2 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola . Or join the community to write better ones.
  1. 0
    samebug tip
    If you're using Java Chronicle it might be a Cleanup problem. Either add @ignore to the test or delete the memory map file and do it again.
  2. 0
    samebug tip
    If you're using Facebook API, they now use OAuth2, so your URL should contain version number, like this: facebook.authorizationURL="https://graph.facebook.com/v2.3/oauth/authorize"
  3. 0

    ModelDeserializer can't handle schemas with multiple types

    GitHub | 2 years ago | ePaul
    com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'swagger': was expecting ('true', 'false' or 'null') at [Source: src/main/resources/api/bug-trigger.yaml; line: 1, column: 9]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    unknown `format` value causes a NullPointerException

    GitHub | 2 years ago | ePaul
    com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'swagger': was expecting ('true', 'false' or 'null') at [Source: src/main/resources/api/bug-trigger.yaml; line: 1, column: 9]
  6. 0

    yaml parsing using com.fasterxml.jackson

    Stack Overflow | 3 years ago | amrk7
    com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'name': was expecting 'null', 'true', 'false' or NaN at [Source: /Users/amruth.s/Documents/Analytics/hydra/reportManager/target/scala-2.9.1/classes/viz/LineGraph.yaml; line: 1, column: 6]
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. com.fasterxml.jackson.core.JsonParseException

    Unrecognized token 'swagger': was expecting ('true', 'false' or 'null') at [Source: bad_example.yaml; line: 1, column: 9]

    at com.fasterxml.jackson.core.JsonParser._constructError()
  2. Jackson-core
    UTF8StreamJsonParser.nextToken
    1. com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1419)
    2. com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:508)
    3. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._reportInvalidToken(UTF8StreamJsonParser.java:3201)
    4. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2360)
    5. com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:794)
    6. com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:690)
    6 frames
  3. Jackson
    ObjectMapper.readTree
    1. com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3105)
    2. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3051)
    3. com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:1861)
    3 frames
  4. io.swagger.parser
    SwaggerParser.read
    1. io.swagger.parser.SwaggerCompatConverter.readResourceListing(SwaggerCompatConverter.java:147)
    2. io.swagger.parser.SwaggerCompatConverter.read(SwaggerCompatConverter.java:74)
    3. io.swagger.parser.SwaggerParser.read(SwaggerParser.java:72)
    3 frames
  5. io.swagger.codegen
    SwaggerCodegen.main
    1. io.swagger.codegen.config.CodegenConfigurator.toClientOptInput(CodegenConfigurator.java:391)
    2. io.swagger.codegen.cmd.Generate.run(Generate.java:221)
    3. io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:41)
    3 frames