Qmoney Milestone 1 Build Unsuccesfull

Task :qmoney:run FAILED
14:04:38.387 [main] ERROR com.crio.warmup.stock.log.UncaughtExceptionHandler - {“stacktrace”:[“com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63)”,“com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1429)”,“com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1059)”,“com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1294)”,“com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:326)”,“com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:159)”,“com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:195)”,“com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:21)”,“com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4202)”,“com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3070)”,“com.crio.warmup.stock.PortfolioManagerApplication.mainReadFile(PortfolioManagerApplication.java:49)”,“com.crio.warmup.stock.PortfolioManagerApplication.main(PortfolioManagerApplication.java:123)”],“cause”:“com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of com.crio.warmup.stock.PortfolioManagerApplication$Stock (although at least one Creator exists): non-static inner classes like this can only by instantiated using default, no-argument constructor\n at [Source: (File); line: 3, column: 5] (through reference chain: java.lang.Object[][0])”}
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot construct instance of com.crio.warmup.stock.PortfolioManagerApplication$Stock (although at least one Creator exists): non-static inner classes like this can only by instantiated using default, no-argument constructor
at [Source: (File); line: 3, column: 5] (through reference chain: java.lang.Object[][0])
at com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:63) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1429) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.DeserializationContext.handleMissingInstantiator(DeserializationContext.java:1059) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1294) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:326) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:159) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:195) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:21) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4202) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3070) ~[jackson-databind-2.10.1.jar:2.10.1]
at com.crio.warmup.stock.PortfolioManagerApplication.mainReadFile(PortfolioManagerApplication.java:49) ~[main/:?]
at com.crio.warmup.stock.PortfolioManagerApplication.main(PortfolioManagerApplication.java:123) ~[main/:?]

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:qmoney:run’.

Process ‘command ‘/usr/lib/jvm/java-8-openjdk-amd64/bin/java’’ finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See https://docs.gradle.org/5.2.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1s
3 actionable tasks: 1 executed, 2 up-to-date

Make sure that POJO has all methods and attributes.

[quote=“Shashank, post:1, topic:7352”]
non-static inner classes like this can only by instantiated using default, no-argument constructor
[/quote

POJO ? What is POJO

You can get some idea from here.

1 Like