org.artifactory.api.repo.exception.FileExpectedException: Expected a file but found a folder, at: jcenter-cache:

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 JFrog JIRA by Guy Cohen, 1 year ago
Expected a file but found a folder, at: jcenter-cache:
via JFrog JIRA by Guy Cohen, 1 year ago
Expected a file but found a folder, at: jcenter-cache:
via JFrog JIRA by Alexei Vainshtein, 1 year ago
Expected a file but found a folder, at: ForTest5:test.hpi
org.artifactory.api.repo.exception.FileExpectedException: Expected a file but found a folder, at: jcenter-cache:
at org.artifactory.storage.db.fs.model.DbFileProvider.getImmutableFile(DbFileProvider.java:54)
at org.artifactory.repo.db.DbStoringRepoMixin.getImmutableFile(DbStoringRepoMixin.java:648)
at org.artifactory.repo.db.DbStoringRepoMixin.getFilteredOrFileResource(DbStoringRepoMixin.java:551)
at org.artifactory.repo.db.DbStoringRepoMixin.getInfo(DbStoringRepoMixin.java:466)
at org.artifactory.repo.db.DbLocalRepo.getInfo(DbLocalRepo.java:105)
at org.artifactory.repo.db.DbCacheRepo.getInfo(DbCacheRepo.java:81)
at org.artifactory.addon.properties.PropertiesAddonImpl.updateRemoteProperties(PropertiesAddonImpl.java:259)
at org.artifactory.rest.resource.artifact.ArtifactResource.updateProperties(ArtifactResource.java:446)
at org.artifactory.rest.resource.artifact.ArtifactResource.resolveProperties(ArtifactResource.java:417)
at org.artifactory.rest.resource.artifact.ArtifactResource.getPropertiesResponse(ArtifactResource.java:371)
at org.artifactory.rest.resource.artifact.ArtifactResource.preparePropertiesResponse(ArtifactResource.java:362)
at org.artifactory.rest.resource.artifact.ArtifactResource.prepareResponseAccordingToType(ArtifactResource.java:184)
at org.artifactory.rest.resource.artifact.ArtifactResource.getStorageInfo(ArtifactResource.java:159)
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:497)
at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ObjectOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:258)
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.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:291)
at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:208)
at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.lambda$0(ArtifactoryAuthenticationFilterChain.java:134)
at org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:91)
at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:144)
at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:239)
at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:189)
at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:155)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:67)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:116)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
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:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1521)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

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