com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.sonatype.nexus.repository.docker.internal.V2FailureResult] from Integral number (404); no single-int-arg constructor/factory method at [Source: org.apache.http.conn.EofSensorInputStream@3a460093; line: 1, column: 1]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Try indicating constructor to use @JsonCreator annotation.

,

The easiest solution is to provide a default constructor for the class you want to convert from/to json.

Solutions on the web

via Sonatype JIRA by Kelly Robinson, 1 year ago
Can not instantiate value of type [simple type, class org.sonatype.nexus.repository.docker.internal.V2FailureResult] from Integral number (404); no single-int-arg constructor/factory method at [Source: org.apache.http.conn.EofSensorInputStream@3a460093; line: 1, column: 1]
via GitHub by Anand-J-Kadhi
, 2 years ago
Can not instantiate value of type [simple type, class xxx] from Integral number (60); no single-int-arg constructor/factory method at [Source: [B@2f33e642; line: -1, column: 0]
via GitHub by rfkrocktk
, 2 years ago
Can not deserialize instance of java.util.Date out of VALUE_EMBEDDED_OBJECT token at [Source: de.undercouch.bson4jackson.io.LittleEndianInputStream@5a4bb836; pos: 71] (through reference chain: org.tkassembled.example.bson.data.Article["date"])
via Stack Overflow by user2186425
, 1 year ago
Type id handling not implemented for type java.lang.Object (by serializer of type org.springframework.data.rest.webmvc.json.PersistentEntityJackson2Module$NestedEntitySerializer) (through reference chain: org.springframework.hateoas.PagedResources
via Stack Overflow by Wim Deblauwe
, 1 year ago
Can not instantiate value of type [simple type, class com.example.JacksonCustomizationsTest$TestEntityId] from Integral number (1); no single-int-arg constructor/factory method at [Source: {"id":1,"mutableProperty":"blabla"}; line: 1, column: 2] (through reference chain: com.example.TestEntity["id"])
via GitHub by mattvryan
, 2 years ago
Can not deserialize instance of java.lang.Integer out of START_OBJECT token at [Source: java.io.StringReader@48c76607; line: 1, column: 1]
com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.sonatype.nexus.repository.docker.internal.V2FailureResult] from Integral number (404); no single-int-arg constructor/factory method at [Source: org.apache.http.conn.EofSensorInputStream@3a460093; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:216)
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:894)
at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromInt(StdValueInstantiator.java:312)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromNumber(BeanDeserializerBase.java:1157)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:146)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:135)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3788)
at org.sonatype.nexus.repository.docker.internal.DockerProxyFacetImpl.execute(DockerProxyFacetImpl.java:309)
at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.fetch(ProxyFacetSupport.java:222)
at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.fetch(ProxyFacetSupport.java:202)
at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:164)
at org.sonatype.nexus.repository.proxy.ProxyHandler.handle(ProxyHandler.java:48)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)
at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)
at org.sonatype.nexus.repository.docker.internal.V2CatalogHandler.handle(V2CatalogHandler.java:36)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)
at org.sonatype.nexus.repository.view.Context$proceed.call(Unknown Source)
at org.sonatype.nexus.repository.docker.internal.V2Handlers$_closure18.doCall(V2Handlers.groovy:279)
at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
at groovy.lang.Closure.call(Closure.java:426)
at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:53)
at com.sun.proxy.$Proxy125.handle(Unknown Source)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)
at org.sonatype.nexus.repository.cache.NegativeCacheHandler.handle(NegativeCacheHandler.java:50)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)
at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:45)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)
at org.sonatype.nexus.repository.view.Context$proceed.call(Unknown Source)
at org.sonatype.nexus.repository.docker.internal.V2Handlers$_closure18.doCall(V2Handlers.groovy:279)
at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
at groovy.lang.Closure.call(Closure.java:426)
at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:53)
at com.sun.proxy.$Proxy125.handle(Unknown Source)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)
at org.sonatype.nexus.repository.view.Context$proceed.call(Unknown Source)
at org.sonatype.nexus.repository.docker.internal.V2Handlers$_closure1.doCall(V2Handlers.groovy:74)
at sun.reflect.GeneratedMethodAccessor224.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
at groovy.lang.Closure.call(Closure.java:426)
at org.codehaus.groovy.runtime.ConvertedClosure.invokeCustom(ConvertedClosure.java:53)
at com.sun.proxy.$Proxy125.handle(Unknown Source)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:79)
at org.sonatype.nexus.repository.view.Context$proceed.call(Unknown Source)
at org.sonatype.nexus.repository.docker.internal.V2Handlers$_closure17.doCall(V2Handlers.groovy:270)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
160 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.