java.lang.ClassCastException: com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter cannot be cast to javax.servlet.http.HttpServletRequest

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 Atlassian JIRA by Deric Lee, 1 year ago
com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter cannot be cast to javax.servlet.http.HttpServletRequest
via Atlassian JIRA by Deric Lee [Atlassian], 1 year ago
com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter cannot be cast to javax.servlet.http.HttpServletRequest
java.lang.ClassCastException: com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter cannot be cast to javax.servlet.http.HttpServletRequest
at com.atlassian.analytics.client.request.StashHttpRequestProvider.getRequest(StashHttpRequestProvider.java:22)
at com.atlassian.analytics.client.serialize.EventSerializer.getHttpRequest(EventSerializer.java:91)
at com.atlassian.analytics.client.serialize.EventSerializer.toMessage(EventSerializer.java:60)
at com.atlassian.analytics.client.listener.ProductEventListener.processEventWithTiming(ProductEventListener.java:78)
at com.atlassian.analytics.client.listener.ProductEventListener.processEvent(ProductEventListener.java:69)
at com.atlassian.analytics.client.listener.ProductEventListener.processEvent(ProductEventListener.java:61)
at com.atlassian.analytics.client.listener.StashEventListener.onEvent(StashEventListener.java:60)
at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)
at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107)
at com.atlassian.stash.internal.event.LockFreeEventPublisher$Publisher.dispatch(LockFreeEventPublisher.java:202)
at com.atlassian.stash.internal.event.LockFreeEventPublisher.publish(LockFreeEventPublisher.java:75)
at com.atlassian.stash.internal.event.TransactionAwareEventPublisher.publish(TransactionAwareEventPublisher.java:84)
at com.atlassian.stash.internal.pull.PullRequestServiceImpl.fireOpenRequested(PullRequestServiceImpl.java:1152)
at com.atlassian.stash.internal.pull.PullRequestServiceImpl.create(PullRequestServiceImpl.java:376)
at com.atlassian.stash.internal.pull.PullRequestServiceImpl.create(PullRequestServiceImpl.java:71)
at de.aeffle.stash.plugins.ssh.requestHandler.CreatePullRequestHandler.createPullRequestInStash(CreatePullRequestHandler.java:83)
at de.aeffle.stash.plugins.ssh.requestHandler.CreatePullRequestHandler.tryPullRequestCreation(CreatePullRequestHandler.java:73)
at de.aeffle.stash.plugins.ssh.requestHandler.CreatePullRequestHandler.handleRequest(CreatePullRequestHandler.java:38)
at com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter$ScmRequestRunnable$1.withRequest(SshScmRequestCommandAdapter.java:289)
at com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter$ScmRequestRunnable$1.withRequest(SshScmRequestCommandAdapter.java:277)
at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:84)
at com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter$ScmRequestRunnable.run(SshScmRequestCommandAdapter.java:277)
at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:69)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.lang.Thread.run(Thread.java:744)

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.