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, 10 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 webdriver.ie.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver. The latest version can be downloaded from http://selenium-release.storage.googleapis.com/index.html
java.lang.IllegalStateException: Compared versions should be created off the same branch
at com.atlassian.bamboo.deployments.versions.persistence.DeploymentVersionDaoImpl.findVersionsBetween(DeploymentVersionDaoImpl.java:400)
at sun.reflect.GeneratedMethodAccessor1932.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.sun.proxy.$Proxy55.findVersionsBetween(Unknown Source)
at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionServiceImpl.findVersionsBetween(DeploymentVersionServiceImpl.java:689)
at com.atlassian.bamboo.deployments.versions.service.DeploymentVersionVcsChangesetServiceImpl.compareVersionsByChangesets(DeploymentVersionVcsChangesetServiceImpl.java:101)
at com.atlassian.bamboo.deployments.notification.DeploymentFinishedNotification.getContext(DeploymentFinishedNotification.java:123)
at com.atlassian.bamboo.deployments.notification.DeploymentFinishedNotification.getEmailSubject(DeploymentFinishedNotification.java:73)
at com.atlassian.bamboo.notification.transports.AbstractEmailTransport.beginEmail(AbstractEmailTransport.java:54)
at com.atlassian.bamboo.notification.transports.MultipartEmailTransport.sendNotification(MultipartEmailTransport.java:55)
at com.atlassian.bamboo.notification.NotificationDispatcherImpl.dispatchNotifications(NotificationDispatcherImpl.java:60)
at com.atlassian.bamboo.deployments.notification.DeploymentNotificationEventListener.onDeploymentFinished(DeploymentNotificationEventListener.java:109)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
at com.atlassian.bamboo.event.spi.EventInvokerRunnable.run(EventInvokerRunnable.java:29)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

6 times, 6 days ago
30 times, 1 month ago
5 times, 1 month ago
Once, 2 months ago
790 times, 3 months ago

Write tip

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