org.sonatype.nexus.repository.InvalidContentException: Declared content type application/xml, but discovered [text/plain, application/octet-stream].

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

Solutions on the web

via Sonatype JIRA by Tamás Cservenák, 1 year ago
Declared content type application/xml, but discovered [text/plain, application/octet-stream].
org.sonatype.nexus.repository.InvalidContentException: Declared content type application/xml, but discovered [text/plain, application/octet-stream].
at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.determineContentType(MavenFacetImpl.java:522)
at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.putAssetPayload(MavenFacetImpl.java:331)
at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.putArtifact(MavenFacetImpl.java:295)
at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.put(MavenFacetImpl.java:249)
at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.put(MavenFacetImpl.java:237)
at org.sonatype.nexus.repository.maven.internal.MavenProxyFacet.store(MavenProxyFacet.java:54)
at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:157)
at org.sonatype.nexus.repository.proxy.ProxyHandler.handle(ProxyHandler.java:49)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.maven.internal.MavenHeadersHandler.handle(MavenHeadersHandler.java:46)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.maven.internal.VersionPolicyHandler.handle(VersionPolicyHandler.java:50)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.partial.PartialFetchHandler.handle(PartialFetchHandler.java:60)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.negativecache.NegativeCacheHandler.handle(NegativeCacheHandler.java:49)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:46)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.view.Context.start(Context.java:112)
at org.sonatype.nexus.repository.view.Router.dispatch(Router.java:58)
at org.sonatype.nexus.repository.view.ConfigurableViewFacet.dispatch(ConfigurableViewFacet.java:45)
at org.sonatype.nexus.repository.group.GroupHandler.getFirst(GroupHandler.java:119)
at org.sonatype.nexus.repository.group.GroupHandler.doGet(GroupHandler.java:97)
at org.sonatype.nexus.repository.group.GroupHandler.handle(GroupHandler.java:81)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.partial.PartialFetchHandler.handle(PartialFetchHandler.java:60)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.security.SecurityHandler.handle(SecurityHandler.java:46)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.view.handlers.TimingHandler.handle(TimingHandler.java:46)
at org.sonatype.nexus.repository.view.Context.proceed(Context.java:89)
at org.sonatype.nexus.repository.view.Context.start(Context.java:112)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

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