org.codehaus.jackson.map.JsonMappingException: Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'type' that is to contain type id (for class org.artifactory.ui.rest.model.artifacts.br owse.treebrowser.tabs.general.GeneralArtifactInfo) at [Source: org.apache.catalina.connector.CoyoteInputStream@4f86206c; line: 1, column: 58]

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

Types used for deserialization should be used in the way such that the annotation @JsonTypeInfo is visible.

Solutions on the web

via JFrog JIRA by Nihal Reddy Chinna Choudhary, 1 year ago
Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'type' that is to contain type id (for class org.artifactory.ui.rest.model.artifacts.br owse.treebrowser.tabs.general.GeneralArtifactInfo) at [Source: org.apache.catalina.connector.CoyoteInputStream@4f86206c; line: 1, column: 58]
via JFrog JIRA by Mor Iluz, 1 year ago
Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'type' that is to contain type id (for class org.artifactory.ui.rest.model.artifacts.browse.treebrowser.tabs.general.GeneralArtifactInfo) at [Source: org.apache.catalina.connector.CoyoteInputStream@287264f9; line: 1, column: 65]
via JFrog JIRA by Ronny Schulz, 1 year ago
Can not deserialize instance of java.util.LinkedHashMap out of START_ARRAY token at [Source: org.apache.commons.compress.archivers.tar.TarArchiveInputStream@a21c2a0; line: 7, column: 89] (through reference chain: org.jfrog.repomd.npm.model.NpmMetadata["dependencies"])
via JFrog JIRA by Ronny Schulz, 1 year ago
Can not deserialize instance of java.util.LinkedHashMap out of START_ARRAY token at [Source: org.apache.commons.compress.archivers.tar.TarArchiveInputStream@a21c2a0; line: 7, column: 89] (through reference chain: org.jfrog.repomd.npm.model.NpmMetadata["dependencies"])
via Stack Overflow by Satyadev
, 7 months ago
Can not construct instance of java.sql.Blob, problem: abstract types can only be instantiated with additional type information at [Source: java.io.StringReader@e95dbd; line: 1, column: 27] (through reference chain: com.soul.seeker.models.Post["postImage"])
via Oracle Community by Omile, 1 year ago
Can not deserialize instance of Entity.Profile out of START_ARRAY token at [Source: org.apache.catalina.connector.CoyoteInputStream@262d1e47; line: 1, column: 1]
org.codehaus.jackson.map.JsonMappingException: Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'type' that is to contain type id (for class org.artifactory.ui.rest.model.artifacts.br owse.treebrowser.tabs.general.GeneralArtifactInfo) at [Source: org.apache.catalina.connector.CoyoteInputStream@4f86206c; line: 1, column: 58]
at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)
at org.codehaus.jackson.map.deser.StdDeserializationContext.wrongTokenException(StdDeserializationContext.java:261)
at org.codehaus.jackson.map.jsontype.impl.AsPropertyTypeDeserializer._deserializeTypedUsingDefaultImpl(AsPropertyTypeDeserializer.java:128)
at org.codehaus.jackson.map.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:100)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeWithType(BeanDeserializer.java:664)
at org.codehaus.jackson.map.deser.StdDeserializerProvider$WrappedDeserializer.deserialize(StdDeserializerProvider.java:461)
at org.codehaus.jackson.map.ObjectMapper._readValue(ObjectMapper.java:2704)
at com.sun.jersey.spi.container.ContainerRequest.getEntity(ContainerRequest.java:490)
at com.sun.jersey.server.impl.model.method.dispatch.EntityParamDispatchProvider$EntityInjectable.getValue(EntityParamDispatchProvider.java:123)
at com.sun.jersey.server.impl.inject.InjectableValuesProvider.getInjectableValues(InjectableValuesProvider.java:86)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$EntityParamInInvoker.getParams(AbstractResourceMethodDispatchProvider.java:153)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:203)
at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:200)
at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:91)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:380)
at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:203)
at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:157)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:61)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:111)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
177 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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