org.sonatype.nexus.repository.InvalidContentException

Detected content type [text/plain], but expected [application/x-gzip, application/gzip, application/x-tgz, application/gzip-compressed, application/gzipped, application/x-gunzip, application/x-gzip-compressed, gzip/document]: .index/nexus-maven-repository-index.gz

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web7

  • via Sonatype JIRA by Dan McLaughlin, 11 months ago
    Detected content type [text/plain], but expected [application/x-gzip, application/gzip, application/x-tgz, application/gzip-compressed, application/gzipped, application/x-gunzip, application/x-gzip-compressed, gzip/document]: .index/nexus-maven-repository-index.gz
  • via Sonatype JIRA by Joe Tom, 11 months ago
    Detected content type [text/html], but expected [application/json]: marked.json
  • via Sonatype JIRA by Tamás Cservenák, 1 year ago
    Declared content type application/xml, but discovered [text/plain, application/octet-stream].
  • Stack trace

    • org.sonatype.nexus.repository.InvalidContentException: Detected content type [text/plain], but expected [application/x-gzip, application/gzip, application/x-tgz, application/gzip-compressed, application/gzipped, application/x-gunzip, application/x-gzip-compressed, gzip/document]: .index
    • exus-maven-repository-index.gz at org.sonatype.nexus.repository.storage.DefaultContentValidator.determineContentType(DefaultContentValidator.java:95)[na:na] at org.sonatype.nexus.repository.maven.internal.MavenContentValidator.determineContentType(MavenContentValidator.java:79)[na:na] at org.sonatype.nexus.repository.storage.StorageTxImpl.determineContentType(StorageTxImpl.java:717)[na:na] at org.sonatype.nexus.repository.storage.StorageTxImpl.createBlob(StorageTxImpl.java:544)[na:na] at sun.reflect.GeneratedMethodAccessor260.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_77] at java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_77] at org.sonatype.nexus.common.stateguard.SimpleMethodInvocation.proceed(SimpleMethodInvocation.java:53)[na:na] at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)[na:na] at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:270)[na:na] at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)[na:na] at org.sonatype.nexus.common.stateguard.StateGuardAspect$1.invoke(StateGuardAspect.java:63)[na:na] at com.sun.proxy.$Proxy162.createBlob(Unknown Source)[na:na] at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.doPut(MavenFacetImpl.java:224)[na:na] at org.sonatype.nexus.transaction.TransactionalWrapper.proceedWithTransaction(TransactionalWrapper.java:54)[org.sonatype.nexus.transaction:3.0.0.03] at org.sonatype.nexus.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:53)[org.sonatype.nexus.transaction:3.0.0.03] at org.sonatype.nexus.repository.maven.internal.MavenFacetImpl.put(MavenFacetImpl.java:200)[na:na] at org.sonatype.nexus.repository.maven.internal.proxy.MavenProxyFacet.store(MavenProxyFacet.java:90)[na:na] at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:166)[na:na] at org.sonatype.nexus.repository.maven.internal.MavenIndexPublisher.prefetch(MavenIndexPublisher.java:244)[na:na] at org.sonatype.nexus.repository.maven.internal.MavenIndexPublisher.prefetchIndexFiles(MavenIndexPublisher.java:151)[na:na] at org.sonatype.nexus.repository.maven.internal.proxy.MavenProxyIndexFacet.publishIndex(MavenProxyIndexFacet.java:80)[na:na] at org.sonatype.nexus.repository.maven.tasks.PublishMavenIndexTask.execute(PublishMavenIndexTask.java:39)[na:na] at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:56)[na:na]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.