java.lang.IllegalStateException: Compared versions should be created off the same branch

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


Check if there is no nexus running. If not, delete sonatype-work/nexus/nexus.lock .


checkState() is Static convenience methods that help a method or constructor check whether it was invoked correctly (whether its preconditions have been met). This occurs when the precondition does not met.

Solutions on the web

via Atlassian JIRA by Turner Benard [Atlassian], 1 year ago
Compared versions should be created off the same branch
via Atlassian JIRA by Carlen Benard, 1 year ago
Compared versions should be created off the same branch
via GitHub by drago87
, 2 years ago
This stopwatch is already stopped; it cannot be stopped more than once.
via Google Groups by Daniel Geißler, 8 months ago
via Sonatype JIRA by WP Service Account, 1 year ago
Metadata regeneration can only be run on repositories that have an enabled 'Yum: Generate Metadata' capability
via Stack Overflow by ajay k
, 1 year ago
The path to the driver executable must be set by the system property; for more information, see The latest version can be downloaded from
java.lang.IllegalStateException: Compared versions should be created off the same branch
at com.atlassian.bamboo.deployments.versions.persistence.DeploymentVersionDaoImpl.findVersionsBetween(
at sun.reflect.GeneratedMethodAccessor1932.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
at com.sun.proxy.$Proxy55.findVersionsBetween(Unknown Source)
at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionServiceImpl.findVersionsBetween(
at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionVcsChangesetServiceImpl.compareVersionsByChangesets(
at com.atlassian.bamboo.deployments.notification.DeploymentFinishedNotification.getContext(
at com.atlassian.bamboo.deployments.notification.DeploymentFinishedNotification.getEmailSubject(
at com.atlassian.bamboo.notification.transports.AbstractEmailTransport.beginEmail(
at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(
at com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(
at com.atlassian.bamboo.deployments.notification.DeploymentNotificationEventListener.onDeploymentFinished(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at com.atlassian.bamboo.utils.BambooRunnables$

Users with the same issue

Once, 2 months ago
4 times, 5 months ago
Once, 5 months ago
1811 times, 7 months ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
88 more bugmates

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