java.lang.IllegalStateException: Session doesn't exist. Please add the org.artifactory.sapi.common.Lock annotation to your method.

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via JFrog JIRA by Stephan Leicht Vogt, 1 year ago
Session doesn't exist. Please add the org.artifactory.sapi.common.Lock annotation to your method.
via JFrog JIRA by Stephan Leicht Vogt, 1 year ago
Session doesn't exist. Please add the org.artifactory.sapi.common.Lock annotation to your method.
java.lang.IllegalStateException: Session doesn't exist. Please add the org.artifactory.sapi.common.Lock annotation to your method.
at org.artifactory.storage.fs.lock.LockingHelper.getSession(LockingHelper.java:39)
at org.artifactory.storage.fs.lock.LockingHelper.removeLockEntry(LockingHelper.java:56)
at org.artifactory.storage.db.fs.model.DbFsItemProvider.getOrCreateMutableFsItem(DbFsItemProvider.java:162)
at org.artifactory.storage.db.fs.model.DbFileProvider.getOrCreMutableFile(DbFileProvider.java:73)
at org.artifactory.repo.db.DbStoringRepoMixin.createOrGetFile(DbStoringRepoMixin.java:649)
at org.artifactory.repo.db.DbStoringRepoMixin.saveResource(DbStoringRepoMixin.java:177)
at org.artifactory.repo.db.DbLocalRepo.saveResource(DbLocalRepo.java:143)
at org.artifactory.repo.service.RepositoryServiceImpl.saveResourceInTransaction(RepositoryServiceImpl.java:1701)
at sun.reflect.GeneratedMethodAccessor216.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.artifactory.storage.fs.lock.aop.LockingAdvice.invoke(LockingAdvice.java:66)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at com.sun.proxy.$Proxy47.saveResourceInTransaction(Unknown Source)
at org.artifactory.repo.service.RepositoryServiceImpl.saveResource(RepositoryServiceImpl.java:1668)
at sun.reflect.GeneratedMethodAccessor213.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at com.sun.proxy.$Proxy47.saveResource(Unknown Source)
at org.artifactory.engine.UploadServiceImpl.uploadItemWithContent(UploadServiceImpl.java:609)
at org.artifactory.engine.UploadServiceImpl.uploadItemWithProvidedContent(UploadServiceImpl.java:575)
at org.artifactory.engine.UploadServiceImpl.uploadItem(UploadServiceImpl.java:502)
at org.artifactory.engine.UploadServiceImpl.uploadFile(UploadServiceImpl.java:475)
at org.artifactory.engine.UploadServiceImpl.uploadArtifact(UploadServiceImpl.java:454)
at org.artifactory.engine.UploadServiceImpl.adjustResponseAndUpload(UploadServiceImpl.java:230)
at org.artifactory.engine.UploadServiceImpl.validateRequestAndUpload(UploadServiceImpl.java:170)
at org.artifactory.engine.UploadServiceImpl.upload(UploadServiceImpl.java:134)

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.

Write tip

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