Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/bin/java -ea -Didea.test.cyclic.buffer.size=1048576 -javaagent:/home/gandrian/software/IntelliJ/idea-IU-183.2153.8/lib/idea_rt.jar=35895:/home/gandrian/software/IntelliJ/idea-IU-183.2153.8/bin -Dfile.encoding=UTF-8 -classpath /home/gandrian/software/IntelliJ/idea-IU-183.2153.8/lib/idea_rt.jar:/home/gandrian/software/IntelliJ/idea-IU-183.2153.8/plugins/junit/lib/junit-rt.jar:/home/gandrian/software/IntelliJ/idea-IU-183.2153.8/plugins/junit/lib/junit5-rt.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/charsets.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/cldrdata.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/dnsns.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/jaccess.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/localedata.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/nashorn.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/sunec.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/sunjce_provider.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/sunpkcs11.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/ext/zipfs.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/jce.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/jsse.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/management-agent.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/resources.jar:/home/gandrian/.sdkman/candidates/java/8.0.181-zulu/jre/lib/rt.jar:/home/gandrian/gowork/src/github.com/snowdrop/istio-java-api/istio-model/target/test-classes:/home/gandrian/gowork/src/github.com/snowdrop/istio-java-api/istio-model/target/classes:/home/gandrian/gowork/src/github.com/snowdrop/istio-java-api/istio-common/target/classes:/home/gandrian/.m2/repository/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.9.4/jackson-module-jaxb-annotations-2.9.4.jar:/home/gandrian/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.9.0/jackson-annotations-2.9.0.jar:/home/gandrian/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.9.4/jackson-databind-2.9.4.jar:/home/gandrian/.m2/repository/joda-time/joda-time/2.9.9/joda-time-2.9.9.jar:/home/gandrian/.m2/repository/org/joda/joda-convert/2.0.2/joda-convert-2.0.2.jar:/home/gandrian/.m2/repository/javax/validation/validation-api/2.0.0.Final/validation-api-2.0.0.Final.jar:/home/gandrian/.m2/repository/io/fabric8/kubernetes-model/3.0.0/kubernetes-model-3.0.0.jar:/home/gandrian/.m2/repository/org/antlr/antlr4-runtime/4.7.1/antlr4-runtime-4.7.1.jar:/home/gandrian/.m2/repository/io/sundr/builder-annotations/0.11.1/builder-annotations-0.11.1.jar:/home/gandrian/.m2/repository/io/sundr/sundr-core/0.11.1/sundr-core-0.11.1.jar:/home/gandrian/.m2/repository/io/sundr/sundr-codegen/0.11.1/sundr-codegen-0.11.1.jar:/home/gandrian/.m2/repository/io/sundr/resourcecify-annotations/0.11.1/resourcecify-annotations-0.11.1.jar:/home/gandrian/.m2/repository/io/sundr/transform-annotations/0.11.1/transform-annotations-0.11.1.jar:/home/gandrian/.m2/repository/org/projectlombok/lombok/1.16.20/lombok-1.16.20.jar:/home/gandrian/.m2/repository/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.9.4/jackson-dataformat-yaml-2.9.4.jar:/home/gandrian/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.9.4/jackson-core-2.9.4.jar:/home/gandrian/.m2/repository/junit/junit/4.12/junit-4.12.jar:/home/gandrian/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/home/gandrian/.m2/repository/org/yaml/snakeyaml/1.19/snakeyaml-1.19.jar:/home/gandrian/.m2/repository/org/assertj/assertj-core/3.9.0/assertj-core-3.9.0.jar com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 me.snowdrop.istio.api.networking.v1alpha3.VirtualServiceTest,loadingFromYAMLShouldWork
com.fasterxml.jackson.databind.JsonMappingException: Couldn't create an instance of java.util.Map (through reference chain: me.snowdrop.istio.api.networking.v1alpha3.VirtualService["spec"]->me.snowdrop.istio.api.networking.v1alpha3.VirtualServiceSpec["http"]->java.util.ArrayList[0]->me.snowdrop.istio.api.networking.v1alpha3.HTTPRoute["match"]->java.util.ArrayList[0]->me.snowdrop.istio.api.networking.v1alpha3.HTTPMatchRequest["headers"]->java.util.LinkedHashMap["baggage-user-agent"])
at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:391)
at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:351)
at com.fasterxml.jackson.databind.deser.std.ContainerDeserializerBase.wrapAndThrow(ContainerDeserializerBase.java:181)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:539)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:364)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:29)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:286)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:286)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:27)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:127)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4001)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3058)
at me.snowdrop.istio.api.networking.v1alpha3.VirtualServiceTest.loadingFromYAMLShouldWork(VirtualServiceTest.java:333)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.RuntimeException: Couldn't create an instance of java.util.Map
at me.snowdrop.istio.api.internal.ClassWithInterfaceFieldsDeserializer.deserialize(ClassWithInterfaceFieldsDeserializer.java:69)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:527)
... 45 more
Caused by: java.lang.InstantiationException: java.util.Map
at java.lang.Class.newInstance(Class.java:427)
at me.snowdrop.istio.api.internal.ClassWithInterfaceFieldsDeserializer.deserialize(ClassWithInterfaceFieldsDeserializer.java:67)
... 46 more
Caused by: java.lang.NoSuchMethodException: java.util.Map.<init>()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.newInstance(Class.java:412)
... 47 more
Process finished with exit code 255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.